:root{--navy:#0b3b8f;--blue:#155eef;--ink:#101b3d;--text:#334155;--muted:#536378;--bg:#f8fafc;--line:#d8e1ed;--input:#a7b6c9;--soft:#eef6ff;--error:#a32222;--radius:7px;color-scheme:light;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{min-height:39px;border:1px solid var(--input);border-radius:var(--radius);padding:8px 13px;background:white;color:var(--navy);font-weight:650;cursor:pointer;line-height:1.4}button:hover:not(:disabled){background:var(--soft);border-color:var(--blue)}button:disabled{opacity:.48;cursor:not-allowed}.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.primary:hover:not(:disabled){background:var(--blue);color:white}.quiet{padding:5px 2px;min-height:32px;background:transparent;border-color:transparent;font-size:12px;text-decoration:underline;text-underline-offset:3px}.quiet:hover:not(:disabled){background:transparent;border-color:transparent;color:var(--blue)}.danger{color:var(--error)}.full{width:100%}a{color:var(--navy);text-underline-offset:4px}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--ink)}h1{font-size:34px;letter-spacing:-.03em;line-height:1.25}h2{font-size:16px;line-height:1.35}h3{font-size:14px}.wrap{max-width:1440px;margin:0 auto;padding-left:32px;padding-right:32px}.masthead{background:var(--navy);color:white}.masthead-inner{display:flex;align-items:center;justify-content:space-between;min-height:78px}.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none}.brand svg{height:40px;width:40px;stroke:none}.brand strong{display:block;font-size:17px}.brand small{display:block;font-size:11px;color:#d5e4ff;margin-top:1px}.all-tools{color:white;font-weight:600;font-size:13px;text-decoration:none}.all-tools span{margin-left:8px}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:33px 0 27px}.intro>div>p{font-size:16px;margin-top:8px;color:var(--muted)}.local-note{display:flex;align-items:center;gap:11px}.local-note svg{width:26px;height:26px;color:var(--navy)}.local-note strong{display:block;font-size:12px;color:var(--ink)}.local-note small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.workspace{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden}.workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--line)}.document-title{display:flex;align-items:center;gap:11px;min-width:0}.document-title svg{color:var(--navy)}.document-title>div{min-width:0}.document-title h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65vw;font-size:14px}.document-title p{font-size:11px;color:var(--muted);margin-top:3px}.actions{display:flex;align-items:center;gap:17px;flex-shrink:0}.editor{display:grid;grid-template-columns:minmax(0,1fr) 346px}.preview{min-width:0;background:#eaf0f7;display:flex;flex-direction:column}.preview-bar,.preview-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;min-height:51px;background:#f6f9fc;color:var(--muted);font-size:12px}.preview-bar{border-bottom:1px solid var(--line)}.page-controls{display:flex;gap:5px;align-items:center}.page-controls button{font-size:20px;line-height:1;min-height:31px;width:31px;padding:2px}.page-controls select{width:126px;min-height:31px;padding:4px 8px;font-size:11px}.stage{padding:26px 28px;flex:1;display:flex;justify-content:safe center;align-items:flex-start;min-height:650px;max-height:1050px;overflow:auto;position:relative}.stage.dragging{background:#d6e7fe;outline:2px dashed var(--blue);outline-offset:-12px}.empty-state{align-self:center;text-align:center;width:100%;padding:45px 12px}.upload-symbol{height:68px;width:58px;stroke:var(--navy);stroke-width:2;margin-bottom:22px}.empty-state h2{font-size:23px;letter-spacing:-.02em;margin-bottom:12px}.empty-state p{color:var(--muted);font-size:14px;line-height:1.7}.empty-state .primary{margin-top:25px;min-width:160px;min-height:44px}.empty-state small{display:block;font-size:11px;color:var(--muted);margin:11px 0 21px}.empty-state .quiet{font-size:13px}.preview-foot{border-top:1px solid var(--line);min-height:53px}.preview-foot p{font-size:11px;max-width:64ch}#paper{position:relative;flex-shrink:0;max-width:100%;box-shadow:0 3px 13px #10254824;background:white;line-height:0}#pdf-canvas{display:block;width:100%;height:auto}#stamp-targets{position:absolute;inset:0;cursor:crosshair}.stamp-target{position:absolute;border:1px dashed transparent;background:transparent;padding:0;min-height:0;border-radius:0;cursor:move;line-height:1}.stamp-target:hover:not(:disabled){border-color:var(--blue);background:transparent}.stamp-target.selected{border:2px dashed var(--navy);outline:2px solid white;outline-offset:1px}.controls{border-left:1px solid var(--line);background:white}.control-section{padding:22px 23px 23px}.control-section+.control-section{border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;gap:9px;margin-bottom:19px}.step{display:grid;place-items:center;width:23px;height:23px;background:var(--soft);color:var(--navy);font-size:12px;font-weight:700;border-radius:5px}.section-title h2{font-size:15px}label{display:block;color:var(--ink);font-weight:650;font-size:12px;margin-bottom:6px}input,select,textarea{display:block;width:100%;min-width:0;border:1px solid var(--input);border-radius:6px;padding:9px 10px;min-height:39px;background:white;color:var(--ink);font-size:13px;caret-color:var(--blue)}input::placeholder,textarea::placeholder{color:#607086;opacity:1}select{padding-right:24px}input+label{margin-top:15px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:14px 0}.optional{font-size:11px;color:var(--muted);font-weight:400;margin-left:4px}.hint{font-size:11px;line-height:1.6;color:var(--muted);margin-top:10px}.recent{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.recent:empty{display:none}.recent button{font-size:11px;padding:3px 7px;min-height:27px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-color:var(--line);color:var(--muted)}.selection-heading{display:flex;align-items:center;justify-content:space-between;margin-top:16px;border-top:1px solid var(--line);padding-top:10px}.selection-heading strong{font-size:12px}.selection-heading+.field-row{margin-top:4px}.stamp-list{margin-top:14px}.stamp-list:empty{display:none}.stamp-list button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:11px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 6px;min-height:33px}.stamp-list button[aria-pressed=true]{background:var(--soft);color:var(--navy);font-weight:650}.filename-preview{margin:12px 0 17px;padding:10px 11px;background:#f3f6fa;border-radius:5px}.filename-preview span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.filename-preview output{display:block;font-size:12px;color:var(--ink);overflow-wrap:anywhere;font-weight:600}.location-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}.save-button{margin-top:17px;min-height:43px}.status-line{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);min-height:44px}.status-line>span{white-space:nowrap;font-variant-numeric:tabular-nums}.status-line.busy{color:var(--navy);background:#eef6ff}.help{margin:24px 0 27px;border-bottom:1px solid var(--line);padding-bottom:22px}.help summary{font-weight:650;color:var(--navy);cursor:pointer;font-size:13px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding-top:22px}.help-grid h3{font-size:13px;margin-bottom:7px}.help-grid p{font-size:12px;color:var(--muted);line-height:1.75;max-width:70ch}.help>.hint{margin-top:18px}.footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted);padding-bottom:30px}.notice{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px;margin-bottom:16px;border:1px solid #e8b5b5;border-radius:7px;background:#fff5f5;color:var(--error);font-size:13px;overflow-wrap:anywhere}.notice button{color:var(--error)}dialog{border:1px solid var(--line);border-radius:12px;width:min(620px,calc(100vw - 28px));max-height:90vh;padding:0;color:var(--text);box-shadow:0 18px 60px #10254838}dialog::backdrop{background:#10254880}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 25px;border-bottom:1px solid var(--line);margin:0}.dialog-heading h2{font-size:20px}.dialog-heading p{font-size:12px;color:var(--muted);margin-top:7px}.dialog-body{padding:22px 25px 25px}.dialog-body textarea{resize:vertical;line-height:1.6}.dialog-body>label{margin-top:22px}.dialog-body>label:first-child{margin-top:0}.settings-transfer{gap:10px}.locations-heading{margin-top:22px;margin-bottom:7px;font-size:12px}#saved-locations{margin-bottom:7px}.saved-location{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:7px 0;font-size:12px;overflow-wrap:anywhere}.saved-location>span{min-width:0}.saved-location small{display:block;color:var(--muted)}#apply-settings{margin-top:20px}#settings-status{font-size:12px;color:var(--navy);margin-top:12px}#choose-folder{margin-top:20px}.skip{position:fixed;top:-100px;left:12px;padding:10px;background:white;z-index:10}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.masthead :focus-visible{outline-color:white}::selection{background:#cfe1ff;color:var(--ink)}*{scrollbar-color:#a3b8d7 #edf2f8;scrollbar-width:thin}#paper.revealed{animation:reveal .25s ease-out}@keyframes reveal{from{clip-path:inset(0 0 4%);opacity:.75}to{clip-path:inset(0);opacity:1}}@media(min-width:1600px){.intro{padding-top:39px}}@media(max-width:1000px){.wrap{padding-left:22px;padding-right:22px}.editor{grid-template-columns:minmax(0,1fr) 310px}.control-section{padding:19px}.stage{padding:22px 18px}.local-note small{max-width:230px}.empty-state h2{font-size:20px}}@media(max-width:760px){.wrap{padding-left:16px;padding-right:16px}.masthead-inner{min-height:70px}.intro{display:block;padding:26px 0 22px}h1{font-size:30px}.intro>div>p{font-size:14px;margin-top:6px}.local-note{margin-top:18px}.local-note strong{font-size:11px}.local-note small{max-width:none;font-size:11px}.local-note svg{width:23px;height:23px}.editor{grid-template-columns:minmax(0,1fr)}.controls{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section+.control-section{border-top:0;border-left:1px solid var(--line)}.stage{min-height:440px;max-height:760px}.empty-state{padding:30px 8px}.workspace-bar{padding:14px 16px}.workspace-bar .actions{gap:10px}.document-title h2{max-width:40vw}.document-title svg{display:none}.workspace-bar button{font-size:11px}.preview-foot,.preview-bar{padding:10px 16px}.help-grid{gap:24px;grid-template-columns:1fr}.status-line{padding:11px 16px}.footer{font-size:11px}.dialog-heading,.dialog-body{padding:20px}}@media(max-width:520px){.controls{display:block}.control-section+.control-section{border-top:1px solid var(--line);border-left:0}.control-section{padding:22px}.workspace-bar{flex-wrap:wrap;gap:10px}.document-title{flex:1}.document-title h2{max-width:45vw}.workspace-bar .actions{gap:9px}.workspace-bar .actions .quiet{max-width:55px;text-align:right;text-decoration:none;line-height:1.3}.brand strong{font-size:15px}.brand small{font-size:11px}.brand svg{width:35px;height:35px}.all-tools{font-size:12px}.stage{padding:18px 12px;min-height:410px;max-height:650px}.empty-state h2{font-size:20px}.empty-state p{font-size:12px}.empty-state .upload-symbol{margin-bottom:19px}.intro .local-note{gap:8px}.local-note strong{font-size:11px}.local-note small{font-size:11px}.preview-foot{gap:10px}.preview-foot p{font-size:11px}.page-controls select{width:115px}.preview-bar{gap:8px;font-size:11px}.footer{flex-wrap:wrap;gap:10px}.status-line{align-items:flex-start}.dialog-heading{gap:12px}.settings-transfer{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#prefix+*+label{margin-top:15px}.stamp-target{touch-action:none}
