.stage { min-height: 550px; display: grid; place-items: center; padding: 28px 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.shape { width: 112px; height: 42px; border-radius: 21px; background: var(--bg); box-shadow: 0 18px 40px #0000000d, 0 3px 9px #00000008; border: 1px solid var(--line); position: relative; overflow: hidden; }
button { touch-action: manipulation; }
svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#trigger, .face { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#trigger { width: 110px; height: 40px; border: 0; border-radius: 21px; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 14px; font-weight: 500; background: var(--ink); color: var(--bg); }
#trigger:active { transform: translate(-50%, -50%) scale(.96); }
#trigger:focus-visible { outline-offset: -4px; }
[hidden] { display: none !important; }
.face { padding: 8px; width: 382px; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px 7px; }
h2 { font-size: 16px; font-weight: 550; margin: 0; letter-spacing: -.025em; }
.close { border: 0; padding: 0; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.close svg { width: 17px; height: 17px; }
.link-box { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; overflow: hidden; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 12px; color: var(--muted); }
.link-row input { min-width: 0; width: 100%; font: inherit; font-size: 14px; color: var(--muted); border: 0; background: transparent; text-overflow: ellipsis; }
#copy { border-radius: 20px; font-size: 13px; padding: 8px 10px; width: 92px; flex-shrink: 0; box-shadow: 0 1px 3px #00000008; }
.button-content { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; vertical-align: middle; }
.copy-window { display: grid; overflow: hidden; height: 18px; position: relative; }
.copy-face { grid-area: 1 / 1; height: 18px; line-height: 18px; color: var(--ink); }
.copy-face[data-kind="check"] { color: #148345; }
.copy-enter { animation: copy-up-in var(--copy-duration, 340ms) cubic-bezier(.2,.85,.25,1.12) both; }
.copy-leave { pointer-events: none; animation: copy-up-out var(--copy-duration, 340ms) cubic-bezier(.22,1,.36,1) both; }
@keyframes copy-up-in { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes copy-up-out { from { transform: var(--copy-exit-from, translateY(0)); opacity: var(--copy-exit-opacity, 1); } to { transform: translateY(-110%); opacity: 0; } }
#copy svg { width: 14px; height: 14px; }
.is-success { color: #148345; }
.check-stroke { stroke-dasharray: 24; animation: draw-check 280ms ease-out both; }
.access { border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.access > span { flex: 1; min-width: 0; }
.access select { width: 100%; font-size: 14px; padding: 0; border: 0; background: transparent; }
.access small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.channels { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.channels button { display: flex; justify-content: center; align-items: center; gap: 8px; border-radius: 24px; font-size: 14px; min-height: 40px; padding: 8px; }
.channels [data-icon] { display: flex; align-items: center; }.channels svg { width: 17px; height: 17px; }.mail, [data-channel="Email"] .button-content > svg:not(.spinner) { color: #8150d6; }
[data-channel].is-success .button-content > svg { color: inherit; }
.recipients { padding: 14px 8px 6px; }.label { font-size: 12px; margin: 0 0 12px; color: var(--muted); }
#selected { min-height: 36px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }.placeholder { font-size: 14px; color: var(--muted); }
.chip { display: flex; align-items: center; gap: 5px; border-radius: 18px; padding: 3px 7px 3px 3px; font-size: 11px; background: var(--panel); border: 0; }.chip svg { width: 10px; height: 10px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: var(--panel); flex-shrink: 0; }
.chip .avatar { width: 22px; height: 22px; }
.people { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 10px 0 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; background: transparent; border: 0; border-radius: 15px; color: var(--muted); font-size: 11px; }
.portrait { position: relative; display: block; border-radius: 50%; }
.portrait::after { content: ''; position: absolute; inset: -3px; border: 1.5px solid #8758ef; border-radius: 50%; opacity: 0; transform: scale(.86); transition: transform 300ms cubic-bezier(.2,.9,.3,1.4), opacity 160ms; }
.selected-badge { position: absolute; bottom: -2px; right: -3px; width: 13px; height: 13px; display: grid; place-items: center; background: #8758ef; color: #fff; border: 1.5px solid var(--bg); border-radius: 50%; opacity: 0; transform: scale(.3); z-index: 1; transition: transform 300ms cubic-bezier(.2,.9,.3,1.5), opacity 160ms; }
.selected-badge svg { width: 9px; height: 9px; stroke-width: 2.5; }
.person[aria-pressed="true"] { color: var(--ink); background: transparent; }.person[aria-pressed="true"] .portrait::after, .person[aria-pressed="true"] .selected-badge { opacity: 1; transform: scale(1); }
#send, #done { width: 100%; min-height: 42px; border-radius: 22px; background: var(--ink); color: var(--bg); font-size: 13px; border: 0; }
#send:disabled { opacity: 1; color: var(--muted); background: var(--line); }#send:has(.spinner):disabled { background: var(--ink); color: var(--bg); }
#send-label { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.count { position: relative; overflow: hidden; display: inline-grid; height: 1.2em; min-width: .65em; font-variant-numeric: tabular-nums; }.old-count { position: absolute; inset: 0; }
.spinner { width: 14px; height: 14px; animation: spin 850ms linear infinite; }
#error { margin: 0 8px 10px; color: #b84940; font-size: 12px; line-height: 1.5; }
.confirmation { text-align: center; padding: 24px 16px 14px; width: 298px; }
.sent-avatars { display: inline-flex; justify-content: center; position: relative; margin-bottom: 14px; padding-right: 3px; }
.sent-avatars .avatar { width: 36px; height: 36px; border: 2px solid var(--bg); margin-left: -9px; }.sent-avatars .avatar:first-child { margin-left: 0; }
.sent-badge { position: absolute; right: -3px; bottom: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #148345; color: #fff; border: 2px solid var(--bg); }.sent-badge svg { width: 12px; height: 12px; stroke-width: 2.5; }
.confirmation h2 { font-size: 15px; max-width: 220px; margin: auto; line-height: 1.4; }.confirmation p { font-size: 11px; color: var(--muted); margin: 8px 0 20px; line-height: 1.5; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.confirmation-actions button { min-height: 36px; border-radius: 20px; font-size: 12px; padding: 8px; }
.demo-controls { text-align: center; }.demo-controls > div { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 3px; }.demo-controls button { border: 0; border-radius: 18px; background: transparent; color: var(--muted); }.demo-controls button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px #0000000d; }.demo-controls p, .credit { font-size: 11px; color: var(--muted); line-height: 1.6; }.credit { text-align: center; margin-top: 32px; }.credit a { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-notes { max-width: 600px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.notes-eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.motion-notes h2 { font-size: 20px; font-weight: 550; line-height: 1.5; letter-spacing: -.02em; }
.notes-intro { color: var(--muted); margin: 12px 0 28px; }
.motion-notes article + article { margin-top: 30px; }
.motion-notes h3 { font-size: 15px; line-height: 1.6; font-weight: 550; margin: 0 0 10px; }
.motion-notes article p { margin: 10px 0; }
.motion-notes code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); padding: 2px 4px; border-radius: 3px; }
.motion-notes details { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.motion-notes summary { padding: 12px 14px; cursor: pointer; font-size: 13px; transition: background 140ms; }
.motion-notes summary:hover { background: var(--panel); }
.motion-notes summary:focus-visible, .motion-notes pre:focus-visible { outline: 2px solid #7181a5; outline-offset: -3px; }
.code-note { border-top: 1px solid var(--line); padding: 0 14px 6px; font-size: 12px; color: var(--muted); }
.motion-notes pre { overflow-x: auto; padding: 14px; margin: 12px 0; background: var(--panel); border-radius: 7px; font-size: 12px; line-height: 1.65; color: var(--ink); }
.motion-notes pre code { font-size: inherit; padding: 0; border-radius: 0; background: none; }
.implementation-note { font-size: 12px; color: var(--muted); }
.notes-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 20px; margin-top: 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
:root[data-preview] .motion-notes { display: none; }
.flying-avatar { position: fixed; pointer-events: none; z-index: 2; transform-origin: top left; }
@keyframes draw-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }@keyframes spin { to { transform: rotate(360deg); } }
:root[data-preview] .stage { min-height: 400px; height: 400px; padding: 0; }:root[data-preview] .shape { scale: .76; }:root[data-preview] .demo-controls, :root[data-preview] .credit { display: none; }
:root[data-still] *, :root[data-still] *::before, :root[data-still] *::after { transition: none !important; animation: none !important; }
:root[data-theme="dark"] .is-success, :root[data-theme="dark"] .copy-face[data-kind="check"] { color: #62cc8c; }
@media(max-width: 400px) { .stage { min-height: 530px; }.channels button { gap: 5px; }.avatar { width: 36px; height: 36px; }.face { padding: 8px; } }
