body.smart-tool-workspace.cutout-page{--smart-bg:#f4f6f9;--smart-panel:#fff;--smart-ink:#252f43;--smart-muted:#7b8495;--smart-line:#e2e7ef;--cut-accent:#7358d7;--cut-soft:#f0ebff}
[data-theme=dark] body.smart-tool-workspace.cutout-page{--smart-bg:#151923;--smart-panel:#1d2432;--smart-ink:#e7edf8;--smart-muted:#a2acc0;--smart-line:#333e53;--cut-accent:#b69fff;--cut-soft:#362c51}
body.smart-tool-workspace.cutout-page .demo-main{padding:24px!important;max-width:1600px!important}.cut-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}.cut-heading-title{display:flex;align-items:center;gap:16px}.cut-app-icon{width:52px;height:52px;display:grid;place-items:center;flex:none;background:var(--cut-soft);color:var(--cut-accent);border-radius:15px}.cut-eyebrow{font:700 9px system-ui;letter-spacing:1.5px;color:var(--smart-muted)}.cut-heading h1{font-size:clamp(21px,2vw,29px);line-height:1.45;margin:5px 0;color:var(--smart-ink)}.cut-heading p{font-size:12px;color:var(--smart-muted);margin:0}.cut-studio-link{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--cut-accent);font-size:12px;white-space:nowrap}.cut-editor{border:1px solid var(--smart-line);border-radius:18px;background:var(--smart-panel);overflow:hidden;box-shadow:0 8px 32px #26375406}.cut-document-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--smart-line)}.cut-file{display:flex;align-items:center;gap:10px;min-width:0}.cut-file>div{min-width:0}.cut-file-icon{color:var(--smart-muted);display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--smart-line);border-radius:9px}.cut-file strong{display:block;font-size:12px;font-weight:600;max-width:500px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cut-file small{display:block;font:10px system-ui;color:var(--smart-muted);margin-top:4px}
body.smart-tool-workspace.cutout-page .cut-actions{margin:0;gap:7px;flex-wrap:nowrap}body.smart-tool-workspace.cutout-page .cut-actions :is(button,label){display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;font-size:11px;min-height:36px;border-radius:9px;white-space:nowrap}body.smart-tool-workspace.cutout-page .smart-primary,body.smart-tool-workspace.cutout-page .cut-open-primary{background:#7358d7;color:#fff;border-color:transparent}
body.smart-tool-workspace.cutout-page .cut-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:0;direction:ltr}body.smart-tool-workspace.cutout-page .cut-inspector{direction:ltr;padding:0!important;border:0!important;border-inline-start:1px solid var(--smart-line)!important;border-radius:0!important;display:block}html[dir=rtl] body.smart-tool-workspace.cutout-page .cut-inspector{direction:rtl}
body.smart-tool-workspace.cutout-page #cutStage{margin:18px;min-height:520px;height:min(70dvh,740px);border:0;border-radius:12px;background-color:#f4f5f8;background-image:linear-gradient(45deg,#e8ebf0 25%,transparent 25%),linear-gradient(-45deg,#e8ebf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8ebf0 75%),linear-gradient(-45deg,transparent 75%,#e8ebf0 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}body.smart-tool-workspace.cutout-page #cutStage:not(.checkerboard){background-image:none}body.smart-tool-workspace.cutout-page #cutStage:not(.has-image){background:var(--smart-bg)}body.smart-tool-workspace.cutout-page #cutStage:not(.has-image) .smart-view-controls{display:none}body.smart-tool-workspace.cutout-page #cutCanvas{max-height:calc(100% - 60px);max-width:calc(100% - 30px)}
body.smart-tool-workspace.cutout-page .cut-empty{max-width:100%;padding:30px 20px;background:transparent;color:var(--smart-ink);direction:ltr}html[dir=rtl] .cut-empty{direction:rtl!important}.cut-empty h2{font-size:22px;margin:24px 0 8px;line-height:1.5}.cut-empty p{font-size:12px;line-height:1.8;color:var(--smart-muted);margin:0 0 22px}.cut-empty small{display:block;font-size:10px;margin-top:12px;color:var(--smart-muted)}.cut-open-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:700;border-radius:10px;padding:13px 24px;cursor:pointer;box-shadow:0 6px 16px #7358d725}.cut-empty-art{width:126px;height:108px;margin:auto;position:relative}.cut-art-back,.cut-art-front{position:absolute;width:90px;height:98px;border:1px solid #d8d2ee;border-radius:16px;display:grid;place-items:center}.cut-art-back{background:repeating-conic-gradient(#e9e2ff 0 25%,#f6f2ff 0 50%) 0/18px 18px;transform:rotate(-15deg);left:6px}.cut-art-front{color:#9578e3;background:#fff;left:28px;top:9px;transform:rotate(10deg);box-shadow:0 10px 20px #7c63b61c}.cut-art-front>span{position:absolute;right:-14px;bottom:5px;background:#7358d7;color:white;border-radius:12px;padding:9px;box-shadow:0 4px 12px #7358d737}
.cut-panel{padding:20px;border-bottom:1px solid var(--smart-line)}.cut-panel:last-child{border:0}.cut-panel-heading{display:flex;align-items:center;gap:9px;margin-bottom:17px}.cut-step{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--cut-soft);color:var(--cut-accent);font:600 10px system-ui}body.smart-tool-workspace.cutout-page .cut-panel h2{font-size:12px;font-weight:750;margin:0}.cut-run{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:41px}.cut-privacy{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:var(--smart-muted);margin:10px 0 0}.cut-brush-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 18px}body.smart-tool-workspace.cutout-page .cut-brush-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 4px;font-size:10px;border:1px solid var(--smart-line);border-radius:9px;background:var(--smart-panel);color:var(--smart-muted)}body.smart-tool-workspace.cutout-page .cut-brush-tools button[aria-pressed=true]{background:var(--cut-soft);color:var(--cut-accent);border-color:#a994e6}.cut-range{display:grid;gap:10px;margin-top:16px}.cut-range>span{display:flex;justify-content:space-between;font-size:11px}.cut-range output{font:10px system-ui;color:var(--smart-muted)}body.smart-tool-workspace.cutout-page .cut-range input{padding:0;border:0;width:100%;height:5px;accent-color:#8162d8;background:transparent}.cut-field-label{font-size:10px;color:var(--smart-muted)}.cut-backgrounds{display:flex;gap:8px;margin-top:10px}body.smart-tool-workspace.cutout-page .cut-backgrounds button{width:29px;height:29px;min-width:29px;padding:0;border:1px solid #d1d5df;border-radius:50%;background-color:var(--swatch);background-size:12px 12px}body.smart-tool-workspace.cutout-page .cut-backgrounds button[aria-pressed=true]{outline:2px solid #9274dc;outline-offset:3px}body.smart-tool-workspace.cutout-page .cut-compare{background:var(--smart-bg);color:var(--smart-ink);width:100%;padding:7px;font-size:10px;margin-top:15px;border-radius:7px;border:1px solid var(--smart-line)}.cut-hint{font-size:10px;line-height:1.9;color:var(--smart-muted);margin:12px 0 0}.cut-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;border-top:1px solid var(--smart-line)}body.smart-tool-workspace.cutout-page #cutStatus{font-size:11px;color:var(--smart-muted);min-height:18px;margin:0}.cut-editor-footer>span{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--smart-muted);white-space:nowrap}.cut-credits{font-size:10px;color:var(--smart-muted);margin-top:14px}.cut-credits summary{cursor:pointer}.cut-credits p{line-height:1.8}.cut-progress{position:absolute;inset:0;background:#1c213460;color:white;z-index:8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;backdrop-filter:blur(3px);font-size:13px}.cut-progress>span{height:30px;width:30px;border:3px solid #ffffff50;border-top-color:#fff;border-radius:50%;animation:cut-spin .7s linear infinite}@keyframes cut-spin{to{transform:rotate(360deg)}}
@media(max-width:950px){body.smart-tool-workspace.cutout-page .demo-main{padding:16px!important}body.smart-tool-workspace.cutout-page .cut-layout{grid-template-columns:minmax(0,1fr) 250px}.cut-file strong{max-width:240px}.cut-panel{padding:16px}.cut-heading h1{font-size:23px}}
@media(max-width:760px){body.smart-tool-workspace.cutout-page .demo-main{padding:12px!important}.cut-heading{margin-bottom:18px;gap:12px;align-items:flex-start}.cut-heading-title{gap:9px}.cut-app-icon{width:38px;height:38px;border-radius:11px}.cut-app-icon svg{width:22px}.cut-heading h1{font-size:19px}.cut-heading p{font-size:10px;line-height:1.7}.cut-eyebrow{font-size:7px}.cut-studio-link{font-size:10px;gap:4px}.cut-studio-link>svg:last-child{display:none}.cut-document-bar{padding:10px;flex-wrap:wrap;gap:10px}.cut-file{gap:7px}.cut-file-icon{width:28px;height:28px}.cut-file strong{max-width:230px;font-size:11px}.cut-file small{font-size:9px}body.smart-tool-workspace.cutout-page .cut-actions{width:100%;margin:0}body.smart-tool-workspace.cutout-page .cut-actions :is(button,label){font-size:10px;padding:7px 9px;flex:auto}body.smart-tool-workspace.cutout-page .cut-actions #cutUndo{flex:none}body.smart-tool-workspace.cutout-page .cut-layout{grid-template-columns:1fr}body.smart-tool-workspace.cutout-page #cutStage{margin:10px;height:400px;min-height:310px;max-height:52dvh}body.smart-tool-workspace.cutout-page .cut-inspector{display:grid;grid-template-columns:1fr;border-inline-start:0!important;border-top:1px solid var(--smart-line)!important}.cut-panel{padding:15px}.cut-panel-heading{margin-bottom:12px}.cut-brush-tools{margin-bottom:12px}.cut-panel .cut-range{margin-top:14px}.cut-empty h2{font-size:18px}.cut-empty p{font-size:10px;margin-bottom:15px}.cut-empty-art{transform:scale(.8);height:90px}.cut-empty h2{margin-top:12px}.cut-open-primary{font-size:12px;padding:11px 18px}.cut-empty small{font-size:9px}.cut-editor-footer{padding:10px}.cut-editor-footer>span{display:none}.cut-credits{font-size:9px}.cut-backgrounds{gap:12px}}
@media(prefers-reduced-motion:reduce){.cut-progress>span{animation:none}}
/* Compact phone tool strips. The image viewport retains its own scale. */
@media(max-width:760px) and (hover:none) and (pointer:coarse){
 .cut-document-bar{padding:5px 6px;gap:5px;flex-wrap:nowrap}
 .cut-file{flex:1;min-width:0}.cut-file-icon,.cut-file small{display:none}.cut-file strong{max-width:100%;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.smart-tool-workspace.cutout-page .cut-actions{width:auto;flex:none;gap:4px;flex-wrap:nowrap}
 body.smart-tool-workspace.cutout-page .cut-actions :is(button,label){height:32px;min-height:32px;min-width:32px;width:32px;flex:none;padding:6px;border-radius:6px;font-size:0;gap:0}
 .cut-actions svg{width:18px;height:18px}.cut-editor-footer{min-height:38px;padding:3px 6px}.cut-editor-footer :is(button,label){min-height:30px;border-radius:6px;font-size:13px}
 .cut-brush-tools button{min-height:32px;height:32px;padding:5px;border-radius:6px;font-size:13px}.cut-run{min-height:34px!important;height:34px;border-radius:7px!important;font-size:13px!important}
}
