*{box-sizing:border-box}
html:has(body.preview-maker-page),body.preview-maker-page{min-width:0;min-height:100%;overflow-x:hidden;overscroll-behavior-x:none}
body.preview-maker-page{margin:0;color:#292a31;background:#f5f6f7;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0}
body.preview-maker-page>.fixed-bg-pattern,
body.front-frame-page>.front-app-frame.preview-maker-page>.front-app-content>.fixed-bg-pattern{display:none!important;background:none!important;background-image:none!important}
body.preview-maker-page .front-page-layer{width:100%;min-height:100%;overflow-x:hidden}
button,input,select{font:inherit;letter-spacing:0}
button,a,label,select,input[type="range"],input[type="color"]{-webkit-tap-highlight-color:transparent}
.preview-maker-shell{position:relative;z-index:1;width:min(1160px,calc(100vw - 28px));max-width:calc(100vw - 28px);margin:0 auto;padding:18px 0 126px}
.preview-maker-topbar{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;margin-bottom:14px}
.preview-maker-back{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(73,68,82,.1);border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(76,58,66,.07);color:#504b56;font-size:23px;font-weight:500;line-height:1;text-decoration:none}
.preview-maker-topbar>div{min-width:0}
.preview-maker-topbar>div>span{display:block;margin:0 0 2px;color:#a096a2;font-size:10px;font-weight:800;line-height:1.2}
.preview-maker-topbar h1{margin:0;color:#29272f;font-size:21px;font-weight:900;line-height:1.2;letter-spacing:0}
.preview-maker-local{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 11px;border:1px solid rgba(62,147,124,.13);border-radius:999px;background:rgba(238,250,246,.92);color:#568f7f;font-size:11px;font-weight:800;white-space:nowrap}
.preview-maker-local i{display:block;width:7px;height:7px;border-radius:50%;background:#55b996;box-shadow:0 0 0 4px rgba(85,185,150,.13)}
.preview-maker-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.preview-maker-asset-card{display:grid;align-content:start;gap:8px;min-width:0}
.preview-maker-upload{position:relative;display:flex;aspect-ratio:1/1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px;border:1px solid rgba(68,60,79,.08);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 13px 30px rgba(75,55,65,.07);text-align:center;cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.preview-maker-upload:hover,.preview-maker-upload.dragging{border-color:rgba(107,178,181,.38);box-shadow:0 16px 34px rgba(75,55,65,.1);transform:translateY(-1px)}
.preview-maker-upload input[type="file"]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.preview-maker-upload-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#e7f4f5;box-shadow:inset 0 0 0 1px rgba(104,180,183,.09)}
.preview-maker-upload-icon.frame{background:#f1ebfb;box-shadow:inset 0 0 0 1px rgba(135,104,188,.08)}
.preview-maker-upload-icon.watermark{background:#fff0e8;box-shadow:inset 0 0 0 1px rgba(199,132,96,.09);color:#c18469;font-size:25px;font-weight:500;line-height:1}
.preview-maker-upload-icon img{width:25px;height:25px;opacity:.72}
.preview-maker-upload-icon.frame img{filter:hue-rotate(36deg);opacity:.65}
.preview-maker-upload-copy{display:grid;justify-items:center;gap:3px;width:100%;min-width:0}
.preview-maker-upload-copy small{color:#9a929f;font-size:10px;font-style:normal;font-weight:750;line-height:1.2}
.preview-maker-upload-copy strong{overflow:hidden;color:#36333d;font-size:15px;font-weight:900;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-upload-copy em{overflow:hidden;color:#aaa3ac;font-size:10px;font-style:normal;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-asset-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.preview-maker-asset-actions button{min-width:0;height:34px;padding:0 8px;border:1px solid rgba(84,74,94,.08);border-radius:10px;background:rgba(255,255,255,.9);color:#756d78;font-size:10px;font-weight:850;cursor:pointer}
.preview-maker-asset-actions button:disabled{opacity:.38;cursor:default}
.preview-maker-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px;width:min(760px,100%);margin:0 auto}
.preview-maker-workspace,.preview-maker-controls,.preview-maker-settings-panel,.preview-maker-export-panel{min-width:0;border:1px solid rgba(67,58,78,.08);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 16px 36px rgba(75,55,65,.08)}
.preview-maker-workspace{position:relative;padding:20px}
.preview-maker-control-stack{display:grid;gap:14px;min-width:0}
.preview-maker-controls{padding:0;overflow:hidden}
.preview-maker-settings-panel{padding:20px}
.preview-maker-function-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-width:0;padding:6px;border:1px solid rgba(67,58,78,.08);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 12px 28px rgba(75,55,65,.07)}
.preview-maker-function-tabs button{min-width:0;min-height:38px;padding:0 8px;border:0;border-radius:999px;background:#f3eff4;color:#8d8490;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.preview-maker-function-tabs button:hover{color:#547f82;background:#eaf5f5}
.preview-maker-function-tabs button:active{transform:translateY(1px)}
.preview-maker-function-tabs button.active{background:#fff;color:#403b46;box-shadow:0 5px 14px rgba(71,58,78,.11)}
.preview-maker-function-content{min-width:0;padding:20px;border:1px solid rgba(67,58,78,.08);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 16px 36px rgba(75,55,65,.08)}
.preview-maker-function-content [data-preview-panel][hidden]{display:none!important}
.preview-maker-function-content>.preview-maker-controls{border:0;border-radius:0;background:transparent;box-shadow:none}
.preview-maker-function-content .preview-maker-settings-panel{display:contents;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.preview-maker-function-content .preview-maker-panel-summary,.preview-maker-function-content .preview-maker-settings>summary{display:none}
.preview-maker-function-content .preview-maker-adjustment-body{padding:0}
.preview-maker-function-content .preview-maker-settings{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.preview-maker-function-content .preview-maker-settings[open]{background:transparent;box-shadow:none}
.preview-maker-function-content .preview-maker-setting-body{padding:0}
.preview-maker-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.preview-maker-workspace>.preview-maker-section-head{display:grid;grid-template-columns:minmax(76px,1fr) auto;align-items:start}
.preview-maker-section-head>div{min-width:0}
.preview-maker-section-head>div>span{display:block;margin-bottom:4px;color:#a39aa7;font-size:9px;font-weight:850;line-height:1.2;letter-spacing:0}
.preview-maker-section-head h2{margin:0;color:#302e37;font-size:18px;font-weight:900;line-height:1.25;letter-spacing:0}
.preview-maker-resolution{display:grid;place-items:center;height:28px;min-height:28px;padding:0 10px;border-radius:999px;background:#f5f1f6;color:#8f8792;white-space:nowrap}
.preview-maker-section-head>.preview-maker-canvas-head-actions>.preview-maker-resolution{display:grid;margin:0;font-size:inherit;line-height:normal}
.preview-maker-resolution b{display:block;color:inherit;font-size:10px;font-weight:800;line-height:1;transform:translateY(1px)}
.preview-maker-canvas-head-actions{display:grid;justify-items:end;gap:6px;min-width:0}
.preview-maker-canvas-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.preview-maker-canvas-head-actions button{min-height:26px;padding:0 9px;border:1px solid rgba(86,77,98,.08);border-radius:999px;background:#f7f4f7;color:#77707b;font-size:9px;font-weight:850;cursor:pointer}
.preview-maker-canvas-head-actions .preview-maker-layer-button{background:#eef8f8;border-color:rgba(91,164,168,.16);color:#568f92}
.preview-maker-canvas-head-actions .preview-maker-current-import{background:#fff5ee;border-color:rgba(190,128,108,.13);color:#a66f5d}
.preview-maker-canvas-head-actions button:disabled{opacity:.4;cursor:default}
.preview-maker-current-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.preview-maker-current-actions button{min-width:48px!important;padding:0 9px!important;background:#f4f1f5!important;color:#756d78!important}
.preview-maker-current-actions button:nth-child(3){background:#fff0f0!important;color:#d45f5f!important}
.preview-maker-current-actions button:disabled{opacity:.35}
.preview-maker-confirm-layer{background:#e9f7f3!important;border-color:rgba(75,171,142,.18)!important;color:#4e9d85!important}
.preview-maker-text-action{padding:3px 0;border:0;background:transparent;color:#be806c;font-size:10px;font-weight:800;cursor:pointer}
.preview-maker-stage{position:relative;display:grid;place-items:center;width:100%;min-height:0;aspect-ratio:1/1;padding:16px;overflow:hidden;border:1px solid rgba(80,70,91,.09);border-radius:18px;background-color:#eeedf0;background-image:linear-gradient(45deg,rgba(255,255,255,.72) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.72) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.72) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.72) 75%);background-position:0 0,0 9px,9px -9px,-9px 0;background-size:18px 18px;isolation:isolate}
.preview-maker-stage::after{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 44%,rgba(255,255,255,.74),rgba(255,255,255,0) 62%);content:"";pointer-events:none}
#previewCanvas{display:block;width:100%;height:100%;max-width:100%;max-height:none;aspect-ratio:1/1;border-radius:4px;touch-action:pan-y;cursor:default;user-select:none;-webkit-user-select:none}
#previewCanvas.editing,#previewCanvas.masking{touch-action:none;cursor:grab}
#previewCanvas.viewing{touch-action:none;cursor:grab}
#previewCanvas.dragging{cursor:grabbing}
#previewCanvas.cleanup-brushing{touch-action:none;cursor:none}
#previewCanvas.cleanup-brushing.drawing{cursor:none}
.preview-maker-empty{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:9px;color:#aaa3ad;text-align:center;pointer-events:none}
.preview-maker-empty[hidden]{display:none}
.preview-maker-empty span{display:grid;place-items:center;width:54px;height:54px;border:1px dashed rgba(104,96,111,.25);border-radius:18px;background:rgba(255,255,255,.78);color:#918995;font-size:25px;font-weight:400}
.preview-maker-empty strong{font-size:12px;font-weight:800}
.preview-maker-layer-badge{position:absolute;top:25px;left:25px;display:inline-flex;align-items:center;min-height:27px;padding:0 10px;border-radius:999px;background:rgba(35,37,42,.78);color:#fff;font-size:10px;font-weight:800;pointer-events:none;backdrop-filter:blur(8px)}
.preview-maker-layer-badge[hidden]{display:none}
.preview-maker-current-files{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;margin:12px 2px 0;color:#918995;font-size:10px;font-weight:750;text-align:center}
.preview-maker-current-files span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-current-files i{color:#c5bec8;font-style:normal}
.preview-maker-pager{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;margin-top:10px}
.preview-maker-pager button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(86,77,98,.08);border-radius:12px;background:#f7f4f7;color:#87808a;cursor:pointer}
.preview-maker-pager button span{display:grid;place-items:center;width:100%;height:100%;font-family:Arial,sans-serif;font-size:25px;font-weight:400;line-height:1;transform:translateY(-1px)}
.preview-maker-pager button:disabled{opacity:.35;cursor:default}
.preview-maker-pager strong{color:#5e5963;font-size:12px;font-weight:850;text-align:center}
.preview-maker-inline-layer-tabs{margin-top:12px}
.preview-maker-export-panel{padding:14px}
.preview-maker-export-actions{display:grid;grid-template-columns:1.2fr .8fr;gap:10px}
.preview-maker-export-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 16px;border:0;border-radius:999px;font-size:12px;font-weight:900;cursor:pointer}
.preview-maker-export-actions button:disabled{opacity:.42;cursor:default}
.preview-maker-export-actions button.busy{pointer-events:none}
.preview-maker-primary{background:#24282e;color:#fff;box-shadow:0 10px 22px rgba(36,40,46,.14)}
.preview-maker-primary img{width:17px;height:17px;filter:brightness(0) invert(1)}
.preview-maker-secondary{background:#e6f2f3;color:#527e81}
.preview-maker-segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:999px;background:#f3eff4}
.preview-maker-layer-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.preview-maker-layer-tabs button{font-size:10px}
.preview-maker-segmented button{min-height:36px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:#8d8490;font-size:11px;font-weight:850;cursor:pointer}
.preview-maker-segmented button.active{background:#fff;color:#403b46;box-shadow:0 5px 14px rgba(71,58,78,.09)}
.preview-maker-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.preview-maker-tool-grid button{display:grid;justify-items:center;align-content:center;gap:3px;min-width:0;height:58px;padding:5px;border:1px solid rgba(79,69,91,.08);border-radius:14px;background:#fbfafb;color:#7e7682;cursor:pointer}
.preview-maker-tool-grid button:active{background:#f3eff4;transform:translateY(1px)}
.preview-maker-tool-grid b{height:20px;color:#6daeb1;font-size:19px;font-weight:700;line-height:20px}
.preview-maker-tool-grid span{font-size:9px;font-weight:800;white-space:nowrap}
.preview-maker-range-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:18px 2px 17px}
.preview-maker-range-list label,.preview-maker-range-row{display:grid;gap:7px}
.preview-maker-range-list label>span,.preview-maker-range-row>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#59535e;font-size:11px;font-weight:800}
.preview-maker-range-list output,.preview-maker-range-row output{color:#64aaad;font-size:10px;font-weight:900}
input[type="range"]{--range-progress:0%;width:100%;height:20px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;appearance:none;-webkit-appearance:none}
body.preview-maker-page input[type="range"]:focus,body.preview-maker-page input[type="range"]:focus-visible{border-color:transparent!important;background:transparent!important;outline:none!important;box-shadow:none!important}
input[type="range"]::-webkit-slider-runnable-track{height:4px;border:0;border-radius:999px;background:linear-gradient(to right,#75bcc0 0,#75bcc0 var(--range-progress),#dedbe1 var(--range-progress),#dedbe1 100%)}
input[type="range"]::-webkit-slider-thumb{width:15px;height:15px;margin-top:-5.5px;border:0;border-radius:50%;background:#75bcc0;box-shadow:none;appearance:none;-webkit-appearance:none;transition:transform .1s ease}
input[type="range"]:active::-webkit-slider-thumb{transform:scale(1.08)}
input[type="range"]::-moz-range-track{height:4px;border:0;border-radius:999px;background:#dedbe1}
input[type="range"]::-moz-range-progress{height:4px;border:0;border-radius:999px;background:#75bcc0}
input[type="range"]::-moz-range-thumb{width:15px;height:15px;border:0;border-radius:50%;background:#75bcc0;box-shadow:none;transition:transform .1s ease}
input[type="range"]::-moz-focus-outer{border:0}
input[type="range"]:active::-moz-range-thumb{transform:scale(1.08)}
input[type="range"]:disabled{cursor:not-allowed;opacity:.45}
input[type="range"]:disabled::-webkit-slider-thumb{background:#aaa4ae}
input[type="range"]:disabled::-moz-range-thumb{background:#aaa4ae}
.preview-maker-panel-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:18px 20px;list-style:none;cursor:pointer}
.preview-maker-panel-summary::-webkit-details-marker{display:none}
.preview-maker-panel-summary>span{display:grid;gap:4px}
.preview-maker-panel-summary small{color:#a39aa7;font-size:9px;font-weight:850;line-height:1.2}
.preview-maker-panel-summary strong{color:#302e37;font-size:18px;font-weight:900;line-height:1.25}
.preview-maker-panel-summary>i{color:#a39aa6;font-size:14px;font-style:normal;transition:transform .18s ease}
.preview-maker-adjustment-panel:not([open]) .preview-maker-panel-summary>i{transform:rotate(180deg)}
.preview-maker-adjustment-body{padding:0 20px 20px}
.preview-maker-adjustment-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.preview-maker-adjustment-actions p{margin:0;color:#9d959f;font-size:9px;font-weight:650;line-height:1.45}
.preview-maker-layer-order{display:grid;gap:7px}
.preview-maker-layer-row{display:grid;grid-template-columns:28px 48px minmax(70px,1fr) 32px 32px 44px 44px;align-items:center;gap:7px;min-height:62px;padding:7px;border:1px solid rgba(84,74,94,.08);border-radius:13px;background:rgba(255,255,255,.8)}
.preview-maker-current-layer-row,.preview-maker-layer-row[data-base-layer-select]{cursor:pointer}
.preview-maker-layer-row.selected{border-color:rgba(92,174,177,.38);background:#f2fbfb;box-shadow:0 0 0 2px rgba(92,174,177,.08)}
.preview-maker-mask-layer-row{cursor:pointer}
.preview-maker-mask-thumb i{display:block;width:24px;height:24px;border:2px solid #d49a7c;background:rgba(212,154,124,.12)}
.preview-maker-mask-thumb i.circle,.preview-maker-mask-thumb i.ellipse{border-radius:50%}
.preview-maker-mask-thumb i.ellipse{width:31px}
.preview-maker-mask-thumb i.square{border-radius:3px}
.preview-maker-mask-thumb i.rectangle{width:31px;border-radius:3px}
.preview-maker-brush-thumb i{display:block;width:28px;height:18px;border:2px solid #54aaa8;border-radius:45% 55% 48% 52%;background:repeating-linear-gradient(135deg,rgba(84,170,168,.18) 0 3px,rgba(84,170,168,.5) 3px 5px);transform:rotate(-8deg)}
.preview-maker-layer-row.unavailable{opacity:.42}
.preview-maker-layer-index{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e9f4f4;color:#5f9da0;font-size:10px;font-style:normal;font-weight:900}
.preview-maker-layer-thumb{display:grid!important;place-items:center;width:48px;height:48px;overflow:hidden;border:1px solid rgba(84,74,94,.08);border-radius:11px;background:#f2eff3;color:#918995;font-size:14px;font-weight:900}
.preview-maker-layer-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.preview-maker-layer-row>.preview-maker-layer-copy{display:grid;gap:1px;min-width:0}
.preview-maker-layer-row strong{color:#5d5662;font-size:10px;font-weight:850}
.preview-maker-layer-row small{overflow:hidden;color:#aaa2ac;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-layer-row button{display:grid;place-items:center;width:32px;height:30px;padding:0;border:0;border-radius:9px;background:#f0ecf1;color:#756d78;font-size:16px;cursor:pointer}
.preview-maker-layer-row button.copy{width:44px;background:#e6f5f5;color:#67aeb2;font-size:10px;font-weight:900}
.preview-maker-layer-row button.delete{width:44px;background:#fff0f0;color:#d45f5f;font-size:10px;font-weight:900}
.preview-maker-layer-row button:disabled{opacity:.3;cursor:default}
.preview-maker-settings{overflow:hidden;border:1px solid rgba(74,65,85,.1);border-radius:14px;background:rgba(255,255,255,.56)}
.preview-maker-settings+.preview-maker-settings{margin-top:9px}
.preview-maker-settings[open]{background:rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(75,55,65,.045)}
.preview-maker-settings summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 12px;color:#49444f;font-size:12px;font-weight:900;list-style:none;cursor:pointer;transition:background .18s ease,color .18s ease}
.preview-maker-settings summary:hover{background:#f2f8f8;color:#3c6e71}
.preview-maker-settings summary::-webkit-details-marker{display:none}
.preview-maker-settings summary span{color:#a39aa6;font-size:14px;transition:transform .18s ease}
.preview-maker-settings:not([open]) summary span{transform:rotate(180deg)}
.preview-maker-setting-body{display:grid;gap:14px;padding:2px 12px 16px}
.preview-maker-switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:38px;cursor:pointer}
.preview-maker-switch-row>span{display:grid;gap:2px;min-width:0}
.preview-maker-switch-row strong{color:#5b5560;font-size:11px;font-weight:850;line-height:1.25}
.preview-maker-switch-row small{color:#aaa2ac;font-size:9px;line-height:1.35}
.preview-maker-switch-row input{position:absolute;opacity:0;pointer-events:none}
.preview-maker-switch-row i{position:relative;flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:#ddd8df;box-shadow:inset 0 0 0 1px rgba(68,59,77,.07);transition:background .18s ease}
.preview-maker-switch-row i::after{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(45,39,50,.16);content:"";transition:transform .18s ease}
.preview-maker-switch-row input:checked+i{background:#7bc2c6}
.preview-maker-switch-row input:checked+i::after{transform:translateX(18px)}
.preview-maker-switch-row.is-disabled{cursor:not-allowed;opacity:.4}
.preview-maker-switch-row.is-disabled i{background:#ddd8df}
.preview-maker-switch-row.is-disabled input:checked+i{background:#c9c5cc}
.preview-maker-field-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(112px,1fr) 38px;align-items:center;gap:8px;color:#5b5560;font-size:11px;font-weight:800}
.preview-maker-field-row select,.preview-maker-input-row input{width:100%;height:36px;padding:0 11px;border:1px solid rgba(84,74,94,.1);border-radius:10px;outline:0;background:#f8f6f8;color:#5d5662;font-size:10px;font-weight:750}
.preview-maker-field-row select:focus,.preview-maker-input-row input:focus{border-color:rgba(105,177,180,.5);box-shadow:0 0 0 3px rgba(105,177,180,.1)}
.preview-maker-field-row input[type="color"]{width:38px;height:34px;padding:3px;border:1px solid rgba(84,74,94,.1);border-radius:10px;background:#fff;cursor:pointer}
.preview-maker-field-row input:disabled,.preview-maker-setting-body input:disabled{cursor:not-allowed;opacity:.45}
.preview-maker-input-row{display:grid;gap:6px;color:#5b5560;font-size:10px;font-weight:800}
.preview-maker-watermark-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.preview-maker-watermark-grid label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;color:#756d78;font-size:9px;font-weight:800}
.preview-maker-watermark-grid input[type="range"]{grid-column:1/-1}
.preview-maker-watermark-grid input[type="color"]{grid-column:1/-1;width:100%;height:32px;padding:3px;border:1px solid rgba(84,74,94,.1);border-radius:9px;background:#fff}
.preview-maker-watermark-grid output{color:#65aeb1;font-size:9px;font-weight:900}
.preview-maker-image-watermark-upload{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:11px;min-height:68px;padding:11px;border:1px dashed rgba(105,177,180,.36);border-radius:14px;background:#f5fbfb;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.preview-maker-image-watermark-upload:hover,.preview-maker-image-watermark-upload.dragging{border-color:#6bb4b8;background:#edf8f8}
.preview-maker-image-watermark-upload>input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.preview-maker-watermark-upload-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#dff1f2;color:#5fa9ad;font-size:24px;font-weight:500;line-height:1}
.preview-maker-image-watermark-upload>span:last-child{display:grid;gap:3px;min-width:0}
.preview-maker-image-watermark-upload strong,.preview-maker-image-watermark-upload small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-image-watermark-upload strong{color:#514b56;font-size:11px;font-weight:850}
.preview-maker-image-watermark-upload small{color:#9c949f;font-size:9px;font-weight:600}
.preview-maker-watermark-manage{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px}
.preview-maker-watermark-manage label{display:grid;gap:5px;min-width:0;color:#6b646f;font-size:9px;font-weight:800}
.preview-maker-watermark-manage select{width:100%;height:36px;padding:0 10px;border:1px solid rgba(84,74,94,.1);border-radius:10px;outline:0;background:#f8f6f8;color:#5d5662;font-size:10px;font-weight:750}
.preview-maker-watermark-manage button{height:36px;padding:0 10px;border:0;border-radius:10px;background:#f2eef3;color:#837a86;font-size:9px;font-weight:850;cursor:pointer}
.preview-maker-watermark-manage button:disabled,.preview-maker-watermark-manage select:disabled{cursor:not-allowed;opacity:.45}
.preview-maker-watermark-tip{margin:-2px 0 0;color:#9c949e;font-size:9px;font-weight:650;line-height:1.55}
.preview-maker-watermark-blend-row{grid-template-columns:minmax(90px,1fr) minmax(150px,1.2fr)}
.preview-maker-main-blur-panel{display:grid;gap:11px;margin-top:13px;padding-top:13px;border-top:1px solid rgba(84,74,94,.08)}
.preview-maker-main-blur-panel .preview-maker-mask-head{margin-bottom:0}
.preview-maker-main-blur-panel .preview-maker-field-row{grid-template-columns:minmax(90px,1fr) minmax(150px,1.2fr)}
.preview-maker-main-blur-panel .preview-maker-field-row>span:last-child{display:none}
.preview-maker-cleanup-brush-panel{display:grid;gap:10px;padding-top:13px;border-top:1px solid rgba(84,74,94,.08)}
.preview-maker-cleanup-brush-actions{display:flex;flex:0 0 auto;gap:6px}
.preview-maker-cleanup-brush-panel>.preview-maker-mask-head button{background:#f1edef;color:#837b86}
.preview-maker-cleanup-brush-panel>.preview-maker-mask-head #toggleCleanupBrush{background:#e5f4f4;color:#5fa8ac}
.preview-maker-cleanup-brush-panel>.preview-maker-mask-head #toggleCleanupEraser{background:#f4f1f5;color:#756d78}
.preview-maker-cleanup-brush-panel>.preview-maker-mask-head #toggleCleanupBrush.active,.preview-maker-cleanup-brush-panel>.preview-maker-mask-head #toggleCleanupEraser.active{background:#67b8b6;color:#fff;box-shadow:0 5px 12px rgba(71,158,155,.2)}
.preview-maker-mask-panel{display:grid;gap:10px;padding-top:13px;border-top:1px solid rgba(84,74,94,.08)}
.preview-maker-mask-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.preview-maker-mask-head>span{display:grid;gap:2px;min-width:0}
.preview-maker-mask-head strong{color:#5b5560;font-size:11px;font-weight:900}
.preview-maker-mask-head small{color:#9f97a1;font-size:9px;font-weight:650}
.preview-maker-mask-head button{flex:0 0 auto;height:32px;padding:0 11px;border:0;border-radius:10px;background:#e5f4f4;color:#5fa8ac;font-size:9px;font-weight:900;cursor:pointer}
.preview-maker-mask-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.preview-maker-mask-tools button{display:grid;place-items:center;align-content:center;gap:5px;min-width:0;height:54px;padding:4px;border:1px solid rgba(84,74,94,.08);border-radius:11px;background:#faf8fa;color:#756e79;font-size:8px;font-weight:850;cursor:pointer}
.preview-maker-mask-tools i{display:block;width:18px;height:18px;border:2px solid #6eb4b7;background:rgba(110,180,183,.08)}
.preview-maker-mask-tools i.circle{border-radius:50%}
.preview-maker-mask-tools i.ellipse{width:25px;border-radius:50%}
.preview-maker-mask-tools i.square{border-radius:3px}
.preview-maker-mask-tools i.rectangle{width:25px;border-radius:3px}
.preview-maker-mask-head button:disabled,.preview-maker-mask-tools button:disabled{cursor:not-allowed;opacity:.4}
.preview-maker-mask-manage{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px}
.preview-maker-mask-manage select{min-width:0;height:34px;padding:0 9px;border:1px solid rgba(84,74,94,.1);border-radius:9px;outline:0;background:#f8f6f8;color:#5d5662;font-size:9px;font-weight:750}
.preview-maker-mask-manage button{height:34px;padding:0 10px;border:0;border-radius:9px;background:#f1edef;color:#837b86;font-size:9px;font-weight:850;cursor:pointer}
.preview-maker-mask-manage button:last-child{background:#fff0f0;color:#d16363}
.preview-maker-mask-manage button:disabled,.preview-maker-mask-manage select:disabled{cursor:not-allowed;opacity:.4}
.preview-maker-mask-ranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.preview-maker-mask-ranges label{display:grid;gap:5px}
.preview-maker-mask-ranges label>span{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#756d78;font-size:9px;font-weight:800}
.preview-maker-mask-ranges output{color:#65aeb1;font-size:9px;font-weight:900}
.preview-maker-mask-rotation{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:end;gap:7px}
.preview-maker-mask-rotation>button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:#f0eef1;color:#6aaeb1;font-size:17px;cursor:pointer}
.preview-maker-mask-rotation>button:disabled{cursor:not-allowed;opacity:.4}
.preview-maker-mask-rotation label{display:grid;gap:5px}
.preview-maker-mask-rotation label>span{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#756d78;font-size:9px;font-weight:800}
.preview-maker-mask-rotation output{color:#65aeb1;font-size:9px;font-weight:900}
.preview-maker-setting-body>.preview-maker-range-row{margin-top:1px}
.preview-maker-manager{position:fixed;inset:0;z-index:2147483000;display:grid;align-items:start;justify-items:center;padding:max(8px,env(safe-area-inset-top)) 18px 18px}
.preview-maker-manager[hidden]{display:none}
.preview-maker-manager-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(33,31,37,.48);backdrop-filter:blur(3px)}
.preview-maker-manager-dialog{position:relative;display:grid;grid-template-rows:auto auto minmax(80px,1fr);width:min(620px,100%);max-height:min(82vh,760px);overflow:hidden;border:1px solid rgba(98,173,177,.2);border-radius:18px;background:#f2fbfb;box-shadow:0 24px 70px rgba(30,36,40,.24)}
.preview-maker-manager-dialog header{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;min-height:62px;padding:0 15px;border-bottom:1px solid rgba(91,164,168,.1)}
.preview-maker-manager-dialog header h2{margin:0;color:#253f43;font-size:18px;font-weight:900;text-align:center}
.preview-maker-manager-dialog header button{height:34px;padding:0;border:0;background:transparent;color:#70b6bb;font-size:11px;font-weight:850;cursor:pointer}
.preview-maker-manager-dialog>p{margin:0;padding:12px 18px;color:#79a4a8;font-size:10px;font-weight:650;line-height:1.55}
.preview-maker-manager-list{display:grid;align-content:start;gap:8px;max-height:58vh;padding:0 14px 16px;overflow:auto}
.preview-maker-manager-empty{display:grid;place-items:center;min-height:120px;color:#8baeb1;font-size:11px;font-weight:750}
.preview-maker-manager-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid rgba(91,164,168,.12);border-radius:14px;background:rgba(255,255,255,.76)}
.preview-maker-manager-item img{width:52px;height:52px;object-fit:cover;border-radius:11px;background:#eef2f2}
.preview-maker-manager-copy{display:grid;gap:2px;min-width:0}
.preview-maker-manager-copy strong,.preview-maker-manager-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-maker-manager-copy strong{color:#31565a;font-size:11px;font-weight:900}
.preview-maker-manager-copy small{color:#84a7aa;font-size:9px}
.preview-maker-manager-actions{display:flex;align-items:center;gap:4px}
.preview-maker-manager-actions button{display:grid;place-items:center;min-width:31px;height:31px;padding:0 7px;border:0;border-radius:9px;background:#e6f5f5;color:#67aeb2;font-size:11px;font-weight:900;cursor:pointer}
.preview-maker-manager-actions button.delete{background:#fff0f0;color:#d45f5f}
.preview-maker-manager-actions button:disabled{opacity:.35;cursor:default}
.preview-maker-layer-manager-dialog{grid-template-rows:auto auto minmax(100px,1fr)}
.preview-maker-layer-manager-dialog header>span{display:block;width:64px}
.preview-maker-layer-manager-dialog .preview-maker-layer-order{align-content:start;max-height:62vh;padding:0 14px 16px;overflow:auto}
@media(max-width:899px){.preview-maker-shell{width:min(720px,calc(100vw - 22px));max-width:calc(100vw - 22px)}.preview-maker-layout{grid-template-columns:1fr}.preview-maker-workspace{position:relative;top:auto}}
@media(max-width:599px){.preview-maker-shell{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding-top:9px;padding-bottom:112px}.preview-maker-topbar{grid-template-columns:38px minmax(0,1fr) auto;gap:9px;min-height:52px;margin-bottom:10px}.preview-maker-back{width:36px;height:36px}.preview-maker-topbar h1{font-size:19px}.preview-maker-local{min-height:27px;padding:0 9px;font-size:9px}.preview-maker-assets{gap:7px;margin-bottom:12px}.preview-maker-upload{gap:6px;padding:8px 6px;border-radius:17px}.preview-maker-upload-icon{width:34px;height:34px;border-radius:12px}.preview-maker-upload-icon img{width:19px;height:19px}.preview-maker-upload-icon.watermark{font-size:21px}.preview-maker-upload-copy{gap:2px}.preview-maker-upload-copy small,.preview-maker-upload-copy em{font-size:8px}.preview-maker-upload-copy strong{font-size:11px}.preview-maker-upload-copy em{max-width:88px}.preview-maker-asset-actions{gap:5px}.preview-maker-asset-actions button{height:30px;padding:0 5px;font-size:9px}.preview-maker-layout,.preview-maker-control-stack{gap:12px}.preview-maker-workspace,.preview-maker-controls,.preview-maker-settings-panel,.preview-maker-export-panel{border-radius:20px}.preview-maker-workspace,.preview-maker-settings-panel{padding:14px}.preview-maker-panel-summary{min-height:66px;padding:14px}.preview-maker-panel-summary strong{font-size:16px}.preview-maker-adjustment-body{padding:0 14px 15px}.preview-maker-section-head{display:grid;align-items:start;margin-bottom:11px}.preview-maker-section-head h2{font-size:16px}.preview-maker-canvas-head-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;width:100%;justify-content:stretch}.preview-maker-canvas-head-actions button{padding:0 6px;font-size:8px}.preview-maker-current-actions{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}.preview-maker-current-actions>.preview-maker-current-import,.preview-maker-current-actions>.preview-maker-confirm-layer{min-width:0}.preview-maker-current-action-row{grid-column:1/-1}.preview-maker-resolution{padding:0 7px}.preview-maker-stage{padding:10px;border-radius:15px}.preview-maker-layer-badge{top:18px;left:18px}.preview-maker-export-actions{grid-template-columns:1fr 1fr}.preview-maker-layer-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.preview-maker-layer-tabs button{padding:0 5px;font-size:9px}.preview-maker-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preview-maker-tool-grid button{height:54px;border-radius:13px}.preview-maker-field-row{grid-template-columns:minmax(76px,1fr) minmax(102px,1fr) 36px}.preview-maker-current-files{gap:4px;font-size:8px}.preview-maker-manager{padding:max(8px,env(safe-area-inset-top)) 8px 8px}.preview-maker-manager-dialog{max-height:calc(100dvh - 16px)}.preview-maker-manager-item{grid-template-columns:44px minmax(0,1fr);gap:8px}.preview-maker-manager-item img{width:44px;height:44px}.preview-maker-manager-actions{grid-column:1/-1;justify-content:flex-end}.preview-maker-layer-row{grid-template-columns:26px 42px minmax(54px,1fr) 28px 28px 40px 40px;gap:5px;min-height:58px}.preview-maker-layer-index{width:26px;height:26px}.preview-maker-layer-thumb{width:42px;height:42px}.preview-maker-layer-row button{width:28px;height:30px}.preview-maker-layer-row button.copy,.preview-maker-layer-row button.delete{width:40px}.preview-maker-layer-manager-dialog .preview-maker-layer-order{max-height:calc(100dvh - 146px);padding:0 8px 12px}}
@media(max-width:359px){.preview-maker-assets{gap:5px}.preview-maker-upload{gap:4px;padding:6px 4px}.preview-maker-upload-icon{width:30px;height:30px}.preview-maker-upload-copy em{max-width:78px}.preview-maker-tool-grid{gap:6px}.preview-maker-watermark-grid{grid-template-columns:1fr}.preview-maker-export-actions button{padding:0 10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.preview-maker-upload,.preview-maker-switch-row i,.preview-maker-switch-row i::after,.preview-maker-settings summary span{transition:none}}
@media(max-width:599px){.preview-maker-current-actions{grid-template-columns:minmax(0,1fr)}}
@media(max-width:599px){.preview-maker-workspace>.preview-maker-section-head{grid-template-columns:minmax(58px,1fr) auto;align-items:start;justify-content:stretch;gap:5px}.preview-maker-workspace .preview-maker-canvas-head-actions{grid-template-columns:1fr;width:auto;gap:4px}.preview-maker-workspace .preview-maker-canvas-primary-actions{justify-content:flex-end;width:auto;gap:3px}.preview-maker-workspace .preview-maker-canvas-primary-actions button{flex:none;min-width:0;min-height:24px;padding:0 4px;font-size:8px}.preview-maker-workspace .preview-maker-canvas-primary-actions .preview-maker-resolution{flex:none;min-width:0;height:24px;min-height:24px;padding:0 5px}.preview-maker-workspace .preview-maker-resolution b{font-size:8px}.preview-maker-workspace .preview-maker-current-actions{display:flex;grid-column:auto;justify-content:flex-end;width:auto;gap:3px}.preview-maker-workspace .preview-maker-current-actions button{flex:none;min-width:0!important;min-height:24px;padding:0 5px!important;font-size:8px}.preview-maker-cleanup-brush-panel>.preview-maker-mask-head{align-items:flex-start}.preview-maker-cleanup-brush-actions{display:grid;grid-template-columns:repeat(2,auto);gap:4px}.preview-maker-cleanup-brush-actions #clearWatermarkBrushes{grid-column:1/-1}.preview-maker-cleanup-brush-panel>.preview-maker-mask-head button{height:28px;padding:0 7px}}
@media(max-width:599px){.preview-maker-function-tabs{gap:4px;padding:5px;border-radius:20px}.preview-maker-function-tabs button{min-height:34px;padding:0 4px;font-size:9px}.preview-maker-function-content{padding:14px;border-radius:20px}.preview-maker-function-content .preview-maker-adjustment-body{padding:0}}

body.preview-maker-page,
body.front-frame-page > .front-app-frame.preview-maker-page,
body.front-frame-page > .front-app-frame.preview-maker-page > .front-app-content{background:#f5f6f7!important;background-image:none!important}
body.preview-maker-page .fixed-bg-pattern{display:none!important;background:none!important;background-image:none!important}
