.stage{flex:1 1 auto;min-height:180px;margin:14px 16px 16px;border-radius:26px;position:relative;overflow:hidden;
background:linear-gradient(160deg,#e7ecf8,#f5f8fe);box-shadow:inset 9px 9px 20px var(--sd),inset -9px -9px 20px var(--sl)}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab;outline:0}
.chip{position:absolute;display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:12px;font-size:12px;font-weight:700;pointer-events:none;
background:linear-gradient(145deg,#f8faff,#e4e9f5);box-shadow:4px 4px 10px var(--sd),-4px -4px 10px var(--sl)}
.chip i{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(238,46,74,.2)}
#chipSel{left:14px;top:14px}#chipSel b{color:var(--red)}
#chipHint{right:14px;bottom:14px;color:var(--mute)}
#nogl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:var(--red2);font-weight:800}
#nogl[hidden]{display:none}
#toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:20;padding:10px 18px;border-radius:14px;
background:var(--navy);color:#fff;font-weight:700;transition:opacity .2s,transform .2s;box-shadow:0 8px 20px rgba(15,37,87,.35)}
#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:620px){.stage{margin:10px;border-radius:22px}#chipHint{display:none}}

.work{display:flex;flex:1 1 auto;min-height:0;min-width:0;flex-direction:column}
.work>.stage{min-width:0}
.btnm{position:absolute;right:14px;top:14px;border:0;cursor:pointer;font:inherit;font-weight:800;font-size:12px;color:var(--navy);pointer-events:auto}
.btnm.on{color:#fff;background:linear-gradient(145deg,#ff4d66,#d81f3c)}.btnm.on i{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.3)}
#chipPend{left:14px;bottom:14px;color:var(--mute)}
@media(min-width:900px){
  .work{flex-direction:row}
  .dock{display:block;flex:0 0 auto;width:410px;height:100%;overflow:hidden;transition:width .26s ease;grid-template-rows:none}
  .dock:not(.open){width:0}
  .dock>.in,.dock.open>.in{height:100%;max-height:none;overflow-x:hidden;overflow-y:auto;width:410px;visibility:visible;scrollbar-width:thin}
  .dock:not(.open)>.in{visibility:hidden}
  .dock .row{flex-direction:column;align-items:stretch;overflow:visible;gap:14px;padding:16px 14px 10px 16px}
  .dock .rtabs{gap:10px;padding-bottom:0}
  .dock .grp{width:100%}
  .dock .seg{flex-wrap:wrap;max-width:100%}
  .dock .sb{padding:8px 10px}
  .dock .note{white-space:normal;max-width:none}
  .dock .chips{max-width:none}
  .dock .fld select{min-width:0;width:100%}
  .dock .ctl>.fld:has(select){flex:1}
  .stage{margin:14px 16px 16px 6px}
}
