/* Stage plot: the stage, the gear on it, and the gear palette. Shared by the app, the sound tech's page and the website embed.
   Uses --ink, --card, --line, --mute, --accent from the page it sits on. */
.stg2{position:relative;aspect-ratio:16/10;border:2px solid var(--ink);border-radius:16px;margin:6px 0 34px;touch-action:none;
  background-color:var(--soft,rgba(127,127,127,.08));background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:10% 10%;background-position:-1px -1px}
.stitem{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink);user-select:none;-webkit-user-select:none;touch-action:none}
.stg2.ed .stitem{cursor:grab}.stg2.ed .stitem:active{cursor:grabbing}
.stic{display:block;line-height:0;transform-origin:center}
.stitem{z-index:2}.stitem.bk{z-index:1}.stitem.sel{z-index:3}
.stitem .sti{width:calc(58px * var(--z,1) * var(--w,1));height:calc(58px * var(--z,1) * var(--h,1))}
.sti.str *{vector-effect:non-scaling-stroke}
.sti{width:58px;height:58px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.sti .f{fill:currentColor}.sti .f2{fill:var(--accent);fill-opacity:.35}
.sti .t{font:800 11px/1 Inter,-apple-system,Arial,sans-serif;fill:currentColor;stroke:none}
.stlab{font-size:12px;font-weight:800;line-height:1.2;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:2px 8px;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.stitem.tag .stlab{background:var(--accent);border-color:var(--accent);color:#fff;padding:6px 12px;font-size:14px}
.stitem.sel .stic{outline:2px dashed var(--accent);outline-offset:4px;border-radius:8px}
.stitem.sel .stlab{border-color:var(--accent)}
.staud{position:absolute;bottom:-26px;left:0;right:0;text-align:center;font-size:12px;font-weight:700;letter-spacing:.3em;color:var(--mute)}
@media (max-width:560px){.stitem .sti{width:calc(36px * var(--z,1) * var(--w,1));height:calc(36px * var(--z,1) * var(--h,1))}.stlab{font-size:10px;padding:1px 6px}.stitem.tag .stlab{font-size:12px;padding:4px 9px}}
/* the builder: gear palette on the left, the stage on the right (palette goes on top on a phone) */
.stbuild{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start}
.stpal{max-height:640px;overflow-y:auto;padding-right:4px}
.stpal h4{margin:10px 0 6px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.stpal .pg2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.stpal button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font:inherit;font-size:11px;font-weight:700;line-height:1.15;cursor:pointer;text-align:center}
.stpal button:hover{border-color:var(--accent)}.stpal .sti{width:30px;height:30px}
@media (max-width:640px){.stbuild{grid-template-columns:1fr}.stpal{max-height:none;overflow:visible;display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.stpal h4{display:none}.stpal .pg2{display:contents}.stpal button{flex:0 0 76px}}
.sttools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 10px}.sttools input{flex:1 1 160px;min-height:42px}
.stpal .stq{width:100%;min-height:40px;margin:0 0 6px;font-size:15px}
.stpal .stmine{width:100%;flex-direction:row;justify-content:center;gap:6px;font-size:13px;margin-bottom:4px;border-style:dashed}
.stcust{display:grid;gap:6px;padding:8px;border:1px solid var(--line);border-radius:12px;margin:6px 0}.stcust input,.stcust select{min-height:38px;width:100%}
.stcust .shp{display:flex;gap:4px}.stcust .shp button{flex:1;padding:4px}.stcust .shp button.on{border-color:var(--accent);background:var(--card2,var(--card))}
@media (max-width:640px){.stpal .stq,.stpal .stmine,.stcust{flex:0 0 200px}}
.stlist{margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:6px 10px}.stlist summary{cursor:pointer;font-weight:700;min-height:36px;display:flex;align-items:center}
.stl{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px;margin:6px 0}.stl>div{display:flex;gap:4px;align-items:center;border-radius:10px}.stl>div.on{background:var(--card2,rgba(127,127,127,.12))}
.stpick{flex:1;display:flex;gap:8px;align-items:center;background:none;border:0;color:var(--ink);font:inherit;font-size:14px;text-align:left;padding:4px;cursor:pointer;min-height:40px}.stpick .sti{width:26px;height:26px;flex:0 0 26px}
.stnote{grid-column:1/-1;font-size:12px;color:var(--mute);line-height:1.3}@media (max-width:640px){.stnote{display:none}}
