/* 独立WEB材料/制作前端；只与后台共享数据协议及纯业务规则。 */
/* 紧凑导入：设置与预览并列，避免长表单挤出预览。 */
.pixel-editor #import-dialog{width:min(960px,96vw);padding:18px;max-height:92dvh;overflow:auto}
#import-dialog .import-heading{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e3d0dd;align-items:flex-start}
#import-dialog .import-heading h2{font-size:19px;margin:0 0 3px}#import-dialog .import-heading small{font-size:10px;color:#a18398}
#import-dialog .import-heading button{min-height:30px;padding:5px 10px;font-size:11px}
#import-dialog .import-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:22px;align-items:start}
#import-dialog #image-options>label,#import-dialog #project-options>label{margin:10px 0}
#import-dialog label{font-size:11px;color:#7a5e72;line-height:1.5}
#import-dialog input,#import-dialog select{padding:7px 9px;min-height:34px;font-size:12px;margin-top:5px}
#import-dialog .import-upload-row{display:flex;gap:9px;align-items:end}
#import-dialog .import-upload-row>label{flex:1;min-width:0;margin:0}
#import-dialog .import-upload-row input{font-size:10px;padding:6px;max-width:100%}
#import-dialog .import-upload-row>button{min-height:34px;white-space:nowrap;font-size:11px;padding:6px 9px;margin-bottom:0}
#import-dialog .import-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin:16px 0 12px}
#import-dialog .import-fields label{margin:0}
#import-dialog .import-hint{font-size:10px;line-height:1.7;color:#a48a9b;margin:8px 0 10px;max-width:none}
#import-dialog .import-process-row{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:14px}
#import-dialog .import-process-row button{min-height:34px;font-size:11px;padding:6px 10px}
#import-dialog .import-preview-panel{min-width:0;background:#f4edf7;border:1px solid #e1d2e6;padding:12px}
#import-dialog .import-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
#import-dialog .import-preview-heading h3{font-size:12px;margin:0;color:#6e5269}
#import-dialog .import-preview-heading small{font-size:9px;color:#a58ca0}
#import-dialog .import-preview-stage{aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:repeating-conic-gradient(#e9dfef 0 25%,#faf6fc 0 50%) 0/14px 14px}
#import-dialog #import-preview{display:block;width:100%;height:auto;max-height:350px;object-fit:contain;margin:0;background:transparent}
#import-dialog .import-source-strip{display:flex;align-items:center;gap:8px;margin-top:9px;font-size:9px;color:#a88da1}
#import-dialog .import-source-strip:has(img:not([src])){display:none}
#import-dialog #source-preview{width:36px;height:36px;max-height:36px;object-fit:contain;margin:0;background:#fffaf0;border:1px solid #dfd0df}
#import-dialog #import-status{font-size:10px;line-height:1.6;margin:8px 0 0;min-height:0;max-height:60px;overflow:auto}
#import-dialog #import-status:empty{display:none}
#import-dialog .import-actions{margin-top:16px;padding-top:12px;border-top:1px solid #e3d0dd;gap:10px;position:sticky;bottom:-18px;background:#fffaf0;padding-bottom:2px}
#import-dialog .import-actions button{min-height:35px;padding:7px 13px;font-size:12px}
@media(max-width:650px){.pixel-editor #import-dialog{padding:13px;width:calc(100vw - 16px)}#import-dialog .import-layout{grid-template-columns:1fr;gap:14px}#import-dialog .import-heading{margin-bottom:12px}#import-dialog .import-fields{gap:10px 8px;margin:13px 0}#import-dialog .import-preview-stage{aspect-ratio:auto;max-height:240px}#import-dialog #import-preview{width:min(100%,240px);max-height:240px}#import-dialog .import-actions{bottom:-13px;flex-wrap:nowrap}#import-dialog .import-actions button{font-size:11px;padding:6px 9px}#import-dialog .import-preview-panel{padding:10px}}
#web-management{flex:1;min-height:0;overflow:auto;padding:24px 22px;background:#f5eef7;margin-top:8px}body[data-web-section]:not([data-web-section=""]) .pixel-shell{height:calc(100dvh - 95px);min-height:520px}body[data-web-section]:not([data-web-section=""]) .pixel-brand-footer{padding-top:12px}body[data-web-section]:not([data-web-section=""]) .pixel-more{display:none}.web-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.web-page-heading small{font-size:9px;letter-spacing:3px;color:#ae819e}.web-page-heading h1{display:block;letter-spacing:0;font-size:27px;margin:4px 0 8px;color:#513144}.web-page-heading p{font-size:12px;color:#a08198;margin:0}.web-page-heading>div:last-child{display:flex;gap:10px}.web-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.web-metrics article{padding:18px 20px;background:#fffaf0;border:1px solid #cbb0c4;border-bottom:4px solid #d9bfd9}.web-metrics small{display:block;font-size:11px;color:#a1839b}.web-metrics strong{display:block;font-size:30px;margin-top:5px;color:#5b3b50}.web-metrics em{font-size:10px;margin-left:7px;font-weight:400;font-style:normal;color:#ad8fa5}.web-management-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:20px}.web-panel{padding:19px;background:#fffaf0;border:2px solid #654353;box-shadow:3px 4px 0 #e2bdd2;margin-bottom:18px;min-width:0}.web-panel h2{font-size:16px;margin:0 0 12px;color:#714a62}.web-panel p{font-size:11px;color:#a18198;line-height:1.9}.web-management-grid aside button{display:flex;width:100%;margin-bottom:11px;justify-content:space-between}.web-list-toolbar{display:flex;gap:10px;align-items:center;padding-bottom:15px;border-bottom:1px solid #e3cedd;flex-wrap:wrap}.web-list-toolbar>div{display:flex;gap:5px;margin-right:auto}.web-list-toolbar button{box-shadow:none!important;border:0!important;font-size:11px!important;min-height:30px!important}.web-list-toolbar input{width:190px;padding:7px;font-size:11px}.web-list-toolbar select{font-size:11px;padding:7px}.web-material-row{display:grid;grid-template-columns:minmax(110px,1.6fr) repeat(3,minmax(50px,.7fr)) 50px;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #eadde6;font-size:12px}.web-material-row.table-head{font-size:10px;color:#ad8ba3}.web-material-code{display:flex;align-items:center;gap:12px}.web-material-code i{width:30px;height:30px;border:1px solid #d5bccd;flex-shrink:0}.web-material-code b{font-size:15px}.web-material-code small{display:block;font-size:9px;color:#a88ca0;margin-top:4px}.web-material-row>button{min-height:28px!important;font-size:10px!important;padding:4px!important;box-shadow:none!important}.web-low{color:#d3638b}.web-no-data{text-align:center;padding:55px 15px;color:#a08096;grid-column:1/-1}.web-no-data h2{font-size:19px}.web-no-data p{font-size:12px;margin:12px 0 20px}.web-page-error,.web-form-error{font-size:12px;color:#be4667;white-space:pre-wrap}.web-job-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px;padding-top:20px}.web-job-card{display:flex;gap:18px;padding:16px;background:#fffcf5;border:1px solid #dac1d1}.web-job-card canvas{width:130px;height:130px;object-fit:contain;image-rendering:pixelated;align-self:center;background:#f2eaf5}.web-job-card>div{flex:1;min-width:0}.web-job-card h2{font-size:17px;margin:7px 0}.web-job-card p,.web-job-card small{font-size:10px;color:#a28699}.web-job-card button{margin-top:10px;width:100%}.web-job-status{font-size:10px;color:#bc698e;background:#fce6ee;padding:3px 7px}.web-progress{height:7px;background:#eaddE7;margin:10px 0;overflow:hidden}.web-progress>span{display:block;height:100%;background:#ed88aa}.web-dialog{width:min(900px,94vw);max-height:92dvh;padding:22px;border:2px solid #5d4052!important;border-radius:8px!important;background:#fffaf0;overflow:auto;color:#54394b}.web-dialog::backdrop{background:#3b293f88}.web-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 15px;border-bottom:1px solid #e4d0de;margin-bottom:18px}.web-dialog h2{font-size:21px;margin:0}.web-dialog label{display:block;font-size:12px;color:#8e6b83;margin:14px 0}.web-dialog input:not([type=checkbox]):not([type=radio]),.web-dialog select,.web-dialog textarea{width:100%;display:block;margin-top:7px;padding:9px;border:1px solid #c9a9bf;background:#fffcf5;font-size:13px;color:#5a3f4f;border-radius:5px}.web-dialog textarea{min-height:100px;resize:vertical}.web-dialog p{font-size:12px;color:#a08398;line-height:1.9}.web-dialog form>button{margin:12px 8px 0 0}.web-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.web-dialog table{width:100%;font-size:12px;border-collapse:collapse;margin:15px 0}.web-dialog th,.web-dialog td{padding:10px;text-align:left;border-bottom:1px solid #e5d4df}.web-dialog fieldset{border:1px solid #e4d1dd;font-size:12px}.web-color-book{display:grid;grid-template-columns:repeat(auto-fill,minmax(75px,1fr));gap:10px;margin-top:15px}.web-color-book>div{display:flex;flex-direction:column;align-items:center;border:1px solid #e1cedb;padding:9px;font-size:11px}.web-color-book i{display:block;width:32px;height:32px;margin-bottom:6px}.web-color-book small{font-size:9px;color:#ab8e9f}.web-ledger>div{display:grid;grid-template-columns:65px 1fr 70px 150px;gap:10px;padding:12px 0;border-bottom:1px solid #ebdce5;font-size:12px}.web-ledger small{font-size:10px;color:#a2879c}.web-craft-heading{display:flex;gap:20px;justify-content:space-between;font-size:12px}.web-craft-colors{display:flex;gap:7px;overflow:auto;padding:7px 0}.web-craft-colors button{font-size:10px!important;white-space:nowrap}.web-craft-stage{position:relative;height:45dvh;min-height:220px;overflow:hidden;touch-action:none;background:linear-gradient(#dacde744 1px,transparent 1px),linear-gradient(90deg,#dacde744 1px,transparent 1px),#f1ebf7;background-size:12px 12px}.web-craft-stage canvas{position:absolute;left:0;top:0;transform-origin:0 0;image-rendering:pixelated}.web-craft-controls{display:flex;align-items:center;justify-content:center;gap:7px;margin:12px 0}.web-craft-controls output{font-size:11px}.web-craft-controls button{font-size:11px!important}.web-craft-bulk{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #e3cbdc;padding-top:10px}.web-craft-bulk label{margin:0;max-width:150px}.web-craft-bulk button{font-size:11px!important}.web-craft-footer{display:flex;gap:12px;margin-top:20px}.web-note{background:#fbf3f8}
@media(max-width:1050px){.web-management-grid{grid-template-columns:minmax(0,1fr)}.web-management-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.web-list-toolbar input{width:150px}.web-job-grid{grid-template-columns:1fr}}
@media(max-width:599px){body[data-web-section]:not([data-web-section=""]) .pixel-shell{height:100%;min-height:0}#web-management{padding:15px 9px}.web-page-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:18px}.web-page-heading h1{font-size:24px}.web-page-heading p{font-size:10px}.web-page-heading>div:last-child{flex-wrap:wrap}.web-page-heading button{font-size:11px!important;min-height:34px!important}.web-metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.web-metrics article{padding:12px}.web-metrics strong{font-size:24px}.web-metrics small{font-size:10px}.web-panel{padding:12px}.web-list-toolbar{gap:7px}.web-list-toolbar>div{width:100%}.web-list-toolbar input{width:100%}.web-material-row{grid-template-columns:minmax(85px,1.5fr) 45px 45px 40px 38px;gap:4px;font-size:10px}.web-material-code{gap:5px}.web-material-code i{width:20px;height:20px}.web-material-code b{font-size:12px}.web-material-code small{font-size:8px}.web-material-row.table-head{font-size:8px}.web-management-grid aside{display:block}.web-job-card{display:block;padding:12px}.web-job-card canvas{float:left;width:90px;height:90px;margin:0 12px 8px 0}.web-job-card>div{overflow:auto}.web-job-card h2{font-size:15px}.web-job-grid{grid-template-columns:1fr;gap:14px}.web-dialog{padding:14px}.web-dialog h2{font-size:18px}.web-form-grid{grid-template-columns:1fr;gap:0}.web-ledger>div{grid-template-columns:40px 1fr 45px}.web-ledger small{grid-column:1/-1}.web-craft-stage{height:38dvh}.web-craft-controls{gap:4px}.web-craft-controls button{min-height:30px!important;padding:5px!important;font-size:10px!important}.web-craft-bulk{gap:7px}.web-craft-bulk label{max-width:100px}.web-craft-footer{gap:6px;flex-wrap:wrap}}

.web-creative-dialog{width:min(1050px,95vw)}.web-photo-toolbar{display:grid;gap:12px}.web-photo-toolbar>div{display:flex;gap:7px;flex-wrap:wrap}.web-photo-toolbar button{font-size:11px!important}.web-photo-canvas{background:repeating-conic-gradient(#eee3f1 0 25%,#fffaf0 0 50%) 0/16px 16px;display:flex;justify-content:center;align-items:center;min-height:160px;max-height:52dvh;overflow:auto}.web-photo-canvas canvas{display:block;max-width:100%;max-height:52dvh;object-fit:contain;touch-action:none}.web-photo-footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.web-photo-footer button{font-size:11px!important}.web-ai-mode{display:flex;gap:25px;padding:7px 0;border-bottom:1px solid #e4cddd}.web-ai-mode label{font-weight:bold}.web-creative-dialog #web-ai-reference{max-height:150px;max-width:100%;object-fit:contain}.web-creative-dialog #web-ai-result img{max-width:100%;max-height:50dvh;object-fit:contain;display:block;margin:16px auto}.web-creative-dialog #web-text-preview{max-width:100%;max-height:45dvh;object-fit:contain;image-rendering:pixelated;background:repeating-conic-gradient(#eee3f1 0 25%,#fffaf0 0 50%) 0/16px 16px;margin:15px auto;display:block}.web-creative-dialog .web-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.web-creative-dialog #web-ai-form .web-form-grid{grid-template-columns:1fr 1fr}@media(max-width:599px){.web-creative-dialog .web-form-grid{grid-template-columns:1fr 1fr}.web-photo-toolbar>div{gap:5px}.web-photo-toolbar button{font-size:10px!important;padding:6px!important}.web-photo-footer{gap:6px}}

.web-compare-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;max-height:300px;overflow:auto;padding:3px 3px 12px}.web-compare-cards>button{display:flex;gap:13px;align-items:center;padding:10px;text-align:left;box-shadow:none!important;border:1px solid #dac1d1}.web-compare-cards canvas{width:70px;height:70px;object-fit:contain;image-rendering:pixelated;background:#f0e9f5}.web-compare-cards b,.web-compare-cards small,.web-compare-cards span{display:block}.web-compare-cards b{font-size:13px}.web-compare-cards small,.web-compare-cards span{font-size:10px;color:#a08398;margin-top:5px}.web-compare-cards [aria-pressed=true]{background:#fbe6ef;border-color:#de84a6!important;outline:1px solid #efc1d5}.web-compare-title{font-size:14px;border-top:1px solid #e4cfdd;padding-top:18px;margin-top:10px}.web-inline-swatch{display:inline-block;width:14px;height:14px;border:1px solid #d1bdc9;vertical-align:middle;margin-right:7px}@media(max-width:599px){.web-compare-cards{grid-template-columns:1fr;max-height:260px}}

.import-ai-option{margin:12px 0;border:1px solid #ebc4d7;border-radius:5px;padding:10px;background:#fff0f5}#import-dialog .import-ai-toggle{display:flex;align-items:flex-start;gap:8px;margin:0}#import-dialog .import-ai-toggle input{width:15px;min-height:15px;height:15px;margin:3px 0 0}#import-dialog .import-ai-toggle b{font-size:12px;color:#9c4c72}#import-dialog .import-ai-toggle small{display:block;font-size:10px;line-height:1.7;color:#ad839b;margin-top:3px}.import-ai-toggle em{font-style:normal;font-size:9px;padding:2px 5px;background:#f6d4e2;margin-left:5px}#import-dialog .import-ai-controls p{font-size:10px;line-height:1.7;margin:9px 0;color:#a58399}#import-dialog .import-ai-controls button{min-height:31px;font-size:10px;padding:5px 8px;margin:3px 6px 3px 0}.import-ai-compare{display:grid;grid-template-columns:1fr 1fr;gap:8px}.import-ai-compare figure{margin:5px 0}.import-ai-compare img{width:100%;height:110px;object-fit:contain;background:#f3e9f1}.import-ai-compare figcaption{font-size:9px;color:#ac899d}#message{cursor:pointer}

/* 拼豆指导为独立全屏页面，不使用dialog/遮罩。 */
body.web-craft-open{overflow:hidden!important}.web-craft-page{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;gap:8px;background:#fffaf0;color:#54394b;padding:16px 26px;height:100dvh;overflow:hidden}.web-craft-page>header{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;flex-shrink:0;min-height:45px;border-bottom:1px solid #dec6d8;padding-bottom:10px}.web-craft-page>header h2{font-size:22px;margin:0}.web-craft-page [data-dismiss]{font-size:12px;border:1px solid #b28fa5;min-height:34px}.web-craft-page .web-craft-heading{flex-shrink:0;padding:2px 0}.web-craft-page>.web-progress{flex-shrink:0;margin:0}.web-craft-page .web-craft-colors{flex-shrink:0;padding:2px 0 6px}.web-craft-page .web-craft-stage{flex:1;height:0;min-height:100px;width:100%;border:1px solid #d5c4df}.web-craft-page .web-craft-controls{flex-shrink:0;margin:0}.web-craft-page .web-craft-bulk{flex-shrink:0;padding-top:7px}.web-craft-page .web-craft-bulk label{font-size:10px;display:flex;align-items:center;gap:8px;max-width:none;white-space:nowrap}.web-craft-page .web-craft-bulk input{width:70px;padding:7px;border:1px solid #c5a8bd}.web-craft-page .web-craft-bulk select{padding:7px;border:1px solid #c5a8bd}.web-craft-page .web-craft-footer{flex-shrink:0;margin:0;padding-top:6px;border-top:1px solid #ead7e3}.web-craft-page .web-craft-footer button{min-width:100px}.web-craft-page .web-form-error{margin:0;flex-shrink:0}.web-craft-page .web-form-error:empty{display:none}@media(max-width:599px){.web-craft-page{padding:8px 9px calc(8px + env(safe-area-inset-bottom));gap:6px}.web-craft-page>header{min-height:39px;padding-bottom:6px}.web-craft-page>header h2{font-size:16px;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-craft-page [data-dismiss]{font-size:10px;min-height:30px;padding:5px 7px}.web-craft-page .web-craft-colors button{font-size:9px!important;min-height:28px;padding:4px}.web-craft-page .web-craft-heading{font-size:10px}.web-craft-page .web-craft-bulk{gap:5px}.web-craft-page .web-craft-bulk button{font-size:9px!important;min-height:28px;padding:4px}.web-craft-page .web-craft-bulk label{font-size:9px;gap:4px}.web-craft-page .web-craft-bulk input{width:42px;padding:5px}.web-craft-page .web-craft-bulk select{max-width:115px;font-size:9px;padding:5px}.web-craft-page .web-craft-footer{gap:7px}.web-craft-page .web-craft-footer button{min-width:0;flex:1;font-size:11px;min-height:34px}}

/* 导入尺寸点选、显式工具与采样强度 */
.pixel-editor #import-dialog{width:min(1240px,97vw)}#import-dialog .import-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:25px}.import-size-choice{grid-column:1/-1;font-size:11px;color:#7a5e72}.import-size-choice>div{display:flex;gap:7px;margin-top:7px;flex-wrap:wrap}.import-size-choice button{min-height:31px!important;font-size:11px!important;padding:5px 10px!important;box-shadow:none!important}.import-size-choice [aria-pressed=true]{background:#f8d2e2!important;border-color:#d07a9f!important;color:#a24470!important}#import-dialog .import-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.import-inline-tools>span{font-size:11px;color:#8d6c83}.import-inline-tools>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.import-inline-tools button{font-size:10px!important;min-height:31px!important;padding:5px 8px!important;box-shadow:1px 2px 0 #e3ccde!important}#import-dialog .import-sampling-strength{border:1px solid #e6d2e0;border-radius:5px;padding:9px 11px;margin:10px 0;font-size:11px}#import-dialog .import-sampling-strength input{display:block;width:100%;height:20px;min-height:20px;padding:0;margin:7px 0;accent-color:#e881a6;cursor:ew-resize}#import-dialog .import-sampling-strength output{float:right;color:#b96891;font-size:11px}#import-dialog .import-sampling-strength small{display:block;font-size:9px;color:#ae90a5}#import-dialog .import-preview-stage{min-height:390px}#import-dialog #import-preview{max-height:500px}
/* 账号系统为WEB独立界面；未认证时不加载私人工作区。 */
.web-auth-screen{position:fixed;inset:0;z-index:1000;background:#f6edf7;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.web-auth-card{width:min(440px,100%);background:#fffaf0;border:2px solid #674455;box-shadow:5px 6px 0 #dfbbd2;padding:30px}.web-auth-brand{color:#a64d77;font-weight:900;font-size:23px}.web-auth-card h1{font-size:23px;margin:18px 0 7px}.web-auth-card p{font-size:11px;color:#a18398;line-height:1.8}.web-auth-tabs{display:flex;gap:10px;margin:20px 0 13px}.web-auth-tabs button{flex:1;box-shadow:none!important}.web-auth-card label{display:block;font-size:12px;margin:12px 0;color:#88677e}.web-auth-card input{width:100%;padding:9px;margin-top:6px;border:1px solid #c4a6bb;background:#fffcf5;border-radius:5px;font-size:14px}.web-auth-captcha{display:flex;gap:10px;align-items:end}.web-auth-captcha label{flex:1}.web-auth-captcha>button{margin-bottom:12px;padding:0;min-width:130px;height:38px;border:1px solid #d4bacb;box-shadow:none!important}.web-auth-captcha img{display:block;width:130px;height:36px}.web-auth-card form>[type=submit]{width:100%;margin-top:8px}.web-auth-card>small{display:block;margin-top:16px;font-size:10px;color:#b298aa}.web-auth-error{font-size:12px!important;color:#c45278!important;white-space:pre-wrap}.web-account-summary{display:grid;gap:6px;padding:15px;background:#f9e9f0}.web-account-summary b{font-size:21px}.web-account-summary span{font-size:12px;color:#986a88}.web-account-summary small{font-size:10px;color:#b5859f}.web-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}#identity[role=button]{cursor:pointer;border:1px solid #dfc6d6;border-radius:5px;padding:5px 8px;color:#a65a82;max-width:140px;outline-offset:2px}#identity[role=button]:hover{background:#f9e0eb}.web-account-dialog input{width:100%}.web-account-dialog #web-user-query{width:65%;margin:5px 10px 10px 0}
@media(max-width:650px){.pixel-editor #import-dialog{width:calc(100vw - 12px);padding:12px}#import-dialog .import-layout{grid-template-columns:1fr;gap:15px}#import-dialog .import-preview-stage{min-height:0;max-height:260px}#import-dialog #import-preview{max-height:260px;width:min(100%,260px)}.import-inline-tools>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.import-inline-tools button{font-size:9px!important;min-height:32px!important;padding:5px 3px!important}.import-size-choice>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.import-size-choice button{font-size:10px!important;padding:5px 2px!important;min-height:32px!important}.web-auth-screen{padding:13px}.web-auth-card{padding:22px}.web-auth-card h1{font-size:22px}.web-account-dialog table{font-size:10px}.web-account-dialog td,.web-account-dialog th{padding:7px 3px}.pixel-shell #identity[role=button]{display:block!important;max-width:70px;font-size:10px;padding:4px}.pixel-shell .pixel-nav{gap:4px}}@media(max-width:599px){.pixel-shell #identity[role=button]{position:absolute;right:7px;top:49px;z-index:10;max-width:65px;background:#fffaf0;opacity:.9}.web-account-actions{grid-template-columns:1fr}}

#web-login-note{font-size:11px;color:#aa6c8e;background:#fff3e7;border-bottom:1px solid #ead8cc;margin:0;padding:6px 12px;flex-shrink:0}@media(max-width:599px){#web-login-note{font-size:9px;padding:4px 6px}}

.pixel-editor dialog.web-auth-screen{margin:0!important;border:0!important;border-radius:0!important;max-width:100vw!important;width:100vw!important;max-height:100dvh!important;height:100dvh!important;padding:20px!important}.web-auth-screen::backdrop{background:#3a273c99}.web-auth-cancel{margin-top:13px;width:100%;box-shadow:none!important;background:transparent!important;border:0!important;font-size:11px;color:#a08298}

#import-photo-canvas{display:block;max-width:100%;max-height:500px;width:auto;height:auto;object-fit:contain;touch-action:none}#import-photo-canvas[hidden]{display:none!important}.import-photo-selection{padding:8px 0}.import-photo-selection p{font-size:11px!important;color:#a1678e!important}.import-photo-selection button{font-size:10px!important;padding:5px 8px!important;min-height:30px!important;margin-right:7px}@media(max-width:650px){#import-photo-canvas{max-height:260px}}

/* 单选/复选框不继承全宽文本输入样式。 */
.pixel-editor input[type=radio],.pixel-editor input[type=checkbox]{display:inline-block!important;width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;flex:0 0 16px;accent-color:#e77ba3;vertical-align:middle}
.web-job-project-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;max-height:290px;overflow:auto;padding:3px;margin:7px 0 22px}.web-dialog label.web-job-project-option{display:flex;align-items:center;gap:11px;margin:0;padding:12px;border:1px solid #dec5d5;border-radius:5px;background:#fffdf6;cursor:pointer}.web-job-project-option:has(input:checked){border-color:#dc7fa4;background:#fce7ef}.web-job-project-option canvas{width:68px;height:68px;object-fit:contain;background:#f0e8f4;image-rendering:pixelated}.web-job-project-option span{min-width:0}.web-job-project-option b{display:block;font-size:13px;overflow-wrap:anywhere;color:#684356}.web-job-project-option small{display:block;font-size:10px;color:#ac889f;margin-top:5px}.web-new-job-form h3{font-size:13px;color:#8c627c;margin:6px 0 10px}.web-job-mode-options,.web-creative-dialog .web-ai-mode{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;border:0;margin:0 0 15px}.web-dialog .web-job-mode-options label,.web-creative-dialog .web-ai-mode label{display:flex;align-items:flex-start;gap:10px;border:1px solid #dfc5d5;border-radius:5px;padding:15px;margin:0;background:#fffdf7;cursor:pointer}.web-job-mode-options label:has(input:checked),.web-ai-mode label:has(input:checked){background:#fce5ee;border-color:#dc7da2}.web-job-mode-options input,.web-ai-mode input{margin-top:2px!important}.web-job-mode-options b,.web-ai-mode b{display:block;color:#8f476d;font-size:14px}.web-job-mode-options small,.web-ai-mode small{display:block;color:#ac839e;font-size:10px;line-height:1.8;margin-top:5px}.web-new-job-footer{display:flex;align-items:center;gap:20px;justify-content:space-between;border-top:1px solid #e5d0dd;padding-top:15px;margin-top:12px}.web-new-job-footer small{font-size:10px;line-height:1.8;color:#af8da5}.web-new-job-footer button{white-space:nowrap}.web-job-stock-hint:empty{display:none}.web-ai-reference-fields{padding:10px 15px;background:#f5eef8;border:1px solid #e2d0e5;margin-bottom:15px}.web-ai-reference-fields label{margin-top:0}@media(max-width:599px){.web-job-project-options{grid-template-columns:1fr;max-height:230px}.web-job-mode-options,.web-creative-dialog .web-ai-mode{grid-template-columns:1fr}.web-dialog .web-job-mode-options label,.web-creative-dialog .web-ai-mode label{padding:12px}.web-new-job-footer{align-items:stretch;flex-direction:column;gap:10px}.web-new-job-footer button{width:100%}}

.web-wheel-wrap{margin-left:auto;position:relative;flex-shrink:0}.web-wheel-wrap>button svg{width:19px;height:19px}.web-wheel-panel{position:fixed;right:365px;top:170px;z-index:70;width:250px;max-height:75dvh;overflow:auto;padding:13px;background:#fffaf0;border:2px solid #6e485e;border-radius:8px;box-shadow:3px 4px 0 #ddb9d1}.web-wheel-title{display:flex;align-items:center;justify-content:space-between;font-size:12px}.web-wheel-title button{border:0!important;box-shadow:none!important;font-size:17px!important;min-height:25px!important;padding:2px!important}.web-wheel-panel>svg{display:block;width:210px;height:210px;margin:8px auto;touch-action:none}.web-wheel-panel label{font-size:10px!important;color:#9d7d95!important}.web-wheel-panel input{padding:6px;font-size:11px}.web-wheel-match{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:10px}.web-wheel-match i{width:25px;height:25px;border:1px solid #d4bccc}.web-wheel-panel>small{font-size:9px;color:#a2869b}@media(max-width:1199px){.web-wheel-panel{right:280px}}@media(max-width:899px){.web-wheel-panel{right:18px}}@media(max-width:599px){.web-wheel-panel{right:12px;top:170px;width:240px;max-height:65dvh}.web-wheel-panel>svg{width:200px;height:200px}}

.web-export-dialog{max-width:650px}.web-export-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.web-export-choices label{display:flex;align-items:flex-start;gap:9px;padding:14px;background:#fffdf7;border:1px solid #ddc3d4;border-radius:5px;cursor:pointer}.web-export-choices label:has(input:checked){background:#fbe5ee;border-color:#dc80a6}.web-export-choices b,.web-export-choices small{display:block}.web-export-choices b{font-size:13px;color:#995b80}.web-export-choices small{font-size:10px;margin-top:5px;color:#ab8c9f}.web-export-dialog>canvas{display:block;max-width:100%;width:240px;height:240px;object-fit:contain;margin:15px auto;background:#f1eaf5;image-rendering:pixelated}.web-export-dialog>[data-export-download]{display:block;width:100%;margin-top:12px}@media(max-width:599px){.web-export-choices{grid-template-columns:1fr}.web-export-dialog>canvas{width:180px;height:180px}}

.colors>.web-wheel-wrap{margin:0 0 9px;width:100%}.colors>.web-wheel-wrap>button{width:100%;justify-content:flex-start;min-height:32px;font-size:11px}.colors .web-wheel-panel{position:static;inset:auto;z-index:auto;width:100%;max-height:none;overflow:visible;margin-top:8px;padding:9px;box-shadow:none;border:1px solid #d8bfd2;border-radius:5px}.colors .web-wheel-panel>svg{max-width:100%;width:190px;height:190px}.colors .web-wheel-panel label{margin:5px 0}

.editor-rulers{position:absolute;left:0;top:0;z-index:3;pointer-events:none;overflow:hidden}.pixel-shell .pixel-header-actions>.pixel-more{position:relative;inset:auto;opacity:1!important;pointer-events:auto!important;z-index:75;margin:0;padding:0;background:transparent;border:0;width:auto}.pixel-shell .pixel-header-actions>.pixel-more>summary{display:flex;align-items:center;list-style:none;cursor:pointer;min-height:34px;padding:6px 10px;font-size:12px;color:#78536b;background:#fffaf0;border:1px solid #bea2b5;border-radius:5px;white-space:nowrap}.pixel-more summary::-webkit-details-marker{display:none}.pixel-shell .pixel-header-actions>.pixel-more[open]{width:auto;padding:0;border:0;background:transparent;box-shadow:none}.pixel-shell .pixel-header-actions>.pixel-more .editor-entry{position:absolute;right:0;top:calc(100% + 7px);margin:0;padding:10px;width:185px;display:flex;flex-direction:column;gap:9px;background:#fffaf0;border:1px solid #bca1b5;border-radius:8px;box-shadow:2px 3px 0 #dfbfd5;max-height:none;overflow:visible}.pixel-shell .pixel-header-actions>.pixel-more .editor-entry button{width:100%;font-size:11px;min-height:34px}@media(max-width:599px){.pixel-shell .pixel-header-actions>.pixel-more{position:relative;inset:auto}.pixel-shell .pixel-header-actions>.pixel-more>summary{min-height:30px;padding:5px 7px;font-size:10px}.pixel-shell .pixel-header-actions>.pixel-more[open]{width:auto}}

/* 顶部操作统一规格：同高、5px圆角、边框和阴影。 */
.pixel-editor .pixel-shell .pixel-header-actions>#save,.pixel-editor .pixel-shell .pixel-header-actions>#export-png,.pixel-editor .pixel-shell .pixel-header-actions>.pixel-more>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;height:36px;margin:0;padding:7px 12px;border:1px solid #ac879f;border-radius:5px;font-size:12px;line-height:20px;font-weight:600;box-shadow:2px 2px 0 #ddc8e4;background:#fffaf0;color:#624054;white-space:nowrap;box-sizing:border-box;cursor:pointer}
.pixel-editor .pixel-shell .pixel-header-actions>#save{background:#ee85a6;border-color:#9b5676;color:#fff;box-shadow:0 3px 0 #bf6589}
.pixel-editor .pixel-shell .pixel-header-actions>#save:disabled{opacity:.45;cursor:default}
.pixel-editor .pixel-shell .pixel-header-actions>#export-png:hover,.pixel-editor .pixel-shell .pixel-header-actions>.pixel-more>summary:hover{background:#fff0f5;border-color:#a36b8e}
.pixel-editor .pixel-shell .pixel-header-actions>.pixel-more[open]>summary{background:#fbe3ed;border-color:#b97598}
.pixel-editor .pixel-shell .pixel-header-actions .pixel-icon{width:18px;height:18px}
@media(max-width:599px){.pixel-editor .pixel-shell .pixel-header-actions>#save,.pixel-editor .pixel-shell .pixel-header-actions>#export-png,.pixel-editor .pixel-shell .pixel-header-actions>.pixel-more>summary{height:32px;min-height:32px;padding:5px 8px;font-size:11px;line-height:20px;gap:5px}.pixel-editor .pixel-shell .pixel-header-actions{gap:8px}}

.web-color-limit{padding:10px 0;border-top:1px solid #e9d8e3;margin:8px 0}.web-color-limit>label{font-size:11px;color:#9d7c93;margin:0 0 6px}.web-color-limit>div{display:flex;gap:8px;align-items:center}.pixel-shell .web-color-limit #limit{width:72px;min-height:33px;height:33px;padding:6px 8px;font-size:12px}.pixel-shell .web-color-limit #reduce{flex:1;min-height:33px;height:33px;padding:5px 8px;font-size:11px;white-space:nowrap;margin:0}

/* External chart import: shared WEB controls, responsive calibration and preview. */
.chart-import-dialog{width:min(1240px,calc(100vw - 32px));max-width:1240px;max-height:94dvh;overflow:auto;padding:22px}.chart-import-dialog header,.chart-result-heading,.chart-mapping-heading,.chart-import-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.chart-import-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0}.chart-import-layout section{min-width:0}.chart-import-layout label{display:grid;gap:6px;margin-bottom:12px}.chart-import-layout input{width:100%;box-sizing:border-box}.chart-source-stage{background:#f1eafa;max-height:480px;overflow:auto}.chart-source-stage canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.chart-calibration{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-top:12px}.chart-hint{font-size:12px;color:#95788f;line-height:1.7}.chart-import-dialog #chart-result{width:100%;height:auto;image-rendering:pixelated;background:#f1eafa}.chart-mapping-row{display:grid!important;grid-template-columns:1fr 150px;align-items:center;gap:12px;padding:8px;border-bottom:1px solid #ead7e4}.chart-mapping-row small{display:block;color:#95788f}.chart-import-dialog #chart-mappings{max-height:300px;overflow:auto}.chart-import-dialog #chart-warnings{white-space:pre-line;font-size:12px;color:#a34d6d}.chart-error{color:#a52b53}.chart-import-footer{border-top:1px solid #ead7e4;padding-top:14px}.chart-import-footer small{margin-right:auto}.chart-import-dialog h3{font-size:15px}@media(max-width:700px){.chart-import-dialog{width:calc(100vw - 16px);padding:14px;max-height:96dvh}.chart-import-layout{grid-template-columns:1fr;gap:16px}.chart-import-footer{flex-wrap:wrap}.chart-import-footer small{flex-basis:100%}.chart-calibration{grid-template-columns:1fr 1fr}.chart-calibration button{grid-column:1/-1}.chart-mapping-row{grid-template-columns:1fr 120px}}

.chart-import-dialog #chart-result{max-height:480px;object-fit:contain}.chart-import-dialog .chart-mapping-row{grid-template-columns:minmax(0,1fr) 120px}.chart-import-dialog .chart-mapping-row input{margin:0}.chart-calibration output{display:block;min-height:30px;line-height:30px;font-weight:600}

.web-work-progress{position:fixed;z-index:2147483000;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));box-sizing:border-box;background:#fffaf0;border:2px solid #674355;border-radius:8px;padding:15px 18px;box-shadow:0 5px 0 #e8acc7;pointer-events:none;color:#513144}.web-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.web-work-heading strong{font-size:16px}.web-work-heading span{font-size:12px;color:#bf426f}.web-work-track{height:12px;margin:12px 0 9px;background:#ebdfea;overflow:hidden;border-radius:5px}.web-work-track i{display:block;width:35%;height:100%;background:#ed6d9e;animation:web-work-slide 1.3s ease-in-out infinite}.web-work-progress p{margin:0!important;font-size:12px!important;line-height:1.6;color:#886176!important}.web-work-progress[data-state=done] .web-work-track i{width:100%;animation:none;background:#7fa369}.web-work-progress[data-state=error] .web-work-track i{width:100%;animation:none;background:#c95c70}@keyframes web-work-slide{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}@media(max-width:599px){.web-work-progress{padding:12px 14px}.web-work-heading strong{font-size:14px}}@media(prefers-reduced-motion:reduce){.web-work-track i{animation-duration:3s}}
/* Wide WEB workspace: all creation and crafting actions above canvas, palette only on right. */
body.pixel-editor{padding:0}.pixel-editor .pixel-shell{margin:8px;min-height:480px;height:calc(100dvh - 16px)}.pixel-brand-footer{display:none}.pixel-editor .pixel-shell #workspace{grid-template-columns:minmax(0,1fr) 300px;gap:12px;flex:1;min-height:0}.pixel-editor .pixel-shell .drawing{min-width:0;overflow:visible}.web-creation-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:0 0 8px;flex-shrink:0}.web-creation-toolbar button{display:inline-flex;gap:5px;align-items:center;justify-content:center;min-height:34px;margin:0!important;font-size:12px;white-space:nowrap}.web-creation-toolbar .pixel-start{min-height:34px;font-size:12px;padding:6px 12px}.web-top-stock{position:relative;font-size:12px}.web-top-stock summary{cursor:pointer;padding:8px;border:1px solid #c9a9bf;border-radius:5px;background:#fffaf0;white-space:nowrap}.web-top-stock .pixel-stock{position:absolute;top:38px;left:0;width:290px;max-width:calc(100vw - 36px);padding:12px;background:#fffaf0;border:2px solid #654353;border-radius:8px;z-index:60}.web-top-stock .pixel-stock h3{margin-top:0}.web-palette-toggle{display:none!important}.pixel-editor .pixel-shell .drawing>.heading>div:first-child{max-width:none}.pixel-editor .pixel-shell #stage{margin:8px 0;flex:1;min-height:100px}.pixel-editor .pixel-shell .colors #swatches{max-height:none;flex:1;overflow:auto}.pixel-editor .pixel-shell .colors{display:flex;flex-direction:column;min-height:0}.web-craft-plan{padding:12px;border:1px solid #ddc5d5;border-radius:8px;background:#fffaf0}.web-craft-plan .heading h3{margin:0}.web-craft-colors button{display:inline-flex;align-items:center;gap:6px}.web-craft-colors button i{width:16px;height:16px;border:1px solid #ab8ba0;flex-shrink:0}.web-craft-colors [aria-pressed=true]{background:#f7d4e2;border-color:#e36a99}.web-craft-extra{margin:10px 0}.web-craft-extra summary{cursor:pointer;font-weight:600}.web-start-choices{display:grid;grid-template-columns:1fr;gap:7px;margin-top:16px}.web-start-choices button{min-height:44px;margin:0!important}.web-start-choices p{margin:0 0 8px}.web-craft-page .web-craft-stage{height:48dvh;min-height:220px;flex-shrink:0}.web-craft-footer{flex-wrap:wrap}.web-craft-page .web-craft-controls{flex-wrap:wrap}.web-craft-page .web-craft-save-state{margin:0}
@media(max-width:1199px){.pixel-editor .pixel-shell #workspace{grid-template-columns:minmax(0,1fr) 270px}.web-creation-toolbar{gap:5px}.web-creation-toolbar button{font-size:11px;padding:6px}.web-creation-toolbar .pixel-icon{width:16px;height:16px}}
@media(max-width:899px){.pixel-editor .pixel-shell #workspace{grid-template-columns:minmax(0,1fr)}.pixel-editor .pixel-shell #workspace>.colors{display:none}.web-palette-toggle{display:inline-flex!important}.pixel-editor[data-panel=colors] .pixel-shell #workspace>.colors{display:flex;width:min(320px,calc(100vw - 16px));right:8px;top:80px;bottom:8px}.pixel-editor .pixel-shell #message{left:12px;right:12px}}
@media(max-width:599px){.pixel-editor .pixel-shell{margin:4px;height:calc(100dvh - 8px)}.web-creation-toolbar button{font-size:10px;min-height:30px;padding:4px}.web-creation-toolbar .pixel-start{font-size:10px;min-height:30px;padding:4px}.web-creation-toolbar{gap:4px;padding-bottom:5px}.web-top-stock summary{padding:6px}.web-top-stock .pixel-stock{left:auto;right:0}.web-craft-plan{padding:8px}.web-craft-plan .heading{flex-wrap:wrap;gap:6px}.web-craft-page .web-craft-stage{height:43dvh}.web-craft-bulk{gap:7px}.web-craft-footer button{flex:1}.pixel-editor .pixel-shell .drawing>.heading{gap:5px;flex-wrap:wrap}}

/* Daily operation hints do not occupy the upper work area. */
.pixel-editor #message{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;border:0!important;box-shadow:none!important;background:transparent!important}
.pixel-editor .pixel-shell #workspace>.drawing{grid-column:1;grid-row:1}.pixel-editor .pixel-shell #workspace>.colors{grid-column:2;grid-row:1}.web-creation-toolbar .pixel-start{width:auto;flex:0 0 auto}
@media(max-width:599px){.pixel-editor .pixel-shell>header{height:auto;min-height:0;flex-wrap:wrap;gap:5px;padding:4px 0 7px}.pixel-editor .pixel-shell>header h1{font-size:18px;flex:0 0 auto}.pixel-editor .pixel-shell>header #identity{position:static!important;order:1;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.pixel-editor .pixel-shell>header .pixel-header-actions{order:2;margin-left:auto;gap:5px}.pixel-editor .pixel-shell>header .pixel-header-actions button,.pixel-editor .pixel-shell>header .pixel-more summary{font-size:10px;min-height:29px;padding:5px 6px}.pixel-editor .pixel-shell>header .pixel-nav{display:flex!important;order:3;flex-basis:100%;justify-content:space-between;margin:0;gap:4px}.pixel-editor .pixel-shell>header .pixel-nav button{flex:1;font-size:11px;min-height:30px;padding:5px}.web-creation-toolbar .pixel-start{flex-grow:1}}
@media(max-width:599px){.pixel-editor .pixel-shell>header{flex:0 0 auto!important;max-height:none}.pixel-editor .pixel-shell>header .pixel-nav{height:auto!important;min-height:30px;flex:0 0 100%!important;position:static;align-self:stretch}.pixel-editor .pixel-shell>header .pixel-nav button{height:auto;max-height:none}}

.web-creation-toolbar .web-start-cta{order:99;margin-left:auto!important;min-height:48px;padding:6px 15px;background:#df4e7c;color:#fff;border:2px solid #96314f;border-radius:5px;box-shadow:0 4px 0 #96314f;gap:8px;line-height:1.15;flex:0 0 auto}.web-creation-toolbar .web-start-cta:before,.web-creation-toolbar .web-start-cta:after{content:none}.web-start-cta svg{width:25px;height:25px}.web-start-cta>span:first-of-type{display:grid;gap:3px;text-align:left}.web-start-cta b{font-size:15px;font-weight:800}.web-start-cta small{font-size:10px;opacity:.9}.web-start-cta>span:last-child{font-size:21px}.web-creation-toolbar .web-start-cta:hover{background:#ca386a}.web-creation-toolbar .web-start-cta:active{transform:translateY(2px);box-shadow:0 2px 0 #96314f}@media(max-width:599px){.web-creation-toolbar .web-start-cta{min-height:42px;padding:5px 9px;flex-grow:0}.web-start-cta b{font-size:13px}.web-start-cta small{font-size:9px}.web-start-cta svg{width:20px;height:20px}}

/* Craft guide: drawing on the left, a vertical step list on the right. */
.web-craft-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;flex:1;min-height:0;overflow:hidden}.web-craft-main{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:0;overflow:auto}.web-craft-page .web-craft-layout .web-craft-stage{flex:1;min-height:180px;height:0}.web-craft-layout .web-craft-controls{margin:0;flex-shrink:0}.web-craft-layout .web-craft-footer{margin:0;padding:8px 0 2px}.web-craft-layout .web-craft-extra{margin:0}.web-craft-layout .web-craft-plan{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px;padding:12px;overflow:hidden}.web-craft-layout .web-craft-plan>.heading{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex-shrink:0}.web-craft-layout .web-craft-plan>.heading button{width:100%}.web-craft-layout .web-craft-colors{display:flex;flex-direction:column;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:2px 4px 6px 0;gap:7px}.web-craft-layout .web-craft-colors button{width:100%;flex:0 0 auto;justify-content:flex-start;text-align:left;min-height:39px;font-size:12px!important;white-space:normal}.web-craft-layout #web-step-description{flex-shrink:0;margin:0;font-size:12px;line-height:1.7}.web-craft-layout [data-craft=step]{flex-shrink:0;width:100%;min-height:42px}@media(min-width:1600px){.web-craft-layout{grid-template-columns:minmax(0,1fr) 310px}}@media(max-width:899px){.web-craft-layout{grid-template-columns:minmax(0,1fr) 220px;gap:9px}.web-craft-layout .web-craft-plan{padding:9px}}@media(max-width:599px){.web-craft-layout{grid-template-columns:minmax(0,1fr) 124px;gap:7px}.web-craft-layout .web-craft-plan{padding:7px;gap:7px}.web-craft-layout .web-craft-plan h3{font-size:11px}.web-craft-layout .web-craft-plan>.heading button{font-size:10px;min-height:31px;padding:5px}.web-craft-layout .web-craft-colors button{font-size:10px!important;padding:5px;gap:4px;min-height:36px}.web-craft-layout .web-craft-colors button i{width:12px;height:12px}.web-craft-layout #web-step-description{font-size:10px;line-height:1.5}.web-craft-layout [data-craft=step]{font-size:11px;min-height:36px;padding:5px}.web-craft-page .web-craft-layout .web-craft-stage{min-height:140px}.web-craft-layout .web-craft-controls{gap:3px}.web-craft-layout .web-craft-controls button{padding:5px;min-height:30px}.web-craft-layout .web-craft-footer{gap:5px;flex-direction:column}.web-craft-layout .web-craft-footer button{padding:5px;min-height:31px}.web-craft-layout .web-craft-save-state{font-size:10px}.web-craft-layout .web-craft-bulk{flex-direction:column;align-items:stretch}}
.web-auth-screen [hidden]{display:none!important}.web-auth-screen{align-items:safe center}.web-auth-card{border-radius:8px;max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box}.web-auth-card form label{margin:10px 0}.web-auth-card label small{display:block;font-size:10px;line-height:1.6;margin-top:5px}.web-email-code-row{display:flex;gap:9px;align-items:center}.web-email-code-row input{min-width:0;flex:1}.web-email-code-row button{flex:none;min-height:36px;margin-top:6px;white-space:nowrap}.web-auth-forgot,.web-auth-back{display:block;margin:12px auto 0;box-shadow:none!important;background:transparent!important;border:0;color:#a34c76;font-size:12px}.web-account-dialog .web-auth-captcha label{min-width:0}.web-account-dialog .web-email-code-row{margin-bottom:12px}
#web-market{min-height:calc(100dvh - 140px);padding:24px;background:#f7f0fa}#web-market[hidden]{display:none!important}.web-market-toolbar{display:flex;gap:15px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:20px 0}.web-market-tabs,.web-market-search{display:flex;gap:8px;align-items:center}.web-market-tabs [aria-pressed=true]{background:#f8d4e2;color:#9d3863;border-color:#cb7194}.web-market-search input{width:210px;min-width:0}.web-market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.web-market-card{min-width:0;border:2px solid #604858;background:#fffaf0;box-shadow:3px 4px 0 #e8c1d5;border-radius:8px;overflow:hidden}.web-market-card>div{padding:15px}.web-market-image{display:block;width:100%;height:210px;box-shadow:none!important;border:0!important;border-radius:0!important;background:repeating-conic-gradient(#f5eefa 0 25%,#fffaf4 0 50%) 0/16px 16px;padding:18px}.web-market-image img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.web-market-card-title{display:flex;gap:6px;justify-content:space-between;align-items:start}.web-market-card h2{font-size:16px;margin:0;overflow-wrap:anywhere}.web-market-card p{font-size:11px;line-height:1.8;color:#866b80;margin:9px 0}.web-market-card small{display:block;font-size:11px;color:#97758c;margin-bottom:14px}.web-market-status{font-size:10px;white-space:nowrap;padding:3px 6px;border-radius:5px;background:#f0e3f4;color:#76566e}.status-approved{background:#e1efdb;color:#3d6e42}.status-rejected{background:#ffe0e4;color:#ad4268}.web-market-reason{overflow-wrap:anywhere}.web-market-pagination{display:flex;justify-content:center;gap:18px;align-items:center;margin:30px 0;font-size:12px;color:#866b80}.web-market-dialog{width:min(1000px,calc(100vw - 28px))!important;max-height:90dvh;overflow:auto;border-radius:8px}.web-market-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:260px;overflow:auto;margin:14px 0}.web-market-projects label{display:flex!important;align-items:center;gap:8px;border:1px solid #dac1d1;border-radius:5px;padding:8px;min-width:0}.web-market-projects input{width:auto!important;flex:none}.web-market-projects canvas{width:60px;height:60px;object-fit:contain;image-rendering:pixelated}.web-market-projects span{overflow-wrap:anywhere;font-size:12px}.web-market-projects small{display:block;font-size:10px;color:#94768d;margin-top:5px}.web-market-rights{display:flex!important;align-items:center;gap:8px}.web-market-rights input{width:auto!important;flex:none}.web-market-detail{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}.web-market-detail>div{background:#f3eafa;padding:14px}.web-market-detail canvas,.web-market-detail img{width:100%;max-height:62dvh;object-fit:contain;image-rendering:pixelated}.web-market-detail p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.web-market-detail h2{overflow-wrap:anywhere}.web-market-detail-actions{display:flex;gap:10px;flex-wrap:wrap}.web-market-detail-actions label{width:100%}.web-market-detail-actions textarea{width:100%}.web-market-submit-form>p{font-size:12px;line-height:1.8;color:#97758c}
@media(max-width:1200px){.web-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.web-market-image{height:190px}}@media(max-width:850px){.web-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.web-market-projects{grid-template-columns:repeat(2,minmax(0,1fr))}.web-market-detail{gap:15px}.web-market-search{width:100%}.web-market-search input{flex:1}}@media(max-width:599px){#web-market{padding:14px}.web-market-grid{gap:11px}.web-market-image{height:145px;padding:10px}.web-market-card>div{padding:10px}.web-market-card h2{font-size:13px}.web-market-card-title{flex-direction:column}.web-market-card p{font-size:10px}.web-market-detail{grid-template-columns:1fr}.web-market-detail canvas,.web-market-detail img{max-height:40dvh}.web-market-dialog{padding:15px!important}.web-market-projects{grid-template-columns:1fr}.web-market-search{gap:5px}.web-market-search select{max-width:100px}.web-auth-card{max-height:calc(100dvh - 26px);padding:20px}.web-auth-captcha>button{min-width:110px}.web-auth-captcha img{width:110px}.web-email-code-row button{font-size:11px;padding:6px 8px}.web-market-pagination{gap:10px}}

/* 市场占据独立WEB内容区，容器随页面增长。 */
body[data-web-section="market"] .pixel-shell{height:auto;min-height:calc(100dvh - 30px)}.web-market-search button{white-space:nowrap;flex:none}.web-market-search select{max-width:140px}
