/* Where the design system's pieces sit in the live panel; nothing here restyles a piece (tokens.css and bundle.css are
   the design system's files byte for byte, and bin/gates/ds-parity.mjs holds them to it). */

/* The drawer opens over the screen from the right edge, as the design system's drawer, over its scrim. */
.j-panel-scrim { position: fixed; z-index: 40; animation: j-panel-fade 200ms var(--ease-standard) both; }
.j-panel-drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); border-radius: 12px 0 0 12px; animation: j-enter-side 260ms var(--ease-enter) both; }
.j-panel-drawer__title { display: grid; gap: 4px; }
.j-panel-drawer__form { display: contents; }
@keyframes j-panel-fade { from { opacity: 0; } to { opacity: 1; } }

/* A native select dressed as the design system's input, with its chevron. */
.j-panel-select { position: relative; display: block; }
.j-panel-select select { width: 100%; appearance: none; padding-right: 36px; }
.j-panel-select > svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .j-panel-scrim, .j-panel-drawer { animation: none; } }

/* The composer's field is the design system's field as an input the person types into. */
input.j-composer__field { border: 0; font: inherit; color: inherit; outline: none; min-width: 0; }

/* The QR the gateway draws sits in the design system's QR box at the size of its drawn code. */
.j-qr img { width: 140px; height: 140px; display: block; }

/* The saved replies a slash brings open above the composer, over the thread. */
.j-chat__foot { position: relative; }
.j-chat__foot > .j-menu { bottom: calc(100% + 6px); left: 12px; }

/* The side column of a screen stays in view while the main column scrolls. */
.j-aside { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; }
