/* The jam inside a Les session (static/setup/jamsession.js; bead production-draft-yatn0.5). The look is the session page's
   own (its tokens, .btn, .link, .dot, the stage's cards) and the approved mock's
   (/Volumes/Extreme/agents-scratch/studio-1119/session/session-jam-mock.src.html): the foot's Find Someone to Jam With and
   its (?), the plucked Les mark while it finds, both FM-1s on the stage, the beat with its metronome, the chat in the
   corner while jamming, and the after-jam prompt and pack beside your FM-1. Everything here is under .sj-* names, so
   nothing of the session page's own changes when no jam is on.

   body[data-sj]: where the jam is. idle (none, or over), wait (Finding Someone Cool), jam, ask (the after-jam question,
   or signing in for it), slot (making the pack, the pack, Your Jams). body[data-sjfm1="1"]: the setup has an FM-1. */

/* ---------- the foot: Find Someone to Jam With, its (?), the spinner, Leave ---------- */
body .sj-f{display:none}   /* (body: above the page's own .btn, which comes later; Leave is a .btn) */
body[data-sjfm1="1"] .sj-find{display:inline-flex}
body[data-sjfm1="1"][data-sj="wait"] .sj-find,body[data-sjfm1="1"][data-sj="jam"] .sj-find,body[data-sjfm1="1"][data-sj="ask"] .sj-find{display:none}
body[data-sj="wait"] .sj-finding{display:inline-flex}
body[data-sj="jam"] .sj-leave{display:inline-flex}
body[data-sj="wait"] .foot > :not(.sj-f),body[data-sj="jam"] .foot > :not(.sj-f){display:none!important}
body[data-sj="ask"] .foot{display:none}
.sj-find,.sj-finding{position:relative;align-items:center;gap:8px;min-width:0}
.sj-jamb{min-width:236px}
.sj-jamb:disabled{background:rgba(236,233,226,.14);color:var(--c2);opacity:1}
.sj-busy{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 18px;border-radius:999px;
  background:rgba(205,182,144,.14);color:var(--brass);font:500 14.5px/1.2 var(--sans);white-space:nowrap;min-width:236px}
.sj-mark{width:22px;height:22px;flex:none;overflow:visible}
.sj-leave{margin-left:auto}

/* (?) "What's this" (Kevin's words), and what it opens */
.sj-qm{width:44px;height:44px;border-radius:50%;border:0;background:none;display:grid;place-items:center;position:relative;color:var(--c2)}
.sj-qm i{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--mute);display:grid;place-items:center;font:600 12.5px/1 var(--sans);font-style:normal;color:var(--c2)}
.sj-qm:hover i,.sj-qm[aria-expanded="true"] i{box-shadow:inset 0 0 0 1.5px var(--brass);color:var(--brass)}
.sj-qm .sj-tip{position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);padding:4px 9px;border-radius:8px;background:var(--panel3);
  box-shadow:0 0 0 1px var(--line);font:500 12.5px var(--sans);color:var(--c1);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
@media (hover:hover){.sj-qm:hover .sj-tip{opacity:1}}
.sj-qm[aria-expanded="true"] .sj-tip{opacity:0}
.sj-pop{position:absolute;bottom:calc(100% + 6px);left:0;z-index:20;max-width:440px;padding:4px 15px 8px;border-radius:14px;background:var(--panel3);
  box-shadow:0 0 0 1px var(--border),0 16px 40px rgba(0,0,0,.55);font:400 14.5px/1.5 var(--sans);color:var(--c1)}
.sj-pop .sj-links{display:flex;flex-wrap:wrap;gap:0 16px}
.sj-pop a{display:inline-flex;align-items:center;gap:3px;min-height:44px;white-space:nowrap;color:var(--ink);text-decoration:underline;
  text-decoration-color:rgba(205,182,144,.6);text-underline-offset:3px}
.sj-pop a svg{width:11px;height:11px;color:var(--dim);flex:none}
.sj-pop a.sj-miss,.sj-pop .sj-req{color:var(--brass)}
.sj-pop .sj-req{margin:0 0 8px;font-size:13.5px}

