:root{color:#18202f;font-synthesis:none;text-rendering:optimizelegibility;--panel-bg:#ffffffeb;--panel-border:#dce2ec;--text-soft:#687385;--accent:#166a5f;--accent-soft:#dff4ef;--shadow:0 10px 30px #1018280f;background:linear-gradient(#f5f7fb 0%,#eef3fb 100%);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,summary{font:inherit}button,.button-like{color:#18202f;cursor:pointer;background:#fff;border:1px solid #cfd6e4;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:700;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s;display:inline-flex}button:hover,.button-like:hover{border-color:#aeb9cb;transform:translateY(-1px);box-shadow:0 4px 14px #0f172a14}button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none;transform:none}.button-primary{color:#fff;background:linear-gradient(#177767 0%,#166a5f 100%);border-color:#166a5f}.app-shell{min-height:100vh;padding:28px}.app-header{justify-content:space-between;align-items:center;gap:20px;max-width:1480px;margin:0 auto 20px;display:flex}.app-header h1{margin:0;font-size:32px;line-height:1.1}.eyebrow{color:#6b7280;letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:800}.status-pill{color:#5d4a00;background:#fff8dc;border:1px solid #e7d58b;border-radius:999px;max-width:520px;padding:10px 14px;font-size:14px}.layout{grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:22px;max-width:1480px;margin:0 auto;display:grid}.sidebar{align-content:start;gap:16px;display:grid}.panel,.workspace,.export-panel,.live-editor-panel,.callout-card,.details-card{background:var(--panel-bg);border:1px solid var(--panel-border);box-shadow:var(--shadow);border-radius:18px}.panel,.workspace{gap:16px;padding:18px;display:grid}.panel__header,.workspace__topbar,.workspace__hero,.section-title-row{justify-content:space-between;align-items:center;gap:12px;display:flex}h2,h3{margin:0}h2{font-size:19px}h3{font-size:15px}.file-drop{cursor:pointer;text-align:center;border:1px dashed #b6c2d4;border-radius:16px;place-content:center;gap:8px;min-height:120px;padding:20px;transition:border-color .16s,background .16s;display:grid}.file-drop:hover{background:#f9fbff;border-color:#8ea0bc}.file-drop input,.button-like input{display:none}.file-drop__title{font-weight:800}.file-drop__hint,.muted,.workspace__hero p,.hint-text,.workspace__topbar p{color:var(--text-soft);margin:0}.field{gap:7px;display:grid}.field span,.segmented-group>span,.slider-field__top span{color:#465266;font-size:13px;font-weight:800}.field input,.field select{background:#fff;border:1px solid #cfd6e4;border-radius:12px;width:100%;min-height:42px;padding:0 12px}.field--wide{grid-column:1/-1}.settings-grid,.preset-actions,.export-grid{gap:12px;display:grid}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.segmented-group{gap:10px;display:grid}.segmented{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.segmented--wide{grid-template-columns:repeat(4,minmax(0,1fr))}.segmented button{min-width:0;padding:0 8px}.segmented .is-active,.profile-grid .is-active-profile,.profile-card.is-active-profile{background:var(--accent-soft);color:#0a4f47;border-color:#7bc9bb}.workspace{min-width:0;display:block}.workspace__stack{gap:16px;display:grid}.workspace__hero{margin-bottom:16px}.actions,.preset-row,.quick-actions-grid{flex-wrap:wrap;gap:10px;display:flex}.actions--hero{justify-content:flex-end}.preview-card{padding:14px}.preview-stage{aspect-ratio:16/10;background-color:#f9fbfe;background-image:linear-gradient(45deg,#e8edf5 25%,#0000 25%),linear-gradient(-45deg,#e8edf5 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e8edf5 75%),linear-gradient(-45deg,#0000 75%,#e8edf5 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-repeat:repeat,repeat,repeat,repeat;background-size:20px 20px;background-attachment:scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;border:1px solid #dce2ec;border-radius:16px;justify-content:center;align-items:center;display:flex;overflow:hidden}.preview-stage--large{min-height:420px}.preview-stage img{object-fit:contain;width:100%;height:100%}.empty-preview{color:#687385;background:#fffc;border:1px solid #dce2ec;border-radius:16px;align-items:center;min-height:120px;padding:18px;display:flex}.progress{grid-template-columns:minmax(130px,1fr) minmax(180px,2fr) auto;align-items:center;gap:10px;display:grid}.progress progress{width:100%;height:12px}.design-strip{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;display:grid}.design-strip figure{background:#fff;border:1px solid #dce2ec;border-radius:14px;min-width:0;margin:0;overflow:hidden}.design-strip img{aspect-ratio:1;object-fit:contain;background:#f5f7fb;width:100%;display:block}.design-strip figcaption{color:#465266;text-overflow:ellipsis;white-space:nowrap;padding:8px;font-size:12px;overflow:hidden}.photopea-shell{opacity:.01;pointer-events:none;z-index:3;width:400px;height:360px;position:fixed;top:0;right:-420px}.photopea-shell iframe{border:1px solid #b7c1d1;border-radius:8px;width:100%;height:100%}.preset-manager,.compact-panel{background:#fcfdff;border:1px solid #edf1f7;border-radius:16px;gap:12px;padding:14px;display:grid}.preset-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.export-panel,.live-editor-panel{gap:12px;padding:16px;display:grid}.export-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.export-grid--simple{grid-template-columns:repeat(3,minmax(0,1fr))}.small-text{font-size:12px}.error-list,.warning-list{border-radius:16px;padding:14px}.error-list{color:#7a2014;background:#fff3f0;border:1px solid #ffbcad}.warning-list{color:#714f00;background:#fff9e8;border:1px solid #edd899}.error-list summary,.warning-list summary,.details-card summary{cursor:pointer;font-weight:800}.error-list p,.warning-list p{margin:8px 0 0}.live-editor-panel{border:1px solid #dce2ec}.live-editor{touch-action:none;background-color:#fff;background-image:linear-gradient(45deg,#edf2f7 25%,#0000 25%),linear-gradient(-45deg,#edf2f7 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#edf2f7 75%),linear-gradient(-45deg,#0000 75%,#edf2f7 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-repeat:repeat,repeat,repeat,repeat;background-size:20px 20px;background-attachment:scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;border:1px solid #cfd6e4;border-radius:16px;min-height:260px;position:relative;overflow:hidden}.live-editor.has-guides:before,.live-editor.has-guides:after{content:"";pointer-events:none;z-index:1;position:absolute}.live-editor.has-guides:before{border-left:1px dashed #166a5f73;height:100%;top:0;left:50%}.live-editor.has-guides:after{border-top:1px dashed #166a5f73;width:100%;top:50%;left:0}.live-editor__doc-label{color:#fff;z-index:4;background:#111827b8;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;position:absolute;top:10px;left:10px}.live-editor__area{color:#991b1b;cursor:grab;z-index:2;background:#ff00000a;border:2px solid #ef4444;font-size:12px;font-weight:900;position:absolute}.live-editor__area span{background:#ffffffd9;border-radius:999px;padding:3px 7px;position:absolute;top:6px;left:6px}.live-editor__handle{cursor:nwse-resize;background:#ef4444;border:2px solid #fff;border-radius:50%;width:16px;height:16px;position:absolute;bottom:-8px;right:-8px}.live-editor__design-box{cursor:move;z-index:3;border:2px dashed #0f766e;justify-content:center;align-items:center;min-width:10px;min-height:10px;display:flex;position:absolute;overflow:visible}.live-editor__design-box img{pointer-events:none;transform-origin:50%;width:100%;height:100%}.callout-card{background:linear-gradient(#fff 0%,#f8fcfb 100%);gap:8px;padding:14px;display:grid}.callout-card__top{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.callout-badge,.tiny-status{color:#465266;background:#eef2ff;border:1px solid #d7ddf8;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.slider-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.slider-field{gap:8px;display:grid}.slider-field__top{justify-content:space-between;align-items:center;display:flex}.slider-field input[type=range]{accent-color:var(--accent);width:100%}.details-card{overflow:hidden}.details-card summary{padding:16px 18px;list-style:none}.details-card summary::-webkit-details-marker{display:none}.details-card__content{border-top:1px solid #edf1f7;gap:14px;padding:0 18px 18px;display:grid}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.profile-grid--cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.profile-grid--compact{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.profile-card{text-align:left;place-items:flex-start start;gap:8px;height:100%;padding:14px;display:grid}.profile-card__icon{font-size:20px}.profile-card__name{font-weight:800}.profile-card small{color:var(--text-soft);font-size:12px;font-weight:500;line-height:1.35}.export-panel--nested{box-shadow:none;background:#fcfdff;border:1px solid #edf1f7;border-radius:16px}.history-list{gap:8px;display:grid}.history-list p{background:#f8fafc;border:1px solid #e6ebf3;border-radius:12px;margin:0;padding:10px 12px}@media (width<=1180px){.layout{grid-template-columns:1fr}.export-grid,.export-grid--simple{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=920px){.app-shell{padding:16px}.app-header,.workspace__hero,.panel__header,.section-title-row{flex-direction:column;align-items:stretch}.actions--hero{justify-content:stretch}.photopea-shell{width:400px;height:360px;position:fixed}}@media (width<=680px){.settings-grid,.segmented,.progress,.preset-actions,.slider-group,.quick-actions-grid,.export-grid,.export-grid--simple{grid-template-columns:1fr}.status-pill{max-width:none}}.header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.preview-gallery{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;display:grid}.preview-gallery figure{background:#fff;border:1px solid #dce2ec;border-radius:14px;margin:0;overflow:hidden}.preview-gallery img{aspect-ratio:1;object-fit:contain;background:#f7f9fd;width:100%;display:block}.preview-gallery figcaption{color:#465266;text-overflow:ellipsis;white-space:nowrap;padding:8px;font-size:12px;overflow:hidden}.design-order-actions{border-top:1px solid #eef2f7;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;display:grid}.design-order-actions button{min-height:30px;padding:0 8px}[data-theme=dark]{color:#edf2ff;--panel-bg:#141b2af0;--panel-border:#2d384c;--text-soft:#a8b3c6;--accent:#4fd1bd;--accent-soft:#4fd1bd2e;--shadow:0 14px 34px #00000047;background:#0c111d}[data-theme=dark] body,[data-theme=dark] .app-shell{background:radial-gradient(circle at 30% 0,#172036 0%,#0c111d 44%,#070b13 100%)}[data-theme=dark] button,[data-theme=dark] .button-like,[data-theme=dark] .field input,[data-theme=dark] .field select{color:#edf2ff;background:#111827;border-color:#334155}[data-theme=dark] button:hover,[data-theme=dark] .button-like:hover{border-color:#52627a}[data-theme=dark] .button-primary{color:#fff;background:linear-gradient(#18977f 0%,#0f766e 100%);border-color:#20a993}[data-theme=dark] .file-drop,[data-theme=dark] .compact-panel,[data-theme=dark] .preset-manager,[data-theme=dark] .export-panel--nested,[data-theme=dark] .callout-card,[data-theme=dark] .preview-gallery figure,[data-theme=dark] .design-strip figure,[data-theme=dark] .history-list p{background:#111827;border-color:#2d384c}[data-theme=dark] .file-drop:hover{background:#141f32;border-color:#4b5d78}[data-theme=dark] .preview-stage,[data-theme=dark] .live-editor,[data-theme=dark] .design-strip img,[data-theme=dark] .preview-gallery img{background-color:#0f172a}[data-theme=dark] .profile-card small,[data-theme=dark] .muted,[data-theme=dark] .workspace__hero p,[data-theme=dark] .hint-text,[data-theme=dark] .field span,[data-theme=dark] .slider-field__top span{color:var(--text-soft)}[data-theme=dark] .status-pill{color:#fde68a;background:#fbbf241f;border-color:#fbbf2459}[data-theme=dark] .details-card__content,[data-theme=dark] .design-order-actions{border-color:#2d384c}[data-theme=dark] .live-editor__area span,[data-theme=dark] .preview-gallery figcaption,[data-theme=dark] .design-strip figcaption{color:#dbeafe}@media (width<=920px){.header-actions{justify-content:stretch}}.settings-panel-v14 .slider-group--stacked{grid-template-columns:1fr}.slot-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.slot-summary-item{background:#0f172a08;border:1px solid #e5ebf5;border-radius:14px;gap:6px;padding:12px;display:grid}.slot-summary-item span{color:var(--text-soft);font-size:12px;font-weight:700}.slot-summary-item strong{font-size:14px}.live-editor-panel--mockcity{background:linear-gradient(#fffffff0 0%,#f7fafff0 100%)}.live-editor--mockcity{background:linear-gradient(45deg,#adbacc29 25%,#0000 25%),linear-gradient(-45deg,#adbacc29 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#adbacc29 75%),#f8fbff linear-gradient(-45deg,#0000 75%,#adbacc29 75%)}.live-editor--with-mockup{overflow:hidden}.live-editor__mockup-image{object-fit:cover;z-index:0;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.live-editor--with-mockup:after{content:"";pointer-events:none;z-index:1;background:linear-gradient(#0f172a05,#0f172a14);position:absolute;inset:0}.live-editor__slot{z-index:2;background:#19d3b214;border:2px solid #14b8a6f2;position:absolute;box-shadow:inset 0 0 0 1px #ffffff6b}.live-editor__slot span{color:#f8fafc;background:#0f172ac7;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;position:absolute;top:8px;left:8px}.live-editor__design-box--mockcity{cursor:move;transform-origin:50%;border:2px solid #14b8a6;border-radius:4px;overflow:visible;box-shadow:0 10px 24px #0f172a2e}.live-editor__design-box--mockcity:before{content:"";pointer-events:none;border:1px dashed #ffffffbf;position:absolute;inset:0}.live-editor__design-box--mockcity img{width:100%;height:100%;display:block}.live-editor__scale-handle,.live-editor__rotate-handle{color:#fff;z-index:5;background:#14b8a6;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;min-width:0;min-height:0;padding:0;font-size:14px;font-weight:900;display:inline-flex;position:absolute}.live-editor__scale-handle{cursor:nwse-resize;width:20px;height:20px;bottom:-10px;right:-10px}.live-editor__rotate-handle{cursor:grab;width:28px;height:28px;top:-42px;left:50%;transform:translate(-50%)}.live-editor__rotate-handle:after{content:"";background:#14b8a6e6;width:2px;height:14px;position:absolute;top:26px;left:50%;transform:translate(-50%)}.editor-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.smart-object-candidates ol{gap:10px;margin:12px 0 0;padding-left:18px;display:grid}.smart-object-candidates li{gap:4px;display:grid}.smart-object-candidates small{color:var(--text-soft)}[data-theme=dark] .slot-summary-item{background:#0f172a99;border-color:#2d384c}[data-theme=dark] .live-editor-panel--mockcity{background:linear-gradient(#0f172af5 0%,#111827f5 100%)}[data-theme=dark] .live-editor__slot span{background:#020617e0}@media (width<=920px){.slot-summary-grid{grid-template-columns:1fr}}.workspace-v16 .asset-strip-panel--primary{background:linear-gradient(#fffffff5,#f2fbf8f0);border-color:#c6eadf}.mockup-strip{flex-wrap:wrap;gap:10px;display:flex}.mockup-chip{text-overflow:ellipsis;white-space:nowrap;max-width:220px;overflow:hidden}.mockup-chip.is-active-asset,.design-strip figure.is-active-asset{box-shadow:0 0 0 3px #0f766e29, var(--shadow);border-color:#0f766e}.design-strip--selectable{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))}.design-strip--selectable figure{position:relative}.asset-thumb-button{box-shadow:none;color:inherit;text-align:left;background:0 0;border:0;border-radius:14px;width:100%;min-height:0;padding:0;display:block}.asset-thumb-button:hover{box-shadow:none;border:0;transform:none}.design-order-actions{justify-content:center;gap:6px;padding:0 8px 8px;display:flex}.design-order-actions button{border-radius:999px;min-height:28px;padding:0 10px;font-size:12px}.workspace-v16 .details-card[open]>summary{color:#0f766e}[data-theme=dark] .workspace-v16 .asset-strip-panel--primary{background:linear-gradient(#1f2937f5,#12312eb8);border-color:#1f766d}[data-theme=dark] .mockup-chip.is-active-asset,[data-theme=dark] .design-strip figure.is-active-asset{box-shadow:0 0 0 3px #54d6c62e, var(--shadow);border-color:#54d6c6}.auto-preview-toggle{color:#0f5149;cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fcfb;border:1px solid #b9d9d1;border-radius:999px;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-size:14px;font-weight:800;display:inline-flex}.auto-preview-toggle input{accent-color:var(--accent);width:16px;height:16px;margin:0}.auto-preview-toggle:has(input:disabled){cursor:not-allowed;opacity:.55}[data-theme=dark] .auto-preview-toggle{color:#bcebdd;background:#10241f;border-color:#24544b}.live-editor__cover-clip{pointer-events:none;z-index:3;position:absolute;overflow:hidden}.live-editor__cover-design{transform-origin:50%;position:absolute}.live-editor__cover-design img{object-fit:fill;width:100%;height:100%;display:block}.live-editor__perspective-canvas,.live-editor__perspective-outline{pointer-events:none;z-index:3;width:100%;height:100%;position:absolute;inset:0}.live-editor__perspective-canvas{object-fit:fill}.live-editor__perspective-outline polygon{fill:#14b8a614;stroke:#14b8a6;stroke-dasharray:2 1.2;stroke-width:.7px;vector-effect:non-scaling-stroke}.live-editor__perspective-handle{cursor:move;z-index:6;background:#14b8a6;border:2px solid #fff;border-radius:999px;width:22px;min-width:0;height:22px;min-height:0;padding:0;position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0f172a59}.live-editor__perspective-handle:hover,.live-editor__perspective-handle:focus-visible{outline-offset:2px;outline:3px solid #14b8a647}
