
:root{--ink:#172e32;--teal:#087a76;--soft:#e7f4ef;--line:#dce4e2;--muted:#647978;--paper:#fbfcfa;--orange:#b65532}*{box-sizing:border-box}body{margin:0;font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:#f1f4f1}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:8px 12px;font-weight:600;transition:background .15s}button:hover{background:#edf5f1}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #87c9b6;outline-offset:2px}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:var(--teal);color:white;border-color:var(--teal)}button.primary:hover{background:#086862}.danger{color:#a03934}button.quiet{background:transparent;border-color:transparent}h1,h2,h3,p{margin:0}header{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px}.logo{background:var(--ink);color:#fff;border-radius:11px;padding:9px 13px;font-size:23px}h1{font-size:19px;letter-spacing:-.5px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.4px;color:var(--teal);text-transform:uppercase}.sub{font-size:12px;color:var(--muted)}.row{display:flex;align-items:center;gap:8px}.wrap{flex-wrap:wrap}.grow{flex:1}.pill{border-radius:20px;background:var(--soft);color:#116456;font-size:11px;padding:4px 9px;font-weight:700}.layout{height:calc(100vh - 106px);display:grid;grid-template-columns:224px minmax(360px,1fr) 318px}.sidebar{background:#fff;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line)}.sidehead{padding:17px 14px 12px;border-bottom:1px solid var(--line)}.sidehead .row{justify-content:space-between}.small{font-size:12px}.hint{color:var(--muted);font-size:12px;line-height:1.5}.pages{overflow:auto;flex:1;padding:10px}.thumb{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;padding:8px;margin-bottom:5px;cursor:pointer;position:relative}.thumb:hover{background:#f4f7f4}.thumb.active{background:var(--soft);border-color:#8fc7b5}.thumb.dragging{opacity:.45}.thumb img{width:46px;height:61px;object-fit:contain;background:white;border:1px solid var(--line);border-radius:3px}.thumb .name{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:118px;color:var(--muted)}.thumb .num{font-weight:750;font-size:13px}.thumb .draghandle{color:#a2b3ae;font-size:17px}.sidefoot{padding:10px;border-top:1px solid var(--line)}.sidefoot button{font-size:11px;padding:6px 8px}.workspace{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(#cbd7d0 .75px,transparent .75px) 0 0/14px 14px}.toolbar{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f4f7f3e8;border-bottom:1px solid var(--line)}.toolbar button{font-size:12px}.stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:24px 24px 40px}.paper{position:relative;flex-shrink:0;background:white;box-shadow:0 8px 35px #1a382421;line-height:0}.paper canvas{width:100%;height:100%}#cropBox{position:absolute;border:2px solid #0a8d7a;background:#0d9c7814;pointer-events:none;display:none;box-shadow:0 0 0 3000px #102e3244}#previewCanvas{touch-action:none;position:relative;z-index:1}.empty{max-width:450px;text-align:center;align-self:center;background:#ffffffed;border:1px solid var(--line);border-radius:18px;padding:40px 30px;box-shadow:0 10px 35px #253d230a;margin:auto}.empty h2{font-size:27px;letter-spacing:-1px;margin:14px 0 9px}.empty p{color:var(--muted);margin-bottom:24px}.empty .steps{text-align:left;display:grid;gap:10px;margin-top:25px;font-size:12px;color:var(--muted)}.steps b{color:var(--teal);margin-right:9px}.previewfoot{padding:9px 18px;background:#ffffffde;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.previewfoot input{width:54px;padding:5px}.inspector{background:#fff;border-left:1px solid var(--line);overflow:auto;min-height:0}.tabs{display:flex;gap:4px;padding:12px;position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid var(--line)}.tabs button{flex:1;border-color:transparent;font-size:12px}.tabs .active{background:var(--soft);color:var(--teal)}.panel{padding:18px 18px 30px}.section{padding-bottom:20px;margin-bottom:19px;border-bottom:1px solid var(--line)}.section:last-child{border:0;margin:0}.section h3{font-size:13px;margin-bottom:12px}.section label{display:block;font-size:12px;margin:11px 0 5px;color:#425e5c}.section input[type=number],.section input[type=text],select{width:100%;padding:8px;border:1px solid #cfdcd6;border-radius:7px;background:white;color:var(--ink)}.section input[type=range]{width:100%;accent-color:var(--teal)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid4{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.switch{display:flex!important;align-items:center;justify-content:space-between;gap:10px;color:var(--ink)!important}.switch input{width:17px;height:17px;accent-color:var(--teal)}.note{padding:10px 12px;background:#f2f7f3;border:1px solid #dbe9de;border-radius:8px;font-size:11px;color:#45645b;margin:10px 0}.warn{background:#fff6e9;border-color:#eed9b6;color:#855620}.tag{font-size:10px;color:var(--teal);background:var(--soft);padding:2px 5px;border-radius:4px}.btnfull{width:100%;margin-top:8px}.hidden{display:none!important}.cropbar{padding:10px 18px;background:#e8f5ef;border-bottom:1px solid #bfdccc;display:flex;gap:8px;align-items:center;font-size:12px}.cropbar button{padding:5px 9px;font-size:11px}.statusbar{height:30px;background:#183c3b;color:#e6f5ef;padding:6px 16px;font-size:11px;display:flex;justify-content:space-between}.statusbar span:last-child{color:#b2d2c7}.toast{position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:10px;box-shadow:0 4px 20px #0002;z-index:50;max-width:80vw;font-size:13px}.modal{position:fixed;inset:0;background:#102b3070;z-index:40;display:flex;align-items:center;justify-content:center;padding:25px}.modalbox{background:white;border-radius:16px;width:540px;max-height:85vh;overflow:auto;padding:26px;box-shadow:0 30px 90px #102b3066}.modalbox h2{font-size:22px;letter-spacing:-.6px;margin-bottom:8px}.modalbox p{margin:12px 0}.checkrow{padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;gap:15px}.good{color:#07765a}.amber{color:#9a6222}.progress{height:6px;background:#e5ece7;border-radius:5px;overflow:hidden;margin:14px 0}.progress div{background:var(--teal);height:100%;width:0;transition:width .15s}input[type=file]{display:none}.dragover{outline:4px dashed #168a77;outline-offset:-8px}footer p{margin-top:9px}a{color:var(--teal)}body.busy main,body.busy header{pointer-events:none;opacity:.8}.modalbox button{min-height:36px}.aligns{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.aligns button{padding:5px;font-size:13px}.aligns .active{background:var(--soft);border-color:#8fc7b5}details summary{font-size:12px;font-weight:650;cursor:pointer;padding:8px 0}.recovery{padding:12px 20px;background:#e5f4e9;display:flex;align-items:center;justify-content:space-between;gap:10px}.recovery button{padding:5px 9px;font-size:12px}#checksList{max-height:230px;overflow:auto}.kbd{border:1px solid #d5dfd7;border-radius:4px;padding:0 4px;font-size:10px}.bigstat{font-size:24px;font-weight:750;letter-spacing:-1px}.errornote{background:#fff0ed;color:#9b3c29}.cropcanvaswrap{position:relative;overflow:hidden}.cropcanvaswrap canvas{display:block;width:100%;height:auto}#cropCanvas{cursor:crosshair;touch-action:none}.cropoverlay{position:absolute;border:2px solid #0d8f77;box-shadow:0 0 0 2500px #102b3266;pointer-events:none}.subtle{color:var(--muted)}@media(max-width:1050px){.layout{grid-template-columns:170px minmax(300px,1fr) 285px}header{padding:0 15px}.headerextra{display:none}.thumb .name{max-width:78px}.toolbar{padding:10px}.toolbar .label{display:none}}@media(max-width:800px){body{overflow:auto}.layout{height:auto;min-height:85vh;grid-template-columns:125px minmax(210px,1fr)}.inspector{grid-column:1/-1;max-height:none}.workspace{min-height:650px}.sidebar{max-height:650px}.toolbar{flex-wrap:wrap}.brand h1{font-size:15px}header{height:auto;min-height:76px;flex-wrap:wrap;padding:12px}.headeractions{gap:4px}.headeractions button{font-size:11px;padding:7px}.statusbar{height:auto}.thumb img{width:30px;height:42px}.thumb{gap:6px;padding:5px}.thumb .name{max-width:60px}.thumb .draghandle{display:none}}
.crop-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0;font-size:12px}.crop-tools label{display:flex;align-items:center;gap:7px}.crop-tools select,.crop-exact select,.crop-exact input{padding:6px;border:1px solid var(--line);border-radius:6px;max-width:100%}.crop-tools input[type=range]{accent-color:var(--teal);width:100px}.crop-tools input[type=checkbox]{accent-color:var(--teal)}.crop-tools button{font-size:11px;padding:5px 8px}.crop-exact{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:10px;margin:12px 0;font-size:11px}.crop-exact label{display:grid;gap:4px}.cropcanvaswrap{padding:16px;overflow:auto;max-height:48vh;background:#e8ede9;border:1px solid var(--line);border-radius:8px}.cropcanvaswrap canvas{max-width:none}.cropoverlay{cursor:move;pointer-events:auto;touch-action:none;z-index:2}.crop-handle{position:absolute;width:14px;height:14px;background:white;border:2px solid #087a76;box-shadow:0 1px 4px #0003;border-radius:3px;transform:translate(-50%,-50%);z-index:3;touch-action:none}.crop-handle.nw{left:0;top:0;cursor:nwse-resize}.crop-handle.n{left:50%;top:0;cursor:ns-resize}.crop-handle.ne{left:100%;top:0;cursor:nesw-resize}.crop-handle.e{left:100%;top:50%;cursor:ew-resize}.crop-handle.se{left:100%;top:100%;cursor:nwse-resize}.crop-handle.s{left:50%;top:100%;cursor:ns-resize}.crop-handle.sw{left:0;top:100%;cursor:nesw-resize}.crop-handle.w{left:0;top:50%;cursor:ew-resize}.thirds{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33%,#ffffff75 33%,#ffffff75 33.3%,transparent 33.3%,transparent 66.6%,#ffffff75 66.6%,#ffffff75 67%,transparent 67%),linear-gradient(to bottom,transparent 33%,#ffffff75 33%,#ffffff75 33.3%,transparent 33.3%,transparent 66.6%,#ffffff75 66.6%,#ffffff75 67%,transparent 67%)}
/* Studio v8 | responsive desktop publishing workspace */
:root{--ink:#192334;--teal:#4263e8;--soft:#eef2ff;--line:#e1e6ee;--muted:#66758a;--paper:#fff;--orange:#a56113;--accent:#4263e8;--surface:#f4f6fa;--navy:#182336}
body{min-height:100dvh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;font:13px/1.45 "Inter", "Segoe UI",system-ui,sans-serif;background:#f5f7fa;color:var(--ink);font-weight:400;-webkit-font-smoothing:antialiased}
button,input,select{font-family:inherit}button{min-height:34px;font-size:12.5px;font-weight:600;line-height:1.3;border-radius:7px;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;white-space:normal}button:hover{background:#f1f5ff;border-color:#bcc9fa}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.thumb:focus-visible{outline:3px solid #9bb0ff;outline-offset:2px}button.primary{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 2px 4px #243caa24}button.primary:hover{background:#3151d8;border-color:#3151d8}button.quiet:hover{background:#eef2ff}button.danger{color:#b33e50}button.danger:hover{background:#fff1f3;border-color:#f0bdc5}button:disabled{opacity:.42}
header{height:65px;flex:0 0 65px;padding:0 22px;background:var(--navy);border:0;color:#eaf0fb;gap:16px;box-shadow:0 1px 0 #081220;z-index:3}
.brand{gap:11px;min-width:215px}.logo{display:grid;place-items:center;width:38px;height:38px;padding:0;background:#536ff2;border:1px solid #7087ff;border-radius:10px;box-shadow:0 4px 12px #0a142b55}.logo svg{width:24px;height:24px;display:block}h1{font-size:16px;line-height:1.2;font-weight:700;letter-spacing:-.35px;color:inherit}.brand .eyebrow{font-size:9px;font-weight:700;letter-spacing:1.15px;color:#a6b6d2;margin-bottom:4px}.headerextra{min-width:0;justify-content:center;gap:11px;flex:1}.headercontext{display:flex;flex-direction:column;gap:3px;min-width:0}.headercontext strong{font-weight:650;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.headercontext .sub{color:#a7b5cb;font-size:11px}.headerextra .pill{color:#b9c9ff;background:#2c3c61;padding:5px 9px;letter-spacing:.4px;font-size:10px}.headeractions{gap:8px;flex-shrink:0}.headeractions button:not(.primary){background:#233249;border-color:#425168;color:#e6edf8}.headeractions button:not(.primary):hover{background:#344662;border-color:#61738f}.headeractions .primary{padding:9px 16px;min-height:38px;border-color:#6980ff;background:#4f6cf2}.headeractions .primary:hover{background:#6980ff}
.layout{height:auto;flex:1;min-height:0;display:grid;grid-template-columns:244px minmax(250px,1fr) 334px;overflow:hidden;gap:0}
.sidebar{border-right:1px solid #dce2ec;min-width:0;background:#fff}.sidehead{padding:16px 14px 12px;background:#fff;border-bottom:1px solid #e5e9f0;display:grid;gap:10px}.sidehead .row{gap:8px}.sidehead b{font-size:14px;letter-spacing:-.2px}.sidehead .tag{margin-left:4px;color:#4b5b73;background:#edf0f5;padding:3px 7px;font-size:11px;border-radius:9px}.sidehead #addBtn{padding:6px 10px;min-height:32px;color:white;background:var(--accent);border-color:var(--accent)}.sidehead #addBtn:hover{background:#3151d8}.searchbox{display:flex;align-items:center;gap:7px;border:1px solid #dce2ec;border-radius:8px;padding:6px 9px;background:#f8f9fc;color:#728097}.searchbox svg{width:16px;height:16px;flex:none}.searchbox:focus-within{border-color:#899eff;background:#fff;box-shadow:0 0 0 3px #dce4ff}.searchbox input{width:100%;min-width:0;outline:none!important;border:0;background:transparent;color:var(--ink);font-size:12px}.searchbox input::placeholder{color:#8390a2}.searchbox input::-webkit-search-cancel-button{cursor:pointer}
.pages{padding:9px;background:#f8f9fc;scrollbar-width:thin;scrollbar-color:#c1cadb transparent}.thumb{padding:9px 7px;margin-bottom:6px;gap:8px;border-radius:9px;border:1px solid #e5e9f1;background:#fff;min-width:0;box-shadow:0 1px 2px #17233a05}.thumb:hover{border-color:#b7c6fb;background:#f5f7ff}.thumb.active{border:1px solid #7c96ff;background:#ecf1ff;box-shadow:inset 3px 0 var(--accent)}.thumb img{width:45px;height:61px;border-color:#d8dfea;flex-shrink:0;border-radius:4px;box-shadow:0 1px 3px #13244215}.thumb>div{flex:1;min-width:0}.thumb .num{font-size:12px;font-weight:700;color:#233449;letter-spacing:.02px}.thumb.active .num{color:#314dce}.thumb .name{font-size:11px;max-width:none;color:#63738a;margin-top:3px;line-height:1.4}.thumb .draghandle{font-size:17px;color:#acb7c8;flex-shrink:0;cursor:grab}.thumb .thumbmeta{font-size:10px;color:#8b98ab;margin-top:3px}.thumb.active .thumbmeta{color:#6579c7}.page-empty{height:100px;display:grid;place-content:center;text-align:center;color:#8290a5;padding:20px;font-size:12px}.sidefoot{padding:10px;background:#fff;border-top:1px solid #e0e6ef}.sidefoot .row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sidefoot button{font-size:11px;min-height:31px;padding:6px 7px}.sidefoot #clearBtn{grid-column:1/-1;background:#fff;border:1px solid #ecd9df}
.workspace{min-width:0;min-height:0;background:#e9edf4}.toolbar{padding:10px 14px;background:#fff;border-bottom:1px solid #dee4ed;gap:10px;min-height:51px;flex-wrap:wrap}.toolbar .row{gap:6px}.toolbar button{min-height:31px;padding:6px 9px;font-size:12px}.toolbar #autoFitBtn{background:#f4f6ff;border-color:#dbe3ff;color:#3752c2}.toolbar #quickEditBtn{background:#fff;border-color:#dce3ee}.toolbar #zoomLabel{min-width:38px;text-align:center;color:#566780;font-weight:600}.toolbar .tool-divider{height:23px;border-left:1px solid #e0e5ee;margin:0 1px}
.documentbar{height:35px;flex:0 0 35px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;background:#f6f8fc;border-bottom:1px solid #dfe5ef;color:#607087;font-size:11px}.documentbar .documentname{font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.documentbar .documentmode{background:#e7edfc;color:#4057a7;border-radius:5px;font-weight:650;padding:3px 7px;white-space:nowrap;flex-shrink:0}
.stage{min-height:0;background-color:#e8edf4;background-image:radial-gradient(#bac7da88 .65px,transparent .65px);background-size:15px 15px;padding:25px 24px 30px;scrollbar-width:thin}.paper{box-shadow:0 0 0 1px #c8d0dd,0 16px 40px #20314f28;background:white}.paper canvas{display:block}.empty{max-width:500px;width:100%;padding:38px 34px 30px;text-align:left;background:#ffffff;border-radius:16px;box-shadow:0 14px 45px #26395618;border:1px solid #dce3ee;margin:auto}.empty .empty-illustration{display:flex;align-items:center;justify-content:center;width:63px;height:63px;border-radius:16px;background:#edf1ff;color:#4765e7;margin-bottom:20px;border:1px solid #dce5ff}.empty .empty-illustration svg{width:34px;height:34px}.empty .pill{background:#eaf0ff;color:#4a63c4;font-size:10px;letter-spacing:.6px;padding:4px 8px}.empty h2{font-size:29px;line-height:1.14;letter-spacing:-.9px;margin:12px 0 9px;color:#19263c}.empty p{font-size:13px;color:#69778b;line-height:1.55;margin-bottom:22px}.empty .primary{width:100%;font-size:14px;min-height:43px}.empty .steps{border-top:1px solid #e5e9f0;padding-top:18px;margin-top:22px;gap:11px;font-size:12px;color:#485971}.empty .steps div{display:flex;align-items:center;gap:9px}.empty .steps b{font-size:10px;letter-spacing:.2px;border-radius:6px;background:#eef2ff;color:#4560ce;padding:5px 7px;margin:0}.empty p.hint{font-size:11px;color:#78879b;margin-top:16px!important}
.previewfoot{background:#fff;border-top:1px solid #dee4ed;min-height:47px;padding:7px 13px;gap:8px}.previewfoot input[type=number]{width:48px;text-align:center;padding:6px 4px;border:1px solid #dce3ee;border-radius:6px}.previewfoot button{min-height:31px;padding:4px 11px;font-size:18px;line-height:1}.previewfoot input[type=checkbox]{accent-color:var(--accent)}.previewfoot #sideLabel{font-size:11px;color:#718098;text-align:right}
.inspector{background:#f5f7fb;border-left:1px solid #dce2ec;min-width:0;scrollbar-width:thin;scrollbar-color:#c1cadb transparent}.inspector-head{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid #dfe5ee;padding:14px 13px 0}.inspector-head .eyebrow{color:#7889a2;font-size:10px;letter-spacing:1.2px;margin-bottom:3px}.inspector-head h2{font-size:17px;font-weight:700;letter-spacing:-.3px;margin:0 0 10px}.tabs{position:static;background:#f0f3f8;border:1px solid #e2e7ef;border-radius:9px;margin-bottom:12px;display:flex;gap:3px;padding:4px}.tabs button{flex:1;min-height:33px;min-width:0;font-size:11px;color:#596a81;border:1px solid transparent;border-radius:6px;background:transparent;padding:5px 3px;white-space:nowrap}.tabs .active{background:white;color:#3b57d2;border-color:#d8e1fe;box-shadow:0 1px 4px #364c8d0b}.tabs button:hover{background:#e7edfd}.tabs .active:hover{background:white}
.panel{padding:12px 12px 22px}.panel-intro{display:flex;align-items:center;gap:8px;margin:0 1px 12px;color:#65758d;font-size:11px;line-height:1.45}.panel-intro span{flex:none;display:grid;place-items:center;background:#e9eeff;color:#4862d5;font-weight:700;width:22px;height:22px;border-radius:6px}
.section{margin:0 0 12px;padding:15px 13px 16px;border:1px solid #dfe5ef!important;background:#fff;border-radius:10px;box-shadow:0 1px 3px #1c2d4907;min-width:0}.section:last-child{margin-bottom:0}.section h3{font-size:14px;line-height:1.3;font-weight:700;color:#23344c;letter-spacing:-.15px;margin:0 0 12px}.section .eyebrow{color:#7486a3;letter-spacing:1px;font-size:9px}.section label{font-size:11px;color:#56667d;font-weight:600;margin:12px 0 5px}.section input[type=number],.section input[type=text],.section select{border:1px solid #d8e0ed;border-radius:7px;background:#fff;color:#213149;font-size:12px;line-height:1.35;min-height:36px;padding:8px 9px;outline-offset:1px;min-width:0;text-overflow:ellipsis}.section select{padding-right:24px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23687990' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center}.section select:disabled,.section input:disabled{background-color:#f0f2f6;color:#8d99ac}.section .grid2,.section .grid4{gap:10px}.section .grid2>div,.section .grid4>div{min-width:0}.section .switch{background:#f6f8fc;border:1px solid #e5eaf2;border-radius:7px;padding:9px 9px;color:#304159!important;margin:12px 0 7px;font-size:11.5px;line-height:1.33;font-weight:600}.switch input{accent-color:var(--accent);flex:none}.section .btnfull{font-size:12px;min-height:34px;margin-top:8px;padding:7px 8px}.section .grid2 button{font-size:11.5px;padding:8px 6px}.section #checksBtn{background:#e8eeff;border-color:#ccd8ff;color:#3851c5;font-weight:700}.section #checksBtn:hover{background:#dae4ff}.section .tag{background:#eef2f8;color:#67758b;font-size:9px;letter-spacing:.35px;padding:4px 6px}.hint{color:#74839a;font-size:11px;line-height:1.5}.note{color:#3f567d;background:#edf3ff;border:1px solid #dce6ff;border-radius:7px;padding:9px 10px;font-size:11px;line-height:1.45;margin:9px 0}.warn{color:#905817;background:#fff7e8;border-color:#f2dfa8}.subtle{color:#76849a}.section details.summary-details{margin-top:10px}.section details.summary-details summary{font-size:11.5px;color:#596b85;padding:7px 0}.section .group-label{font-size:10px;color:#8291a6;text-transform:uppercase;font-weight:750;letter-spacing:.7px;margin-top:16px;border-top:1px solid #edf0f5;padding-top:10px}
details.section{padding:0;overflow:hidden}details.section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:13px 14px;cursor:pointer;gap:8px;color:#23354e;font-weight:700;font-size:13px;outline-offset:-3px}details.section>summary::-webkit-details-marker{display:none}details.section>summary::after{content:'+';font-size:17px;font-weight:400;color:#667d9e}details.section[open]>summary{border-bottom:1px solid #e8edf5}details.section[open]>summary::after{content:'−'}details.section .section-inner{padding:3px 13px 15px}details.section .section-inner>summary{font-weight:600}.section summary .tag{margin-left:auto}.guide-card{background:#fff;border:1px solid #dfe5ef;border-radius:9px;padding:8px 12px;margin-top:12px}.guide-card summary{color:#546780;font-size:12px;font-weight:650}
.statusbar{height:auto;min-height:29px;flex:0 0 auto;padding:7px 15px;background:#202c40;color:#dce5f6;gap:15px;line-height:1.3;font-size:11px}.statusbar span:last-child{color:#adbbd2}.recovery{background:#edf2ff;border-bottom:1px solid #cbdaff;color:#3650a8;padding:9px 16px;flex:0 0 auto}.toast{background:#19263c;color:white;border:1px solid #40536c;border-radius:9px;box-shadow:0 8px 28px #21324b35}.modal{background:#101b2e99;backdrop-filter:blur(3px)}.modalbox{border:1px solid #dfe5ef;border-radius:14px;padding:23px;box-shadow:0 25px 75px #12223e66}.modalbox h2{font-size:21px;color:#213149;letter-spacing:-.35px}.modalbox .row:first-child{align-items:center}.checkrow{border-color:#e7ebf2;padding:9px 3px;font-size:12px;line-height:1.45}.good{color:#247458}.amber{color:#9c661a}.progress{background:#e4eaf7;height:7px}.progress div{background:var(--accent)}#exportSummary{background:#f5f7ff;border:1px solid #e0e6ff;border-radius:9px;padding:10px 13px;margin:12px 0}.modalbox #exportSummary p{margin:0}.bigstat{color:#3552d0}.cropcanvaswrap{background:#e7ecf5;border-color:#d5deec}.cropoverlay{border-color:#536fe8}.crop-handle{border-color:#536fe8}.crop-exact input,.crop-exact select,.crop-tools select{border-color:#d8e0ec;color:#24344a}.crop-tools input[type=range],.crop-tools input[type=checkbox],.section input[type=range]{accent-color:var(--accent)}
@media(max-width:1300px){.layout{grid-template-columns:220px minmax(230px,1fr) 306px}.headerextra{display:flex}.toolbar .label{display:none}.toolbar #quickEditBtn{font-size:11px}.toolbar{padding:8px 11px}.empty h2{font-size:26px}.panel{padding:10px}.section{padding-left:11px;padding-right:11px}.section .hint{font-size:10.5px}.headercontext strong{max-width:165px}}
@media(max-width:1050px){.layout{grid-template-columns:184px minmax(220px,1fr) 283px}.headerextra{display:none}.thumb img{width:38px;height:51px}.thumb .draghandle{font-size:14px}.thumb{gap:6px;padding:7px 5px}.sidehead{padding:12px 10px}.sidehead b{font-size:12px}.toolbar .row{gap:4px}.toolbar #quickEditBtn{font-size:10px}.documentbar{padding:0 9px}.previewfoot{flex-wrap:wrap}.previewfoot #sideLabel{display:none}.previewfoot input[type=number]{width:42px}.empty{padding:25px 22px}.empty h2{font-size:23px}}
@media(max-width:800px){body{height:auto;min-height:100vh;overflow:auto}header{height:auto;flex:0 0 auto;min-height:65px;padding:12px 13px;flex-wrap:wrap}.brand{min-width:0}.headeractions{gap:6px}.headeractions button{font-size:11px;min-height:32px;padding:6px 9px}.layout{flex:1;display:grid;grid-template-columns:140px minmax(0,1fr);min-height:0;overflow:visible}.sidebar{max-height:650px;min-height:570px}.workspace{min-height:570px;max-height:650px}.inspector{grid-column:1/-1;background:#f5f7fb;border-top:1px solid #dce2ec;border-left:0;overflow:visible}.inspector-head{position:static}.panel{padding:12px 14px}.thumb img{width:30px;height:43px}.thumb .draghandle{display:none}.thumb .name{max-width:none;font-size:10px}.thumb .thumbmeta{display:none}.thumb .num{font-size:11px}.sidehead .row{flex-wrap:wrap}.sidehead #addBtn{width:100%}.sidehead .hint{font-size:10px}.sidefoot .row{grid-template-columns:1fr}.sidefoot #clearBtn{grid-column:auto}.toolbar{flex-wrap:wrap;gap:5px}.toolbar button{padding:5px 7px}.toolbar .row{flex-wrap:wrap}.stage{padding:20px 12px 26px}.empty{border-radius:12px;padding:20px 15px}.empty h2{font-size:21px}.empty .empty-illustration{width:48px;height:48px;margin-bottom:12px}.empty .empty-illustration svg{width:27px;height:27px}.empty .steps{font-size:11px}.documentbar .documentmode{display:none}.statusbar{font-size:10px;flex-wrap:wrap}.modalbox{padding:17px}.crop-exact{grid-template-columns:repeat(2,1fr)}}


/* v9 canvas-first workspace: less chrome, more room for the page. */
:root{--left-panel:196px;--right-panel:276px}
header{height:50px;flex:0 0 50px;padding:0 12px;gap:12px}.brand{gap:8px;min-width:185px}.logo{width:31px;height:31px;border-radius:7px}.logo svg{width:21px;height:21px}.brand .eyebrow{font-size:8px;margin-bottom:2px;letter-spacing:.9px}.brand h1{font-size:14px}.headeractions button,.headeractions .primary{min-height:30px;padding:6px 11px;font-size:11.5px;border-radius:6px}.headercontext{gap:0}.headercontext strong{font-size:11px}.headercontext .sub{font-size:10px}
.layout{grid-template-columns:var(--left-panel) minmax(0,1fr) var(--right-panel)}.sidebar{grid-column:1;grid-row:1}.workspace{grid-column:2;grid-row:1}.inspector{grid-column:3;grid-row:1}
body.hide-pages .layout{grid-template-columns:0 minmax(0,1fr) var(--right-panel)}body.hide-pages .sidebar{display:none}body.hide-settings .layout{grid-template-columns:var(--left-panel) minmax(0,1fr) 0}body.hide-settings .inspector{display:none}body.hide-pages.hide-settings .layout,body.focus-mode .layout{grid-template-columns:0 minmax(0,1fr) 0}body.focus-mode .sidebar,body.focus-mode .inspector,body.focus-mode>header,body.focus-mode>.statusbar{display:none}
.sidehead{padding:10px 10px 8px;gap:7px}.sidehead b{font-size:12px}.sidehead #addBtn{font-size:11px;min-height:28px;padding:5px 7px}.sidehead .hint{font-size:10px}.searchbox{padding:5px 7px}.searchbox input{font-size:11px}.pages{padding:6px}.thumb{padding:6px 5px;margin-bottom:5px;gap:6px;border-radius:7px}.thumb img{width:37px;height:50px}.thumb .num{font-size:11px}.thumb .name,.thumb .thumbmeta{font-size:10px;margin-top:2px}.thumb .draghandle{font-size:13px}.sidefoot{padding:7px}.sidefoot .row{gap:5px}.sidefoot button{min-height:27px;font-size:10.5px;padding:4px 6px}
.toolbar{padding:5px 8px;min-height:37px;gap:6px;flex-wrap:nowrap}.toolbar .row{gap:4px;flex-shrink:0}.toolbar button{min-height:27px;height:27px;padding:4px 7px;font-size:11px;border-radius:5px;white-space:nowrap}.toolbar .label{display:none}.toolbar .tool-divider{height:19px;margin:0 1px}.toolbar #zoomLabel{font-size:10.5px;min-width:34px}.toolbar .documentbar{height:auto;flex:1;min-width:0;padding:0 2px;border:0;background:transparent;display:block;line-height:1.25}.toolbar .documentname{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar .documentmode{display:none}.toolbar .view-toggle{color:#6a7890;background:#fff;border-color:#dfe5ee}.toolbar .view-toggle[aria-pressed="true"]{color:#3756d0;background:#edf1ff;border-color:#c5d1ff}.toolbar #focusBtn{color:#3957d2;background:#eef2ff;border-color:#d2dcff}.toolbar #focusBtn[aria-pressed="true"]{background:#405ee3;color:#fff;border-color:#405ee3}
.stage{padding:7px 8px;justify-content:flex-start;align-items:flex-start;overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;background-color:#e8edf4;background-size:18px 18px}.paper{margin:0 auto;box-shadow:0 0 0 1px #ccd4e1,0 7px 25px #1f345326}.empty{align-self:center;margin:auto}.previewfoot{min-height:32px;padding:3px 9px;gap:7px;flex-wrap:nowrap}.previewfoot button{min-height:25px;height:25px;padding:3px 9px;font-size:16px}.previewfoot input[type=number]{height:25px;min-width:36px;width:41px;padding:2px 3px;font-size:11px}.previewfoot .row{gap:5px}.previewfoot #sideLabel{font-size:10px}.statusbar{min-height:22px;padding:4px 10px;font-size:10px;line-height:1.3}
.inspector-head{padding:10px 10px 0}.inspector-head .eyebrow{display:none}.inspector-head h2{font-size:15px;margin:0 0 8px}.tabs{margin-bottom:8px;padding:3px;border-radius:7px;gap:2px}.tabs button{min-height:27px;font-size:10.5px}.panel{padding:8px 9px 15px}.panel-intro{font-size:10px;gap:6px;margin:0 0 8px}.panel-intro span{width:18px;height:18px;font-size:10px}.section{padding:11px 10px 12px;margin-bottom:8px;border-radius:8px}.section h3{font-size:13px;margin:0 0 8px}.section label{font-size:10.5px;margin:9px 0 4px}.section input[type=number],.section input[type=text],.section select{min-height:30px;padding:6px 7px;font-size:11px}.section select{padding-right:22px}.section .switch{margin:8px 0 5px;padding:7px;font-size:10.5px}.section .switch input{width:14px;height:14px}.section .btnfull{font-size:11px;min-height:29px;margin-top:6px;padding:5px 6px}.section .grid2 button{min-height:29px;font-size:10.5px;padding:5px}.section .grid2,.section .grid4{gap:7px}.section .hint,.section .note{font-size:10px;line-height:1.45}.section .note{padding:7px 8px;margin:7px 0}.section .tag{font-size:8px}details.section{padding:0}details.section>summary{padding:10px 11px;font-size:12px}details.section .section-inner{padding:2px 10px 12px}.guide-card{padding:5px 8px;margin-top:8px}.guide-card summary{font-size:11px}
@media(max-width:1250px){:root{--left-panel:174px;--right-panel:254px}.toolbar .documentbar{display:none}.toolbar #quickEditBtn{font-size:10px}.toolbar{flex-wrap:wrap}.toolbar .row{gap:3px}.toolbar button{padding:3px 6px;font-size:10px}.headerextra{display:none}}
@media(max-width:800px){body:not(.focus-mode){height:auto;min-height:100vh;overflow:auto}header{height:auto;min-height:48px;flex:0 0 auto;padding:8px}.layout{grid-template-columns:125px minmax(0,1fr);grid-template-rows:minmax(520px,70vh) auto;overflow:visible}.sidebar{grid-column:1;grid-row:1;min-height:0;max-height:none}.workspace{grid-column:2;grid-row:1;min-height:0;max-height:none}.inspector{grid-column:1/-1;grid-row:2}.toolbar{min-height:37px;flex-wrap:wrap}.toolbar .tool-divider{display:none}.previewfoot{flex-wrap:wrap}.previewfoot #sideLabel{display:none}.stage{padding:6px}.sidehead #addBtn{width:100%}.thumb img{width:25px;height:35px}.thumb .thumbmeta{display:none}.sidefoot .row{grid-template-columns:1fr}.sidefoot #clearBtn{grid-column:auto}.panel{padding:10px}body.hide-pages .layout{grid-template-columns:0 minmax(0,1fr)}body.hide-settings .layout{grid-template-columns:125px minmax(0,1fr);grid-template-rows:minmax(520px,80vh)}body.hide-pages.hide-settings .layout{grid-template-columns:0 minmax(0,1fr)}body.focus-mode{height:100dvh;overflow:hidden}body.focus-mode .layout{grid-template-columns:0 minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}}



.help-source{display:none!important}.help-icon{position:relative;display:inline-grid;place-items:center;vertical-align:middle;width:12px;height:12px;margin-left:4px;flex:0 0 12px;border:1px solid #c3cbd5;border-radius:50%;color:#8994a3;background:transparent;font:600 8px/1 system-ui;cursor:help;text-transform:none;letter-spacing:0;user-select:none;transition:color .15s,border-color .15s,background .15s}.help-icon::before{content:"";position:absolute;inset:-4px;border-radius:50%}.help-icon:hover,.help-icon:focus-visible{background:#eef2ff;border-color:#7891e6;color:#4365cb;outline:none}.help-icon[data-warning]{color:#b08b5e;border-color:#d2bd9e}.help-icon[data-warning]:hover,.help-icon[data-warning]:focus-visible{color:#95601d;border-color:#bf934f;background:#fff8ec}.help-icon[hidden]{display:none!important}.studio-tooltip{position:fixed;z-index:10000;max-width:min(300px,calc(100vw - 24px));width:max-content;padding:10px 12px;background:#202b3b;color:#f5f7fc;border:1px solid #425068;border-radius:7px;box-shadow:0 6px 22px #101b3940;font:12px/1.55 system-ui;text-align:left;white-space:pre-line;pointer-events:none}.studio-tooltip[hidden]{display:none}.help-heading{display:flex;align-items:center;gap:3px}.help-heading .help-icon{margin-left:3px} .switch .help-icon{margin-left:auto} .help-icon:focus-visible{outline:2px solid #7794f8;outline-offset:2px}
