.busy-layer{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px;background:#172b4d70;backdrop-filter:blur(5px)}.busy-card{width:min(440px,100%);padding:34px;border:1px solid #dbe5fa;border-radius:22px;background:#fff;box-shadow:0 24px 90px #172b4d38;text-align:center;color:#172b4d}.busy-card h2{font-size:22px;margin:22px 0 12px}.busy-card p{font-size:15px;line-height:1.8;color:#587095;margin:0}.busy-card .busy-caution{margin-top:20px;color:#a7324d;background:#fff3f6;padding:12px;border-radius:11px;font-size:14px}.busy-spinner{width:52px;height:52px;border:5px solid #e8efff;border-top-color:#2d5ff0;border-right-color:#d73354;border-radius:50%;margin:auto;animation:busy-spin .9s linear infinite}.busy-track{height:5px;background:#e8efff;border-radius:9px;overflow:hidden;margin-top:22px}.busy-track span{display:block;width:36%;height:100%;border-radius:9px;background:linear-gradient(90deg,#d73354,#2d5ff0);animation:busy-slide 1.6s ease-in-out infinite}@keyframes busy-spin{to{transform:rotate(360deg)}}@keyframes busy-slide{from{transform:translateX(-110%)}to{transform:translateX(390%)}}@media(prefers-reduced-motion:reduce){.busy-spinner,.busy-track span{animation:none}.busy-track span{width:100%}}
.custom-select{position:relative;min-width:0}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:49px;padding:12px 16px;border:1px solid #becfee;border-radius:10px;background:#fff;color:#172b4d;text-align:left;font:inherit}.select-trigger:after{content:'';width:9px;height:9px;border:solid #4c70ad;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 4px 5px 10px;flex:none}.custom-select.open .select-trigger{border-color:#3863ed;box-shadow:0 0 0 3px #3863ed18}.select-list{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:100;max-height:300px;overflow:auto;padding:6px;background:#fff;border:1px solid #cddbf6;border-radius:12px;box-shadow:0 12px 35px #294c8626}.select-list button{display:block;width:100%;min-height:46px;border:0;border-radius:8px;padding:12px 14px;background:white;text-align:left;color:#284264;font:inherit}.select-list button:hover,.select-list button:focus{outline:none;background:#f0f5ff}.select-list button.selected{background:#edf3ff;color:#2454d8;font-weight:650}.select-list button.selected:after{content:'✓';float:right;color:#2454e8}.custom-select[hidden],[hidden]{display:none!important}
.tool-back,.reader-home,.link-button,.danger-link,.account-link-button,.table-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #c5d5f1;border-radius:10px;background:#fff;color:#2454bd;text-decoration:none;font:inherit;cursor:pointer}.danger-link,.table-actions button{color:#be2e4c;border-color:#ebc5ce;background:#fff6f8}.tool-back:hover,.link-button:hover,.account-link-button:hover{background:#edf3ff}.author-help{display:flex;justify-content:space-between;gap:12px;color:#62789b;font-size:14px}.history-privacy{padding:18px 22px;border:1px solid #d6e2fa;border-radius:13px;background:#edf3ff;color:#415e8d;font-size:14px;line-height:1.9}.history-item{display:flex;justify-content:space-between;gap:20px;padding:23px 0;border-bottom:1px solid #e0e8f5;align-items:center}.history-item:last-child{border-bottom:0}.history-item h3{margin:0 0 9px;font-size:18px;overflow-wrap:anywhere}.history-item p{margin:0;font-size:14px;color:#647a9d;line-height:1.8}.history-actions{display:flex;gap:10px;flex:none}.history-actions button{font:inherit;padding:10px 16px;min-height:44px}.history-preview{width:min(1040px,calc(100vw - 28px));max-height:92vh;border:1px solid #d5e1f7;border-radius:18px;padding:20px;color:#172b4d}.history-preview::backdrop{background:#172b4d80}.history-preview header{display:flex;justify-content:space-between;gap:14px;align-items:center}.history-canvas{display:block;width:100%;height:auto;background:#fff;border:1px solid #e0e8f5}.history-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.image-result img{max-width:100%;height:auto;border:1px solid #dce5f3;border-radius:12px}.image-result{margin-top:20px}.image-downloads{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.image-downloads a{display:inline-flex;padding:12px 16px;border:1px solid #c4d5f3;border-radius:10px;min-height:44px;background:white;color:#2454c6}.usage-notice{padding:15px;background:#edf3ff;border-radius:12px;color:#405b83;font-size:15px;line-height:1.9}.history-search{margin:20px 0;width:100%;padding:13px 16px;border:1px solid #c3d4f4;border-radius:10px;font:inherit}
@media(max-width:600px){.busy-card{padding:26px 20px}.history-item{align-items:stretch;flex-direction:column;gap:16px}.history-actions button{flex:1}.history-preview{padding:14px}.history-actions{width:100%}.history-preview header{align-items:stretch;flex-direction:column}}

.account-panel a.secondary,.success-panel a.secondary,#success-panel>a.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:4px 0}.history-preview h2{overflow-wrap:anywhere;min-width:0}.busy-layer[hidden]{display:none!important}

input[type=checkbox]{appearance:none!important;display:inline-block;width:20px!important;height:20px;min-width:20px;padding:0!important;margin:0 8px 0 0!important;vertical-align:middle;border:1.5px solid #a9bfe6;border-radius:5px;background:white;cursor:pointer}.account-page input[type=checkbox]{width:20px}input[type=checkbox]:checked{border-color:#2d5ce6;background:#2d5ce6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat}