/* ---------- the jam on the stage ---------- */
.sj-jam{display:none}
body[data-sj="jam"] main.stage > :not(.sj-jam){display:none!important}
body[data-sj="jam"] .sj-jam{display:flex;flex-direction:column;flex:1;min-height:0}
/* the beat at the left, and Only Mine / Only Theirs / Both centred over the two FM-1s, in the middle of the playing area
   (Kevin, 11-20 ~11:08: "the Thiers Yours Both buttons should be centered in the playing canvas area") */
.sj-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px 18px}
.sj-head > .sj-bar{justify-self:start}
/* the beat (Kevin, 16:39: "clock should be bigger and have a metronome icon so people see it intuitively without reading
   shit"): the jam's tempo and its beats, the metronome's arm swinging on each */
.sj-bar{display:inline-flex;align-items:center;gap:14px;min-height:48px;color:var(--ink)}
.sj-metro{width:40px;height:40px;flex:none;overflow:visible}
.sj-metro .arm{transform-origin:16px 23px;transform:rotate(-24deg);transition:transform .25s var(--ease)}
.sj-metro.r .arm{transform:rotate(24deg)}
.sj-bpm{font:500 30px/1 var(--mono);letter-spacing:-.02em;color:var(--bright);font-variant-numeric:tabular-nums;white-space:nowrap}
.sj-beats{display:inline-flex;align-items:center}
.sj-beats #beats{display:inline-flex;gap:8px}
.sj-beats #beats i{width:14px;height:14px;border-radius:50%;background:var(--line)}
.sj-beats #beats i.lit{background:var(--brass);box-shadow:0 0 0 4px rgba(205,182,144,.16)}
.sj-views{display:inline-flex;gap:3px;padding:3px;border-radius:999px;background:rgba(236,233,226,.06);justify-self:center}
.sj-views button{border:0;background:none;border-radius:999px;min-height:44px;padding:0 16px;font:500 14px var(--sans);color:var(--c2);white-space:nowrap}
.sj-views button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
/* the clock and MIDI settings' row, under the views (Kevin's call 2): its place, empty until Owen's answer (bead yatn0.1) */
.sj-set:empty{display:none}
.sj-pair{position:relative;flex:1;min-height:0;margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center}
.sj-dev{min-width:0;border-radius:22px;background:var(--panel);box-shadow:0 0 0 1px var(--line);padding:16px 18px 18px;transition:opacity .4s ease}
.sj-them{padding:0;background:none;box-shadow:none}
.sj-them #screens,.sj-them #screenrow{display:block}
.sj-them #screens[hidden]{display:none!important}
.sj-them #screenrow > figure{border-radius:22px;background:var(--panel);box-shadow:0 0 0 1px var(--line);padding:16px 18px 18px;animation:sj-in .7s var(--ease) both}
.sj-them #screenrow > figure + figure{margin-top:14px}
@keyframes sj-in{from{opacity:0;transform:translateX(60px)}}
.sj-pair figure{margin:0}
.sj-pair .who{display:flex;align-items:center;gap:9px;margin:0 0 12px;min-height:28px;font:500 15px var(--sans);color:var(--ink)}
.sj-pair .who::before{content:'';width:7px;height:7px;border-radius:50%;flex:none;background:var(--sage);box-shadow:0 0 0 3px rgba(157,177,140,.16)}
.sj-pair .who b{font-weight:500;white-space:nowrap}
.sj-pair .who span{margin-left:auto;font:400 12.5px var(--mono);color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sj-pair .who.warn span{color:var(--danger)}
/* one big, the other a small card in the corner (Only Mine, Only Theirs) */
.sj-pair[data-view="mine"],.sj-pair[data-view="theirs"]{display:block}
.sj-pair[data-view="mine"] .sj-me,.sj-pair[data-view="theirs"] .sj-them{max-width:min(100%,calc((100dvh - 250px) * 1.64 + 36px));margin:0 auto}
.sj-pair[data-view="mine"] .sj-them,.sj-pair[data-view="theirs"] .sj-me{position:absolute;right:0;bottom:0;width:min(26%,300px);z-index:3;cursor:pointer}
.sj-pair[data-view="mine"] .sj-them #screenrow > figure,.sj-pair[data-view="theirs"] .sj-me{padding:8px 10px 10px;border-radius:14px;box-shadow:0 0 0 1px var(--border),0 14px 34px rgba(0,0,0,.55)}
.sj-pair[data-view="mine"] .sj-them .who,.sj-pair[data-view="theirs"] .sj-me .who{margin-bottom:4px;min-height:20px;font-size:12px;gap:6px}
.sj-pair[data-view="mine"] .sj-them .who span,.sj-pair[data-view="theirs"] .sj-me .who span{font-size:10.5px}
.sj-pair[data-view="theirs"] .sj-them{max-width:min(100%,calc((100dvh - 250px) * 1.64 + 36px));margin:0 auto}
/* the partner's FM-1 going: the last of it slides out, where it was (jamsession.js leaving()) */
.sj-ghost{position:fixed;z-index:6;pointer-events:none;border-radius:22px;background:var(--panel);box-shadow:0 0 0 1px var(--line);padding:16px 18px 18px;
  transition:transform .6s var(--ease),opacity .5s ease}
.sj-ghost.out{transform:translateX(70px);opacity:0}
.sj-ghost .who{display:flex;align-items:center;gap:9px;margin:0 0 12px;min-height:28px;font:500 15px var(--sans)}
.sj-ghost .who span{margin-left:auto;font:400 12.5px var(--mono);color:var(--dim)}

/* an FM-1 drawn by the jam (jam-page/panel.js): the jam page's own rules, here under .sj */
.sj .fm1{position:relative;width:100%;aspect-ratio:3085 / 1880;background:#1b1a18;border-radius:12px;color:rgba(242,239,232,.8);
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.sj .fm1host{aspect-ratio:3085 / 1880}
.sj .fm1host > .fm1{aspect-ratio:auto;height:100%}
.sj .fm1 svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.sj .fm1 canvas{position:absolute;display:block;background:#000;border-radius:4%;image-rendering:pixelated}
.sj .fm1 .hit{position:absolute;touch-action:none;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:10px}
.sj .fm1 .hit.knob{cursor:ns-resize;border-radius:50%}
.sj .fm1 [data-part].down > [data-fill-target]{fill:#CDB690;fill-opacity:.45}
.sj .fm1 [data-part^="button_"].on > [data-fill-target]{fill:#F6EFD9;fill-opacity:.8}
.sj .fm1 [data-part^="button_"].dim > [data-fill-target]{fill:#F6EFD9;fill-opacity:.22}
.sj .fm1 [data-part^="button_"].breath > [data-fill-target]{fill:#F6EFD9;animation:sj-breath 2s ease-in-out infinite}
.sj .fm1 [data-part="button_play_stop"].green > [data-fill-target]{fill:#9DB18C;fill-opacity:.85}
.sj .fm1 [data-part="button_play_stop"].red > [data-fill-target]{fill:#C96B5A;fill-opacity:.85}
.sj .fm1 [data-part^="key_"].on [data-part^="led_"] > [data-fill-target]{fill:#F6EFD9;fill-opacity:.95}
.sj .fm1 [data-part^="key_"].half [data-part^="led_"] > [data-fill-target]{fill:#F6EFD9;fill-opacity:.5}
.sj .fm1 [data-part^="key_"].dim [data-part^="led_"] > [data-fill-target]{fill:#F6EFD9;fill-opacity:.25}
.sj .fm1 [data-part^="key_"].breath [data-part^="led_"] > [data-fill-target]{fill:#F6EFD9;animation:sj-breath 2s ease-in-out infinite}
@keyframes sj-breath{0%,100%{fill-opacity:.08}50%{fill-opacity:.6}}

/* ---------- Les's chat while jamming: a panel in the corner, popped open and closed, with a dot when Les says something
   (Kevin's call 1: "it could be pop open pop closed in the corner with a little noti") ---------- */
.sj-chatbtn{display:none;position:fixed;left:16px;bottom:16px;z-index:41;width:56px;height:56px;border-radius:50%;border:0;background:var(--panel3);
  box-shadow:0 0 0 1px var(--border),0 10px 28px rgba(0,0,0,.5);place-items:center}
.sj-chatbtn svg{width:26px;height:26px}
.sj-chatbtn .sj-noti{position:absolute;top:9px;right:9px;width:10px;height:10px;border-radius:50%;background:var(--brass);box-shadow:0 0 0 3px var(--panel3)}
body[data-sj="jam"] .sj-chatbtn{display:grid}
body.sj-chatopen .sj-chatbtn{background:var(--ink)}
body.sj-chatopen .sj-chatbtn svg line,body.sj-chatopen .sj-chatbtn svg path:last-of-type{stroke:var(--bg)}
body[data-sj="jam"] .shell{grid-template-columns:minmax(0,1fr)}
body[data-sj="jam"] .stage,body[data-sj="jam"] .foot{grid-column:1}
body[data-sj="jam"] .foot{padding-left:88px}
body[data-sj="jam"] .chat{display:none;position:fixed;left:16px;bottom:84px;z-index:40;width:min(var(--chat),calc(100vw - 32px));height:min(620px,calc(100dvh - 104px));
  min-height:0;border:0;border-radius:18px;overflow:hidden;box-shadow:0 0 0 1px var(--border),0 22px 60px rgba(0,0,0,.6)}
body[data-sj="jam"].sj-chatopen .chat{display:flex}
body[data-sj="jam"] .chat .feed{flex:1;min-height:0;overflow:auto}

/* ---------- beside your FM-1 after the jam: the question, then the pack (the jam page's own screens, ask.js) ---------- */
.sj-row{display:contents}
.sj-slot{display:none}
body[data-sj="ask"] .sj-row,body[data-sj="slot"] .sj-row{display:flex;flex:1;min-height:0;gap:20px;margin-top:18px;align-items:center}
body[data-sj="ask"] .sj-row > .scard,body[data-sj="slot"] .sj-row > .scard{flex:1;min-width:0;margin-top:0;align-self:stretch}
body[data-sj="ask"] .sj-slot,body[data-sj="slot"] .sj-slot{display:block;position:relative;flex:0 0 min(400px,36%);max-height:100%;overflow:auto;border-radius:22px;
  background:var(--panel);box-shadow:0 0 0 1px var(--line);padding:18px 18px 16px;animation:sj-in .6s var(--ease) both}
.sj-slot .screen{display:none}
.sj-slot .screen.on{display:block}
.sj-slot h1{font:400 26px/1.15 var(--serif);letter-spacing:-.01em;color:var(--bright);margin:0 0 4px;padding-right:96px}
.sj-slot .sj-minelink{position:absolute;top:10px;right:16px;min-height:44px}
.sj-slot[data-at="mine"] .sj-minelink{display:none}
.sj-slot .sheet{border:0;background:none;padding:0;margin:0}
.sj-slot .row{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin:0}
.sj-slot .small{font-size:13px;color:var(--dim)}
.sj-slot .mono{font-family:var(--mono)}
.sj-slot [data-needs-words]{color:var(--brass)}
.sj-slot .spin,.sj-slot .btn[aria-busy="true"]::before{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--brass);
  animation:sj-spin 1s linear infinite;flex:none;box-sizing:border-box}
.sj-slot .btn[aria-busy="true"]::before{content:''}
@keyframes sj-spin{to{transform:rotate(360deg)}}
.sj-slot .take{display:flex;justify-content:space-between;align-items:baseline;font:13px var(--mono);color:var(--c2);margin:2px 2px 0}
.sj-slot .take.theirs{margin-top:16px}
.sj-slot .wave{height:46px;margin:8px 0 0;display:flex;align-items:center;gap:2px}
.sj-slot .wave i{flex:1;background:var(--c2);opacity:.55;border-radius:1px}
.sj-slot .dock{position:static;padding:0;background:none;border:0;margin-top:18px}
.sj-slot .dock > div{display:grid;gap:8px;max-width:none;margin:0}
.sj-slot #s-ask .dock > div{grid-template-columns:1fr 1fr}
.sj-slot #s-ask .dock > div > #keepnotes{grid-column:1 / -1}
.sj-slot .btn{width:100%;padding:0 10px}
.sj-slot .btn.main{background:var(--ink);color:var(--bg)}
.sj-slot .btn.main:hover{background:var(--bright)}
.sj-slot #s-mine .dock{display:none}   /* its Find someone to jam with is the foot's (one place for each thing) */
.sj-slot #s-making .sheet{margin-top:14px}
.sj-slot #makestep,.sj-slot #packstep{font:13px var(--mono);color:var(--c2)}
.sj-slot .au{display:grid;gap:12px;margin:14px 0 0}
.sj-slot .fld{display:grid;gap:6px;font-size:14px;color:var(--c2)}
.sj-slot .fld input{min-height:48px;border-radius:12px;border:1px solid var(--border);background:var(--panel2);color:var(--ink);padding:0 14px;font:16px var(--sans)}
.sj-slot .fld input::placeholder{color:var(--dim)}
.sj-slot .seg{display:grid;grid-template-columns:1fr 1.7fr 1fr;gap:4px;padding:4px;border:1px solid var(--border);border-radius:14px;margin:14px 0 4px;background:none}
.sj-slot .seg button{min-height:44px;border:0;border-radius:10px;background:none;color:var(--c2);font:500 14px var(--sans);padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sj-slot .seg button.on{background:var(--ink);color:var(--bg)}
.sj-slot .seg button:disabled{opacity:.35;cursor:default}
.sj-slot .grp{font:12px var(--mono);color:var(--dim);letter-spacing:.08em;text-transform:uppercase;margin:16px 2px 4px}
.sj-slot .snd{display:grid;grid-template-columns:1fr auto 48px;gap:10px;align-items:center;min-height:52px;border-top:1px solid var(--line);padding:2px;
  border-radius:0;background:none;box-shadow:none;flex-direction:initial}
.sj-slot .snd:hover{box-shadow:none}
.sj-slot .snd b{font:400 18px var(--serif)}
.sj-slot .snd span{font:12px var(--mono);color:var(--dim)}
.sj-slot .playb{width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:none;display:grid;place-items:center;justify-self:end}
.sj-slot .playb svg{width:16px;height:16px;fill:var(--c1)}
.sj-slot .playb.on{border-color:var(--ink)}
.sj-slot .jams{margin:14px 0 0}
.sj-slot .jamrow{border-top:1px solid var(--line);padding:12px 2px 4px}
.sj-slot .jamrow .l1{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.sj-slot .jamrow b{font:400 19px var(--serif)}
.sj-slot .jamrow .l1 span,.sj-slot .jamrow .was{font:12px var(--mono);color:var(--dim)}
.sj-slot .jamrow .acts,.sj-slot .jamrow .sure{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:2px}
.sj-slot .jamrow .btn{width:auto;padding:0;background:none;color:var(--c2)}
.sj-slot .btn.quiet.danger,.sj-slot .jamrow .btn.danger{color:var(--danger)}
/* public or private (bead production-draft-yatn0.3; ask.js switches()): the app's own switch (static/index.html .gl-sw),
   a jam's two lines, the profile's Name asked in place, the pack's own actions and each sound's tick */
.sj-slot .gl-sw{flex:none;position:relative;width:48px;height:30px;padding:0;border:0;border-radius:999px;background:#4A4842;cursor:pointer;transition:background-color .15s}
.sj-slot .gl-sw::after{content:"";position:absolute;inset:-8px}
.sj-slot .gl-sw span{position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:50%;background:var(--c1);transition:transform .18s var(--ease),background-color .15s}
.sj-slot .gl-sw[aria-checked="true"]{background:var(--brass)}
.sj-slot .gl-sw[aria-checked="true"] span{transform:translateX(18px);background:var(--bg)}
.sj-slot .gl-sw:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.sj-slot .pubsw{margin:8px 0 0}
.sj-slot .sheet .pubsw{border-top:1px solid var(--line);margin-top:14px;padding-top:2px}
.sj-slot .swl{display:flex;align-items:center;gap:12px;min-height:46px}
.sj-slot .swl .swk{flex:1;min-width:0;font:400 14.5px var(--sans);color:var(--c1)}
.sj-slot .swl .sws{font:400 13.5px var(--sans);color:var(--dim);white-space:nowrap}
.sj-slot .swl .sws.ison{color:var(--ink)}
.sj-slot .nameblk{margin-top:10px;padding:12px 14px 14px;border:1px solid var(--border);border-radius:14px;background:var(--panel2)}
.sj-slot .nameblk .k{margin:0;font:400 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.sj-slot .nameblk .fld{margin-top:8px}
.sj-slot .nameblk .small{margin:8px 0 0}
.sj-slot .nameblk .row{flex-wrap:wrap;gap:8px;margin-top:10px}
.sj-slot .nameblk .row .btn{width:auto;min-height:44px;border-radius:999px;padding:0 20px}
.sj-slot .pacts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 2px}
.sj-slot .pacts .btn{width:auto;min-height:44px;border-radius:999px;padding:0 18px;border:0;background:rgba(236,233,226,.07);color:var(--c1);font:500 14.5px var(--sans)}
.sj-slot .pacts .btn:hover{background:rgba(236,233,226,.13)}
.sj-slot .pacts #packnotes{display:contents}
.sj-slot .pacts .small{flex-basis:100%;margin:4px 0 0}
.sj-slot .snd.pick{grid-template-columns:44px 1fr auto 48px}
.sj-slot .tick{width:44px;height:44px;border:0;background:none;padding:0;display:grid;place-items:center}
.sj-slot .tick i{width:24px;height:24px;border-radius:50%;border:1.5px solid rgba(236,233,226,.35);display:grid;place-items:center;transition:background .2s,border-color .2s}
.sj-slot .tick svg{width:14px;height:14px;opacity:0}
.sj-slot .tick[aria-checked="true"] i{background:var(--ink);border-color:var(--ink)}
.sj-slot .tick[aria-checked="true"] svg{opacity:1}
.sj-slot .mhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.sj-slot .mhead h1{flex:1;min-width:0}
.sj-slot a.mine-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--c2);font-weight:500;white-space:nowrap}
.sj-slot .jamrow .ctl{margin-top:4px}

/* ---------- phone and narrow windows (the session page's own: the stage on top, the foot, the chat) ---------- */
@media (max-width:980px){
  .sj-jamb,.sj-busy{flex:1;min-width:0}
  .sj-find,.sj-finding{flex:1 1 100%}
  .sj-find .sj-jamb{flex:1}
  .sj-pop{left:0;right:0;max-width:none}
  .sj-qm .sj-tip{left:auto;right:0;transform:none}
  main.stage{overflow-x:clip}   /* their card waits off to the right before it slides in: never let it widen the page */
  .sj-bar{gap:10px;min-height:44px}
  .sj-metro{width:34px;height:34px}
  .sj-bpm{font-size:26px}
  .sj-beats #beats{gap:7px}
  .sj-beats #beats i{width:12px;height:12px}
  .sj-head{grid-template-columns:minmax(0,1fr)}
  .sj-views{width:100%;display:flex}
  .sj-views button{flex:1;padding:0 6px}
  .sj-pair{margin-top:12px;gap:10px;align-items:start}
  .sj-dev,.sj-them #screenrow > figure{padding:8px 8px 10px;border-radius:14px}
  .sj-pair .who{margin-bottom:6px;min-height:22px;font-size:13px;gap:6px}
  .sj-pair .who span{font-size:11px}
  .sj-pair[data-view="mine"] .sj-me,.sj-pair[data-view="theirs"] .sj-them{max-width:none}
  .sj-pair[data-view="mine"] .sj-them,.sj-pair[data-view="theirs"] .sj-me{width:38%;bottom:-6px;right:-4px}
  .sj-pair[data-view="mine"] .sj-them .who span,.sj-pair[data-view="theirs"] .sj-me .who span{display:none}
  body[data-sj="jam"] .foot{padding-left:16px}
  body[data-sj="jam"] .chat{left:8px;right:8px;bottom:80px;width:auto;height:min(70dvh,560px);order:0}
  body[data-sj="jam"] .shell{min-height:0}
  .sj-chatbtn{left:auto;right:16px;bottom:16px}
  body[data-sj="ask"] .stage,body[data-sj="slot"] .stage{position:relative;top:auto}
  body[data-sj="ask"] .sj-row,body[data-sj="slot"] .sj-row{display:block;margin-top:12px}
  body[data-sj="ask"] .sj-row > .scard,body[data-sj="slot"] .sj-row > .scard{margin-top:0}
  body[data-sj="ask"] .sj-slot,body[data-sj="slot"] .sj-slot{margin-top:12px;max-height:none;overflow:visible;padding:16px 14px 14px;border-radius:18px}
}
@media (prefers-reduced-motion:reduce){
  .sj-them #screenrow > figure,.sj-slot{animation:none!important}
  .sj-ghost,.sj-metro .arm{transition:none!important}
}
