/* v1.0.3 keeps the existing scene and panel layout. */
.stage-top{align-items:flex-start}.preview-state-controls{display:flex;gap:6px;pointer-events:auto}.preview-state-controls label{display:flex;align-items:center;gap:4px;margin:0;color:#f4ffff;font-size:12px;font-weight:500;white-space:nowrap}.preview-state-controls select{width:auto;min-width:70px;min-height:44px;margin:0;padding:6px;background:#f4ffff;color:#123c44;font-size:14px;border-color:#b1d3d5}.stage-top .mode-badge{position:absolute;top:49px;left:0;max-width:100%;padding:3px 6px;font-size:11px;background:#18434bd9}.draft-status{font-size:12px;line-height:1.4;color:#496b71;max-width:180px}.draft-status.error{color:#a02c34}
#selectionOutline{position:absolute;z-index:3;pointer-events:none;border:2px solid #35f4df;border-radius:6px;box-shadow:0 0 0 1px #133d46,0 0 9px #00d7c080}
#stage[data-collision=true]~#selectionOutline{border-color:#ffad80}
.quick-actions{position:absolute;z-index:5;left:50%;bottom:25px;transform:translateX(-50%);max-width:calc(100% - 16px);padding:0 2px;border:1px solid #81b7bd;border-radius:7px;background:#f7fffff2;box-shadow:0 2px 8px #102e3830;display:flex;align-items:center;gap:0;pointer-events:auto}.quick-actions button{font-size:12px;min-width:44px;min-height:44px;padding:3px 7px;border:0;background:transparent;border-radius:5px}.quick-actions #quickRemove{color:#9b3333}.collision-notice{position:absolute;z-index:6;left:8px;right:8px;top:84px;padding:6px 9px;border:1px solid #d79a73;border-radius:6px;color:#712a15;background:#fff2e9f5;font-size:13px;line-height:1.5;pointer-events:none}
#selectedOptionSize{display:block;font-size:12px;color:#52737b;margin-top:5px;line-height:1.6}.done-company{margin-top:8px;color:#08606a;font-size:14px}#draftError{color:#9b3030}#draftDetail{overflow-wrap:anywhere}
#stage,#stage .model-face{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.mat-option-white{border-color:#9eaead}.mat-counter{border-color:#9baaaa}
.mat-sign.has-sign-artwork{background:#fff;letter-spacing:0;text-shadow:none}.mat-sign img.sign-artwork{position:static;width:100%;height:100%;max-width:none;object-fit:contain;transform:none;pointer-events:none}.sign-image-preview{display:block;width:100%;height:72px;object-fit:contain;background:#fff;border:1px solid #bdd8db;border-radius:5px}.sign-upload{margin-top:10px}#signImageStatus{font-size:13px;line-height:1.6;color:#3c686b}#signImageStatus.error{color:#a02c34}#signMode{margin-bottom:12px}
@media(max-width:800px),(max-width:1000px) and (max-height:550px) and (orientation:landscape){
 .preview-state-controls label{flex-direction:column;align-items:stretch;gap:1px;font-size:10px;line-height:1}.preview-state-controls select{min-height:44px;height:44px;min-width:76px;font-size:14px;padding:5px 6px}.stage-top{top:5px;left:6px;right:6px}.stage-top>span:last-child{font-size:11px;padding:4px}.stage-top .mode-badge{top:59px;font-size:10px;line-height:1.2;padding:2px 4px}.preview-state-controls{gap:4px}
 .mobile-preview-tools{grid-template-columns:44px 44px 44px minmax(60px,1fr);justify-content:end}.preview-dialog .mobile-preview-tools{grid-template-columns:44px 44px 44px;justify-content:end}
 .draft-status{display:block;margin-left:auto;font-size:12px;white-space:nowrap;max-width:144px;overflow:hidden;text-overflow:ellipsis}.workspace-title{justify-content:flex-start;gap:6px}.quick-actions{bottom:25px;gap:0;padding:0 2px}.quick-actions button{font-size:12px;padding:3px 6px;min-width:44px}.collision-notice{top:81px;font-size:12px;padding:4px 6px}
 body[data-keyboard=true] .workspace{display:flex;flex-direction:column;flex:0 0 auto;width:100%;height:auto;min-height:0}
 body[data-keyboard=true] .stage-shell,body[data-short=true] .stage-shell{display:block;flex:0 0 auto}
 body[data-keyboard=true] #stage,body[data-short=true] #stage{height:112px;min-height:112px}
 body[data-keyboard=true] .stage-top .mode-badge,body[data-short=true] .stage-top .mode-badge{display:none}
 body[data-short=true] aside#settings{min-height:0}.preview-dialog #stage{height:100%;min-height:0}.preview-dialog .stage-shell{flex:1}
}
@media(max-width:360px){.preview-state-controls select{min-width:69px;font-size:13px}.quick-actions strong{max-width:70px}.stage-top>span:last-child{font-size:10px}}
@media(max-width:1000px) and (max-height:550px) and (orientation:landscape){
 body[data-keyboard=true] main#studio{flex-direction:row}
 body[data-keyboard=true] .workspace{flex:0 0 58%;width:58%;height:100%;min-height:0}
 body[data-keyboard=true] aside#settings{width:42%;min-height:0}
 body[data-keyboard=true] .stage-shell{flex:1;min-height:0}
 body[data-keyboard=true] #stage{height:100%;min-height:0}
}
