/* App wiring for glyph/composer-icons.css v2 (loaded right after it). Glyph owns the look; this file only holds what
 * the app needs on top (composer-icons.md section 9 "For Proto and Forge") plus the Donate row and the toast move. */

/* Notch merges with the real glass bar: fill = the bar's top glass colour (section 9). */
.prompt-bar.has-cmp { --notch-fill: var(--glass-top); }

/* Multiline bar has a 24px radius (style.css), so the dock row follows it. */
.intake-stage:has(.prompt-bar.multiline) .dock-row { --cmp-bar-radius: 24px; }

/* Old busy spinner lives on .action-btn::after (style.css); hide the glyph while busy. */
.action-btn .icon { --accent: currentColor; }
.action-btn.busy .icon { display: none; }

/* Plus menu rows are built by JS from the command registry (createPlusMenu). Line icons are inline 24-grid SVGs at 16. */
.pm-item .pm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-item .pm-note { justify-self: end; }
.pm-group-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Bottom sheet (<=600px) sits above the page and closes on an outside tap. */

/* Donate (DIA_DONATE_URL): links styled like their sibling menu items; hidden while the URL is unset. */
.dropdown-item[hidden], .pm-row[hidden] { display: none; }
a.dropdown-item { text-decoration: none; cursor: pointer; }
.donate-icon { display: inline-flex; width: 18px; height: 18px; flex: none; color: currentColor; }
.donate-icon svg { width: 18px; height: 18px; }
.donate-icon .px { width: 16px; height: 16px; image-rendering: pixelated; }

/* "Filed in your cabinet" toast (Glyph nit b): it now sits top-centre, so it slides DOWN 12px into place
   (cabinet-fan.css's dia-toast-in rises from below and is Glyph-synced, so the override lives here). Fade only when reduced. */
.toast { animation: dia-toast-drop var(--dia-dur-toast-in, 300ms) var(--dia-ease-toast, ease) both; }
@keyframes dia-toast-drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .toast { animation-name: dia-toast-fade-only; }
  @keyframes dia-toast-fade-only { from { opacity: 0; } to { opacity: 1; } }
}

/* Phones: the plus menu is a fixed bottom sheet (Glyph). The bar's own backdrop-filter / hover transform would make the
 * bar the sheet's containing block, so on phones the glass moves to a ::before layer behind the bar's content. */
