.review-panel{padding-bottom:120px}.review-panel>section{margin:20px 0}.review-panel textarea{width:100%;min-height:260px;resize:vertical;font:inherit;line-height:1.7;box-sizing:border-box}.review-tabs{display:none}.review-camera{display:none}.review-pictures{display:grid;gap:20px}.review-picture{border:1px solid #d9e2df;padding:12px;border-radius:12px}.review-picture img{display:block;width:100%;height:auto}.review-footer{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d9e2df;padding:10px max(16px,calc((100vw - 840px)/2));z-index:5}.review-footer p{margin:0 0 6px}.review-footer button{width:100%}.review-footer p:empty{display:none}
.notebook .source-canvas{position:relative;display:block;line-height:0;background:#f3f2ed}.notebook .source-canvas>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}.notebook .source-region{position:absolute;box-sizing:border-box;border:2px dashed #687d93;background:#687d9310;border-radius:2px;min-height:0;line-height:1.2}.notebook .source-region.current{border:2px solid #136f60;background:#136f600d}.source-image-error{display:none}.source-unavailable>.source-image-error{display:block;line-height:1.7}.source-unavailable>.source-region{display:none}.region-dialog button{width:auto;margin:0}.region-dialog .confirmation-actions{display:flex;gap:12px}.region-dialog .confirmation-actions>button{flex:1}.region-dialog .primary{background:#136f60;color:white}.region-dialog .secondary,.region-dialog .quiet{background:#edf4f1;color:#17463c}
@media(max-width:640px){.review-tabs{display:flex;gap:8px}.review-tabs button{flex:1}.review-tabs [aria-pressed=true]{background:#136f60;color:white}.review-panel .touch-hidden{display:none}.review-camera{display:block}.desktop-key-hint{display:none}.review-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.notebook dialog.region-dialog{height:96dvh;max-height:96dvh;width:calc(100% - 8px)}.region-editor-footer .confirmation-actions button{min-height:44px}}
.notebook dialog.region-dialog{width:calc(100% - 20px);max-width:1060px;height:min(94dvh,900px);max-height:94dvh;padding:0;overflow:hidden;border-radius:16px}
.notebook dialog.region-dialog[open]{display:flex;flex-direction:column}.region-editor-header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #d9e2df;gap:12px;flex-shrink:0}
.notebook .region-editor-header h2{font-size:20px;margin:0}.notebook .region-editor-header p{margin:5px 0 0;font-size:13px}.region-editor-header>.btn{flex-shrink:0}
.region-editor-body{overflow:auto;min-height:0;flex:1;padding:16px}.region-workspace,.region-settings{min-width:0}.region-pages{display:flex;flex-wrap:wrap;gap:8px}.region-pages>.btn{font-size:13px;min-height:44px}
.region-zoom{display:flex;align-items:center;gap:8px;margin:12px 0}.region-zoom>span{min-width:46px;font-size:13px;text-align:center}.region-zoom>.btn{min-height:44px;font-size:13px}
.region-viewport{height:310px;overflow:auto;border:1px solid #d9e2df;border-radius:10px;overscroll-behavior:contain;touch-action:pan-x pan-y;background:#f2f3f5}
.region-edit-canvas{max-width:none;min-width:100%;user-select:none}.notebook .region-edit-canvas>img{pointer-events:none}
.notebook .region-number{position:absolute;top:-22px;left:-2px;border:0;border-radius:6px;background:#52677e;color:#fff;min-width:44px;height:44px;padding:0;font:600 14px system-ui;cursor:pointer}
.notebook .source-region.current>.region-number{background:#265ccb}
.notebook .region-drag,.notebook .region-resize{position:absolute;width:44px;height:44px;min-height:44px;border:2px solid #265ccb;border-radius:8px;background:#fff;color:#17438f;padding:0;font-size:25px;line-height:40px;touch-action:none;cursor:move;z-index:2}
.region-drag{left:50%;top:50%;transform:translate(-50%,-50%)}.region-resize{right:-10px;bottom:-10px;cursor:nwse-resize!important}
.notebook .region-help{font-size:12px;line-height:1.7;color:#53655f;margin:10px 0 16px}.region-settings h3{font-size:16px;margin:8px 0 12px}
.region-list{display:flex;flex-wrap:wrap;gap:8px}.region-list>.btn{font-size:13px;min-height:44px}.region-tools{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.region-tools>.btn{font-size:13px;min-height:44px}
.region-fine{border-top:1px solid #d9e2df;padding-top:10px}.region-fine>summary{font-size:14px;cursor:pointer;padding:8px 0}.notebook .region-fine label{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;font-size:13px;margin:6px 0}.notebook .region-fine input{width:100%;min-width:0;height:44px;padding:0;accent-color:#136f60}
.region-editor-footer{flex-shrink:0;padding:12px 16px;border-top:1px solid #d9e2df;background:#fff}.region-editor-footer>span{font-size:13px;color:#53655f}.notebook .region-editor-footer .confirmation-actions{margin:8px 0 0}
@media(min-width:960px){.region-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px}.region-viewport{height:440px}.region-settings{border-left:1px solid #d9e2df;padding-left:18px}.region-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:20px}.notebook .region-editor-footer .confirmation-actions{margin:0;width:320px}.source-page-list{max-width:620px;margin-left:auto;margin-right:auto}}
@media(max-height:600px){.region-viewport{height:220px}.region-editor-header{padding:10px 16px}.region-editor-header p{display:none}.region-editor-footer{padding:8px 16px}}


.notebook.in-chat #tabs {display:none}
.notebook .chat-panel form,.notebook .chat-panel article {display:grid;gap:.75rem;margin:1rem 0}
.notebook .chat-panel textarea,.notebook .chat-panel select {box-sizing:border-box;width:100%;min-height:44px;padding:.6rem;font:inherit}
.notebook .chat-panel textarea {resize:vertical}
.notebook .chat-panel article,.notebook .chat-panel li {padding:.75rem 0;border-bottom:1px solid #cbdad6;overflow-wrap:anywhere}
.notebook .chat-panel article p {white-space:pre-wrap;margin:0}
.notebook .chat-panel a {display:inline-flex;min-height:44px;align-items:center;margin-right:1rem}
.notebook .chat-panel small {display:block}
.notebook .chat-panel .queue-actions {display:flex;flex-wrap:wrap;gap:.6rem}
.notebook .chat-panel .queue-actions button {width:auto;min-height:44px;margin:0;padding:.4rem .9rem}
.notebook .chat-panel .chat-delete-entry {width:auto;min-height:44px;margin:.25rem 0;color:#913129}
.notebook .chat-panel li .chat-delete-entry {margin-top:.4rem}
.image-batch .review-panel{padding-bottom:0}
.image-batch .review-footer{position:static;padding:12px 0}
.image-batch .collection-progress li>details{flex-basis:100%}
.image-batch .collection-progress li:has(details){flex-wrap:wrap}

.image-reply .reply-author{display:block;color:var(--muted);font-size:12px;font-weight:600;margin:0 0 6px}
.notebook #work .question-selection label{display:flex;align-items:baseline;gap:8px;min-height:36px;padding:6px 0;margin:0}
.notebook #work .question-selection details{background:transparent;border:0;padding:0 0 4px 28px;margin:0}
.notebook #work .question-selection summary{font-size:13px;color:var(--muted)}
.notebook #work .question-selection button{width:auto;min-height:44px;margin:6px 8px 0 0;padding:8px 16px}
.notebook #work .question-selection button:last-child{background:transparent;color:var(--muted)}
