.draw-preview-button{display:block;width:100%;text-align:center;position:relative}
.draw-preview-button>span{display:block;font-size:13px;color:var(--steel-700);padding:8px}
.draw-full-preview{max-width:96vw;width:720px;padding:0;border:1px solid var(--line);border-radius:8px}
.draw-full-preview .draw-image-scroll{height:70vh;display:grid;place-items:center;overflow:auto;background:#eef1f5}
.draw-full-preview .draw-image-scroll img{max-width:100%;max-height:65vh;object-fit:contain;touch-action:pinch-zoom}
html.mini-embedded{--tabbar-h:0px;background:#f5f7fa;color-scheme:light}
html.mini-embedded body{background:#f5f7fa}
html.mini-embedded .stage{display:block;background:#f5f7fa;padding:0}
html.mini-embedded #app{display:block;width:100%;max-width:none;min-height:100vh;margin:0;border-radius:0;box-shadow:none;padding:0}
html.mini-embedded #desktop-sidebar,html.mini-embedded #desktop-header,html.mini-embedded #tabbar-slot{display:none!important}
html.mini-embedded #view{margin:0;padding:0 0 16px;max-width:none;min-height:100vh}
html.mini-embedded .draw-page>.topbar{display:none}
html.mini-embedded .draw-heading{padding:20px 16px 14px;background:#fff;border-bottom:1px solid #e6eaf0}
html.mini-embedded .draw-heading h2{font-size:22px;line-height:1.4;color:#16243b;margin:0 0 7px;letter-spacing:0}
html.mini-embedded .draw-heading p{font-size:12px;line-height:1.7;color:#778397}
html.mini-embedded .draw-workspace{display:block;background:#f5f7fa}
html.mini-embedded .draw-sidebar{position:static;border:0;background:#fff}
html.mini-embedded .draw-import{padding:16px}
html.mini-embedded .draw-section-title{display:none}
html.mini-embedded .draw-ai-bar{margin:0 0 12px;padding:0;border:0;min-height:24px;background:none;color:#16805c}
html.mini-embedded .draw-ai-bar span{font-size:12px}
html.mini-embedded .draw-upload{position:relative;min-height:116px;border:1px dashed #9bbbef;background:#f2f7ff;color:#2563eb;border-radius:8px;gap:8px;margin:0 0 14px}
html.mini-embedded .draw-upload b{font-size:17px}
html.mini-embedded .draw-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
html.mini-embedded .draw-import>.mg-fields:empty{display:none}
html.mini-embedded .draw-settings{border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;margin-bottom:12px}
html.mini-embedded .draw-settings summary{padding:14px 0;font-size:14px;font-weight:600;cursor:pointer}
html.mini-embedded .draw-settings summary span{float:right;color:#76849a;font-size:12px;font-weight:400}
html.mini-embedded .draw-settings>.mg-fields{padding-bottom:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
html.mini-embedded .draw-note{font-size:12px;line-height:1.8;color:#7c8899;margin:9px 0}
html.mini-embedded .draw-status{font-size:14px;padding:12px;border-left:3px solid #2563eb;background:#f1f6ff;border-radius:0 6px 6px 0;margin:12px 0;overflow-wrap:anywhere}
html.mini-embedded .draw-file-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
html.mini-embedded .draw-upload-name{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
html.mini-embedded .mg-command{min-height:42px;font-size:14px;padding:8px 12px;border-radius:6px;white-space:normal}
html.mini-embedded .draw-preview{height:160px;background:#f3f5f8;border-radius:6px}
html.mini-embedded .draw-content{padding:0;margin-top:10px;background:#fff}
html.mini-embedded .draw-list-heading{padding:18px 16px 12px}
html.mini-embedded .draw-list-heading h3{font-size:20px}
html.mini-embedded .draw-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 16px 16px;border-bottom:1px solid #edf0f5;background:#fff}
html.mini-embedded .draw-tools .mg-command{font-size:13px;padding:8px 4px}
html.mini-embedded .draw-tools .mg-command svg{width:16px;height:16px;flex-shrink:0}
html.mini-embedded .draw-text{padding:12px 16px;background:#fff}
html.mini-embedded .draw-text summary{font-size:13px;min-height:24px;line-height:24px}
html.mini-embedded .draw-summary{position:static;padding:16px;background:#f8faff;border:0;border-top:1px solid #e6edf7}
html.mini-embedded .draw-summary-cost>strong{font-size:28px;color:#d73842}
html.mini-embedded .draw-rows{padding:12px;grid-template-columns:minmax(0,1fr)}
html.mini-embedded .draw-row{border-radius:8px}
html.mini-embedded .draw-empty{padding:36px 16px}
html.mini-embedded .draw-empty h3{font-size:16px}
html.mini-embedded .draw-settings select,html.mini-embedded .draw-row input,html.mini-embedded .draw-row select{font-size:16px;min-height:42px}
@media(prefers-reduced-motion:reduce){html.mini-embedded .page{animation:none}}
