/* Shared spacing, applied after page styles. */
:root{--space-panel:32px;--space-field:22px}body{line-height:1.65}button,.primary,.secondary{line-height:1.45;min-height:46px}button:focus-visible,a:focus-visible{outline:3px solid #91adff;outline-offset:3px}.account-page{padding-top:32px;padding-bottom:56px}.account-header{gap:24px;flex-wrap:wrap;margin-bottom:32px}.account-links,.account-actions,.step-actions{gap:14px;flex-wrap:wrap}.account-panel{padding:var(--space-panel);margin-top:26px;margin-bottom:26px}.account-panel h2{margin-top:0;margin-bottom:18px}.account-panel>p,.account-footnote{line-height:1.85}.account-fields{gap:24px}.account-form{gap:20px}.account-form label,.account-fields label{display:flex;flex-direction:column;gap:9px;line-height:1.65}.account-user{padding-top:24px;padding-bottom:24px}.account-user .account-actions{margin-top:18px}.account-user-head{gap:16px;flex-wrap:wrap}.account-message{line-height:1.85;overflow-wrap:anywhere}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading h2{margin:0}.presence-badge{color:#7b879e;font-size:14px;margin:10px 0}.presence-badge.online{color:#245ae8}.activity-records{overflow-x:auto}.activity-records table{border-collapse:collapse;width:100%;min-width:580px;font-size:14px}.activity-records th,.activity-records td{padding:15px 18px;text-align:left;border-bottom:1px solid #e2e8f3;line-height:1.7}.activity-records th{background:#f3f6ff}.feedback-panel{max-width:800px;margin-left:auto;margin-right:auto}.feedback-privacy{padding:18px 20px;border:1px solid #dce5ff;background:#f5f8ff;border-radius:12px;color:#536b8f;line-height:1.85;font-size:14px}.account-form textarea{resize:vertical;border:1px solid #c3d2ed;border-radius:12px;font:inherit;padding:15px;min-height:170px;line-height:1.8;color:#17335b;width:100%;box-sizing:border-box}.field-hint{margin:0;text-align:right;color:#71829e;font-size:13px}.feedback-picker{position:relative;display:inline-flex!important;cursor:pointer;flex-direction:row!important}.feedback-picker input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.feedback-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.feedback-image img{width:100%;height:140px;object-fit:contain;background:#eef3fb;border-radius:10px}.feedback-image button{width:100%;margin-top:8px}.preview-help{color:#607596;font-size:14px}.editor-toolbar{padding:18px 22px;flex-wrap:wrap;gap:16px}#document-viewport{padding:28px;min-height:360px;max-height:calc(100dvh - 310px)}#report-document.report-document{padding:0;border:0;background:transparent;max-width:794px;user-select:none;-webkit-user-select:none;overflow-wrap:normal}.preview-page{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0 0 28px!important}.preview-page-label{font:13px/1.6 system-ui!important;text-align:center;color:#657896!important;margin:0 0 12px!important}.preview-page canvas{display:block;width:100%;height:auto;min-height:1px;background:#fff;box-shadow:0 5px 24px #17345b14;pointer-events:none}.export-actions{padding:20px 24px;gap:20px;flex-wrap:wrap}.export-actions>div{gap:18px;flex-wrap:wrap}.reader-shell{padding:28px 32px}.reader-header{gap:20px;flex-wrap:wrap}#live-validation-note{gap:14px}.reader-shell #read-step,.reader-shell #audit,.reader-shell #phone-panel{padding:32px}#reader-steps{gap:32px;margin-top:30px;margin-bottom:24px}.reader-shell .account-fields{gap:24px}#phone-fields{gap:26px;margin-top:26px;margin-bottom:30px}.account-login{padding-top:28px}.account-login .account-panel{padding:32px}.account-login .account-actions{margin-top:24px}#register-form #refresh-captcha{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px}
@media(max-width:640px){.account-page{padding:22px 18px 38px}.account-header{gap:18px;margin-bottom:24px}.account-panel{padding:24px 20px;margin-top:22px;margin-bottom:22px;border-radius:17px}.account-fields{grid-template-columns:1fr!important;gap:22px}.account-actions{gap:12px}.account-actions>.primary,.account-actions>.secondary{flex:1 1 auto;text-align:center}.account-user .account-actions>button{flex:1 1 42%}.account-form{gap:20px}.account-login{padding-top:12px}.account-login .account-panel{padding:26px 22px}.account-brand{font-size:21px}.account-links{gap:10px}.account-links a,.account-links button{padding:10px 13px}.feedback-images{grid-template-columns:repeat(2,minmax(0,1fr))}.reader-shell{padding:20px 16px}.reader-header{gap:16px}.reader-brand{font-size:18px}#live-validation-note{margin-left:0;width:100%;justify-content:space-between}#reader-steps{gap:0;justify-content:space-between;font-size:12px;margin-top:24px}#reader-title{font-size:25px;margin-bottom:24px}.reader-shell #read-step,.reader-shell #audit,.reader-shell #phone-panel{padding:24px 20px}#phone-fields{grid-template-columns:1fr;gap:22px}.editor-toolbar{padding:16px;align-items:flex-start}.preview-help{font-size:12px;align-self:center}#document-viewport{padding:14px 10px;min-height:340px;max-height:62dvh}.export-actions{padding:18px 16px;gap:16px;align-items:stretch}.export-actions>div{width:100%;justify-content:space-between;gap:12px}.export-actions .primary{flex:1}.preview-page{margin-bottom:22px!important}.section-heading{align-items:flex-start;gap:16px}.account-form textarea{font-size:16px}.account-panel h2{font-size:20px}}
.account-form{display:flex;flex-direction:column;gap:20px}.feedback-panel #feedback-submit{align-self:flex-start;margin-top:4px}.export-actions>div{display:flex;align-items:center}.reader-shell #preview-panel .preview-page-label{font-size:13px!important}.editor-toolbar #preview-back{flex-basis:auto;border:1px solid #c5d3ec;padding:10px 14px;min-height:44px;text-align:center}
@media(max-width:640px){body[data-report-step=preview] .reader-shell{padding-top:16px;padding-bottom:16px}body[data-report-step=preview] #reader-title{margin:10px 0 20px;font-size:24px}body[data-report-step=preview] #reader-steps{margin-top:20px;margin-bottom:14px}.editor-toolbar{gap:12px}.editor-toolbar .preview-help{flex:1;min-width:120px}.export-actions{align-items:center}.export-actions>div{width:auto;flex:1;justify-content:flex-end;gap:10px}.export-actions .save-caption{flex-basis:100%;margin:0}.export-actions .primary{flex:0 1 auto}.feedback-panel #feedback-submit{width:100%}}
.account-links>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;border:1px solid #c5d3ec;border-radius:10px;background:#fff;color:#2454bd;line-height:1.45}
.qr-card{border-radius:22px;box-shadow:0 10px 36px #17376c0a;background:linear-gradient(160deg,#fff,#f9fbff)}.qr-card .qr-heading{border-top:0;background:linear-gradient(135deg,#edf3ff,#fff);padding:24px 22px 18px}.qr-heading h2{font-size:22px;margin:14px 0 8px}.qr-heading p{font-size:14px;font-weight:400;color:#667b9b;margin:0}.qr-badge{display:inline-flex;border:1px solid #d7e3ff;border-radius:999px;padding:5px 13px;background:#fff;color:#245ae8;font-size:12px;font-weight:600}.qr-native{margin:8px 24px 0;padding:8px;border:1px solid #e2e9f5;border-radius:18px;background:white;box-shadow:0 5px 20px #17375b08}.qr-native img{display:block;width:100%;height:auto;aspect-ratio:1;max-width:300px}.qr-guide{font-size:13px;line-height:1.8;color:#627a9d;margin:18px 14px 22px}.qr-card .qr-bottom{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;background:#fff5f7;padding:15px}.qr-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#cf3453}.contact-layout .account-copy span{display:block;line-height:1.9}.contact-layout .account-copy{gap:18px}.account-dialog form{max-width:100%}.account-dialog p{line-height:1.85}.danger-action.primary{background:#c72e4b;border-color:#c72e4b}.account-dialog::backdrop{background:#142a4b66}

.final-pdf{box-sizing:border-box;width:min(96vw,900px);max-width:96vw;max-height:94vh;padding:16px;border:1px solid #cbd6e4;border-radius:14px;color:#183452}
.final-pdf[open]{display:flex;flex-direction:column;gap:9px}
.final-pdf header,.final-pdf footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.final-pdf header strong{flex:1;overflow-wrap:anywhere}
.final-pdf button,.final-pdf a{padding:8px 12px;min-height:40px}
.final-scroll{min-height:0;overflow:auto;background:#eef2f7}
.final-scroll canvas{display:block;width:100%;height:auto}
.final-pdf p{margin:0}.final-pdf p:empty{display:none}
.final-pdf::backdrop{background:#15283db3}

/* Consistent, high-contrast pressed states on touch and pointer devices. */
button,a{ -webkit-tap-highlight-color:transparent }
.primary:not(:disabled):active{background:#1d49c4!important;border-color:#1d49c4!important;color:#fff!important;box-shadow:inset 0 2px 4px #102f8330}
.secondary:not(:disabled):active{background:#2454d8!important;border-color:#2454d8!important;color:#fff!important;box-shadow:0 2px 7px #245ae82e}
.danger-action:not(:disabled):active,.danger-link:not(:disabled):active,.table-actions button:not(:disabled):active{background:#a91f3a!important;border-color:#a91f3a!important;color:#fff!important}
.account-action-button:not(:disabled):active,.tool-back:active,.reader-home:active,.account-link-button:active{background:#2454d8;border-color:#2454d8;color:#fff}
.account-action-logout:not(:disabled):active{background:#a91f3a;border-color:#a91f3a;color:#fff}
.link-button:active{background:#edf3ff;border-color:#b8caf0;color:#1e4592}
.select-list button:active{background:#dce8ff;color:#1d3c78}
.nav:not(:disabled):active,.import-card:active{background:#e6eeff;color:#1d4598}

/* Present account quota as one compact summary instead of four separate tiles. */
.account-stats{gap:0;margin:22px 0 28px;overflow:hidden;border:1px solid #d9e5f3;border-radius:14px;background:#f8faff}.account-stat{min-width:0;padding:18px 20px;background:transparent;border:0;border-radius:0}.account-stat+.account-stat{border-left:1px solid #d9e5f3}.account-stat span{font-size:13px}.account-stat strong{font-size:24px;margin-top:5px}.account-stat small{display:block;margin-top:5px;color:#5e6e88;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
@media(max-width:600px){.account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.account-stat{padding:15px}.account-stat:nth-child(2n+1){border-left:0}.account-stat:nth-child(n+3){border-top:1px solid #d9e5f3}.account-stat strong{font-size:22px}}
.session-notice{display:grid;gap:6px;margin:20px 0;padding:15px 17px;border:1px solid #c8d8ff;border-left:4px solid #315fe8;border-radius:12px;background:#f2f6ff;color:#415a80;line-height:1.75;font-size:14px}.session-notice strong{color:#18345d;font-size:15px}.session-notice[hidden]{display:none}
.danger-action.secondary:not(:disabled):hover{background:#fff0f3;border-color:#db9eac;color:#9f1d36}
.danger-action.primary:not(:disabled):hover{background:#a91f3a;border-color:#a91f3a;color:#fff}
.danger-action.primary:disabled{background:#f1e2e6;border-color:#e5ccd2;color:#8a6770;box-shadow:none;cursor:wait}
.danger-action.secondary:disabled{background:#f8f0f1;border-color:#eadde0;color:#9a727c;cursor:wait}
