.page-view-controls { display:flex; align-items:center; gap:3px; padding:3px; border:1px solid #d5e3df; border-radius:8px; flex-shrink:0; background:#f5f8f7; }
.page-view-controls button { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:34px; padding:5px 9px; border:1px solid transparent; border-radius:5px; background:transparent; color:#425b54; font:inherit; font-size:13px; white-space:nowrap; cursor:pointer; }
.page-view-controls button[aria-pressed="true"] { color:#087f5b; background:#e0f4eb; border-color:#99d6be; font-weight:600; }
.page-view-controls button:focus-visible { outline:2px solid #087f5b; outline-offset:2px; }
.page-view-controls svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.page-view-controls #continuous-pages { margin-left:3px; border-left-color:#c6d9d2; }
.top-toolbar .toolbar-left { flex-wrap:wrap; }
@media(min-width:901px) { .top-toolbar { grid-template-columns:minmax(0,1fr) auto auto; } .scanner-workspace { grid-template-rows:40px auto minmax(0,1fr); } }
.preview-shell.has-page-layout { display:block; padding:20px 18px; scroll-padding:20px; }
.document-page-grid { display:grid; grid-template-columns:repeat(var(--page-columns), var(--sheet-width)); gap:6px; width:max-content; min-width:100%; align-content:start; justify-content:center; align-items:start; }
.document-page-shell { position:relative; display:grid; place-items:center; width:var(--sheet-width); min-height:80px; scroll-margin:20px; }
.document-page-shell .paper-preview { width:var(--paper-width); max-width:none; line-height:0; border:0;box-shadow:none; }
.document-page-shell .paper-preview img { width:100%; max-width:none; max-height:none; }
.document-page-shell .paper-preview iframe { width:100%; height:var(--paper-height); }
.document-page-shell.is-current .paper-preview { outline:0; }
.document-page-shell.is-passive { cursor:pointer; }
.document-page-shell.is-passive .image-editor { pointer-events:auto; }
.document-page-shell.is-passive .overlay-item { outline:0; border:0; }
.document-page-shell.is-passive .overlay-item > button, .document-page-shell.is-passive .overlay-quick-toolbar, .document-page-shell.is-passive [class*="handle"] { display:none; }
.page-saved-ink { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; background:transparent !important; }
.page-focus-button { position:absolute; right:5px; bottom:5px; z-index:6; border:1px solid #c5d9d1; border-radius:4px; background:#ffffffed; color:#245545; font:inherit; font-size:11px; padding:3px 6px; cursor:pointer; }
@media(max-width:900px) { .top-toolbar .toolbar-left { flex-wrap:wrap; } .preview-shell.has-page-layout { padding:12px 10px; } .page-view-controls button { min-height:38px; } }

.page-saved-ink[hidden] {display:none}
.document-page-grid {transform-origin:top left;touch-action:none}