@media (max-width: 600px) {
  .prompt-bar.has-cmp {
    z-index: 0; background: none; box-shadow: none; transform: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .prompt-bar.has-cmp::before {
    content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; pointer-events: none;
    background: linear-gradient(135deg, var(--glass-top) 0%, var(--glass-mid) 45%, var(--glass-bot) 100%);
    backdrop-filter: blur(36px) saturate(200%); -webkit-backdrop-filter: blur(36px) saturate(200%);
    box-shadow: var(--pill-shadow), inset 0 2px 2px var(--glass-inset), inset 0 -2px 3px var(--glass-mid);
  }
  .prompt-bar.has-cmp:is(:hover, :focus-within) { box-shadow: none; transform: none; }
  .prompt-bar.has-cmp:has(.cmp-plus[aria-expanded="true"]) { z-index: 30; }
}

/* The composer sits in a centred hero; menu text stays start-aligned (Glyph's "Icon style" label row). */
.plus-menu { text-align: start; }

/* ==========================================================================
   Landing polish (feat/landing-polish). Overrides on top of glyph/composer-icons.css, existing tokens only.
   Glyph to review: every value below is listed in the PR notes.
   ========================================================================== */

/* 1. Mic fixed in the corner (Glyph review + Ikenna): the mic is the bar's last flex item, 12px in (8px on phones),
      mirroring the plus, and it never moves. Run's slot is reserved inside the textarea's right padding (one circle +
      the 8px gap), so text never reflows; Run sits in that slot, just LEFT of the mic, and is shown only with text.
      Show: 180ms EASE_OUT fade + scale 0.9 -> 1. Hide (Ikenna: reverses, not instant): 150ms ease-in fade + scale
      back to 0.9, then visibility drops. Uses the `scale` property so the hover `transform: scale(1.08)` still works.
      Reduced motion: a short 100ms fade, no scale. */
.prompt-bar.has-cmp { --run-slot: calc(var(--cmp-circle) + 8px); --bar-pad: 12px; }
.prompt-bar.has-cmp .prompt-input { padding-right: var(--run-slot); }
.prompt-bar.has-cmp .cmp-run-slot {
  position: absolute; z-index: 1; right: calc(var(--bar-pad) + var(--run-slot)); top: 50%; translate: 0 -50%;
  pointer-events: none;
}
.prompt-bar.has-cmp.multiline .cmp-run-slot { top: auto; bottom: var(--bar-pad); translate: none; }
.prompt-bar.has-cmp .cmp-enter,
.prompt-bar.has-cmp .cmp-enter[hidden] { display: flex; animation: none; }
.prompt-bar.has-cmp .cmp-enter {
  opacity: 1; scale: 1; visibility: visible; pointer-events: auto;
  transition: all var(--dia-dur-run-in, 180ms) var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1)), visibility 0s;
}
.prompt-bar.has-cmp .cmp-enter[hidden] {
  opacity: 0; scale: 0.9; visibility: hidden; pointer-events: none;
  transition: all 150ms var(--dia-ease-in, cubic-bezier(0.55, 0, 0.75, 0.2)), visibility 0s linear 150ms;
}
:root:is([data-icon-style="zelda"], [data-icon-style="dia-pixel"]) .prompt-bar.has-cmp .cmp-enter { transition-timing-function: steps(2, end), linear; }
@media (prefers-reduced-motion: reduce) {
  .prompt-bar.has-cmp .cmp-enter, .prompt-bar.has-cmp .cmp-enter[hidden] { scale: 1; animation: none; }
  .prompt-bar.has-cmp .cmp-enter { transition: opacity 100ms linear, visibility 0s; }
  .prompt-bar.has-cmp .cmp-enter[hidden] { transition: opacity 100ms linear, visibility 0s linear 100ms; }
}
.cmp-tip-mic { right: var(--bar-pad, 12px); }   /* the mic is in the corner now */
@media (max-width: 600px) {
  .prompt-bar.has-cmp { --run-slot: calc(var(--cmp-circle-mobile) + 8px); --bar-pad: 8px; }
}

/* 2. Floating notch: a small handle bar floating just above the prompt bar (replaces the 36x12 tab on the top edge).
      Button box 48x20 (hit area 48x28 desktop, 48x44 touch); the visible handle is a 32x4 rounded bar. */
.cmp-notch.cmp-notch--float {
  top: -26px; width: 48px; height: 20px; border-radius: 10px; display: grid; place-items: center;
  color: inherit; background: none;
}
.cmp-notch--float::before { inset: -4px 0; }
@media (pointer: coarse) { .cmp-notch--float::before { inset: -12px -2px; } }
.notch-handle {
  display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--notch-chev);
  transition: width var(--dia-dur-lift, 160ms) var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1)), background-color 140ms linear;
}
.cmp-notch--float:is(:hover, :focus-visible) .notch-handle { background: var(--muted); }
.cmp-notch--float[aria-expanded="true"] .notch-handle { width: 40px; background: var(--text); }
:root:is([data-icon-style="zelda"], [data-icon-style="dia-pixel"]) .notch-handle { border-radius: 0; transition: none; }
/* The tip floats above the handle instead of the bar's edge. */
.has-cmp .cmp-tip-notch { bottom: calc(100% + 34px); }

