:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:#f7f3e9;--bg:#000;--panel:#412526;--panel-head:#573032;--panel-row:#342122;--line:#694447;--dim:#beb5a7;--yellow:#ffcd35;--red:#ff705a;--deep:#2b1713}
*{box-sizing:border-box}
body{margin:0;min-width:210px}
button,input,textarea,select{font:inherit}
button,select{cursor:pointer}
button{background:#302e2e;color:#fff7e7;border:1px solid #5a5041;min-height:38px;border-radius:.34rem;padding:.45rem .7rem;font-weight:700}
@media (hover:hover){button:hover{border-color:var(--yellow)}}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
button:disabled{opacity:.44;cursor:default}
.busy button[data-action]:not([data-action=tab]){cursor:wait}
.primary{background:var(--yellow);color:#15120a;border-color:var(--yellow)}
.danger{background:#672a21;border-color:#9c4b3e;color:#fff4e1}
.plain{background:transparent;border-color:#625844;color:#f2e9d9}
input,select,textarea{border:1px solid #665b4b;border-radius:.3rem;background:#171612;color:#fff8eb;padding:.56rem;min-width:0;max-width:100%;min-height:39px}
input[type=checkbox]{min-height:0;accent-color:var(--yellow)}
input[type=search]{flex:1;max-width:none;min-width:8rem}
textarea{min-height:5rem;resize:vertical}
h1,h2,h3,p{margin:0}
h1{font-family:"Arial Black",Impact,sans-serif;text-transform:uppercase;font-size:clamp(1.3rem,3vw,2.2rem);letter-spacing:-.035em;line-height:.95}
h1 span{color:var(--yellow)}
h2{font-size:1.12rem}
h3{font-size:1rem}
small,.caption{color:var(--dim)}
.caption{font-weight:800;text-transform:uppercase;font-size:.76rem;letter-spacing:.09em}
.header{min-height:77px;padding:13px clamp(12px,3vw,40px);display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:5px solid var(--yellow);border-bottom:1px solid var(--line);background:var(--bg)}
.brand{display:flex;gap:10px;align-items:center}
.brand img{width:70px;max-height:70px;object-fit:contain}
.live .brand img{width:43px;max-height:43px}
.brand .caption{display:block;margin-top:6px}
.headerActions,.toolbar,.showBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.headerActions label{font-size:.78rem;color:var(--dim)}
main{padding:0 clamp(12px,3vw,40px) 36px;max-width:1680px;margin:auto}
.showBar{margin:12px 0;justify-content:flex-start}
.showBar>label{display:flex;align-items:center;gap:8px;min-width:0}
.showBar .toolbar{margin-left:auto}
.badge{display:inline-block;border-radius:1rem;background:#3f372a;color:#fff6e3;font-weight:800;font-size:.76rem;padding:.3rem .55rem;white-space:nowrap}
.liveBadge{background:#82291c;color:#fff5ee}
.stage{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:minmax(8rem,2fr) minmax(7.5rem,1fr) minmax(15rem,2fr);align-items:center;gap:14px;padding:14px;background:var(--deep);border:1px solid #7a3b30;border-left:5px solid var(--red);border-radius:.42rem}
.stageCurrent,.stageClock{display:grid;gap:4px;min-width:0}
.stageCurrent strong{font-size:1.38rem;overflow-wrap:anywhere}
.stageClock strong,.setTimer strong{font-family:ui-monospace,monospace;font-size:1.5rem;letter-spacing:.035em;color:var(--yellow)}
.setTimer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid #846052;padding-top:5px}
.setTimer span{font-size:.8rem;font-weight:700}
.workspaceTools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:10px 0}
.panelGrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:46px;gap:12px}
.panel{position:relative;min-width:0;min-height:0;background:var(--panel);border:1px solid var(--line);border-radius:.4rem;display:flex;flex-direction:column;overflow:hidden}
.panelHead{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 12px;background:var(--panel-head);border-bottom:1px solid var(--line);min-height:49px}
.panelHead[data-layout]{cursor:move;touch-action:none}
.panelHead button{min-height:30px;padding:.28rem .5rem}
.panelBody{padding:12px;overflow:auto;min-height:0;flex:1}
.panelMoving{z-index:5;outline:2px solid var(--yellow)}
.panelConflict{outline-color:var(--red)}
.resize{position:absolute;z-index:1;right:0;bottom:0;cursor:nwse-resize;width:19px;height:19px;touch-action:none;background:linear-gradient(135deg,transparent 55%,#847959 56%,#847959 62%,transparent 63%,transparent 74%,#847959 75%,#847959 81%,transparent 82%)}
.stack,.fields,.collection{display:grid;gap:9px;min-width:0}
.fields label{display:grid;gap:5px}
.fields label span,.inlineLabel{font-size:.92rem;font-weight:700;color:#e8ddca}
.inlineLabel{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.lineup{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.slot{min-width:0;display:grid;align-items:center;grid-template-columns:2.1rem 1fr auto;gap:7px;padding:5px 7px;background:var(--panel-row);border:1px solid var(--line);border-radius:.35rem}
.slot[draggable]{cursor:grab}
.slot.active{border-color:var(--yellow);box-shadow:inset 3px 0 var(--yellow);background:#3b2c13}
.position{font:700 .92rem ui-monospace,monospace;text-align:center;color:var(--yellow)}
.rowTitle{display:block;text-align:left;border:0;background:transparent;min-width:0;padding:.25rem 0;overflow-wrap:anywhere}
.rowTitle small{display:block;margin-top:3px;font-size:.78rem}
.slotTools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.slotTools button{min-height:29px;padding:.25rem .36rem;font-size:.76rem}
.detail{grid-column:1 / -1;border-top:1px solid var(--line);padding:8px 4px 4px;display:grid;gap:8px;color:#e8ddca;font-size:.92rem;overflow-wrap:anywhere}
.detail ul{padding-left:1.3rem}
.detail p,.messages p{white-space:pre-wrap;overflow-wrap:anywhere}
.draw{border:1px solid #b58b24;background:#352c18;padding:11px;display:grid;gap:7px;border-radius:.35rem}
.draw>strong{color:var(--yellow)}
.pool{margin-top:8px;display:grid;gap:5px}
.pool h3{margin-bottom:3px}
.pool h3 span{color:var(--dim);font-size:.84rem}
.poolRow{display:flex;align-items:center;justify-content:space-between;padding:4px 7px;background:var(--panel-row);gap:7px}
.record{padding:7px;background:var(--panel-row);border:1px solid var(--line);border-radius:.35rem}
.recordTop{display:flex;align-items:center;justify-content:space-between;gap:8px}
.recordTop strong{overflow-wrap:anywhere}
.reminder{border-left:4px solid #b6a078}
.reminder.high{border-left-color:var(--yellow)}
.reminder.urgent{border-left-color:var(--red)}
.reminder p{margin:.45rem 0}
.messages{max-height:22rem;overflow:auto;display:grid;gap:8px}
.messages article{background:var(--panel-row);padding:7px;border-radius:.25rem}
.messages time{color:var(--dim);font-size:.74rem}
.messages p{margin-top:4px}
.chat form{display:flex;gap:6px}
.chat form input{flex:1}
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.summary button{display:grid;justify-items:start;gap:4px;padding:10px;text-align:left}
.summary button strong{color:var(--yellow);font-size:1.45rem}
.summary button span{font-size:.85rem}
.tabs{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.tabs .selected{background:var(--yellow);color:#17120b;border-color:var(--yellow)}
.empty,.fallback,.preview{color:var(--dim);font-size:.9rem;padding:.7rem 0}
.blank,.gate{background:var(--panel);border:1px solid var(--line);border-radius:.6rem;padding:clamp(20px,4vw,50px);display:grid;gap:14px}
.gate{margin:12vh auto 20px;max-width:min(92vw,520px);border-top:5px solid var(--yellow)}
.gate p,.blank p,dialog p{color:#dfd4c4;line-height:1.4}
.notice,.preview{position:fixed;z-index:8;bottom:12px;left:12px;right:12px;max-width:680px;margin:auto;padding:10px 15px;border-radius:.3rem;border:1px solid #ab7944;background:#442d1f;color:#fff3e0;overflow-wrap:anywhere}
.preview{top:10px;bottom:auto}
dialog{width:min(96vw,500px);max-height:94vh;background:#241f19;color:#fff7e7;border:1px solid #8d6d3c;border-top:4px solid var(--yellow);border-radius:.4rem;padding:14px}
dialog::backdrop{background:#000a}
dialog form{display:grid;gap:12px}
dialog footer{display:flex;justify-content:flex-end;gap:7px}
.formError:empty{display:none}
.formError{color:var(--red)}
.smallOnly{display:none}
.compact .header{padding:7px 9px;min-height:0}
.compact .header h1{font-size:1.05rem}
.compact .brand .caption{display:none}
.compact .brand img{width:28px;max-height:28px}
.compact .headerActions button{font-size:.75rem;padding:.3rem}
.compact main{padding:0 8px 14px}
.compact .showBar{margin:6px 0;gap:5px}
.compact .showBar label{max-width:100%;font-size:.8rem}
.compact .showBar .caption{display:none}
.compact .showBar .toolbar{margin-left:0}
.compact .stage{grid-template-columns:1fr auto;gap:5px;padding:6px}
.compact .stageActions{grid-column:1/-1;gap:4px}
.compact .stageCurrent strong,.compact .stageClock strong{font-size:1rem}
.compact .stage .caption{font-size:.64rem}
.compact .tabs{margin:6px 0}
.compact .tabs button,.compact .stage button{min-height:30px;padding:.28rem .4rem;font-size:.8rem}
.compact .panelHead{min-height:0;padding:5px 8px}
.compact .panelBody{max-height:none;padding:6px;overflow:visible}
.compact .notice{bottom:4px;left:4px;right:4px}
@media(max-width:899px){
  .panelGrid,.workspaceTools{display:none}
  .smallOnly{display:block}
  .stage{grid-template-columns:1fr auto}
  .stageActions{grid-column:1/-1}
}
@media(max-width:600px){
  button{min-height:43px}
  .header{align-items:flex-start;padding:10px;gap:5px}
  .header h1{font-size:1.18rem}
  .header .caption{font-size:.63rem}
  .headerActions{justify-content:flex-end}
  .showBar>label{width:100%}
  .showBar select{flex:1}
  .showBar .toolbar{margin-left:0}
  .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  #app:not(.compact) .tabs{position:fixed;z-index:6;bottom:0;left:0;right:0;gap:4px;margin:0;padding:7px 9px calc(7px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
  #app:not(.compact) main{padding-bottom:115px}
  #app:not(.compact) .notice{bottom:110px}
  .slotTools{grid-column:2 / -1;justify-content:flex-start}
}
@media(max-width:350px),(max-height:460px){
  .compact .headerActions label{font-size:0}
  .compact .headerActions select{font-size:.75rem;padding:3px;min-height:25px}
  .compact .stageCurrent strong,.compact .stageClock strong{font-size:.9rem}
  .compact .stageCurrent small{display:none}
  .compact .stageActions button{font-size:.72rem;min-height:25px;padding:3px}
  .compact .tabs button{font-size:.73rem;min-height:28px;padding:3px}
  .compact .showBar select,.compact .showBar button{font-size:.75rem;min-height:29px;padding:3px}
}
.slot.pending{border-color:#af8423;background:#382d17}
.signin{color:var(--yellow);font-weight:800}
.comicName,[data-panel=comics] .rowTitle,.poolRow,.stageCurrent strong,.stageCurrent b,.draw h3{color:#ffdb68;font-weight:800}
.slot.active{border-left:5px solid var(--red);box-shadow:none}
.stageCurrent small{display:block}
.lamp{display:inline-flex;align-items:center;gap:.35em;color:#e6dfd4;font-weight:600}
.lamp:before{content:'';width:.6em;height:.6em;border-radius:50%;background:var(--light);box-shadow:0 0 4px var(--light)}
.Coming,.Partial{--light:#f2b844}.Here,.Accepted{--light:#57dd8e}.Performed{--light:#79afff}.Over,.Skipped,.Left{--light:#ff775f}
.filters,.profileMatches{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.profileMatches{max-height:38vh;overflow:auto}
.filters .selected{border-color:var(--yellow);color:var(--yellow)}
@media(max-width:600px){#app .prodNav{grid-template-columns:repeat(4,minmax(0,1fr))}.prodNav button{padding:.35rem .15rem}}
.compact .stageCurrent small{display:block}
.adminScreen{max-width:900px;padding-top:20px}
.adminGroup{margin:12px 0;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:.4rem}
.adminGroup h3{margin-bottom:10px}
.stage.stageMini{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;padding:6px 9px;gap:8px}
.stageMini>div{min-width:0;display:grid;gap:2px}
.stageMini small{font-size:.75rem}
.stageMini strong{font-size:.95rem;color:var(--yellow);overflow-wrap:anywhere}
.stageMini [data-clock]{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}
.slotTools .stepButton{min-width:44px;min-height:44px;font-size:1.2rem}

.welcomeLogo{display:block;width:100%;height:auto}.brand .bannerLogo{display:block;width:clamp(115px,25vw,190px);height:auto;max-height:none}

.messages .ack{min-height:36px;padding:.3rem .65rem;font-size:.85rem}.messages .ack[aria-pressed="true"]{border-color:var(--yellow);color:var(--yellow)}
.productionStage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 160px;max-width:42rem;column-gap:12px}
.productionStage small,.productionStage strong{display:block}
.productionStage small{color:var(--dim);font-size:.75rem}
.productionStage strong{color:#ffdb68;line-height:1.2;overflow-wrap:anywhere}
.cueBoard,.productionStage,.stageMini{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:start}
.cue{display:grid;gap:.2rem;min-width:0;overflow-wrap:anywhere}.cue small{color:var(--dim)}.cue strong{color:#ffdb68}
.cueBoard .cue{flex:1 1 7rem}.cueBoard .stageActions{flex-basis:100%}
.cue button{min-height:34px}.tabs button,.filters button{touch-action:manipulation}

.performerChoices{max-height:45vh;overflow-y:auto}
.fields .performerChoice{display:flex;align-items:center;gap:.7rem;min-height:44px;border-bottom:1px solid var(--line);cursor:pointer}
.fields .performerChoice input{width:20px;height:20px;min-height:0;flex:none;accent-color:var(--yellow)}

.lineup .slot{grid-template-columns:auto minmax(0,1fr) auto;gap:5px}
.lineup .slotTools{grid-column:3;grid-row:1;flex-wrap:nowrap;align-items:center;gap:2px}
.lineup .slotTools button,.cueHeading .settingsCog{width:clamp(30px,8vw,42px);min-width:0;min-height:40px;padding:0;font-size:1.14rem;line-height:1}
.settingsCog{background:transparent;color:var(--dim);border-color:transparent}
.cueHeading{display:flex;align-items:center;gap:3px;min-width:0}
.cueHeading .settingsCog{width:30px;min-height:30px;flex:none}
.cue .cueChoose{justify-self:start;font-size:.85rem;min-height:30px;padding:.2rem .45rem}

.attendanceLight{margin-inline-start:.4em;vertical-align:middle}

.stage,.productionStage{background:linear-gradient(165deg,#535456 0%,#3b3c3e 27%,#28292b 75%,#323335);box-shadow:inset 0 1px 0 #ffffff30;border:1px solid #77787a;border-radius:.42rem;padding:.5rem;align-items:stretch}
.stage .cue,.productionStage .cue{padding:.3rem .5rem}
.cue.cue-stage{background:linear-gradient(180deg,#df454b 0%,#b51d26 14%,#97131b 48%,#790e16 100%);border:1px solid #db434a;box-shadow:inset 0 1px 0 #ffffff66;border-radius:.25rem}
.cue-stage small{color:#ffe2d9}
.stageMini>.stageActions{display:flex}
.stagedExpected:before{animation:expected-pulse 1.4s ease-in-out infinite}
@keyframes expected-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.stagedExpected:before{animation:none;outline:2px solid var(--light);outline-offset:2px}}
.lineupControls{display:grid;gap:.4rem}
.compact .lineupControls,.compact .lineupControls .toolbar{display:flex;align-items:center;flex-wrap:nowrap;gap:.35rem}
.compact .lineupControls .inlineLabel{flex-wrap:nowrap;white-space:nowrap;font-size:.8rem}
.compact .lineupControls button{min-height:24px;white-space:nowrap;padding:.15rem .35rem;font-size:.8rem}
.compact .showBar{flex-wrap:nowrap}
.compact .showBar>label{order:3;flex:1;width:auto}
.compact .showBar select{width:100%;min-width:0}
.compact .showBar button,.compact .showBar select,.compact .showBar .badge{min-height:0;height:1.65rem;font-size:.78rem;padding:0 .4rem}
.compact .showBar .badge{display:inline-flex;align-items:center}
.compact .compactNav{display:flex;flex-wrap:nowrap;align-items:center;gap:3px}
#app .prodNav{grid-template-columns:repeat(3,minmax(0,1fr))}
.lineup .slot{padding:2px 5px}
.lineup .comicName{min-height:0;line-height:1.25;padding:0}
.lineup .slotTools button{height:1.25rem;min-height:0;min-width:0;width:1.65rem;font-size:1rem;padding:0}
.pool .poolRow{flex-wrap:wrap}
.pool .poolRow .detail{flex-basis:100%}
.preview{display:flex;align-items:center;gap:.5rem;padding:.15rem .4rem;touch-action:none}
.preview button{background:transparent;border:0;min-height:30px;padding:0 .3rem}
.preview [data-action=openPreview]{flex:1;min-width:0;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.preview [data-action=dismissPreview]{font-size:1.25rem}
.compact .compactNav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.compactNav [data-id=comics]{width:2rem;display:grid;place-items:center;padding:0}
.compact [data-panel=lineup] .panelHead{justify-content:flex-start;gap:clamp(.25rem,2vw,.75rem)}
.stage.cueBoard,.compact .stage.cueBoard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.cueBoard .cueHeading{justify-content:space-between}
.cueBoard .stageActions,.cueBoard .stageTimers{grid-column:1/-1}
.stageTimers,.stageMini>.stageTimers{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.stageTimers .setTimer{border:0;padding:0}
.compact .stageTimers{flex-wrap:nowrap;align-items:flex-end}
.compact .stageTimers .setTimer{min-width:0}
.compact .stageActions{display:flex;flex-wrap:nowrap}
.compact .stageActions .primary{flex:1 1 auto}
.compact .stageActions [data-action=undo]{flex:none}
.compact .stageActions [data-action=toggleTimer]{flex:1 1 auto}
.compact .stageActions button{min-width:0}
.rowTitle small.bucketLabel,.bucketLabel{display:inline;margin:0;color:var(--dim);font-size:.78rem}
.pool{gap:6px}
.pool .poolRow{padding:2px 5px;border:1px solid #4e4538;border-radius:.35rem}
.poolRow>.comicName{min-height:0;line-height:1.25;padding:0}
.poolRow>[data-action=handPick]{min-height:0;height:1.25rem;padding:0 .4rem;font-size:.8rem}
@media(max-width:300px){
 .compact [data-panel=lineup] .panelHead{padding-inline:3px;gap:3px}
 .compact [data-panel=lineup] h2{font-size:.9rem}
 .compact .lineupControls,.compact .lineupControls .toolbar,.compact .lineupControls .inlineLabel{gap:2px}
 .compact .lineupControls button,.compact .lineupControls .inlineLabel{font-size:.7rem}
 .compact .cueBoard .cue{padding:.2rem}
 .compact .cueHeading{flex-wrap:wrap}
}

.compact .chat form{
  position:fixed;
  z-index:7;
  inset:auto 0 0;
  align-items:center;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  background:var(--panel);
  border-top:1px solid var(--line);
}
.compact .chat form input{min-width:0;max-width:none}
.compact .chat form button{flex:none}
.compact .tabWorkspace:has([data-panel=chat]){padding-bottom:calc(4rem + env(safe-area-inset-bottom))}
.compact:has([data-panel=chat]) .notice{bottom:calc(4rem + env(safe-area-inset-bottom))}
.compact .summary{gap:4px}
.compact .summary button{min-width:0;padding:5px;align-content:start;overflow-wrap:anywhere}
.compact .summary [aria-pressed=true]{border-color:var(--yellow)}
@media(max-height:460px){
  .compact .stage{position:static}
}
.compactNav button:not(.selected){background:var(--panel-head)}
.stage small,.productionStage small{color:#f2eeee}
.lineup .slotTools .drawSlot{width:auto;padding-inline:.35rem;font-size:.78rem}
.savedChoice{display:flex;align-items:center;gap:.5rem}
.savedChoice .performerChoice{flex:1;min-width:0}
.removeName{min-width:2rem;font-size:1.15rem}

.compactHost .header{align-items:center;flex-wrap:wrap;padding-block:3px}
.compactHost .brand{min-width:0;gap:6px}
.compactHost .brand img{height:44px;width:auto;max-height:none;flex:none}
.compactHost .headerActions{margin-inline-start:auto}

@media(min-width:900px){
  .hostDashboardHeader.live .brand img{width:auto;height:72px;max-height:none}
  .hostDashboardHeader .brand .bannerLogo{width:clamp(220px,21vw,260px)}
}

#app .prodNav{grid-template-columns:repeat(4,minmax(0,1fr))}
.doorAlerts{position:sticky;top:0;z-index:6;background:#54351a;padding:.6rem;color:white}.doorAlerts button{margin:.2rem}

.crewEntry{width:min(100%,440px);max-width:100%;min-height:100svh;margin:auto;padding:clamp(12px,3svh,30px) 14px;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:9px;color:#fff5df}
body:has(.crewEntry){background:#0c0d0e}
.crewMark{display:block;height:clamp(84px,22svh,183px);width:auto}
.crewMark,.loginPiece img[src="/mark.svg"]{
  --neon-halo:drop-shadow(0 0 5px #ff604aff) drop-shadow(0 0 20px #ff182cda) drop-shadow(0 0 40px #e50d30a8);
  filter:var(--neon-halo);
}
.crewTitle{text-transform:uppercase;font-weight:800;font-size:.9rem;letter-spacing:.34em;text-align:center}
.crewEntry h1{margin:clamp(8px,2svh,20px) 0;font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(1.35rem,6vw,1.85rem);letter-spacing:-.04em;text-align:center;text-transform:none}
.crewCards{display:grid;gap:clamp(8px,1.6svh,15px);width:min(100%,61svh)}
.crewPass{display:block;width:100%;padding:0;border:0;background:transparent;line-height:0;border-radius:10px}
.crewPass img{width:100%;height:auto;display:block;border-radius:10px}
.passPin,.passInvite{padding:12px;margin:0;background:#211e1c;border-radius:8px}
.passPin{display:flex;gap:10px;align-items:end}.passPin label{display:grid;gap:4px;flex:1;min-width:0}.passPin input{width:100%}.passInvite a{color:var(--yellow)}

.crewPass{position:relative;perspective:500px}
.passFace{clip-path:inset(0 19% 0 0)}
.passStub{position:absolute;inset:0 0 0 81%;overflow:hidden;transform-origin:left center}
.crewPass .passStub img{position:absolute;right:0;top:0;width:526.316%;max-width:none;height:100%}
.passRow.host{--glint:#ffcf62;--delay:500ms;--from:-108%;--tilt:-14deg}
.passRow.production{--glint:#ff565f;--delay:1400ms;--from:108%;--tilt:13deg}
.passRow.door{--glint:#80d8ff;--delay:2300ms;--from:-108%;--tilt:-12deg}
.crewPass[aria-expanded="true"] .passStub{
  transform:translate(8px,-7px) rotate(7deg);

}
.passRow .passPin{border-left:4px solid var(--glint);margin-top:8px}
.crewEntry{justify-content:flex-start;padding-top:clamp(16px,4svh,42px)}
body:has(.crewEntry){overflow-x:clip}
.crewEntering .crewMark{animation:logoArrival 1.8s ease-out}
.crewEntering .crewTitle{animation:stageLight 1.6s ease-out}
.crewEntering .passRow{animation:ticketEntrance 2.1s var(--delay) backwards cubic-bezier(.24,.68,.32,1)}
.crewPreparing .passRow,.crewPreparing .crewMark,.crewPreparing .crewTitle{opacity:0}
@media(prefers-reduced-motion:reduce){
  .crewEntering .crewMark,.crewEntering .passRow{animation-name:stageLight}
}
@keyframes neonFlicker{
  0%,61%,63.5%,100%{filter:var(--neon-halo)}
  62%{filter:drop-shadow(0 0 3px #ff604ace) drop-shadow(0 0 13px #ff182ca0) drop-shadow(0 0 28px #e50d3078)}
}
@media(prefers-reduced-motion:no-preference){
  .crewEntering .crewMark{animation:logoArrival 1.8s ease-out,neonFlicker 3s linear infinite}
  .crewPass[aria-expanded="true"] .passStub{animation:ticketTear .95s ease-out}
  .crewPass[aria-expanded="true"]::after{
    content:"";position:absolute;inset:4% 3%;border-radius:10px;pointer-events:none;opacity:0;
    background:linear-gradient(110deg,transparent 24%,var(--glint) 45%,#fff 50%,transparent 74%) -100% 0 / 45% 100% no-repeat;
    animation:stageSweep 1.05s ease-out;
  }
  .passPin{animation:pinReveal .35s ease-out}
}
@keyframes stageLight{from{opacity:.1}to{opacity:1}}
@keyframes logoArrival{from{opacity:.2;transform:scale(.55) rotate(-9deg)}70%{transform:scale(1.08) rotate(2deg)}to{opacity:1;transform:none}}
@keyframes ticketEntrance{
  0%{opacity:0;transform:translate(var(--from),32px) rotate(var(--tilt))}
  35%{opacity:1}
  72%{transform:translate(0,-9px) rotate(2deg)}
  87%{transform:translate(0,3px) rotate(-1deg)}
  100%{opacity:1;transform:none}
}
@keyframes ticketTear{
  0%{transform:none;filter:none}
  22%{transform:translate(-3px,2px) rotate(-5deg)}
  55%{transform:translate(12px,-14px) rotate(15deg)}
  100%{transform:translate(8px,-7px) rotate(7deg)}
}
@keyframes stageSweep{0%{opacity:0;background-position:-100% 0}18%,70%{opacity:.52}100%{opacity:0;background-position:200% 0}}
@keyframes pinReveal{from{opacity:.35;transform:translateY(-7px)}to{opacity:1;transform:none}}
.loginCover,.loginEdge{position:fixed;inset:0;pointer-events:none;z-index:1000}
.loginCover{background:#0c0d0e;overflow:hidden}
.loginPiece{position:absolute;text-align:center;color:#fff5df}
.loginPiece img{display:block;width:100%;height:100%}
.loginHeading{font:bold clamp(1.35rem,6vw,1.85rem)/1.1 Impact,"Arial Narrow",sans-serif;letter-spacing:-.04em}
@media (min-width:768px){
  .crewEntry h1,.loginHeading{
    font:500 1.75rem/1.25 system-ui,sans-serif;
    letter-spacing:normal;
  }
}
.loginSelected>img{clip-path:inset(0 19% 0 0)}
.loginStub{position:absolute;inset:0 0 0 81%;overflow:hidden;transform-origin:left center;transform:translate(8px,-7px) rotate(7deg)}
.loginStub img{position:absolute;right:0;width:526.316%;max-width:none}
.loginEdge{inset:auto;box-sizing:border-box;border:1px solid transparent;z-index:1001}

.practiceBanner{padding:.55rem .9rem;background:#f3c04e;color:#21190c;font-weight:700;text-align:center}

.crewFooter{margin-top:auto;padding-top:12px;text-align:center}

.crewFooter .copyLink {
  position: relative;
  min-height: 44px;
  min-width: 140px;
  padding: 8px 34px 8px 17px;
  border: 1px solid #e8b967;
  border-radius: 4px;
  background: linear-gradient(165deg, #ffdfa0, #e6aa50);
  color: #302012;
  font: 800 .91rem/1.15 "Arial Narrow", Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 3px #eab765, inset 0 0 0 4px #805527;
  transform: rotate(-2deg);
}
.crewFooter .copyLink::before {
  content: "";
  position: absolute;
  inset: 0 20px 0 auto;
  border-left: 2px dashed #875826;
}
.crewFooter .copyLink::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 9px;
  bottom: 9px;
  width: 8px;
  background: repeating-linear-gradient(to bottom, #64411f 0 2px, transparent 2px 4px, #64411f 4px 5px, transparent 5px 8px);
}
.crewFooter .copyLink:focus-visible { outline: 3px solid #fff5df; outline-offset: 4px; }
.crewFooter .copyLink:active { transform: rotate(0); background: #ffdf9d; }
@media (prefers-reduced-motion: no-preference) {
  .crewFooter .copyLink { transition: transform .15s ease-out; }
}
.soundTools,.cueBank,.cuePair,.soundMini{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.cueBank{padding:.65rem 0}.soundCue{border-left:5px solid}.soundMini{position:sticky;bottom:0;z-index:4;background:var(--panel-head,#242124);padding:.5rem .8rem;border-top:1px solid #74554c}.soundMini progress{width:6rem;accent-color:#efb553}.soundMini button,.cueCog{padding:.35rem .55rem}.compact .compactNav{grid-template-columns:repeat(4,minmax(0,1fr)) auto}.compact .compactNav button{min-width:0}.soundMini span{font-weight:600}.soundTools label{min-width:0}
@media(max-width:520px){.compact .compactNav{display:flex;flex-wrap:wrap}.soundMini{gap:.2rem;font-size:.82rem}.soundTools{gap:.25rem}}

.performerArrival{
  position:fixed;z-index:12;top:calc(env(safe-area-inset-top,0px) + .6rem);left:50%;
  transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.2rem);
  padding:.65rem 1rem;border:1px solid #84ce9d;border-radius:.45rem;
  background:#173625;color:#fff;font-weight:700;text-align:center;pointer-events:none;
}

.startCheckInNotice{
  position:fixed;top:calc(env(safe-area-inset-top,0px) + .75rem);right:.75rem;z-index:12;
  width:min(24rem,calc(100% - 1.5rem));padding:.85rem 1rem;border:1px solid #deb05c;
  border-radius:.5rem;background:#292319;color:#fff6e4;box-shadow:0 4px 16px #0008;
}
.startCheckInNotice p{margin:.3rem 0}
.startCheckInNotice ul{margin:.45rem 0;padding-left:1.25rem;max-height:32svh;overflow:auto;overflow-wrap:anywhere}

/* Keep the player and bottom navigation in separate, touchable rows. */
@media(max-width:600px){
  #app:has(> .soundMini){padding-bottom:calc(var(--audio-bar-height) + var(--bottom-control-height))}
  #app:not(.compact):has(> .soundMini) main{padding-bottom:1rem}
  #app > .soundMini{position:fixed;inset:auto 0 var(--bottom-control-height);padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}
  #app > .soundMini.aboveControls{padding-bottom:.5rem}
  #app:has(> .soundMini) .notice{bottom:calc(var(--audio-bar-height) + var(--bottom-control-height) + 4px)}
}
#app.compact > .soundMini{bottom:var(--bottom-control-height)}
#app.compact:has(> .soundMini) .tabWorkspace:has([data-panel=chat]){padding-bottom:var(--bottom-control-height)}
@media(max-width:600px){
  #app.compact:has(> .soundMini) .tabWorkspace:has([data-panel=chat]){padding-bottom:0}
}

.soundMini details{width:100%;min-width:0}
.soundMini summary{display:flex;align-items:center;gap:.45rem;min-height:32px;cursor:pointer;list-style:none}
.soundMini summary::-webkit-details-marker{display:none}
.soundMini summary span{min-width:0;overflow-wrap:anywhere}
.soundMini summary progress{flex:0 1 6rem;min-width:2rem}
.soundMini summary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.soundMini details[open] .soundTools{margin-top:.25rem}
.soundMini details:not([open]) > .soundTools{display:none}

.cuePair:has(.cueActions){flex-direction:column;align-items:stretch}.cueActions{display:flex;justify-content:space-between;gap:.2rem}.cueActions button{min-width:44px;min-height:44px;padding:.25rem}

.soundMini .masterVolume{flex:1 0 100%;display:grid;grid-template-columns:1fr auto;align-items:center}
.masterVolume [data-volume-level]{font-variant-numeric:tabular-nums}
.masterVolume input[type=range]{grid-column:1/-1;width:100%;height:44px;margin:0;padding:0;border:0;background:transparent;accent-color:var(--yellow);cursor:pointer}

.chatSoundTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;min-width:0}
.chatSoundTabs button{position:relative;display:grid;place-items:center;min-width:0;min-height:44px;padding:.25rem}
.chatSoundTabs small{position:absolute;top:1px;right:1px;border-radius:1em;padding:0 .25em;background:#923743;color:white;font-size:.6rem}

/* Shared crew navigation, including the floating Host window. */
#app{--crew-nav-height:calc(48px + env(safe-area-inset-bottom))}
#app:has(.crewNav){padding-bottom:var(--crew-nav-height)}
#app:has(.crewNav):has(>.soundMini){padding-bottom:calc(var(--audio-bar-height,40px) + var(--bottom-control-height,var(--crew-nav-height)))}
#app:has(.crewNav) main{padding-bottom:.6rem}
#app:has(.crewNav) > .soundMini{position:fixed;inset:auto 0 var(--bottom-control-height,var(--crew-nav-height));padding-bottom:.35rem}
#app.compact:has(.crewNav) .chat form{bottom:var(--crew-nav-height);padding-bottom:6px}
#app:has(.crewNav) .notice{bottom:calc(var(--bottom-control-height,var(--crew-nav-height)) + var(--audio-bar-height,0px) + 4px)}
#app .crewNav{position:fixed;z-index:8;inset:auto 0 0;display:grid;grid-template-columns:repeat(var(--panel-count),minmax(0,1fr)) minmax(44px,.5fr);gap:3px;align-items:center;margin:0;padding:2px max(5px,env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));background:#101011}
#app .crewNav:has(>.moreAnchor:only-child){display:flex;justify-content:flex-end}
.crewNav button,.crewActions button{display:grid;place-items:center;background:#29292b;color:white;border:0;border-radius:7px}
#app .crewNav>button,#app .moreAnchor>button,#app .crewActions button{height:44px;min-height:44px;min-width:0;padding:0}
#app .crewNav>button{position:relative}
#app .crewNav [aria-current=page]{background:#a32130}
.crewNav small{position:absolute;left:calc(50% + 4px);top:1px;background:#f4eeee;color:#39181c;border-radius:9px;padding:0 4px;font-size:10px}
.moreAnchor{position:relative;min-width:44px}
.moreAnchor>button{width:100%}
.moreChoices{position:absolute;bottom:calc(100% + 5px);right:0;min-width:155px;max-height:calc(100dvh - var(--crew-nav-height) - 8px);overflow:auto;padding:4px;background:#292729;border:1px solid #625456;border-radius:10px;box-shadow:0 4px 18px #0008}
.moreChoices[hidden]{display:none}
#app .moreChoices button{display:flex;justify-content:flex-start;align-items:center;gap:10px;background:transparent;width:100%;min-height:44px;padding:3px 9px;white-space:nowrap}
#app .moreChoices button:hover,#app .moreChoices button:focus-visible{background:#44383a}
#app .crewActions{display:flex;gap:2px;flex-wrap:nowrap}
#app .crewActions button{width:44px;flex:none}
#app .header:has(.crewActions){gap:4px;padding-block:3px;min-height:0}
#app .header:has(.crewActions) .brand{flex:1;min-width:0}
#app .header:has(.crewActions) .brand>div{min-width:0}
#app .header:has(.crewActions) .bannerLogo{max-width:100%;object-fit:contain}

.showBar>label>.badge{flex:none}
.showBar>label>select{min-width:0}

.crewActions [data-action=copyLink]:active,#copyLink:active{transform:scale(.94)}
.linkCopied #app .crewActions [data-action=copyLink],.linkCopied .doorHeader #copyLink{background:#216444;color:#fff}
.linkCopied .crewActions [data-action=copyLink] svg,.linkCopied .doorHeader #copyLink svg{display:none}
.linkCopied .crewActions [data-action=copyLink]::before,.linkCopied .doorHeader #copyLink::before{content:"";display:inline-block;width:16px;height:8px;border:solid currentColor;border-width:0 0 3px 3px;transform:translateY(-2px) rotate(-45deg)}

.messages article.chatUnread{background:#463318;border-inline-start:3px solid #ffbf52;color:#fff5dd}
.unreadLabel{color:#ffd184;font-size:.78em;font-weight:700}

.preview{background:#49321c;border:2px solid #ffc361;z-index:12;animation:chatPulse 1.4s ease-in-out infinite}
@keyframes chatPulse{0%,100%{background:#614222;border-color:#ffd18a}50%{background:#30281e;border-color:#b48d57}}
@media(prefers-reduced-motion:reduce){.preview{animation:none;border-color:#ffd18a;background:#50371e}}
.summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.summary button,.compact .summary button{min-width:0;align-content:center;justify-items:center;gap:3px;text-align:center;padding:5px 2px}
.summary button span{display:flex;align-items:center;justify-content:center;gap:4px;font-size:.82rem}
.summary svg{flex:none;width:16px;height:16px}
.summary button strong{font-size:1.1rem}.summary button small{font-size:.85em}
.summary button[aria-pressed=true]{border-color:var(--yellow)}
.attendanceTotals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-column:1/-1;flex:1 1 100%;min-width:0;margin:0;padding:5px 0;background:#302e2e;border:1px solid #5a5041;border-radius:.35rem;text-align:center}
.attendanceTotals div+div{border-inline-start:1px solid #63585a}
.attendanceTotals dt{font-size:.75rem;line-height:1.2}.attendanceTotals dd{margin:2px 0 0;font-weight:700;font-size:1.15rem;color:#fff}
.attendanceTotals div:first-child dd{color:var(--red)}
[data-panel=who] .summary{margin:0 0 7px}
.preview [data-action=ackPreview],.preview [data-action=dismissPreview]{min-width:40px;min-height:40px}

.queueWarning{position:fixed;z-index:18;inset:calc(env(safe-area-inset-top,0px) + 8px) 8px auto;max-width:560px;margin:auto;background:#46291a;border:2px solid #ffba64;border-radius:8px;color:#fff5e7;display:flex;gap:12px;align-items:center;padding:8px 10px;box-shadow:0 3px 14px #0009}
.queueWarning div{flex:1;min-width:0;max-height:30vh;overflow:auto;overflow-wrap:anywhere}.queueWarning p+p{margin-top:5px}.queueWarning button{min-height:44px}

.preBanner,.noteAlert{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .7rem;border-radius:.45rem}
.preBanner{background:#ffc257;color:#211707;margin:.35rem 0}
.preBanner button{min-height:40px}
.comicInfo{min-width:36px;min-height:40px;padding:.2rem;background:transparent;border:0;font-size:1.3rem;color:#c3c3c3}
.comicInfo.hasInfo{color:#ffd06c}
button.performerName{min-height:40px;padding:.1rem .25rem;color:inherit}
.noteAlert{position:fixed;z-index:17;top:calc(env(safe-area-inset-top,0px) + 8px);left:8px;right:8px;max-width:600px;margin:auto;border:2px solid #ffc361;background:#49321c;color:white;animation:chatPulse 1.4s ease-in-out infinite;flex-wrap:wrap}
.noteAlert strong{overflow-wrap:anywhere}.catalogResults{max-height:45vh;overflow:auto}
@media(prefers-reduced-motion:reduce){.noteAlert{animation:none}}

.preBanner{position:sticky;top:0;z-index:4}.performerName,.comicName{overflow-wrap:anywhere}.noteAlert button{min-height:44px}

.fields label.practiceChoice{display:inline-flex;align-items:center;justify-self:start;gap:8px;min-height:44px;cursor:pointer}
.fields .practiceChoice input{flex:none;width:20px;height:20px;min-height:0;margin:0}
.adminTitle,.dialogTitle{display:flex;align-items:center;gap:8px}
.dialogTitle{justify-content:space-between}
.adminTitle button,.dialogTitle button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0}
.closeDialog{background:transparent;border:0;font-size:1.6rem}
dialog{max-height:92dvh;overscroll-behavior:contain}
.noteTabs,.noteActions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.noteTabs{background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}
.noteTabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#b7b2af;padding:.4rem .65rem;min-height:40px}
.noteTabs .current{color:white;border-bottom-color:#ea4151}
.noteActions{margin:8px 0 10px}
.noteActions button{padding:5px 9px;font-size:.85rem;min-height:38px}
.completedNotes{margin-top:10px;border-top:1px solid var(--line)}
.completedNotes summary{cursor:pointer;padding:12px 0;font-weight:650}
#app .crewActions .preEntry{width:auto;padding-inline:5px;font-size:.64rem;align-content:center}
.practiceBanner{padding:3px 8px;font-size:.81rem}
#app .tabWorkspace :is([data-panel=reminders],[data-panel=who],[data-panel=lineup]) .panelBody{max-height:65vh;max-height:65dvh;overflow:auto;scroll-padding-block:44px 10px}
[data-panel=who] .panelBody>.summary{position:sticky;top:0;z-index:1;background:var(--panel)}
@media(max-height:500px){#app .tabWorkspace .panelBody{max-height:55dvh}}
.preEntry svg{width:17px;height:17px}


/* Keep the information control, performer name and light together. */
.performerGroup{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:middle}
.performerGroup>.comicInfo,.performerGroup>.challengeFlame{flex:none}
.performerGroup>.performerName{display:inline-flex;align-items:center;gap:.25em;min-width:0;max-width:100%}
.performerGroup .performerLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.performerGroup .attendanceLight{flex:none;margin-inline:0}
@media(max-width:700px){
  .stage.cueBoard,.compact .stage.cueBoard,.stage.stageMini,.productionStage{display:grid;grid-template-columns:minmax(0,1fr);row-gap:2px}
  :is(.stage,.productionStage)>.cue:is(.cue-stage,.cue-next,.cue-hole){display:grid;grid-template-columns:minmax(6.8rem,36%) minmax(0,1fr);align-items:center;column-gap:.3rem;padding:.05rem .25rem}
  :is(.stage,.productionStage)>.cue>.cueHeading{flex-wrap:nowrap;justify-content:flex-start}
  :is(.stage,.productionStage)>.cue>strong{min-width:0}
  :is(.stage,.productionStage)>.cue>small{grid-column:2}
  .cue .performerGroup>.comicInfo{min-width:28px;padding-inline:.1rem}
}
