:root{--blue:#288ee3;--blue-dark:#1176c7;--text:#182a3b;--muted:#7a8797;--line:#e3eaf2;--bg:#f5f7fa;--card:#fff;--shadow:0 12px 40px #263b5612}*{box-sizing:border-box}body,html{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{border:0;background:0 0;cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,label:focus-within,select:focus-visible,textarea:focus-visible{outline:3px solid #77bafb;outline-offset:2px}button:disabled{opacity:.38;cursor:not-allowed}h1,h2,p{margin-top:0}h2{font-size:15px;letter-spacing:-.2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.topbar{background:#fff;min-height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 22px;gap:14px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#1e3246;font-weight:760;white-space:nowrap;font-size:17px}.brand-mark{background:#2499ee;color:#fff;border-radius:11px;width:34px;height:34px;display:grid;place-items:center;font-size:22px;font-weight:800}.brand small{font-size:13px;color:#7e8a97;font-weight:550}.headactions{display:flex;align-items:center;gap:9px}.local-note{font-size:12px;color:#368a79;margin-right:9px;white-space:nowrap}.full-btn,.primary-btn,.soft-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:10px 13px;border:1px solid var(--line);font-weight:650;font-size:12px;white-space:nowrap;transition:background .12s}.full-btn:hover,.soft-btn:hover{background:#edf5fc}.primary-btn{border-color:#268ee2;background:#288ee3;color:#fff;box-shadow:0 3px 8px #238ce52c}.primary-btn:hover{background:#0875c3}.workspace{display:grid;grid-template-columns:256px minmax(400px,1fr) 256px;min-height:calc(100vh - 114px);max-height:calc(100vh - 114px);overflow:hidden}.panel{background:#fff;overflow-y:auto;scrollbar-width:thin;padding:22px 16px}.leftpanel{border-right:1px solid var(--line)}.rightpanel{border-left:1px solid var(--line)}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.panel-head h2{margin:0;font-size:15px}.chip{padding:5px 9px;font-size:10px;color:#3a80ae;background:#eaf5ff;border-radius:7px;font-weight:700}.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#f3f6f9;border-radius:10px;padding:3px;gap:1px;margin-bottom:19px}.tabs button{padding:9px 4px;font-size:12px;font-weight:650;border-radius:8px;color:#718090}.tabs button.active{background:#fff;color:#1881d4;box-shadow:0 2px 6px #273b5717}.upload{padding:25px 12px 20px;border:1.5px dashed #a9ceee;background:#f5fbff;display:flex;align-items:center;flex-direction:column;gap:7px;border-radius:14px;cursor:pointer;text-align:center}.upload:hover{border-color:#228ee7}.upload-icon{font-size:26px;display:grid;place-items:center;background:#e8f4ff;color:#238de2;width:40px;height:40px;border-radius:12px}.upload strong{font-size:13px}.upload small{color:#8b98a5;font-size:11px}.mini-blue{margin-top:6px;border-radius:8px;background:#e0f0fd;color:#1476be;padding:8px 12px;font-size:11px;font-weight:700}.subtle{color:#9aa6b3}.small{font-size:10px}.photo-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:19px}.photo-tile{border-radius:10px;border:2px solid transparent;background:#f2f4f7;min-height:85px;height:92px;padding:0;position:relative;overflow:hidden}.photo-tile:focus-visible,.photo-tile:hover{border-color:#38a0f0}.photo-tile img{height:100%;width:100%;object-fit:cover;display:block}.photo-tile span{position:absolute;bottom:0;left:0;right:0;background:#15233499;color:#fff;padding:4px 5px;font-size:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.help{font-size:12px;line-height:1.6;color:#738392}.layout-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.layout-card{border:1px solid #e1e9f1;border-radius:10px;padding:7px;display:flex;flex-direction:column;gap:7px;text-align:center;font-size:11px;font-weight:650}.layout-card.active,.layout-card:hover{border-color:#278fe3;background:#f3faff}.layout-sketch{height:72px;background:#fbf5eb;border-radius:6px;display:flex;gap:4px;padding:8px;align-items:stretch}.layout-sketch i{background:#d5dfeb;border-radius:3px;flex:1}.layout-sketch.cover{flex-direction:column}.layout-sketch.cover i:first-child{flex:5}.layout-sketch.cover i:last-child{flex:1;background:#e5cdab}.layout-sketch.triptych i:first-child{flex:2}.layout-sketch.grid{display:grid;grid-template-columns:1fr 1fr}.layout-sketch.grid i{min-height:22px}.layout-sketch.editorial i:first-child{flex:1;background:#ecccb4}.layout-sketch.editorial i:last-child{flex:2}.layout-sketch.blank i{display:none}.sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:17px}.sticker-grid button{font-size:28px;border:1px solid var(--line);border-radius:10px;padding:9px 0}.sticker-grid button:hover{background:#f0f7ff}.section-title{font-weight:750;font-size:12px;margin:20px 0 10px;color:#344b62}.full-btn{width:100%;justify-content:flex-start;text-align:left;margin-bottom:9px;background:#fafbfd}.left-footer{margin-top:26px;border-top:1px solid var(--line);padding-top:8px}.left-footer p,.publish-panel p{color:#8a97a6;font-size:11px;line-height:1.6}.editor-area{min-width:0;display:flex;flex-direction:column;overflow:hidden}.editor-top{background:#fff;min-height:75px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 25px;gap:14px}.doc-title{display:flex;flex-direction:column;gap:3px;min-width:0}.doc-title input{font-weight:780;border:0;outline:0;background:0 0;font-size:17px;max-width:290px;min-width:130px;width:100%}.doc-title input:focus{box-shadow:0 2px #7bbbef}.doc-title span{font-size:10px;color:#93a0ae}.toolstrip{display:flex;align-items:center;gap:6px}.toolstrip button{min-width:30px;border:1px solid var(--line);border-radius:8px;padding:8px 9px;font-size:13px;background:#fff}.toolstrip button:hover{background:#f2f7fb}.toolstrip #toggleGuides{font-size:10px;font-weight:700}.toolstrip #zoomLabel{font-size:11px;width:39px;text-align:center}.stripline{height:20px;width:1px;background:var(--line);margin:0 7px}.stage-scroll{flex:1;min-height:180px;overflow:auto;display:flex;align-items:center;flex-direction:column;padding:28px 25px 18px;background:radial-gradient(#dfe7ef 1px,transparent 1px) 0 0/20px 20px,#f4f6f9}.stage-heading{width:min(100%,820px);display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.stage-heading strong{font-size:15px}.stage-heading span{color:#9aa7b3;font-size:11px;margin-left:8px}.stage-heading .a4-label{font-size:10px}.stage-hint{margin-top:17px;color:#8b99a7;font-size:11px;text-align:center;line-height:1.7}#stageSizer{width:min(100%,820px);aspect-ratio:297/210;flex-shrink:0;box-shadow:0 16px 46px #233f5730,0 1px 4px #0002;position:relative;background:#fff;transform-origin:top center}#pageCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}#pageCanvas:focus-visible{outline-offset:5px}.pages-panel{background:#fff;border-top:1px solid var(--line);padding:14px 22px 18px}.pages-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}.pages-heading h2{margin:0;font-size:13px}.pages-heading h2 span{color:#98a7b6;padding-left:5px}.page-actions{display:flex;gap:6px}.page-actions button{padding:8px 10px}.pages-strip{display:flex;gap:13px;overflow-x:auto;padding:3px 2px 7px;min-height:98px}.page-thumb{flex:0 0 118px;display:flex;flex-direction:column;align-items:stretch;gap:5px;text-align:left;font-size:11px;color:#7c8c9e}.page-thumb canvas{width:118px;aspect-ratio:297/210;box-shadow:0 3px 9px #223b521d;border:2px solid transparent;border-radius:5px}.page-thumb.active canvas{border-color:#198ce4;box-shadow:0 0 0 2px #d3eaff}.rightpanel .field{display:flex;flex-direction:column;margin-bottom:14px;gap:6px}.rightpanel .field label{font-size:11px;font-weight:750;color:#465b6f}.rightpanel input:not([type=range]),.rightpanel select,.rightpanel textarea{background:#f8fafc;border:1px solid #dfe7ed;border-radius:9px;padding:10px;width:100%;font-size:12px;color:#2b4154;min-width:0}.rightpanel textarea{min-height:90px;resize:vertical}.rightpanel input[type=color]{padding:3px!important;height:40px}.rightpanel input[type=range]{width:100%;accent-color:#2793e8}.double{display:grid;grid-template-columns:1fr 1fr;gap:8px}.panel-divider{height:1px;background:var(--line);margin:19px 0}.inspector-sub{color:#96a4b1;font-size:11px;line-height:1.6;margin-bottom:16px}.inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.inspector-actions button{font-size:11px;border:1px solid var(--line);border-radius:8px;padding:9px 6px;background:#f9fbfe}.inspector-actions button:hover{background:#ecf5ff}.danger{color:#bd4f58!important}.publish-panel{border-top:1px solid var(--line);margin-top:24px;padding-top:4px}.dark-btn{background:#253c54;color:#fff;justify-content:center}.dark-btn:hover{background:#344f6e;color:#fff}.printinfo{font-size:10px;color:#8898a7;line-height:1.55;text-align:center;margin-top:8px}.bottom-note{font-size:11px;background:#eff5fa;color:#7b8997;padding:12px 22px;line-height:1.45;min-height:42px}.bottom-note strong{color:#51768f}.bottom-note span{margin-left:10px}.toast{position:fixed;z-index:50;bottom:22px;left:50%;transform:translateX(-50%);background:#203750;color:#fff;padding:14px 20px;border-radius:12px;font-size:12px;box-shadow:var(--shadow);max-width:min(90%,600px)}.modal-backdrop{position:fixed;inset:0;z-index:90;background:#0c253f88;display:grid;place-items:center;padding:18px}.progress-card{width:min(95vw,420px);background:#fff;border-radius:16px;padding:27px;box-shadow:var(--shadow)}.progress-card h2{font-size:21px}.progress-card p{font-size:12px;color:#7c8d9b}.progress-track{height:9px;background:#eff2f7;border-radius:999px;overflow:hidden;margin:20px 0}.progress-track div{height:100%;width:0;background:var(--blue);transition:width .15s}.field-hint{color:#71879c;font-size:10px;margin-top:-4px}.badge-warning{display:inline-block;padding:6px 8px;color:#9b6318;background:#fff2d9;border-radius:8px;font-size:11px;line-height:1.5}@media(max-width:1120px){.workspace{grid-template-columns:215px minmax(340px,1fr) 220px}.panel{padding:17px 12px}.local-note{display:none}.editor-top{padding:10px 13px}.stage-scroll{padding:22px 14px}}@media(max-width:860px){.workspace{grid-template-columns:minmax(0,1fr);display:flex;flex-direction:column;max-height:none;overflow:visible}.leftpanel,.rightpanel{overflow:visible;border:0;border-bottom:1px solid var(--line)}.left-footer{display:none}.leftpanel{padding:14px}.leftpanel .panel-head{margin-bottom:9px}.leftpanel .tabs{max-width:420px}.leftpanel .tabcontent{max-height:190px;overflow-y:auto}.leftpanel .photo-library{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}.leftpanel .photo-tile{height:75px;min-height:75px}.rightpanel{padding:16px}.rightpanel .publish-panel{margin-top:12px}.editor-area{overflow:visible;min-height:400px}.stage-scroll{overflow:visible;min-height:210px;padding:20px 12px}.pages-panel{padding:12px}.topbar{padding:10px 14px}.brand small{display:none}.editor-top{flex-wrap:wrap}.rightpanel #inspector{max-width:100%}.rightpanel .field{max-width:480px}}@media(max-width:520px){.topbar{flex-wrap:wrap}.headactions{width:100%;justify-content:space-between}.headactions button{flex:1;padding:9px 5px;font-size:10px}.stage-heading{flex-wrap:wrap}.stage-heading .a4-label{margin-left:0}.editor-top{align-items:flex-start}.toolstrip{flex-wrap:wrap}.pages-heading{align-items:flex-start;flex-direction:column}.page-actions{flex-wrap:wrap}.page-actions button{font-size:11px}.bottom-note span{display:block;margin:6px 0 0}}.preflight-results{margin:12px 0;padding:11px;background:#f2f7fc;border:1px solid #d5e8f9;border-radius:10px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.preflight-results ul{margin:6px 0 0;padding-left:18px}.preflight-results li{margin:5px 0}.preflight-results strong{color:#234e69}.headactions #recoverDraft{border-color:#eab27a;color:#975323}@media(max-width:520px){.headactions #recoverDraft{width:100%;flex:auto}}.photo-card{position:relative;min-width:0}.photo-card>.photo-tile{display:block;width:100%}.photo-remove{position:absolute;right:4px;top:4px;z-index:2;background:#fffdf3eb;color:#8d2944;border:1px solid #fff;border-radius:7px;width:25px;height:25px;font-size:19px;line-height:1;font-weight:700;box-shadow:0 1px 6px #0003}.photo-remove:hover{background:#ffe9ed;color:#9d2d45}.photo-remove:focus-visible{outline:3px solid #77bafb}.object-panel{border-top:1px solid var(--line);padding-top:6px;margin-top:14px}.object-choice{display:block;width:100%;text-align:left;overflow-wrap:anywhere;background:#f7fafd;border:1px solid var(--line);border-radius:8px;padding:9px 10px;font-size:11px;margin-bottom:7px;line-height:1.4}.object-choice:hover,.object-choice[aria-pressed=true]{background:#eaf4fe;border-color:#3197df}.object-choice[aria-pressed=true]{font-weight:700}