:root{--orange:#f5a623;--gold:#d4881a;--cream:#fff8ed;--ink:#19202b;--muted:#677384;--line:#e7e9ee;--bg:#f8f9fb;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font:14px/1.55 Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit}.hidden{display:none!important}.app-header{height:65px;background:#ffffffef;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.header-inner{max-width:1200px;height:100%;display:flex;gap:18px;align-items:center;margin:auto;padding:0 22px}.brand{font-size:21px;letter-spacing:-.8px;font-weight:800;white-space:nowrap;text-decoration:none;display:flex;align-items:center;gap:5px}.brand span,footer span{color:var(--orange)}.app-label{font-size:13px;font-weight:800;margin:auto}.mini-tag{background:#fff1d5;color:#9f6411;border-radius:20px;padding:3px 7px;font-size:10px;margin-left:5px}.back-home{white-space:nowrap;font-size:12px;font-weight:700;text-decoration:none;padding:9px 13px;border:1px solid var(--line);border-radius:9px}main{max-width:1200px;margin:auto;padding:0 20px 50px}.hero{padding:35px 4px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{color:#b4720a;font-size:10px;letter-spacing:.14em;font-weight:800}.hero h1{font-size:clamp(30px,4vw,43px);line-height:1.13;letter-spacing:-1.6px;margin:7px 0 9px}.hero h1 em{color:#db8d12;font-style:normal}.hero p{font-size:14px;max-width:680px;color:var(--muted);margin:0}.hero p strong{color:#303c4e}.hero-mark{width:104px;height:104px;flex:none;display:grid;place-items:center;border-radius:27px;background:linear-gradient(145deg,#fff4d7,#fff);border:1px solid #f6db9d}.workspace{background:#fff;border:1px solid var(--line);border-radius:19px;padding:22px;box-shadow:0 15px 40px rgba(25,36,56,.055)}.workspace-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 17px}.workspace-head h2{font-size:18px;letter-spacing:-.4px;margin:0 0 2px}.workspace-head p{color:var(--muted);font-size:12px;margin:0}.privacy-pill{background:#edf9f1;border:1px solid #d4eedc;color:#267b42;border-radius:50px;padding:7px 11px;font-weight:700;font-size:11px;white-space:nowrap}.drop-zone{min-height:250px;border:2px dashed #dfb66e;background:linear-gradient(145deg,#fff9eb,#fffdf8);border-radius:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;transition:.15s;cursor:pointer}.drop-zone:hover,.drop-zone.drag,.drop-zone:focus-visible{border-color:var(--orange);background:#fff1d7;outline:none}.drop-emblem{width:70px;height:70px;border-radius:17px;background:#ffedc8;font-size:35px;display:grid;place-items:center;margin-bottom:11px}.drop-zone h3{font-size:18px;margin:0}.drop-zone p{color:#707989;margin:2px 0 12px}.drop-zone p span{font-weight:700;color:#a86b13;text-decoration:underline}.drop-zone small{color:#9c8d75;font-size:11px}.file-info{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);background:#fcfcfd;border-radius:12px;margin-bottom:16px}.file-icon{font-size:24px}.file-summary{flex:1;min-width:0;display:flex;flex-direction:column}.file-summary strong{font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-summary small{color:var(--muted);font-size:11px}.editor-layout{display:grid;grid-template-columns:262px minmax(0,1fr);gap:17px}.sidebar{border:1px solid var(--line);border-radius:14px;padding:16px;align-self:start;display:flex;flex-direction:column;gap:16px}.side-heading h3{margin:0;font-size:15px}.side-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-choice{background:#fff;border:1.5px solid #e4e6ed;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 4px;min-height:73px;font-size:12px;font-weight:700}.tool-choice:hover,.tool-choice.active{background:#fff6e7;border-color:var(--orange)}.tool-choice.prominent{border-color:#f0c67c;background:#fffaf0}.tool-symbol{font-size:24px;font-weight:800;line-height:1.2;color:#cc850d}.side-divider{height:1px;background:var(--line)}.side-options{display:flex;flex-direction:column;gap:9px}.side-options h4{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.side-options p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.side-options label{font-size:11px;font-weight:700;color:#5b6575}.side-options input[type=color]{width:100%;height:35px;border:1px solid #e4e6ea;border-radius:8px;background:#fff}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quiet-button{border:1px solid #e4e6ea;border-radius:9px;padding:9px 12px;font-weight:700;background:#fff;color:#4a5461;font-size:12px}.quiet-button:hover:not(:disabled){background:#fff8ed;border-color:#e9bd7c}.quiet-button.danger{color:#bb473f}.info-card{background:#fff9ed;border:1px solid #f6dfb4;border-radius:10px;padding:12px}.info-card strong{font-size:12px;color:#8a5914}.info-card p{margin:4px 0 0;font-size:11px;line-height:1.55;color:#806a4d}.info-card.muted{background:#f7f8fa;border-color:#e8ebf0}.info-card.muted strong{color:#647083}.info-card.muted p{color:#6d7685}.pdf-panel{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:13px}.pdf-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid var(--line);background:#fff}.pdf-title{display:flex;flex-direction:column;min-width:0}.pdf-title strong{font-size:12.5px}.pdf-title small{font-size:11px;color:#88909c}.zoom-tools{display:flex;align-items:center;gap:6px}.zoom-tools button{border:1px solid #e0e4eb;background:#fff;border-radius:8px;width:34px;height:34px;font-weight:800}.zoom-tools span{font-size:11px;min-width:40px;text-align:center;font-weight:700}.pdf-scroll{display:flex;align-items:flex-start;justify-content:center;background:#ecf0f6;overflow:auto;min-height:410px;max-height:670px;padding:24px;overscroll-behavior:contain;position:relative}.pdf-stage{position:relative;flex:none;background:white;box-shadow:0 16px 36px rgba(18,31,55,.19);border:1px solid #d8dce5;overflow:visible;line-height:0}#pdfCanvas{display:block;width:100%;height:100%}.overlay-layer{position:absolute;inset:0;touch-action:pan-x pan-y;cursor:crosshair}.overlay-layer.placing{cursor:copy;touch-action:pan-x pan-y}.placed-object{position:absolute;z-index:1;touch-action:none;cursor:move;user-select:none;outline:1px dashed transparent;min-width:10px;min-height:10px}.placed-object img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}.placed-object.selected{outline:2px dashed #e49b16;background:rgba(255,183,60,.035);z-index:5}.resize-handle{display:none;position:absolute;right:-8px;bottom:-8px;width:19px;height:19px;box-shadow:0 1px 4px #0002;border-radius:5px;background:#f5a623;border:2px solid white;touch-action:none;cursor:nwse-resize}.placed-object.selected .resize-handle{display:block}.pdf-pagination{display:flex;justify-content:center;gap:14px;align-items:center;padding:11px;border-top:1px solid var(--line)}.pdf-pagination span{font-size:12px;font-weight:700;min-width:90px;text-align:center}.download-row{display:flex;align-items:center;justify-content:space-between;background:#fff9ef;padding:13px;gap:15px;border-top:1px solid #f7e2be}.download-row p{color:#775e38;font-size:11.5px;margin:0}.primary-button{background:var(--orange);color:#1d2028;border:0;border-radius:10px;min-height:43px;padding:11px 18px;font-weight:800;font-size:13px}.primary-button:not(:disabled):hover{background:#eb9c1b}.load-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#526174;font-weight:700;font-size:13px;pointer-events:none}.status{background:#f4f7fa;color:#586576;border-radius:9px;padding:11px 13px;margin-top:15px;font-size:12px;min-height:41px}.status.error{background:#fff0ef;border:1px solid #ffd2cf;color:#b6322c}.guide{max-width:900px;margin:35px auto 0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:27px 31px;color:#526072}.guide h2{font-size:22px;color:var(--ink);margin:0}.guide h3{font-size:16px;color:var(--ink);margin:24px 0 8px}.guide li,.guide p{font-size:13px;line-height:1.75}.guide ol{padding-left:22px}.guide li{margin:8px 0}.related a{color:#ad7015;font-weight:700}.modal-backdrop{position:fixed;inset:0;background:#0d1428a8;z-index:80;display:flex;align-items:center;justify-content:center;padding:15px}.modal{background:white;width:min(540px,100%);max-height:92vh;overflow:auto;border-radius:17px;box-shadow:0 12px 50px #0003;padding:20px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-head h3{font-size:17px;margin:0}.icon-close{width:34px;height:34px;border:1px solid #e3e6ea;background:white;border-radius:8px;font-size:23px;line-height:1}.modal-content{display:flex;flex-direction:column;gap:9px}.modal-content label{font-size:12px;font-weight:700}.modal-content textarea,.modal-content input[type=text]{padding:11px;border-radius:9px;border:1.5px solid #d9dee7;outline:0;width:100%}.modal-content textarea:focus,.modal-content input:focus{border-color:var(--orange)}.help{color:var(--muted);font-size:11px;margin:0}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:19px}.sig-tabs{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #e3e6eb;background:#fafbfd;border-radius:9px;padding:3px;margin-bottom:8px;gap:3px}.sig-tabs button{border:0;background:transparent;padding:9px 5px;border-radius:7px;font-weight:700;font-size:12px}.sig-tabs button.active{background:#ffecd0;color:#925900}.sig-tab{display:flex;flex-direction:column;gap:9px}#signatureCanvas{width:100%;height:160px;border:1px dashed #d7b276;background:white;touch-action:none;border-radius:11px;cursor:crosshair}.typed-preview{font:italic 34px 'Brush Script MT','Segoe Script',cursive;padding:15px 8px;border-bottom:1px solid #e4e6ec;overflow-wrap:anywhere}footer{background:#1d1d2b;color:#b6b9c7;display:flex;justify-content:space-between;gap:15px;padding:25px max(calc((100vw - 1150px)/2),22px)}footer strong{font-size:19px;color:white}footer p{margin:5px 0 0;font-size:11px}footer nav{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}footer a{text-decoration:none}
@media(max-width:900px){.editor-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.side-heading,.tools-grid,.info-card{grid-column:1/-1}.tools-grid{grid-template-columns:repeat(4,1fr)}.hero-mark{display:none}.pdf-scroll{max-height:560px}}
@media(max-width:560px){.app-header{height:58px}.header-inner{padding:0 12px;gap:7px}.app-label{font-size:11px}.mini-tag{display:none}.back-home{font-size:0;padding:7px 10px}.back-home::after{content:'←';font-size:19px}main{padding:0 12px 28px}.hero{padding:25px 3px 20px}.hero h1{font-size:31px}.hero p{font-size:12px}.workspace{padding:13px;border-radius:14px}.workspace-head h2{font-size:16px}.privacy-pill{display:none}.drop-zone{min-height:220px}.sidebar{grid-template-columns:1fr;padding:12px}.side-heading,.tools-grid,.info-card{grid-column:auto}.tools-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tool-choice{font-size:10px;padding:8px 3px;min-height:61px}.tool-symbol{font-size:21px}.side-options{display:grid;grid-template-columns:1fr 1fr}.side-options h4,.side-options p{grid-column:1/-1}.action-row{grid-column:1/-1}.info-card.muted{display:none}.pdf-toolbar{padding:9px}.pdf-title small{font-size:10px}.pdf-scroll{min-height:300px;max-height:510px;padding:12px}.download-row{flex-direction:column;align-items:stretch}.download-row .primary-button{width:100%}.pdf-pagination{gap:7px}.pdf-pagination .quiet-button{padding:8px}.guide{padding:20px 17px;margin-top:22px}.guide h2{font-size:19px}.modal{padding:16px}footer{flex-direction:column;align-items:flex-start;padding:25px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
