#pdf-editor{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:1800px;max-height:none;padding:0;border:1px solid #547080;border-radius:16px;background:#0d1829;color:#e7eef7;overflow:hidden;font:14px system-ui,'Malgun Gothic',sans-serif}#pdf-editor::backdrop{background:#030917d9;backdrop-filter:blur(5px)}#pdf-editor *{box-sizing:border-box}#pdf-editor [hidden]{display:none!important}.pdf-shell{display:grid;grid-template-columns:minmax(0,1fr) 370px;height:100%;min-height:0}.pdf-preview{min-width:0;min-height:0;position:relative;background:#303c4b}#pdf-scroll{height:100%;overflow:auto;padding:18px}.pdf-sheet{position:relative;margin:auto;background:white;box-shadow:0 4px 20px #0004}.pdf-sheet canvas,.pdf-text-layer{position:absolute;inset:0}.pdf-overlay{pointer-events:none}.pdf-text-layer button{position:absolute;border:0;padding:0;background:transparent;min-height:0;border-radius:0;cursor:text}.pdf-text-layer button:hover,.pdf-text-layer button.selected{outline:1px solid #248bcc;background:#61b4ee25}.pdf-page-tools{position:absolute;top:6px;right:10px;z-index:2;display:flex;align-items:center;gap:8px;padding:3px 6px;border-radius:8px;background:#14253588;font-size:11px}.pdf-side{display:flex;flex-direction:column;min-height:0;border-left:1px solid #405362}.pdf-info{padding:12px;color:#bbcfdd;font-size:13px}.pdf-fields{padding:12px;flex:1;overflow:auto}.pdf-fields label{display:block;font-size:12px;color:#b8cad6;margin:10px 0 6px}.pdf-fields textarea{width:100%;font:14px/1.6 system-ui;background:#192b3e;color:#edf6fa;border:1px solid #4a6278;border-radius:8px;padding:9px;min-height:70px;resize:vertical}.pdf-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pdf-options input,.pdf-options select{width:100%;height:33px;background:#192b3e;color:#edf6fa;border:1px solid #4a6278;border-radius:6px}.pdf-note{font-size:11px;line-height:1.6;color:#9db1c4}.pdf-actions{display:flex;gap:5px;padding:10px 12px}#pdf-editor button{font:inherit;color:inherit}#pdf-editor .pdf-actions button,#pdf-editor .pdf-page-tools button{background:#213448;border:1px solid #486174;border-radius:7px;padding:7px 3px;white-space:nowrap;font-size:12px}.pdf-actions button{flex:1;min-width:0}#pdf-editor button:disabled{opacity:.4;cursor:default}#pdf-apply,#pdf-download{background:#266e63!important}#pdf-error{color:#ffd2db;background:#4c2939;padding:10px;border-radius:8px;overflow-wrap:anywhere}#pdf-status{font-size:12px;color:#a6dcca}#pdf-drop{width:100%;min-height:300px;height:90%;border:2px dashed #849aa9;border-radius:14px;background:transparent;color:#cfdee7;cursor:pointer}#pdf-open,#hwpx-open{grid-column:auto;width:100%;background:#193b40;border-color:#6db6aa66;color:#d8f4ec}
@media(max-width:850px){#pdf-editor{width:100vw;height:100dvh;border-radius:0}.pdf-shell{grid-template-columns:1fr;grid-template-rows:minmax(200px,1fr) minmax(300px,1fr)}.pdf-side{border-left:0;border-top:1px solid #405362}.pdf-info{padding:8px 12px}.pdf-fields{padding:0 12px}.pdf-fields textarea{min-height:50px;height:55px}.pdf-options{grid-template-columns:repeat(4,1fr)}.pdf-note{margin:7px 0}.pdf-actions{padding:7px 12px}.pdf-actions .menu-icon{width:12px;height:12px}}

.pdf-sheet{margin-bottom:24px;scroll-margin-top:18px}.pdf-unrendered::after{content:attr(aria-label);position:absolute;top:45%;left:0;right:0;text-align:center;color:#8292a2;font-size:14px}#pdf-scroll{overscroll-behavior:contain;overflow-anchor:none}.pdf-text-layer{overflow:hidden}
.pdf-inline-editor{position:absolute;z-index:4;background:#edf5fc;border:1px solid #528bb3;border-radius:7px;padding:8px;box-shadow:0 4px 16px #0003;color:#172535}.pdf-inline-input{display:block;width:100%;min-height:55px;margin:0 0 7px;padding:7px;border:1px solid #91aabd;border-radius:4px;background:white;color:#172535;font:14px/1.5 system-ui;resize:vertical}.pdf-inline-actions{display:flex;gap:6px}#pdf-editor .pdf-inline-actions button{border:1px solid #91aabd;border-radius:5px;padding:5px 12px;background:#fff;color:#172535;font-size:13px;cursor:pointer}
