.editor-setting{margin:18px 0}.recommend-tag{font-size:11px;background:#fff0b6;color:#714a14;border-radius:20px;padding:3px 7px;margin-left:6px}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.segmented button,.editor-select{border:1px solid #e3cbd7;background:#fff;color:#5f4355;border-radius:11px;min-height:38px;font:700 13px "Microsoft YaHei",sans-serif;cursor:pointer}.segmented button.selected{background:#ffd260;border-color:#c78c25;color:#43231d;box-shadow:inset 0 -2px 0 #e5a72e}.editor-select{width:100%;padding:0 12px}.setting-note{display:block;color:#977f90;font-size:11px;margin-top:7px}.mode-selector{grid-template-columns:1fr 1fr}.controls input[type=range]{accent-color:#e2a02e}.controls{min-width:300px}@media(max-width:820px){.controls{min-width:0}}
.workspace{grid-template-columns:310px minmax(0,1fr)}.canvas-wrap{height:760px;padding:14px;overflow:hidden}.canvas-wrap canvas{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}@media(max-width:760px){.workspace{grid-template-columns:1fr}.canvas-wrap{height:460px}}
.canvas-wrap{position:relative}.canvas-wrap canvas{cursor:crosshair}.pixel-tooltip{position:absolute;z-index:3;display:grid;grid-template-columns:25px auto;align-items:center;column-gap:7px;min-width:154px;padding:8px 10px;border:1px solid #4c5966;border-radius:10px;background:#fffdfb;box-shadow:0 7px 18px #351a3730;color:#283846;font-size:12px;pointer-events:none}.pixel-tooltip span{grid-row:1/3;width:25px;height:25px;border:1px solid #0002;border-radius:6px}.pixel-tooltip b{font-size:13px}.pixel-tooltip small{color:#687888;font-size:10px}
.empty-illustration{width:auto;height:auto;background:transparent;box-shadow:none;border-radius:0;font-size:27px}
.pixel-tooltip[hidden]{display:none!important}
.editor-page{position:fixed;z-index:112;inset:0;display:flex;flex-direction:column;min-height:100svh;background:#fff8f2;overflow:auto}.editor-page[hidden]{display:none}.editor-page__header{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;min-height:52px;padding:5px 20px;border-bottom:1px solid #ead9df;background:#fffaf0;text-align:center}.editor-page__header button,.editor-page__header a{display:grid;place-items:center;width:34px;height:34px;border:1px solid #79596b;border-radius:50%;background:#fff;color:#422c3a;text-decoration:none;font-size:21px;line-height:1}.editor-page__header a{justify-self:end;font-size:18px}.editor-page__header b{font-size:14px}.editor-page__stage{width:min(1160px,100%);margin:0 auto;padding:14px 20px 28px}.editor-page .workspace{margin:0;min-height:620px}.editor-page .result-section{margin:14px 0 0}.editor-active{overflow:hidden}.editor-active .page-shell,.editor-active>.mobile-nav{display:none}@media(max-width:760px){.editor-page__header{min-height:45px;padding:4px 10px}.editor-page__header button,.editor-page__header a{width:31px;height:31px;font-size:19px}.editor-page__header a{font-size:17px}.editor-page__stage{padding:7px 10px 18px}body.editor-active .editor-page .workspace{display:flex!important;height:auto;min-height:0;margin:0;flex-direction:column;overflow:visible}body.editor-active .editor-page .result-section{display:block!important}.editor-page .preview-area{order:0;display:flex;height:auto;flex-direction:column}.editor-page .controls{order:1;display:block;height:auto;min-height:0;margin-top:10px;padding:15px;border:1px solid #ead9df;border-radius:16px}.editor-page .canvas-wrap{height:clamp(340px,48svh,480px);padding:7px}.editor-page .preview-toolbar,.editor-page .preview-footer{height:40px}.editor-page .result-section{margin:10px 0 0;padding:15px 12px}.editor-page .result-actions{display:none}.editor-page .materials-summary{margin:12px 0}.editor-page .palette-list{grid-template-columns:repeat(2,1fr)}}
.editor-page .controls>.panel-heading:first-child,.editor-page .controls>.upload-zone,.editor-page .controls>.ai-maker,.editor-page .controls>.divider,.editor-page #generateBtn{display:none!important}.editor-page .controls>.panel-heading:nth-of-type(2) .step{display:none}.editor-page .controls>.panel-heading:nth-of-type(2){margin-bottom:4px}.editor-page .controls>.panel-heading:nth-of-type(2) h2{font-size:17px}
.editor-page .controls>.panel-heading:has(+.editor-setting){display:none!important}
.compact-editor-settings{display:none}
.white-background-toggle{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:9px 0 0;padding:8px 10px;border:1px solid #e3cbd7;border-radius:10px;background:#fff;cursor:pointer;color:#5f4355;font:700 12px "Microsoft YaHei",sans-serif}.white-background-toggle input{position:absolute;opacity:0}.white-background-toggle span{display:flex;align-items:center;gap:5px}.white-background-toggle span:before{content:'○';display:grid;place-items:center;width:17px;height:17px;border:1px solid #d5bdc9;border-radius:50%;color:#fff;font:13px/1 Arial}.white-background-toggle input:checked+span:before{content:'✓';border-color:#bf788f;background:#dc7399}.white-background-toggle small{font-size:10px;color:#9a8592;font-weight:500}
.canvas-wrap canvas.transparent-background{background:transparent}
.editor-setting-dialog{width:min(100vw,520px);max-width:none;margin:auto 0 0;padding:0;border:0;border-radius:18px 18px 0 0;background:transparent;box-shadow:0 -10px 35px #24101f22}.editor-setting-dialog::backdrop{background:#1c1823a8}.editor-setting-sheet{position:relative;padding:22px 18px max(16px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fffdfb}.editor-setting-sheet h2{margin:0 0 18px;font-size:17px}.editor-setting-options{display:grid;gap:10px}.editor-setting-options button{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 12px;border:1px solid #e1e7ed;border-radius:12px;background:#fff;color:#33404d;font:700 14px "Microsoft YaHei",sans-serif;text-align:left}.editor-setting-options button i{display:block;width:17px;height:17px;border:2px solid #cdd7e2;border-radius:50%}.editor-setting-options button.selected{border-color:#8b6070;background:#fff8ed}.editor-setting-options button.selected i{border-color:#8b6070;box-shadow:inset 0 0 0 4px #ffd260}.editor-setting-sheet .primary-button{width:100%;min-height:46px;margin-top:18px}
.color-tier-options{display:block}.color-setting-label{margin-bottom:9px;color:#596678;font-size:12px;font-weight:800}.color-brand-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.editor-setting-options .color-brand-options button,.editor-setting-options .color-tier-grid button{display:block;min-height:34px;padding:0 5px;border:1px solid #dce3ec;border-radius:10px;background:#fff;color:#566378;font-size:11px;text-align:center}.editor-setting-options .color-brand-options button.selected,.editor-setting-options .color-tier-grid button.selected{border-color:#9e672b;background:#ffd260;color:#402a1e;box-shadow:inset 0 -1px 0 #e3a32b}.editor-setting-options .color-brand-options button:disabled,.editor-setting-options .color-tier-grid button:disabled{color:#98a3b2;background:#fbfcfd;opacity:.7;cursor:not-allowed}.color-brand-options button:nth-child(5){grid-column:1}.color-tier-divider{height:1px;margin:14px 0;border:0;background:#eef0f3}.color-tier-heading{display:grid;gap:4px;margin-bottom:10px}.color-tier-heading b{font-size:12px;color:#596678}.color-tier-heading small{color:#9ca8b7;font-size:10px}.color-tier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media(max-width:760px){.editor-page .compact-editor-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:6px 0 2px;padding:5px;border:1px solid #e0e7ed;border-radius:8px;background:#f7fafc}.editor-page .compact-editor-settings button{display:flex;align-items:center;justify-content:center;gap:3px;min-height:26px;padding:2px;border:0;background:transparent;color:#697688;font:10px/1 "Microsoft YaHei",sans-serif;white-space:nowrap}.editor-page .compact-editor-settings b{color:#3f2a39;font-size:10px;line-height:1}.editor-page .compact-editor-settings .shortcut-caret{position:relative;display:grid;flex:0 0 12px;place-items:center;width:12px;height:12px;padding:0;border:1px solid #d3dbe3;border-radius:50%;box-sizing:border-box;color:#697688;font-size:0;line-height:0;transform:none}.editor-page .compact-editor-settings .shortcut-caret::after{content:'';width:4px;height:4px;margin-top:-2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}.editor-page .editor-setting:not(:has(#gridSize)){display:none!important}}
@media(max-width:760px){.editor-page .white-background-toggle{margin:5px 0 0;min-height:30px;padding:5px 8px;border-radius:8px;font-size:10px}.editor-page .white-background-toggle small{font-size:9px}.editor-page .white-background-toggle span:before{width:14px;height:14px;font-size:10px}}
@media(max-width:760px){.editor-page{overflow:hidden}.editor-page__stage{display:flex;height:calc(100svh - 45px);flex-direction:column;padding:5px 9px 7px;overflow:hidden}.editor-page .workspace{flex:none!important}.editor-page .preview-toolbar{display:none}.editor-page .preview-footer{height:33px;padding:0 8px;border-radius:0 0 13px 13px;font-size:10px}.editor-page .preview-footer span:first-child{display:none}.editor-page .canvas-wrap{height:clamp(285px,39svh,350px);padding:5px;border:1px solid #ead9df;border-radius:13px 13px 0 0;background-size:12px 12px}.editor-page .controls{display:block!important;margin-top:7px;padding:9px 11px;border-radius:13px}.editor-page .controls>.panel-heading:nth-of-type(2){display:none}.editor-page .editor-setting{margin:7px 0}.editor-page .editor-setting:has(#gridSize){display:grid;grid-template-columns:1fr auto;column-gap:9px;align-items:center}.editor-page .editor-setting:has(#gridSize) .control-label{margin:0;font-size:12px}.editor-page .editor-setting:has(#gridSize) input{grid-column:1/-1;margin:3px 0}.editor-page .range-ends{display:none}.editor-page .control-label{margin:0 0 5px;font-size:11px}.editor-page .segmented{gap:4px}.editor-page .segmented button,.editor-page .editor-select{min-height:30px;font-size:10px}.editor-page .setting-note{display:none}.editor-page .switch-row{display:none}.editor-page .result-section{display:flex!important;min-height:0;flex:1;flex-direction:column;margin:7px 0 0;padding:8px 9px;border-radius:13px;overflow:hidden}.editor-page .result-title{flex:none}.editor-page .result-title .eyebrow{display:none}.editor-page .result-title h2{margin:0;font-size:12px}.editor-page .materials-summary{display:none}.editor-page .palette-list{display:grid;min-height:0;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:6px;overflow:auto}.editor-page .palette-item{display:block;min-height:0;padding:4px;border-radius:5px;text-align:center}.editor-page .palette-item .swatch{display:block;width:100%;height:22px;margin:0;border-radius:4px}.editor-page .palette-item b{display:block;margin-top:2px;font-size:8px}.editor-page .palette-item small{display:none}.editor-page .result-actions{display:flex;flex:none;gap:7px;margin-top:7px}.editor-page .result-actions #clearHighlight{display:none}.editor-page .result-actions #downloadBtn{width:100%;min-height:38px;margin:0;border-radius:9px;font-size:13px}.editor-page .result-actions #downloadBtn::after{content:' ↓';margin-left:5px}.editor-page .palette-list::-webkit-scrollbar{width:3px}.editor-page .palette-list::-webkit-scrollbar-thumb{border-radius:3px;background:#d8a2b6}}

/* 点击 AI 推荐即可恢复当前图片的建议格数。 */
.recommend-tag[role="button"] { cursor:pointer; user-select:none; }
.recommend-tag.is-restorable { border:1px solid #c78c25; box-shadow:0 2px 0 #e5a72e; }
/* When a high-restoration pattern uses many colors, the color card must not be clipped.
   Let the editor page scroll naturally instead of trapping touch scrolling in the card. */
@media(max-width:760px){.editor-page{overflow-y:auto;overscroll-behavior-y:contain}.editor-page__stage{display:block;height:auto;min-height:calc(100svh - 45px);overflow:visible}.editor-page .result-section{display:block!important;min-height:0;overflow:visible}.editor-page .palette-list{overflow:visible;min-height:0}.editor-page .result-actions{position:sticky;bottom:0;padding-top:7px;background:#fffdfb}}
@media(max-width:760px){body{background:#fff7f4}.page-shell{padding:0 10px}.site-header{height:auto;min-height:62px;padding:10px 2px;gap:9px;align-items:center}.brand{font-size:17px;gap:7px}.brand-mark{grid-template-columns:repeat(2,7px);gap:2px;padding:6px}.brand-mark i{height:7px}.brand small{display:none}.header-actions{margin-left:auto;gap:5px}.header-actions .login-button,.header-actions .credit-button{min-height:36px;padding:7px 8px;border-radius:9px;font-size:11px;white-space:nowrap}.header-actions .login-button[hidden]{display:none}.hero{margin:0 -10px;padding:22px 20px 24px;border-radius:0;min-height:0}.hero h1{font-size:31px;letter-spacing:-1px}.hero-copy{margin:10px 0;font-size:13px;line-height:1.65}.hero-pills span{font-size:10px;padding:5px 8px}.workspace{margin-top:12px;border-radius:17px}.controls{padding:18px 15px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:11px}.upload-zone{min-height:132px;margin-top:14px}.upload-zone strong{font-size:13px}.ai-maker{padding:12px}.ai-maker textarea{min-height:72px;font-size:13px}.divider{margin:20px 0}.editor-setting{margin:16px 0}.control-label{margin:17px 0 8px}.segmented button,.editor-select{min-height:43px;font-size:12px}.switch-row{min-height:42px;margin-top:14px}.switch-row i{transform:scale(1.08);transform-origin:right center}.primary-button{min-height:46px;margin-top:20px;font-size:15px}.preview-toolbar,.preview-footer{height:44px;padding:0 12px;font-size:11px}.canvas-wrap{height:clamp(390px,62svh,540px);padding:8px;background-size:15px 15px}.preview-footer span:first-child{display:none}.pixel-tooltip{min-width:142px;padding:7px 8px}.result-section{margin:18px 0;padding:19px 13px;border-radius:17px}.result-title h2{font-size:18px}.result-actions{gap:7px}.result-actions button{min-height:42px;padding:9px;font-size:11px}.materials-summary{margin:17px 0}.materials-summary div{padding:12px 9px}.materials-summary strong{font-size:19px}.materials-summary span{font-size:10px}.palette-list{grid-template-columns:1fr;gap:8px}.palette-item{min-height:52px;padding:9px}.how-it-works{padding:32px 8px}.how-it-works h2{font-size:20px}.crop-dialog,.credit-dialog,.auth-dialog{width:100vw;max-width:none;margin:0;border-radius:0}.crop-card,.credit-card,.auth-card{border-radius:0}.crop-card{padding:16px 13px}.crop-header h2{font-size:20px}.crop-footer{position:sticky;bottom:0;padding-top:12px;background:#fffaf8}.crop-footer .primary-button,.crop-footer .secondary-button{min-height:43px;padding:9px;font-size:11px}.credit-card{padding:25px 16px}.credit-packages button{min-height:64px}.q-progress{margin-top:12px}}
.mobile-nav{display:none}@media(max-width:760px){body{padding-bottom:72px}.mobile-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);height:64px;padding:5px 16px max(5px,env(safe-area-inset-bottom));border-top:1px solid #eadce2;background:#fffdfbf5;box-shadow:0 -7px 22px #49233612;backdrop-filter:blur(10px)}.mobile-nav a,.mobile-nav button{display:grid;place-items:center;align-content:center;gap:2px;border:0;background:transparent;color:#856d7b;text-decoration:none;font:12px "Microsoft YaHei",sans-serif}.mobile-nav span{font-size:21px;line-height:19px;color:#c65c84}.mobile-nav b{font-size:11px}.mobile-nav a:active,.mobile-nav button:active{color:#351a37}.mobile-nav a:active span,.mobile-nav button:active span{color:#e3a22f}}
.preview-toolbar-actions{display:flex;align-items:center;gap:9px}.preview-toolbar-actions button{display:none}@media(max-width:760px){body[data-mobile-page="home"] .workspace,body[data-mobile-page="home"] .result-section,body[data-mobile-page="home"] .how-it-works,body[data-mobile-page="pattern"] .hero,body[data-mobile-page="pattern"] .result-section,body[data-mobile-page="pattern"] .how-it-works,body[data-mobile-page] footer{display:none}.preview-toolbar-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:0 10px;border:1px solid #e2c9d4;border-radius:8px;background:#fff;color:#78576a;font-size:11px;font-weight:800}.mobile-nav [data-active="true"]{color:#351a37}.mobile-nav [data-active="true"] span{color:#e3a22f}body[data-mobile-page="pattern"] .workspace{display:block;height:calc(100svh - 146px);margin-top:10px;overflow:hidden}body[data-mobile-page="pattern"] .workspace:not(.mobile-settings-open) .controls{display:none}body[data-mobile-page="pattern"] .workspace.mobile-settings-open .preview-area{display:none}body[data-mobile-page="pattern"] .workspace.mobile-settings-open .controls{display:block;height:100%;overflow-y:auto;border:0;padding-bottom:28px}body[data-mobile-page="pattern"] .preview-area{display:flex;height:100%;flex-direction:column}body[data-mobile-page="pattern"] .canvas-wrap{height:auto;min-height:0;flex:1}.preview-toolbar,.preview-footer{flex:none}}
.mobile-home,.mobile-profile{display:none}@media(max-width:760px){body[data-mobile-page="me"] .mobile-profile{display:block}body[data-mobile-page="home"] .hero{display:none}.mobile-home{display:grid;gap:12px;padding:12px 4px}.mobile-user-card,.mobile-action-panel,.mobile-section-card,.mobile-help-card,.mobile-profile>article{border:1px solid #ead9df;border-radius:18px;background:#fffdfb;box-shadow:0 8px 20px #6434430d}.mobile-user-card{display:grid;grid-template-columns:52px 1fr 46px;gap:11px;align-items:center;padding:13px}.mobile-avatar,.mobile-user-card button,.mobile-profile-icon{display:grid;place-items:center;width:50px;height:50px;border:1px solid #6d4258;border-radius:15px;background:#fff;color:#351a37;font-size:28px}.mobile-user-card b{display:block;font-size:16px}.mobile-user-card small{display:block;margin-top:4px;color:#758599;font-size:11px;font-weight:700}.mobile-user-card button{width:43px;height:43px;background:#ffd260;font-size:23px}.mobile-action-panel{padding:13px}.mobile-upload-card{display:grid;place-items:center;min-height:172px;padding:18px;border:2px solid #b49a83;border-radius:18px;background:linear-gradient(135deg,#fff9df,#fff);text-align:center}.mobile-upload-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #8b6a47;border-radius:50%;background:#ffd260;color:#3a2631;font-size:29px}.mobile-upload-card b{margin-top:14px;color:#855360;font-size:14px}.mobile-upload-card small{margin-top:8px;color:#b5814c;font-size:11px}.mobile-qr-card{display:flex;width:100%;margin-top:10px;padding:15px;border:1px solid #e8dbe0;border-radius:16px;background:#fff;text-align:left}.mobile-qr-card span{flex:1}.mobile-qr-card b,.mobile-qr-card small,.mobile-qr-card em{display:block}.mobile-qr-card b{font-size:14px}.mobile-qr-card small{margin-top:5px;color:#8d7c88;font-size:11px}.mobile-qr-card em{width:max-content;margin-top:10px;padding:7px 11px;border:1px solid #9e6c2b;border-radius:99px;background:#ffd260;color:#4b3020;font-size:11px;font-style:normal;font-weight:800}.mobile-qr-card i{display:grid;place-items:center;width:80px;margin-left:8px;border-radius:12px;background:repeating-linear-gradient(90deg,#281f24 0 8px,#fff 8px 13px,#ef789d 13px 17px,#fff 17px 23px);color:#fff;font-size:25px}.mobile-section-card{padding:14px}.mobile-section-card h2{margin:0;font-size:14px}.mobile-section-card p{margin:7px 0;color:#8290a0;font-size:11px}.mobile-section-card button{display:grid;width:100%;grid-template-columns:35px 1fr;column-gap:8px;padding:12px;border:1px dashed #c6ae9e;border-radius:13px;background:#fff9dd;text-align:left}.mobile-section-card button span{grid-row:1/3;display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#ffd260}.mobile-section-card button b{font-size:12px}.mobile-section-card button small{margin-top:4px;color:#8b7280;font-size:10px}.mobile-help-card{padding:14px}.mobile-help-card>b{font-size:12px;color:#728096}.mobile-help-card div{display:flex;gap:8px;margin-top:10px}.mobile-help-card button{flex:1;padding:9px 3px;border-radius:10px;background:#fff7fa;color:#87536a;font-size:11px;font-weight:800}.mobile-profile{min-height:calc(100svh - 136px);padding:10px 14px;background:linear-gradient(135deg,#fff8f5,#fffcef)}body[data-mobile-page="me"] .hero,body[data-mobile-page="me"] .mobile-home,body[data-mobile-page="me"] .workspace,body[data-mobile-page="me"] .result-section,body[data-mobile-page="me"] .how-it-works{display:none}.mobile-profile>article{display:flex;flex-direction:column;align-items:center;padding:20px;margin-top:2px;text-align:center}.mobile-profile-icon{width:64px;height:64px;background:#ffd260}.mobile-profile b{margin-top:15px;font-size:14px}.mobile-profile p{margin:8px 0 16px;color:#738397;font-size:12px}.mobile-profile .primary-button{margin:0}.mobile-outline-button{width:100%;min-height:43px;margin-top:12px;border:1px solid #8a5c69;border-radius:13px;background:#fff;color:#4b303f;font-size:13px;font-weight:800}}
@media(max-width:760px){.auth-dialog{width:min(92vw,380px);margin:auto;border-radius:20px}.auth-card{border-radius:20px}}
@media(max-width:760px){body[data-mobile-page] .crop-footer{display:flex!important}}
@media(max-width:760px){.editor-page .palette-item{display:grid;grid-template-rows:25px 11px;gap:2px;align-content:center;min-height:41px;padding:3px;border-radius:5px;text-align:center}.editor-page .palette-item .swatch{display:grid;place-items:center;width:100%;height:25px;margin:0;border-radius:4px}.editor-page .palette-item .swatch b{margin:0;font-size:8px;line-height:1}.editor-page .palette-item small{display:block;margin:0;color:#536070;font-size:8px;font-weight:800;line-height:11px}.editor-page .palette-item.active{outline-width:1px}}
/* Keep the final export label on one line.  Once it is exported, the publish
   button appears and the three actions still fit on a narrow mobile screen. */
@media(max-width:760px){.editor-page .result-actions{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(0,.92fr) minmax(0,1.42fr);align-items:stretch;gap:7px}.editor-page .result-actions button{display:flex;align-items:center;justify-content:center;min-width:0;white-space:nowrap}.editor-page .result-actions #downloadBtn{width:auto!important;padding:0 5px;font-size:11px;letter-spacing:0;white-space:nowrap}.editor-page .result-actions #downloadBtn::after{flex:0 0 auto;margin-left:3px}.editor-page .result-actions .library-publish{padding:0 5px;font-size:10px}}
@media(max-width:760px){.editor-page .result-actions:has(#libraryPublishBtn[hidden]){grid-template-columns:minmax(0,.92fr) minmax(0,1.42fr)}}

/* 生成后的独立完成页：下载和发布都在这里完成，不打断编辑流程。 */
.pattern-complete-page{position:fixed;z-index:124;inset:0;display:flex;flex-direction:column;min-height:100svh;overflow:auto;background:linear-gradient(145deg,#fff8f2,#fff5e9);color:#3c2936}.pattern-complete-page[hidden]{display:none}.pattern-complete-page__header{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;min-height:53px;padding:5px 20px;border-bottom:1px solid #ead9df;background:#fffaf0;text-align:center}.pattern-complete-page__header button,.pattern-complete-page__header a{display:grid;place-items:center;width:35px;height:35px;border:1px solid #79596b;border-radius:50%;background:#fff;color:#422c3a;text-decoration:none;font-size:20px;line-height:1}.pattern-complete-page__header a{justify-self:end;font-size:18px}.pattern-complete-page__header b{font-size:15px}.pattern-complete-page__main{width:min(720px,100%);margin:0 auto;padding:14px 20px 28px}.pattern-complete-page__notice{margin:0 0 10px;padding:12px 15px;border:1px solid #e8d4de;border-radius:16px;background:#fffdfb;color:#402a3a;font-size:18px;font-weight:900}.pattern-complete-preview{padding:10px;border:1px solid #e5cfd9;border-radius:22px;background:#fffdfb;box-shadow:0 10px 24px #7b425012}.pattern-complete-preview__bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 4px 8px;color:#79596b;font-size:12px}.pattern-complete-preview__bar b{color:#3c2936;font-size:14px}.pattern-complete-preview__image{display:grid;min-height:300px;place-items:center;overflow:auto;border:2px solid #4a3140;border-radius:15px;background-image:linear-gradient(45deg,#faf6f5 25%,transparent 25%),linear-gradient(-45deg,#faf6f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#faf6f5 75%),linear-gradient(-45deg,transparent 75%,#faf6f5 75%);background-position:0 0,0 9px,9px -9px,-9px 0;background-size:18px 18px}.pattern-complete-preview__image img{display:block;max-width:100%;max-height:min(66svh,760px);object-fit:contain}.pattern-complete-page__hint{margin:12px 3px;color:#9a5a78;font-size:12px;font-weight:700;text-align:center}.pattern-complete-page__actions{display:grid;grid-template-columns:1.45fr 1fr;gap:9px;margin-top:16px}.pattern-complete-page__actions .primary-button,.pattern-complete-page__actions .secondary-button{display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;white-space:nowrap}.pattern-complete-page__secondary{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:10px}.pattern-complete-page__secondary button{min-height:38px;border:1px solid #d9c6cf;border-radius:12px;background:#fffdfb;color:#67475b;font-size:12px;font-weight:800}@media(max-width:760px){.pattern-complete-page__header{min-height:45px;padding:4px 10px}.pattern-complete-page__header button,.pattern-complete-page__header a{width:31px;height:31px;font-size:18px}.pattern-complete-page__main{padding:10px 12px 18px}.pattern-complete-page__notice{margin-bottom:8px;padding:10px 12px;border-radius:13px;font-size:16px}.pattern-complete-preview{padding:8px;border-radius:17px}.pattern-complete-preview__image{min-height:315px;border-radius:12px}.pattern-complete-preview__image img{max-height:calc(100svh - 270px)}.pattern-complete-page__actions{position:sticky;bottom:0;margin-top:12px;padding:8px 0;background:linear-gradient(180deg,#fff8f200,#fff8f2 35%)}.pattern-complete-page__actions .primary-button,.pattern-complete-page__actions .secondary-button{min-height:45px;padding:7px;font-size:12px}.pattern-complete-page__secondary button{min-height:35px;font-size:11px}}