/* Voice panel (Glyph review + Ikenna): a compact single row (42px tall) on an opaque --raised layer with the plus
   menu's shadow. Its bottom edge sits 11px above the handle (handle top = bar - 26px), and while it's open the status
   line slides up 22px into the hero's bottom margin, so the panel never covers "Ready" or the description. */
.has-cmp .voice-fan {
  bottom: calc(100% + 37px); flex-direction: row; align-items: center; gap: 2px; padding: 4px;
  border-radius: 21px; background: var(--raised);
}
.has-cmp .voice-item {
  width: auto; height: 32px; padding: 0 12px 0 0; flex-direction: row; gap: 7px; border-radius: 16px; white-space: nowrap;
}
.has-cmp .voice-item .icon { width: 32px; height: 32px; flex: none; }
.has-cmp .voice-item:is(:hover, :focus-visible):not([aria-disabled="true"]) { background: var(--surface); }
.has-cmp .voice-item:focus-visible { outline-offset: 0; }
.has-cmp .voice-label { font-size: 12px; line-height: 1; text-align: start; }
.has-cmp .voice-note { display: inline; margin-left: 4px; }
.has-cmp .voice-note::before { content: "· "; }
/* Phones: icon-only (each item keeps its aria-label; labels were aria-hidden already), 44px targets (Glyph review #3),
   so the panel is ~146px wide and still sits between the tray and cabinet buttons. The 16px glyph is unchanged. */
@media (max-width: 600px) {
  .has-cmp .voice-fan { gap: 2px; padding: 4px; border-radius: 26px; }
  .has-cmp .voice-item { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; border-radius: 22px; }
  .has-cmp .voice-label { display: none; }
  .has-cmp .voice-item .icon svg { width: 16px; height: 16px; }
}
/* Glyph review #2: the whole status row (status + "Collapse/Edit intake") slides, not just #status, so the open panel
   never covers the toggle. Phones stack the toggle under the status (#1) and have a taller panel (#3), so they lift more
   while the toggle is shown and get the room for it in the stage's top margin. */
