*{box-sizing:border-box} :root{font-family:Inter,"Microsoft YaHei","Noto Sans SC",sans-serif;color:#253041;background:#f5f6f8;font-synthesis:none}body{margin:0;font-size:13px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid transparent;border-radius:7px;padding:9px 13px;background:#fff;color:#485365;transition:.15s}button:hover{background:#edf1f7}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #5c72ed;outline-offset:2px}a{color:#5369dd;text-decoration:none}.primary{background:#596ce8;color:white;box-shadow:0 2px 5px #4557bc20;font-weight:600}.primary:hover{background:#485dd7}.outline{border-color:#dce1e8;background:white}.quiet{background:transparent;color:#647186}.muted{color:#9299a6;font-size:12px}.topbar{height:65px;background:#fff;border-bottom:1px solid #e6e9ee;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:15px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;white-space:nowrap}.brand span{font-weight:400;color:#717d90;margin-left:9px;padding-left:12px;border-left:1px solid #dce1e8}.brand small{font-size:9px;letter-spacing:1px;color:#7684b1;background:#f0f2fc;padding:5px 7px;border-radius:4px}.mark{background:#596ce8;color:white;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:19px}.header-actions{display:flex;align-items:center;gap:13px}.header-actions .primary{padding:11px 16px}.header-actions span:last-child{margin-left:8px}.app-layout{display:grid;grid-template-columns:204px minmax(500px,1fr) 275px;min-height:calc(100vh - 65px)}.sidebar{background:#fbfcfe;border-right:1px solid #e4e8ef;display:flex;flex-direction:column;padding:23px 17px 12px;max-height:calc(100vh - 65px);position:sticky;top:0}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;font-weight:600;margin-bottom:17px}.pill{background:#edf0f6;color:#6d788c;font-size:11px;border-radius:5px;padding:3px 7px}.upload-button{background:#fff;border:1px dashed #bbc6de;color:#5267d7;font-weight:500;width:100%;margin-bottom:21px;padding:11px}.page-list{overflow:auto;flex:1;min-height:200px}.page-card{width:100%;padding:8px;border-radius:9px;border:1px solid transparent;text-align:left;margin-bottom:12px;background:transparent}.page-card.active{background:#eef1ff;border:1px solid #7183ee}.page-card img{display:block;aspect-ratio:16/9;width:100%;object-fit:contain;background:#162642;border-radius:4px}.page-card .caption{display:flex;gap:8px;margin-top:9px;align-items:center;font-size:11px}.page-card .caption span:first-child{font-variant-numeric:tabular-nums;color:#8b97aa}.page-card .caption strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500;flex:1}.tiny-status{display:inline-block;margin:7px 0 0 19px;font-size:10px;color:#8892a5}.tiny-status.ready{color:#309176}.sidebar-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px;font-size:11px;color:#a1a9b5;padding-top:14px;border-top:1px solid #e9ecf1}.sidebar-bottom button{padding:6px 0;font-size:12px}main{padding:27px 27px 22px;min-width:0}.project-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:12px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#a0aabd;font-weight:600}.project-heading input{font-size:22px;color:#253041;font-weight:650;border:0;background:transparent;padding:8px 0 2px;width:100%;min-width:250px;outline:0}.project-heading input:focus{box-shadow:0 1px #677be8}.project-heading p{font-size:12px;color:#8d96a7;margin:7px 0 0}.workflow{display:flex;align-items:center;gap:13px;margin-bottom:19px;font-size:11px;color:#9aa3b4;flex-wrap:wrap}.workflow b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e9edf4;margin-right:6px;font-size:10px;font-weight:500}.workflow i{font-style:normal;color:#d5dae4}.workflow .done{color:#7d879b}.workflow .done b{background:#edf0fc;color:#7f8bba}.workflow .active{color:#5266d8;font-weight:600}.workflow .active b{background:#596ce8;color:white}.workflow .status{margin-left:auto;color:#2a9478;border:1px solid #cfe7dc;background:#f1faf6;padding:5px 8px;border-radius:5px;font-size:10px}.workflow .status.warn{color:#a9772e;border-color:#ecdec8;background:#fffbf2}.workarea{background:#fff;border:1px solid #e0e5ee;border-radius:11px;overflow:hidden;box-shadow:0 4px 16px #1b315608}.toolbar{height:49px;display:flex;justify-content:space-between;align-items:center;padding:0 13px;border-bottom:1px solid #e9ecf1;gap:8px}.view-tabs{display:flex;gap:3px}.view-tabs button{font-size:11px;padding:7px 10px;background:transparent;white-space:nowrap}.view-tabs button.active{background:#edf0ff;color:#5166df;font-weight:600}.tools{display:flex;align-items:center;gap:3px}.tools button{padding:3px 7px;font-size:21px;color:#8b94a7}.tools span{font-size:10px;color:#9ba4b5;margin-left:8px;white-space:nowrap}.canvas-host{min-height:350px;padding:32px 24px;background:#e9ecf2;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.stage-shell{position:relative;flex-shrink:0;box-shadow:0 7px 25px #34446c25}.stage{position:absolute;left:0;top:0;transform-origin:top left;overflow:hidden;user-select:none;background:#082950}.stage>.background{position:absolute;width:100%;height:100%;pointer-events:none}.layer{position:absolute;box-sizing:border-box;transform-origin:center;cursor:move;outline:0}.layer img{display:block;width:100%;height:100%;pointer-events:none}.layer.text{display:flex;align-items:center;overflow:visible;line-height:1.2;white-space:pre;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif}.layer.text .text-inner{width:100%;pointer-events:none}.layer:hover:not(.locked){outline:2px solid #b6c5ff99}.layer.selected{outline:3px solid #94a7ff!important}.layer.locked{cursor:default}.resize{width:16px;height:16px;background:white;border:3px solid #6179ee;position:absolute;right:-8px;bottom:-8px;cursor:nwse-resize}.crop-selection{position:absolute;outline:3px dashed #bcdbff;background:#8ebeff22;pointer-events:none;z-index:9999}.stage.cropping,.stage.cropping .layer{cursor:crosshair}.canvas-footer{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:10px;color:#97a0b1}.action-row{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:8px}.action-row>div{display:flex;gap:6px;flex-wrap:wrap}.action-row button{font-size:11px;padding:8px 10px}.notice{display:flex;align-items:flex-start;gap:9px;margin:17px 1px;font-size:11px;color:#929caf;line-height:1.8}.notice-dot{width:6px;height:6px;background:#8c9dbd;display:block;border-radius:50%;flex-shrink:0;margin-top:6px}.notice.warn{color:#a27a40}.notice.warn .notice-dot{background:#d4aa65}.inspector{border-left:1px solid #e4e8ef;background:#fff;display:flex;flex-direction:column;height:calc(100vh - 65px);position:sticky;top:0;overflow:hidden}.inspector-tabs{height:58px;border-bottom:1px solid #edf0f5;display:flex;padding:0 17px;gap:25px;flex-shrink:0}.inspector-tabs button{border-radius:0;background:transparent;color:#8b95a7;padding:17px 3px 14px}.inspector-tabs button.active{color:#4f63d6;border-bottom:2px solid #6175eb;font-weight:600}.inspector-tabs span{font-size:10px;background:#eef1f9;border-radius:4px;padding:2px 5px;margin-left:4px}#layers-panel{display:flex;flex-direction:column;flex:1;min-height:0}#layers-panel[hidden]{display:none}.layer-search{padding:17px 15px 10px}.layer-search input{width:100%;padding:8px 10px;background:#f6f7fa;border:1px solid #edf0f4;border-radius:6px;font-size:11px}.filters{display:flex;gap:3px;padding:0 13px 12px}.filters button{font-size:10px;padding:5px 8px;color:#98a1b0}.filters button.active{background:#edf0fa;color:#586acc}.layer-list{overflow:auto;flex:1;padding:0 8px}.layer-row{display:flex;align-items:center;padding:8px 6px;border-radius:6px;gap:6px;min-height:40px;cursor:pointer;font-size:11px;margin-bottom:2px}.layer-row:hover{background:#f6f8fc}.layer-row.selected{background:#eef1ff;color:#4f66d5}.layer-symbol{width:23px;height:23px;display:grid;place-items:center;background:#f0f3f8;color:#8392ab;border-radius:4px;flex-shrink:0;font-size:12px}.layer-name{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layer-row button{background:transparent;padding:2px 3px;color:#a0aabc;font-size:12px}.layer-row.hidden-layer{opacity:.4}.inspector-bottom{border-top:1px solid #edf0f5;padding:16px;color:#657187;font-size:11px;display:flex;flex-direction:column;gap:7px;flex-shrink:0}.inspector-bottom small{font-size:10px;line-height:1.8;color:#9ba4b4}.property-section{padding:16px;border-bottom:1px solid #edf0f5}.property-section h3{font-size:11px;letter-spacing:.5px;font-weight:600;margin:0 0 14px;color:#8792a5}.property-section label{font-size:11px;color:#7d889b;display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.property-section input,.property-section textarea,.property-section select{width:100%;border:1px solid #dde3ec;border-radius:5px;background:#fff;padding:7px 9px;min-width:0;color:#3f4d64}.property-section textarea{resize:vertical;line-height:1.6}.property-section input[type=color]{height:31px;padding:2px;width:45px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.run-actions{display:flex;gap:7px;align-items:center;margin-bottom:12px}.run-actions button{border:1px solid #dde3ec;padding:5px 10px}.run-actions button.active{background:#eef1ff;border-color:#b2bcf5;color:#4c61cc}.property-buttons{display:flex;gap:5px;flex-wrap:wrap}.property-buttons button{font-size:11px;border:1px solid #e4e8ef;padding:7px 9px}.danger{color:#c66b6b!important}#properties-panel{overflow:auto;flex:1}.empty-property{text-align:center;padding:60px 18px;color:#a3adbe;line-height:2;font-size:12px}.job-panel{border:1px solid #e2e7f0;border-radius:9px;background:white;margin-top:20px;padding:16px}.section-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600}.section-title span{font-size:10px;font-weight:400;color:#9ca5b5}.job{border-top:1px solid #eef1f6;padding-top:11px;margin-top:12px;font-size:11px}.job-title{display:flex;justify-content:space-between}.progress{height:4px;background:#edf0f7;margin:9px 0;border-radius:10px;overflow:hidden}.progress>i{display:block;background:#7181ea;height:100%}.job small{color:#9ba5b6;line-height:1.8}.job.failed small{color:#bd7557}.empty{text-align:center;color:#8896ad}.empty h2{color:#4e5f7d;font-size:21px;font-weight:500}.empty-icon{font-size:55px;color:#abb6d1}.empty p{font-size:12px;margin-bottom:20px}dialog{width:min(640px,90vw);border:1px solid #e4e8f1;border-radius:15px;padding:27px;box-shadow:0 25px 100px #16233c40;color:#46546b}dialog::backdrop{background:#25364e66;backdrop-filter:blur(3px)}dialog h2{margin:8px 0;font-size:22px;font-weight:600;color:#283a58}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head>button{font-size:26px;padding:3px 10px}dialog p{color:#8a96a9;font-size:12px;line-height:1.9;margin:13px 0 22px}dialog label{display:flex;flex-direction:column;gap:8px;color:#60708a;margin-bottom:17px;font-size:12px}dialog input:not([type=checkbox]),dialog select{border:1px solid #dce3ef;padding:11px;border-radius:7px;background:#fafbfd;min-width:0}dialog .info-box{background:#f5f7fc;color:#8593aa;font-size:11px;line-height:1.9;padding:12px;border-radius:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-actions>button:first-child{margin-right:auto}#batch-pages{max-height:250px;overflow:auto}#batch-pages label,#checklist label{flex-direction:row;align-items:center;background:#f7f9fc;padding:12px;border-radius:6px;margin-bottom:7px}#batch-pages input,#checklist input{accent-color:#6475dc}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:#253653;color:white;border-radius:8px;padding:12px 20px;z-index:10000;transition:.2s;box-shadow:0 4px 25px #19264030;max-width:80vw;font-size:12px}#toast.show{opacity:1;transform:translateX(-50%)}[hidden]{display:none!important}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#dbe0ea;border-radius:6px}@media(min-width:1600px){.app-layout{grid-template-columns:225px minmax(600px,1fr) 300px}main{padding:32px 38px}.canvas-host{padding:45px 30px}.canvas-footer{height:38px}.action-row button{font-size:12px}}@media(max-width:1150px){.app-layout{grid-template-columns:165px minmax(410px,1fr) 240px}main{padding:22px 16px}.toolbar{padding:0 6px}.tools #zoom{display:none}.view-tabs button{padding:6px 7px}.workflow{gap:7px}.workflow .status{display:none}.sidebar{padding:20px 12px}.brand small{display:none}.action-row{align-items:flex-start}.canvas-host{padding:20px 12px}.header-actions #save-state{display:none}.project-heading input{font-size:19px}}@media(max-width:860px){.app-layout{grid-template-columns:140px minmax(400px,1fr)}.inspector{grid-column:1/-1;height:360px;position:static;border-top:1px solid #e4e8ef}.topbar{padding:0 12px}.brand span{font-size:13px}.brand{font-size:14px}.header-actions{gap:2px}.sidebar{max-height:none}.project-heading p{font-size:10px}.workflow{font-size:10px}.header-actions button{font-size:11px}.canvas-host{min-height:250px}}

.original-overlay{position:absolute;inset:0;width:100%;height:100%;opacity:.5;pointer-events:none;z-index:2000}.quality-issues{padding:12px;background:#fff5e9;border:1px solid #e8cba2;border-radius:8px;margin:12px 0;max-height:180px;overflow:auto}.quality-issues button{display:block;text-align:left;font-size:12px;margin:5px 0;color:#925322}.calibration-option{display:block;border:1px solid #dce3ef;margin:8px 0;padding:12px;width:100%;text-align:left}

.delivery-proof{margin:12px 0 4px;padding:13px 15px;border:1px solid #dce5fa;background:linear-gradient(135deg,#f8faff,#f1f5ff);border-radius:9px}.proof-heading{display:flex;justify-content:space-between;align-items:center;color:#40558f;font-size:12px}.proof-heading span{font-size:10px;color:#7180a4;background:#e7edff;padding:3px 7px;border-radius:99px}.proof-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:11px 0}.proof-grid div{background:#fff;border:1px solid #e6ebf6;border-radius:6px;padding:7px 8px;min-width:0}.proof-grid small{display:block;color:#8c98ae;font-size:10px;margin-bottom:4px}.proof-grid b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#367b67}.proof-grid b.warn{color:#a77735}.delivery-proof button{font-size:11px;padding:6px 9px}.proof-note{font-size:10px;color:#8794aa}.evidence-sheets{display:flex;flex-direction:column;gap:18px;max-height:65vh;overflow:auto}.evidence-sheets figure{margin:0}.evidence-sheets figcaption{font-size:11px;color:#6c7890;margin:0 0 7px}.evidence-sheets img{display:block;width:100%;height:auto;background:#202b3d;border-radius:6px;border:1px solid #dbe3f1}
.job-details{display:block;margin-top:8px;padding:4px 0;color:#5369dd;background:transparent;font-size:10px}.job-log-list{margin:0;max-height:48vh;overflow:auto;padding:0;list-style:none}.job-log-list li{display:grid;grid-template-columns:76px 1fr;gap:10px;padding:9px 3px;border-top:1px solid #edf0f5;color:#546178;font-size:12px;line-height:1.55}.job-log-list time{color:#99a4b5;font-variant-numeric:tabular-nums}
.supplier-warning{margin:8px 0 2px;padding:7px 9px;border:1px solid #edc986;background:#fff9eb;border-radius:6px;color:#95691e;font-size:10px;line-height:1.55}

.live-status{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 16px;margin-bottom:16px;border:1px solid #bdcafa;background:#edf2ff;border-radius:9px;color:#344d89;line-height:1.6}.live-status button{flex-shrink:0}#manage-pages{margin:8px 0 12px;width:100%}#manage-page-list{max-height:340px;overflow:auto}#manage-page-list label,#manage-dialog>label{flex-direction:row;align-items:center;gap:10px;padding:9px;background:#f7f9fc;margin-bottom:5px}.danger{color:#b52c3c;border-color:#e6b6bc}

/* Shared provider selection follows the site's existing colour and type tokens. */
.ming-provider-choice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:14px 0;padding:12px 14px;border:1px solid var(--line,#456052);border-radius:10px;background:var(--surface,transparent)}
.ming-provider-choice label{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;font-weight:600}
.ming-provider-choice select{width:auto;min-width:180px;max-width:100%;padding:8px 12px;color:inherit;background:var(--field,#192124);border:1px solid var(--line,#456052);border-radius:7px}
.ming-provider-choice small{flex:1;min-width:180px;font-size:12px;line-height:1.6;opacity:.8}
