:root{font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:#15203a;background:#f7faff;color-scheme:light}*{box-sizing:border-box}body{margin:0}main{max-width:1600px;margin:auto;padding:22px 28px 40px}a{color:#1260ff;text-decoration:none}header,header div{display:flex;align-items:center;justify-content:space-between;gap:18px}header a{font-weight:650}.hero{text-align:center;margin:32px auto 24px;max-width:750px}.badge{font-size:11px;letter-spacing:.12em;color:#4d6593;font-weight:750}h1{font-size:clamp(34px,5vw,48px);line-height:1.1;margin:14px 0}h1 span{color:#1260ff}.hero p{color:#536682}.upload{max-width:800px;margin:0 auto;background:#fff;border:1px dashed #93b8ff;border-radius:18px;padding:18px 24px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.upload>label{font-weight:750;color:#1260ff}.upload input{max-width:100%}.upload p{width:100%;margin:0;color:#60708b;font-size:13px}.note{font-size:13px;color:#5d6d85;max-width:1000px;margin:18px auto}.toolbar{background:white;border:1px solid #dce5f4;border-radius:16px 16px 0 0;padding:12px;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}.tools,.toolbar-actions{display:flex;gap:5px;flex-wrap:wrap}button,input,select,textarea{font:inherit}button{padding:9px 12px;border:1px solid #d6e0ef;border-radius:9px;background:#fff;color:#213c68;cursor:pointer;font-weight:600}button[aria-pressed=true]{background:#eaf1ff;border-color:#1260ff;color:#1255dc}.primary{background:#1260ff;color:white;border-color:#1260ff}button:disabled{opacity:.4;cursor:not-allowed}select,input[type=number],textarea{border:1px solid #cdd9eb;border-radius:8px;padding:8px;background:white;color:inherit}header select{padding:5px}.editor{display:grid;grid-template-columns:100px minmax(0,1fr) 210px;border:1px solid #dce5f4;border-top:0;border-radius:0 0 16px 16px;overflow:hidden;min-height:560px}.sidebar,.properties{background:#fff;padding:16px}.sidebar{border-right:1px solid #e4eaf4}.properties{border-left:1px solid #e4eaf4}.properties h2,.sidebar h2{font-size:14px;margin:0 0 14px}.properties label{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-size:13px}.properties input,.properties textarea{width:100%;max-width:100%}.properties input[type=color]{height:36px;border:1px solid #dce5f4;border-radius:8px;background:#fff}.muted{font-size:12px;color:#6c7a91}.sidebar nav{display:flex;flex-direction:column;gap:8px;max-height:700px;overflow:auto}.sidebar button{padding:15px 8px;background:#f9fbff}.sidebar button[aria-current=page]{background:#e8f0ff;border-color:#1260ff;color:#1260ff}.viewer{background:#eaf0f8;min-width:0}.pagebar{display:flex;gap:10px;justify-content:center;align-items:center;padding:12px;flex-wrap:wrap;font-size:13px}.pagebar button{font-size:12px;padding:6px 9px}.pagebar select{padding:4px}#scroller{overflow:auto;max-height:78vh;min-height:350px;padding:18px;overscroll-behavior:contain}#surface{position:relative;margin:0 auto;background:#fff;box-shadow:0 6px 26px #1b31522b;isolation:isolate}#pdfCanvas{display:block;width:100%;height:100%}#overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;overflow:hidden}#overlay[data-mode=select]{cursor:default}#overlay:not([data-mode=select]){cursor:crosshair}.hint{text-align:center;color:#526785;font-size:12px;padding:0 12px}#status{text-align:center;color:#2459a0}#error{padding:14px 18px;background:#fff0f2;color:#aa1834;border-radius:12px;max-width:1000px;margin:18px auto}footer{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:12px;color:#718097;margin-top:28px}[hidden]{display:none!important}:focus-visible{outline:3px solid #8eb7ff;outline-offset:2px}textarea{resize:vertical}#textSettings textarea{width:100%}@media(max-width:1050px){.editor{grid-template-columns:75px minmax(0,1fr)}.properties{grid-column:1/-1;border-left:0;border-top:1px solid #e4eaf4;display:flex;gap:18px;flex-wrap:wrap}.properties h2,.properties>p{width:100%;margin:0}.properties label{min-width:100px;flex:1}.properties>div{width:100%}.properties textarea{width:100%}.sidebar{padding:12px}.sidebar h2{font-size:11px}main{padding:18px 15px}}@media(max-width:600px){.editor{grid-template-columns:minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid #e4eaf4;padding:8px}.sidebar h2{display:none}.sidebar nav{flex-direction:row;max-height:70px}.sidebar button{min-width:44px;padding:8px}.toolbar{padding:8px}.toolbar button{font-size:12px;padding:8px}#scroller{padding:10px}.pagebar{gap:7px}.hero{margin-top:26px}.upload{padding:16px}header{gap:10px}header div{gap:10px}}