.intake-stage { --intake-lift: 22px; }
.intake-stage > .intake-bar { transition: translate 120ms linear; }
.intake-stage:has(#intakeVoiceNotch[aria-expanded="true"]) > .intake-bar {
  translate: 0 calc(-1 * var(--intake-lift)); transition: translate var(--dia-dur-run-in, 180ms) var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (max-width: 600px) {
  .intake-stage { --intake-lift: 30px; }
  .intake-stage:has(#intakeToggle:not([hidden])) { --intake-lift: 40px; margin-top: 18px; }
}
/* Ask DIA: same idea as the landing status line. The heading sits 52px above the bar and, while the panel is open,
   slides up 38px into the stage's 56px top margin, so the panel never covers "Ask DIA" or its badge. */
.agent:has(> h2 ~ .prompt-bar.has-cmp) { margin-top: 56px; }   /* was 40px: room for the slide, ~18px air kept above */
.agent > h2:has(~ .prompt-bar.has-cmp) { transition: translate 120ms linear; }
.agent:has(#agentVoiceNotch[aria-expanded="true"]) > h2 {
  translate: 0 -38px; transition: translate var(--dia-dur-run-in, 180ms) var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (prefers-reduced-motion: reduce) {
  .intake-stage > .intake-bar, .intake-stage:has(#intakeVoiceNotch[aria-expanded="true"]) > .intake-bar,
  .agent > h2, .agent:has(#agentVoiceNotch[aria-expanded="true"]) > h2 { transition: none; }
}

/* Clean close (no faint "shadow" left behind): the fan goes hidden in one short 120ms fade, then visibility,
   box-shadow and pointer events all drop at the same instant. Items no longer sink and stagger out on close. JS
   also sets `inert` while closed. The tooltip stays muted after a close (see createVoiceFan muteTip). */
.has-cmp .voice-fan {
  transition: opacity 120ms linear, visibility 0s linear 120ms, box-shadow 0s linear 120ms;
}
.has-cmp .voice-fan:not(.cmp-notch[aria-expanded="true"] ~ .voice-fan) { box-shadow: none; pointer-events: none; }
.has-cmp .voice-fan .voice-item { transition-delay: 0s; transition-duration: 120ms; transition-timing-function: linear; }
.has-cmp .cmp-notch[aria-expanded="true"] ~ .voice-fan { box-shadow: var(--shadow-subtle);   /* = .plus-menu */
  transition: opacity calc(var(--dia-dur-stack-open, 280ms) * 0.6) var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1)), visibility 0s, box-shadow 0s; }
.has-cmp .cmp-notch[aria-expanded="true"] ~ .voice-fan .voice-item { transition-duration: var(--dia-dur-stack-open, 280ms), calc(var(--dia-dur-stack-open, 280ms) * 0.6); transition-timing-function: var(--dia-ease-out, cubic-bezier(0.16, 1, 0.3, 1)); transition-delay: calc(var(--d, 0) * var(--dia-stagger-open, 30ms)); }
.cmp-notch[data-tip-muted] + .cmp-tip { opacity: 0; visibility: hidden; transition: none; }

/* 3. Line order: status above the bar (in .intake-bar, where the scoring note was), the note below the links. */
.intake-stage > .prompt-callout { margin-top: 14px; text-align: center; }

/* 4. Run status: dot + state word (+ optional detail). Green = --good (dark #8bd39c on #0c0c0e ≈ 11:1;
      light #1a5f33 on #f3f1ec ≈ 7.3:1). Processing pulses the silver focus tone; reduced motion: no pulse. */
.run-status {
  margin: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 18px;
  color: var(--muted); font: 500 12px/1.4 var(--mono);
}
#status.run-status { flex-basis: auto; justify-content: center; }   /* style.css #status was a full-width row under the links */
/* Glyph review #1: on phones the status is one centred paragraph (dot, state and detail flow inline and wrap together)
   instead of an inline-flex row whose detail shrinks into a narrow column; the intake toggle gets its own line. */
@media (max-width: 600px) {
  .intake-bar { flex-direction: column; gap: 2px; }
  #status.run-status { display: block; align-self: stretch; text-align: center; }
  .run-status .status-dot { display: inline-block; vertical-align: middle; margin: -2px 7px 0 0; }
  .run-status .status-detail:not(:empty) { margin-left: 7px; }
}
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--muted); }
.status-detail:not(:empty)::before { content: "·"; margin: 0 7px 0 0; color: var(--muted); }
.status-detail { color: var(--muted); }
.run-status[data-state="ready"] .status-state { color: var(--good); }
.run-status[data-state="ready"] .status-dot { background: var(--good); }
.run-status[data-state="processing"] .status-state { color: var(--text); }
.run-status[data-state="processing"] .status-dot { background: var(--control-focus, var(--focus-ring)); }
.run-status[data-state="complete"] .status-state { color: var(--text); }
.run-status[data-state="complete"] .status-dot { background: var(--good); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--good); }
.run-status[data-state="error"] .status-state { color: var(--text); }
.run-status[data-state="error"] .status-dot { background: #c2410c; }   /* = .intake-error border */
@media (prefers-reduced-motion: no-preference) {
  .run-status[data-state="processing"] .status-dot { animation: cmp-pulse var(--dia-dur-pulse, 1.6s) var(--dia-ease-pulse, ease-in-out) infinite; }
}

/* 5. Smaller icons, same buttons: line icons 24 -> 18px in the 46px circles (16px in 38px on phones), 20 -> 18px in
      the 44px dock tiles and the 40px fan circles. Pixel sprites stay at 2x (32px) so they keep crisp integer scaling. */
.cmp-circle .icon svg { width: 18px; height: 18px; }
.voice-item .icon svg { width: 18px; height: 18px; }
.dock-icon .icon svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .cmp-circle .icon svg { width: 16px; height: 16px; } }
/* Dark buttons match light's proportions: the dark drop shadow was a wider silver glow (0 6px 16px at .35) that made
   the circles read larger than in light. Same geometry as light (0 4px 12px), dark-theme ink. Light is untouched. */
