html, body.swcpd-editor-body { margin:0; min-height:100%; background:#f4f4f4; font-family:Arial, sans-serif; color:#151515; }
.swcpd-app { min-height:100vh; display:grid; grid-template-columns: 96px 280px 1fr 124px; grid-template-rows: 60px 1fr 82px; grid-template-areas: "top top top top" "tools panel stage views" "bottom bottom bottom bottom"; }
.swcpd-topbar { grid-area:top; background:#fff; border-bottom:1px solid #ddd; display:flex; align-items:center; gap:20px; padding:0 18px; }
.swcpd-brand { font-weight:800; font-size:18px; white-space:nowrap; }
.swcpd-breadcrumb { flex:1; font-size:13px; color:#555; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.swcpd-breadcrumb a { color:#2643d9; text-decoration:none; }
.swcpd-actions { display:flex; gap:10px; align-items:center; }
.swcpd-primary, .swcpd-secondary { border:0; border-radius:6px; padding:10px 14px; cursor:pointer; font-weight:800; }
.swcpd-primary { background:#2543df; color:#fff; }
.swcpd-secondary { background:#eee; color:#111; }
.swcpd-sidebar { grid-area:tools; background:#202020; color:#fff; padding:12px 8px; display:flex; flex-direction:column; gap:10px; }
.swcpd-tool { min-height:64px; border:1px solid #444; background:#fff; color:#111; border-radius:8px; padding:8px; cursor:pointer; font-weight:800; font-size:12px; }
.swcpd-tool.active { outline:3px solid #5c74ff; }
.swcpd-panel-wrap { grid-area:panel; background:#fff; border-right:1px solid #ddd; padding:18px; overflow:auto; }
.swcpd-panel { display:none; }
.swcpd-panel.active { display:block; }
.swcpd-panel h3 { margin:0 0 14px; font-size:18px; }
.swcpd-panel h4 { margin:22px 0 10px; }
.swcpd-panel label { display:block; font-size:12px; font-weight:700; margin:12px 0; }
.swcpd-panel input, .swcpd-panel select { box-sizing:border-box; width:100%; margin-top:6px; padding:8px; border:1px solid #ccc; border-radius:6px; }
.swcpd-panel button, .swcpd-upload-box { width:100%; border:1px solid #d6d6d6; background:#f9f9f9; color:#111; border-radius:8px; padding:11px; cursor:pointer; text-align:center; font-weight:800; margin-bottom:8px; box-sizing:border-box; }
.swcpd-upload-box { display:block; border-style:dashed; padding:22px 12px; }
.swcpd-upload-box input { display:none; }
.swcpd-help { margin:10px 0 16px; font-size:12px; line-height:1.45; color:#666; }
.swcpd-row { display:flex; gap:8px; }
.swcpd-row button { flex:1; }
.swcpd-art-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.swcpd-art-grid button { min-height:64px; }
.swcpd-product-list { display:flex; flex-direction:column; gap:8px; }
.swcpd-product-card { display:flex; align-items:center; gap:10px; text-decoration:none; border:1px solid #ddd; border-radius:8px; padding:8px; color:#111; background:#fff; }
.swcpd-product-card img { width:46px; height:46px; object-fit:contain; background:#f1f1f1; border-radius:6px; }
.swcpd-product-card span { font-size:12px; font-weight:700; }
.swcpd-meta-item { font-size:12px; line-height:1.4; padding:8px 0; border-bottom:1px solid #eee; }
.swcpd-meta-item strong { display:block; font-size:11px; color:#555; text-transform:uppercase; }
.swcpd-stage-wrap { grid-area:stage; display:flex; align-items:center; justify-content:center; overflow:auto; padding:20px; }
.canvas-container { box-shadow:0 10px 35px rgba(0,0,0,.14); background:#ddd; }
.swcpd-views { grid-area:views; background:#f7f7f7; border-left:1px solid #ddd; padding:12px; overflow:auto; }
.swcpd-view-title { font-weight:800; font-size:13px; margin-bottom:8px; }
.swcpd-view-btn { width:100%; background:#fff; border:1px solid #ddd; border-radius:8px; padding:7px; margin-bottom:10px; cursor:pointer; }
.swcpd-view-btn.active { outline:3px solid #2543df; }
.swcpd-view-btn img { width:70px; height:70px; object-fit:contain; display:block; margin:0 auto 4px; }
.swcpd-view-btn span { font-size:12px; font-weight:700; }
.swcpd-bottom { grid-area:bottom; background:#fff; border-top:1px solid #ddd; display:flex; align-items:center; gap:18px; padding:0 24px; font-size:14px; }
.swcpd-bottom strong { max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.swcpd-bottom label { display:flex; align-items:center; gap:8px; font-weight:700; }
.swcpd-bottom input { width:90px; padding:8px; border:1px solid #ccc; border-radius:6px; }
#swcpd-status { color:#555; margin-left:auto; }
@media (max-width: 1000px) { .swcpd-app { grid-template-columns:1fr; grid-template-rows:auto auto auto 1fr auto auto; grid-template-areas:"top" "tools" "panel" "stage" "views" "bottom"; } .swcpd-sidebar { flex-direction:row; flex-wrap:wrap; } .swcpd-tool { min-height:auto; flex:1 1 120px; } .swcpd-panel-wrap { border-right:0; border-bottom:1px solid #ddd; } .swcpd-views { border-left:0; border-top:1px solid #ddd; } .swcpd-view-btn { width:110px; display:inline-block; } .swcpd-bottom { flex-wrap:wrap; padding:12px; } .swcpd-bottom strong { max-width:100%; } }
