/* Smooth Drawer (smooth-drawer.js): a plain-CSS port of KokonutUI's Smooth Drawer (MIT). A bottom sheet up to 420px
   wide with a rounded top, a small pill handle, a dark primary button, a quiet toggle with a chevron, and details that
   fade and slide in when it opens fully. Dark by default (the live room is dark); light with :root.light. */
.smooth-drawer-layer{--sd-bg:#09090b;--sd-line:#27272a;--sd-text:#fafafa;--sd-muted:#a1a1aa;--sd-pill:#3f3f46;--sd-primary:#fafafa;--sd-primary-text:#18181b;--sd-primary-hover:#e4e4e7;--sd-soft:#18181b;position:fixed;inset:0;z-index:1800;pointer-events:none}
:root.light .smooth-drawer-layer{--sd-bg:#fff;--sd-line:#e4e4e7;--sd-text:#18181b;--sd-muted:#71717a;--sd-pill:#d4d4d8;--sd-primary:#18181b;--sd-primary-text:#fff;--sd-primary-hover:#27272a;--sd-soft:#fafafa}
.smooth-drawer-scrim{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:auto}
.smooth-drawer-layer.is-closing .smooth-drawer-scrim{pointer-events:none}
.smooth-drawer{position:absolute;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:420px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--sd-line);border-bottom:0;border-radius:16px 16px 0 0;background:var(--sd-bg);color:var(--sd-text);outline:none;pointer-events:auto;touch-action:none;will-change:transform;font-family:inherit;padding-bottom:env(safe-area-inset-bottom,0px)}
.smooth-drawer.is-dragging{cursor:grabbing;user-select:none}
.smooth-drawer-handle{flex:none;display:flex;align-items:center;justify-content:center;height:24px;cursor:grab}
.smooth-drawer-handle span{width:36px;height:4px;border-radius:999px;background:var(--sd-pill)}
.smooth-drawer-body{flex:1;min-height:0;display:flex;flex-direction:column}
.smooth-drawer-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:44px;margin:16px 0 0;border:0;border-radius:12px;background:var(--sd-primary);color:var(--sd-primary-text);font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .15s ease-out}
.smooth-drawer-primary:hover{background:var(--sd-primary-hover)}
.smooth-drawer-primary:disabled{opacity:.6;cursor:default}
.smooth-drawer-primary:focus-visible,.smooth-drawer-toggle:focus-visible{outline:2px solid #a1a1aa;outline-offset:2px}
.smooth-drawer-toggle{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:40px;margin:4px 0 0;border:0;border-radius:8px;background:transparent;color:var(--sd-muted);font:inherit;font-size:13px;cursor:pointer;transition:color .15s}
.smooth-drawer-toggle:hover{color:var(--sd-text)}
.smooth-drawer-toggle svg{width:14px;height:14px;transition:transform .3s cubic-bezier(.32,.72,0,1)}
.smooth-drawer-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.smooth-drawer [data-smooth-details]{flex:1;min-height:0;padding:0 20px 24px;overflow:hidden;opacity:0;translate:0 12px;transition:opacity .3s cubic-bezier(.32,.72,0,1),translate .3s cubic-bezier(.32,.72,0,1)}
.smooth-drawer [data-smooth-details].is-open{opacity:1;translate:0 0;overflow-y:auto;touch-action:pan-y}
.smooth-roll-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.smooth-roll-digits{display:inline-flex;font-variant-numeric:tabular-nums}
.smooth-roll-slot{position:relative;display:inline-flex;overflow:hidden}
.smooth-roll-char{display:inline-block}
.smooth-roll-char.is-leaving{position:absolute;left:0;top:0}
@media(prefers-reduced-motion:reduce){
 .smooth-drawer [data-smooth-details]{translate:0 0}
 .smooth-drawer-toggle svg{transition:none}
}
