/* Scanned pages are one mobile screen, with no nested toolbar surface. */
@media (max-width:1023px) {
  html body #app .document-scanner-screen.scanner-pages-view {
    position:fixed;inset:0;z-index:1600;width:100%;height:100dvh;min-height:0;margin:0;
    padding:calc(env(safe-area-inset-top,0px) + 16px) max(16px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 20px) max(16px,env(safe-area-inset-left,0px));
    overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:var(--system-surface-background,var(--bg,#081425));
  }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head { grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;padding-top:0;margin:0 0 24px; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head h1 { font-size:calc(20px * var(--ui-font-scale,1));line-height:1.25; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head button { width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head button svg { display:block;width:22px;height:22px;margin:0; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-pages-summary { display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 20px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-pages-summary>strong { flex:1 0 auto;margin:0;font-size:calc(15px * var(--ui-font-scale,1));line-height:1.3;white-space:nowrap; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-pages-summary .primary { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0;padding:10px 14px;font-size:calc(15px * var(--ui-font-scale,1));line-height:1.3;white-space:nowrap; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-pages-summary .primary svg { width:20px;height:20px;flex:0 0 20px;margin:0; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-page-row { grid-template-columns:64px minmax(0,1fr);gap:12px; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-page-preview { width:64px;min-width:64px;max-width:64px; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-page-actions { display:flex;grid-column:1/-1;justify-content:space-between;flex-wrap:wrap;gap:6px;overflow:visible;margin-top:0; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-page-actions button { display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px; }
html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-empty-pages { margin:0;padding:36px 12px; }
}

@media (max-width:359px) {
  html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head h1 { grid-column:1/-1;grid-row:2;overflow-wrap:normal;word-break:normal; }
  html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head button { grid-row:1; }
  html:not(#scanner-pages-layout) body #app .scanner-pages-view .scanner-head .scanner-menu-button { grid-column:3; }
}