html:not([data-theme="light"]) .action-btn.cmp-circle:not(:hover, :focus-visible, [aria-disabled="true"]) { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.3); }
/* Ask DIA: the floating handle needs clear air under the heading's badge. */
.agent > h2 ~ .prompt-bar.has-cmp { margin-top: 52px; }

/* Plus menu viewport guard (createPlusMenu placeMenu, Glyph review): flipped below the bar when there's more room
   there; otherwise it opens upward with its top clamped 8px below the 52px letterhead band and its height capped at
   the space left. The menu is a column: the groups scroll in .pm-scroll (bottom-edge fade while there's more below),
   and All commands is a sticky footer row that's always visible. Rows keep 36px on desktop. */
.plus-menu { display: flex; flex-direction: column; }
.pm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* Scroll cue, ported from Tia's plus-menu guard (tia-sia bfae6fd, #29): a 28px sticky gradient into the menu's own
   background along the scroll area's bottom edge, shown (150ms fade) only while there's more below. */
.pm-scroll::after {
  content: ""; display: block; position: sticky; bottom: 0; height: 28px; margin-top: -28px; pointer-events: none;
  opacity: 0; transition: opacity 150ms ease; background: linear-gradient(color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 85%);
}
.pm-scroll[data-more]::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pm-scroll::after { transition: none; } }
.plus-menu > .pm-sep, .pm-foot { flex: none; }
@media (min-width: 601px) {
  .plus-menu[data-drop="down"] { bottom: auto; top: calc(100% + 10px); transform: translateY(calc(-1 * var(--dia-fan-rise))); }
}

/* Phones: the intake placeholder gets a shorter line so it never cuts off mid-word (set by JS at <=600px),
   and any overflow ends in a clean ellipsis. */
@media (max-width: 600px) {
  .prompt-input::placeholder { text-overflow: ellipsis; }
}

/* Run / send in dark (Glyph, PR #40): graphite like Tia's, not gold or silver. Mustard/gold stays the drag-over cue only.
   Light keeps its silver send button. The pixel style keeps its own flat dark circle (composer-icons.css). */
