.sm{display:grid;grid-template-columns:1fr 440px;height:100svh;padding-top:var(--hdr);background:#fff}
.sm-left{display:flex;flex-direction:column;min-height:0;background:#ebe7e0}
.sm-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.sm-stage canvas{display:block;max-width:100%;max-height:100%}
.sm-overlay{position:absolute;pointer-events:none}
.picking .sm-stage canvas:first-child{cursor:crosshair}
.sm-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--ink);background:#ebe7e0}
.sm-msg[hidden]{display:none}
.sm.busy .sm-stage::after{content:"";position:absolute;top:0;left:0;height:2px;width:30%;background:#111;animation:bar 1s linear infinite}
.sm-hud{position:absolute;right:16px;bottom:16px;display:flex;gap:8px}
.sm-hud button{height:38px;padding:0 15px;font-size:12.5px;border-radius:999px;background:rgba(255,255,255,.92);color:#111;backdrop-filter:blur(6px);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.sm-hud button:hover{background:#fff}
.sm-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--line);background:#fff}
.sm-scenes{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sm-scenes button[data-sc]{width:84px;height:56px;border-radius:6px;background-size:cover;background-position:center;outline:1px solid rgba(0,0,0,.08);transition:outline-color .2s,transform .2s}
.sm-scenes button[data-sc]:hover{transform:translateY(-2px)}
.sm-scenes button.on{outline:2px solid #111;outline-offset:2px}
.sm-upload{display:flex;align-items:center;gap:8px;height:56px;padding:0 16px;border:1px dashed rgba(0,0,0,.3);border-radius:6px;font-size:13px;color:var(--ink)}
.sm-upload svg{width:20px;height:20px}
.sm-upload:hover{border-color:#111}
.sm-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sm-tools[hidden]{display:none}
.sm-help{margin:0;font-size:12.5px;color:var(--muted);max-width:42ch}
.sm-tools button{height:34px;padding:0 13px;font-size:12.5px;border:1px solid var(--line);border-radius:999px}
.sm-tools .sm-add{background:#111;color:#fff;border-color:#111}
.sm .vz-panel{display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--line);overflow-y:auto}
.sm-target button[hidden]{display:none}
.sm-brand{max-height:none}
.sm-tone{display:flex;flex-wrap:wrap;gap:7px}
.sm-tone button{width:26px;height:26px;border-radius:50%;padding:0;position:relative}
.sm-tone button i{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(0,0,0,.12)}
.sm-tone button.on::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid #111}
.sm .vz-it small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-none{grid-column:1/-1;font-size:13px;color:var(--muted)}
.sm-btns{display:grid;grid-template-columns:1fr auto;gap:8px}
.sm-btns .pill{justify-content:center}
.sm .wa-fab{display:none}
@media (max-width:1000px){
 .sm{grid-template-columns:1fr;height:auto}
 .sm-left{position:sticky;top:var(--hdr);z-index:5}
 .sm-stage{height:min(62vw,52svh);flex:none}
 .sm-scenes button[data-sc]{width:64px;height:44px}.sm-upload{height:44px}
 .sm .vz-panel{border-left:0;overflow:visible}
 .sm .vz-foot{position:static}
}
.sm{grid-template-columns:minmax(0,1fr) 440px}
.sm-left,.sm .vz-panel{min-width:0}
body:has(.sm) .wa-fab{display:none}
.sm-btns .pill.wa{padding:0 18px}
.sm-btns .pill.wa span{display:none}
@media (max-width:1000px){.sm{grid-template-columns:minmax(0,1fr)}.sm-hud{right:10px;bottom:10px}.sm-hud button{height:34px;font-size:12px;padding:0 12px}}
.sm .vz-ph{padding:18px 24px 12px}.sm .vz-ph h1{font-size:26px}.sm .vz-row{padding:11px 24px;gap:8px}
