:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243047;background:#e8edf3;color-scheme:light;font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}button,a{transition:background .15s,border-color .15s,box-shadow .15s}button{cursor:pointer}button:disabled,select:disabled,input:disabled{opacity:.4;cursor:default}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,#viewer-container:focus-visible{outline:3px solid #397af3;outline-offset:3px}
.app-shell{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:360px}.app-header{background:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 36px;border-bottom:1px solid #e5e9f0;flex:none}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-mark{width:47px;height:52px;border-radius:13px;background:#fff0ef;color:#d7463c;display:grid;place-items:center;flex:none}.brand-mark svg{width:27px;height:30px}.brand h1{font-size:1.1875rem;line-height:1.3;font-weight:700;letter-spacing:-.035em;margin:0}.brand p{font-size:.875rem;line-height:1.4;margin:5px 0 0;color:#748094}.header-actions{display:flex;gap:10px;flex:none}.button{min-height:44px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;border:1px solid transparent;text-decoration:none;font-size:.875rem;font-weight:600;line-height:1.4;white-space:nowrap}.button-primary{background:#d8473e;color:#fff;border-color:#d8473e;box-shadow:0 3px 8px #d8473e12}.button-primary:hover{background:#c33730;border-color:#c33730}.button-secondary{background:#fff;border-color:#dbe1e9;color:#38455b}.button-secondary:hover{background:#f3f6f9;border-color:#bac5d3}
.document-toolbar{background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 36px;border-bottom:1px solid #dce3ed;flex:none;min-width:0}.document-info{display:flex;gap:12px;align-items:center;min-width:0}.file-badge{font-size:.6875rem;letter-spacing:.035em;font-weight:750;color:#cc443d;display:grid;place-items:center;min-width:34px;height:40px;background:#fff;border:1px solid #e8d5d5;border-radius:5px}.file-details{min-width:0}.file-details strong{display:block;font-size:.875rem;line-height:1.4;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:30vw}.file-details>span{display:block;color:#788499;font-size:.8125rem;line-height:1.4;margin-top:3px}.reader-controls,.page-controls,.zoom-controls{display:flex;align-items:center}.reader-controls{gap:16px;flex:none}.page-controls,.zoom-controls{gap:4px}.icon-button{width:38px;min-height:40px;border:1px solid transparent;background:transparent;border-radius:7px;color:#556178;display:grid;place-items:center;padding:7px}.icon-button:hover:not(:disabled){background:#e9eef5}.control-divider{height:23px;width:1px;background:#dfe5ee}.page-field input{width:45px;height:34px;padding:4px;text-align:center;border:1px solid #d9e1eb;background:#fff;color:#28354c;border-radius:6px;font-size:.875rem;appearance:textfield}.page-field input::-webkit-inner-spin-button,.page-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.page-count{font-size:.8125rem;color:#718096;white-space:nowrap;margin:0 6px}.zoom-field select{height:36px;max-width:155px;padding:4px 24px 4px 9px;background-color:transparent;border:1px solid transparent;border-radius:6px;color:#4b5870;font-size:.8125rem;cursor:pointer}.zoom-field select:hover:not(:disabled){border-color:#d5dce7;background-color:#fff}
.document-stage{flex:1;position:relative;min-height:0;background:#e8edf3;overflow:hidden;background-image:radial-gradient(#bec9d740 .8px,transparent .8px);background-size:10px 10px}#viewer-container{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#bac4d2 transparent;scrollbar-width:thin;padding:26px 20px 40px;outline-offset:-4px!important}.pdfViewer .page{border:0!important;box-shadow:0 3px 16px #1b315a1a;margin-bottom:24px!important}.pdfViewer{padding-bottom:4px}.fallback{max-width:1070px;margin:30px auto;padding:0 22px;text-align:center}.fallback a{display:block}.fallback img{display:block;width:100%;height:auto;background:#fff;box-shadow:0 5px 25px #22355018;border-radius:3px}.fallback p{font-size:.875rem;color:#64728a}.fallback:not([hidden])~#viewer-container{visibility:hidden}.loading-pill{position:absolute;top:20px;left:50%;transform:translateX(-50%);z-index:8;padding:11px 16px;display:flex;align-items:center;gap:10px;max-width:calc(100% - 40px);background:#fff;border:1px solid #e1e6ed;border-radius:30px;box-shadow:0 4px 20px #19263b12;color:#56657b;font-size:.875rem;white-space:nowrap}.spinner{width:15px;height:15px;border:2px solid #e6eaf0;border-top-color:#d8473e;border-radius:50%;animation:spin .7s linear infinite}.notice{position:absolute;z-index:12;left:50%;top:20px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#fff4f2;border:1px solid #ecc5be;color:#8f382e;border-radius:10px;padding:13px 17px;font-size:.875rem;box-shadow:0 5px 20px #0001;line-height:1.5}.status-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border-top:1px solid #dce3ed;padding:10px 28px;font-size:.8125rem;color:#7a879a;flex:none}.privacy-note{display:flex;align-items:center;gap:7px}.privacy-note svg{width:14px;height:14px;color:#909eb0}.status-bar>span:last-child{white-space:nowrap}.noscript-note{position:relative;z-index:20;padding:16px;background:#fff;color:#243047}
dialog{border:1px solid #e4e8ef;border-radius:18px;padding:30px;max-width:420px;width:calc(100% - 40px);box-shadow:0 25px 100px #16253a33;color:#243047}dialog::backdrop{background:#17233877;backdrop-filter:blur(3px)}.dialog-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff0ef;color:#d8473e}dialog h2{font-size:1.25rem;letter-spacing:-.025em;margin:18px 0 10px}dialog p{font-size:.9375rem;line-height:1.5;color:#66758a;margin:0 0 22px}dialog label{font-size:.875rem;font-weight:600;display:block;margin:0 0 8px}dialog input{width:100%;height:46px;border:1px solid #cdd6e2;border-radius:8px;padding:10px 12px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.password-error{font-size:.875rem;color:#b3362f;margin:10px 0 0}
@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation:none;border-color:#d8473e}}
@media(max-width:1000px){.app-header{padding:20px 24px}.document-toolbar{padding:12px 24px;gap:12px}.reader-controls{gap:8px}.file-details strong{max-width:25vw}.zoom-field select{max-width:148px}.status-bar{padding:10px 20px}}
@media(max-width:740px){.app-header{padding:18px 18px;gap:10px;flex-wrap:wrap}.brand-mark{width:38px;height:44px;border-radius:10px}.brand{gap:10px}.brand h1{font-size:1.0625rem}.brand p{display:none}.header-actions{gap:8px}.button{padding:10px 12px}.header-actions .button-secondary span{display:none}.header-actions .button-secondary{width:44px;padding:10px}.document-toolbar{flex-wrap:wrap;padding:12px 16px;gap:12px}.document-info{width:100%}.file-details strong{max-width:calc(100vw - 104px)}.reader-controls{width:100%;justify-content:space-between;gap:4px}.control-divider{display:none}.zoom-field select{max-width:145px}.icon-button{width:34px;min-height:38px}.status-bar{padding:9px 14px;font-size:.75rem}.status-bar>span:last-child{display:none}.privacy-note svg{width:13px;height:13px}#viewer-container{padding:18px 10px 30px}.fallback{padding:0 12px;margin:24px auto}.file-badge{height:34px}.file-details>span{font-size:.75rem}.page-count{margin:0 3px}.reader-controls input{width:37px}}
@media(max-width:380px){.brand h1{font-size:.9375rem}.brand-mark{width:31px}.app-header{padding:14px 12px}.header-actions .button{font-size:.8125rem;gap:5px;padding:9px}.header-actions .button svg{width:17px}.header-actions{gap:5px}.document-toolbar{padding:10px 12px}.zoom-field select{max-width:128px;padding-left:5px;padding-right:18px}.icon-button{width:30px}.reader-controls{gap:0}}
/* Touch controls keep their full target area on narrow screens. */
@media(max-width:740px){
  .app-header{flex-wrap:nowrap}
  .brand{flex:1}
  .brand>div{min-width:0}
  .brand-mark{width:32px;height:40px}
  .brand-mark svg{width:23px;height:27px}
  .brand h1{font-size:1rem}
  .icon-button{width:44px;min-height:44px}
  .reader-controls{display:grid;grid-template-columns:1fr;gap:4px}
  .page-controls,.zoom-controls{justify-content:center}
  .page-field input{height:40px;width:45px}
  .zoom-field select{height:44px;max-width:none;width:165px;font-size:.875rem}
  .page-count{font-size:.875rem;margin:0 7px}
  .document-info{gap:10px}
}
@media(min-width:480px) and (max-width:740px){
  .reader-controls{display:flex;justify-content:space-between;gap:8px}
  .zoom-field select{width:150px}
}
@media(max-height:600px) and (orientation:landscape){
  .app-header{padding-top:10px;padding-bottom:10px}
  .document-toolbar{padding-top:6px;padding-bottom:6px}
  .brand p,.file-details>span,.status-bar{display:none}
  .document-info{width:auto;flex:1}
  .reader-controls{width:auto;display:flex;justify-content:flex-end}
}
#pdf-viewer,.fallback img{filter:blur(5px);user-select:none}
.document-preview-frame{position:relative;isolation:isolate;width:fit-content;max-width:none;margin:0 auto;outline:2px solid #d8473e;border-radius:12px;overflow:hidden;background:#fff}
.fallback .document-preview-frame{width:100%}
.document-preview-frame #pdf-viewer{padding-bottom:0}
.document-preview-frame .pdfViewer .page:last-child{margin-bottom:0!important}
.preview-eye{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:3;display:grid;place-items:center;width:64px;height:64px;padding:15px;border:2px solid #fff;border-radius:50%;color:#fff;background:#d8473e;box-shadow:0 4px 20px #76201935;cursor:pointer}
.preview-eye svg{width:30px;height:30px;stroke-width:1.8}
.preview-eye:hover{background:#bd332c}
.download-dialog-close{position:absolute;top:10px;right:10px}
.app-download-button{width:100%;margin-top:2px}
.download-pending{font-size:.8125rem!important;line-height:1.5;margin:12px 0 20px!important;text-align:center}