html:not([data-theme="light"]) .action-btn.cmp-enter {
  --send-from: #3a3a40;
  --send-to: #26262a;
  --send-hover-from: #45454c;
  --send-hover-to: #2e2e33;
  --on-accent: #eeeef2;
  --accent-rgb: 163, 169, 177;
  border-color: rgba(255, 255, 255, 0.16);
}
html:not([data-theme="light"]) .action-btn.cmp-enter:not(:hover, :focus-visible, [aria-disabled="true"]) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}
html:not([data-theme="light"]) .action-btn.cmp-enter:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(163, 169, 177, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.18), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Composer bar glow in dark (Glyph, PR #40): neutral silver #7C828A instead of the gold accent, same 0 0 40px blur and
   spread and the same 0.22 alpha; the focus outline goes silver too (#7C828A ≈ 4.8:1 on #0c0c0e). Covers hover, which
   shared the gold. Light is unchanged. Mustard stays the drag-over cue only (tray icon, #DFA81C). */
html:not([data-theme="light"]) .prompt-bar {
  --pill-shadow-hover: 0 30px 72px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 130, 138, 0.22);
}
html:not([data-theme="light"]) .prompt-bar:is(:focus-within, :hover) { outline-color: rgba(124, 130, 138, 0.5); }
html:not([data-theme="light"]) .prompt-bar:focus-within { outline-color: #7C828A; }

/* ==========================================================================
   Prompt bar v2 (feat/prompt-bar-v2, Ikenna 2026-10-23). Existing tokens only; Glyph to review.
   - Slimmer bar: 70 -> 57px desktop (6px vertical padding), 54 -> 52px on phones (3px). Every icon button in and around the
     bar is a real 44x44 box (was 46 desktop / 38 phones), so the 44px tap target holds without hit-area tricks.
   - The message in an empty bar (placeholder, or "Ask DIA is temporarily unavailable.") is centred.
   - No pills: the Ask DIA state is plain text with a dot, the voice drawer is icon-only with hints, and the old
     Conversation / Listen / Auto-speak chips under the Ask DIA bar are gone (they live in the drawer).
   ========================================================================== */
:root { --cmp-circle: 44px; --cmp-circle-mobile: 44px; --cmp-bar-radius: 28px; }
.prompt-bar.has-cmp { min-height: 56px; padding-top: 6px; padding-bottom: 6px; border-radius: 28px; }
.prompt-bar.has-cmp.multiline { border-radius: 24px; }
.prompt-bar.has-cmp .action-btn.cmp-circle { width: 44px; height: 44px; }
.prompt-bar.has-cmp .prompt-input:placeholder-shown { text-align: center; padding-right: 0; margin-right: 6px; }
@media (max-width: 600px) {
  :root { --cmp-bar-radius: 26px; }
  .prompt-bar.has-cmp { min-height: 52px; padding: 3px 4px; border-radius: 26px; --bar-pad: 4px; }
  .prompt-bar.has-cmp .prompt-input { margin-left: 4px; }
  .prompt-bar.has-cmp .prompt-input:placeholder-shown { margin-right: 4px; }
}

/* Ask DIA state: quiet plain text after the heading, a 6px dot in front (green when connected). Not a badge. */
.agent-state {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle;
  color: var(--muted); font: 400 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none;
}
.agent-state::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--muted); opacity: .7; }
.agent-state.ok { color: var(--good); }
.agent-state.ok::before { background: var(--good); opacity: 1; }

/* The old chip row's buttons are state holders only now. */
.voice-sources[hidden] { display: none !important; }

/* Voice options drawer: icon-only on every width, 44x44 items, a soft 14px panel (the plus menu's radius), not a pill.
   Each item's name shows as a hint (#uiHint) on hover, keyboard focus or a long-press. */
.has-cmp .voice-fan { padding: 4px; gap: 2px; border-radius: 14px; }
.has-cmp .voice-item { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
.has-cmp .voice-item .icon { width: 36px; height: 36px; }
.has-cmp .voice-label { display: none; }
/* The drawer is 12px taller than the old 42px row, so the status line / Ask DIA heading slide a little further. */
/* #46 lifts the whole status row (.intake-bar) by --intake-lift; #status itself is not lifted again. The drawer is 12px
   taller than #46's, so the lift and the phones' top margin are retuned to keep ~8px+ of air between the status row and
   both the hero's last line and the open drawer (1280: 9/6px; 390 and 360: 8.5/8px, and 12.5/18px with "Collapse intake"). */
.intake-stage { --intake-lift: 34px; }
@media (max-width: 600px) {
  .intake-stage { --intake-lift: 34px; margin-top: 8px; }
  .intake-stage:has(#intakeToggle:not([hidden])) { --intake-lift: 44px; margin-top: 22px; }
}
.agent:has(#agentVoiceNotch[aria-expanded="true"]) > h2 { translate: 0 -50px; }
.agent:has(> h2 ~ .prompt-bar.has-cmp) { margin-top: 68px; }

/* Shared hint (tooltip) for the composer's icon buttons: same look as .cmp-tip. Fixed, clamped to the viewport by JS. */
.ui-hint {
  position: fixed; z-index: 60; width: max-content; max-width: min(280px, calc(100vw - 16px));
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text); font: 500 12px/1.45 var(--sans); box-shadow: var(--shadow-subtle); pointer-events: none;
}
.ui-hint[hidden] { display: none; }
[data-hint] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
