/* Block, not inline-flex: consumers wrap full-width list rows and an * inline wrapper would shrink them; the card still measures this rect. */ .root { position: relative; display: block; } /* Preview card (figma session hover card): 244 wide, r12, pad 12/16, the * menu card's elevation. Surface is #2C2C2E in both themes (figma value, * light/dark identical), so a component-level variable, not a theme token. * Hit-testable on purpose: resting the pointer on the card holds it open * (HoverCard's grace close), which a `pointer-events: none` card cannot do. */ .card { --dsw-hovercard-bg: #2C2C2E; position: fixed; z-index: 100; box-sizing: border-box; width: 244px; padding: 12px 16px; border-radius: 12px; background: var(--dsw-hovercard-bg); box-shadow: var(--dsw-shadow-lv3); } .copyable { cursor: pointer; } .copyable:focus-visible { outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary)); outline-offset: 2px; } .feedback { display: flex; align-items: center; justify-content: center; } .copied { color: #FFFFFF; font-size: 14px; line-height: 20px; text-align: center; } .status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .preview { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); box-shadow: var(--dsw-elevation-panel); opacity: 1; transition: opacity var(--dsh-hover-preview-fade) linear; } @starting-style { .preview { opacity: 0; } } .preview[data-closing] { opacity: 0; pointer-events: none; } @media (prefers-reduced-motion: reduce) { .preview { transition: none; } }