/* R9.19: compact Smart File review, isolated from the R9 menu and authoring editors. */
@media screen{
 body:has(.apr-smartviewer){overflow:hidden!important}
 .apr-smartviewer{inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box}
 .apr-smartviewer>.apr-smarttop{flex:0 0 auto;min-width:0;padding:12px 22px;gap:12px;min-height:62px;box-sizing:border-box;border-bottom:1px solid #e5e8f0}
 .apr-smartviewer>.apr-smarttop>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 .apr-smartviewer .apr-smarttools{gap:7px;min-width:0}
 .apr-smartviewer .apr-smarttools>.hb-btn{min-height:35px;padding:8px 11px;font-size:10px;white-space:nowrap;gap:6px}
 .apr-smartviewer>.apr-smartbanner{flex:0 0 auto;padding:8px 18px;line-height:1.5;font-size:10px;background:#f4f6fc;color:#71809b}
 .apr-smartviewer .apr-r912-journey{flex:0 0 auto;min-height:0;margin:12px 22px 10px;border-radius:13px;border:1px solid #dce3ef;box-shadow:0 5px 18px #0b153507;color:#263854}
 .apr-smartviewer .apr-r912-top{grid-template-columns:minmax(0,1fr) minmax(190px,245px);gap:20px;padding:13px 20px;background:linear-gradient(110deg,#0b1535,#192c51);align-items:center}
 .apr-smartviewer .apr-r912-eyebrow{font-size:8px;letter-spacing:.14em;margin-bottom:5px;font-weight:650;color:#ddc697}
 .apr-smartviewer .apr-r912-topcopy h2{font-size:20px;line-height:1.25;letter-spacing:-.4px;margin:0 0 4px}
 .apr-smartviewer .apr-r912-topcopy p{font-size:10px;line-height:1.5;max-width:none;color:#c3cfe6}
 .apr-smartviewer .apr-r912-total{padding:0 0 0 19px;border:0;border-left:1px solid #ffffff29;border-radius:0;background:none;gap:3px;max-width:none}
 .apr-smartviewer .apr-r912-total small{font-size:8px;letter-spacing:.08em;font-weight:600;color:#dbc69d}
 .apr-smartviewer .apr-r912-total strong{font-size:24px;line-height:1.15;letter-spacing:-.5px}
 .apr-smartviewer .apr-r912-total span{font-size:10px;line-height:1.4;color:#c3cfe6}
 .apr-smartviewer .apr-r912-progressmeta{padding:9px 18px 5px;font-size:9px;gap:6px;line-height:1.35}
 .apr-smartviewer .apr-r912-progressmeta strong{font-size:10px;font-weight:550;color:#536580}
 .apr-smartviewer .apr-r912-progressmeta span{color:#8995a9}
 .apr-smartviewer .apr-r912-progressbar{height:3px;margin:0 18px 8px;background:#edf0f6}
 .apr-smartviewer .apr-r912-progressbar>span{background:#b89a61}
 .apr-smartviewer .apr-r912-stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 16px 9px}
 .apr-smartviewer .apr-r912-stage button{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:58px;height:auto;padding:9px 10px;border-radius:8px;background:#fff;border:1px solid #e2e7f0;box-shadow:none}
 .apr-smartviewer .apr-r912-stage button:hover:not(:disabled){background:#f8faff;border-color:#b9c8e2;box-shadow:none}
 .apr-smartviewer .apr-r912-stage button[aria-current="step"]{background:#f1f5fc;border-color:#aebfdf;box-shadow:inset 0 0 0 1px #d8e1f1}
 .apr-smartviewer .apr-r912-stepnum{width:25px;height:25px;min-width:25px;border-radius:50%;font-size:10px;font-weight:600;background:#f1f4fa;border-color:#dfe5f0;color:#3b527b}
 .apr-smartviewer .apr-r912-stepnum svg{width:13px;height:13px}
 .apr-smartviewer .apr-r912-steptxt{gap:3px}
 .apr-smartviewer .apr-r912-steptxt strong{font-size:11px;line-height:1.3;font-weight:600;color:#263c62}
 .apr-smartviewer .apr-r912-steptxt small{font-size:9px;line-height:1.45;color:#7c8ba2}
 .apr-smartviewer .apr-r912-status{margin:0;padding:4px 7px;font-size:8px;line-height:1.3;font-weight:550;white-space:nowrap;letter-spacing:0;background:#faf4e9;color:#917440}
 .apr-smartviewer .apr-r912-stage.is-complete .apr-r912-stepnum,.apr-smartviewer .apr-r912-stage.is-complete .apr-r912-status{background:#eaf0fb;border-color:#cfdaed;color:#365780}
 .apr-smartviewer .apr-r912-stage.is-void .apr-r912-stepnum,.apr-smartviewer .apr-r912-stage.is-void .apr-r912-status{background:#fff1ef;border-color:#efd7d3;color:#9e5860}
 .apr-smartviewer .apr-r912-next{gap:15px;padding:8px 18px;background:#fafbfe;border-top:1px solid #e7ebf3}
 .apr-smartviewer .apr-r912-next>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
 .apr-smartviewer .apr-r912-next strong{font-size:10px;line-height:1.4;margin:0;color:#334d77}
 .apr-smartviewer .apr-r912-next p{font-size:10px;line-height:1.5;color:#7d8aa1;margin:0}
 .apr-smartviewer .apr-r912-primary{min-height:31px;padding:7px 11px;border-radius:6px;font-size:10px;font-weight:600;border-color:#0b1535;background:#0b1535;color:#fff}
 .apr-smartviewer .apr-r912-primary:hover:not(:disabled){background:#20365f}
 .apr-smartviewer>.apr-viewerprogress{flex:0 0 auto;margin:0;padding:8px 18px;min-height:43px;box-sizing:border-box;border-top:0;border-bottom:1px solid #e3e8f2;gap:9px;background:#fff;overflow-x:auto;scrollbar-width:thin}
 .apr-smartviewer>.apr-viewerprogress>button{flex:0 0 auto;padding:5px 9px;font-size:10px;min-height:28px}
 .apr-smartviewer>.apr-viewercanvas{flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow:auto;padding:22px 24px 35px;overscroll-behavior:contain;scrollbar-width:thin;background:#f5f7fc}
 .apr-smartviewer .apr-viewercanvas>.apr-smartpaper{max-width:1000px;margin:0 auto;min-width:0}
 .apr-smartviewer .apr-pageintro{padding:23px 30px}
 .apr-smartviewer .apr-pageintro h1{font-size:28px;line-height:1.3;letter-spacing:-.7px;margin:0 0 9px}
 .apr-smartviewer .apr-pageintro p{font-size:12px;line-height:1.65}
 .apr-smartviewer .apr-viewerpaging{padding:18px 25px}
 .apr-smartviewer .apr-r917-diagnostic,.apr-smartviewer .apr-flowinsights,.apr-smartviewer .apr-fileaccessnotice{flex-shrink:0;max-height:24vh;overflow:auto;scrollbar-width:thin}
 .apr-smartviewer :is(button,a):focus-visible{outline:2px solid #b89a61;outline-offset:3px}
}
@media screen and (max-width:1050px){
 .apr-smartviewer>.apr-smarttop{flex-wrap:wrap;padding:10px 16px;gap:8px}
 .apr-smartviewer .apr-smarttools{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
 .apr-smartviewer .apr-r912-stage button{grid-template-columns:23px minmax(0,1fr);gap:6px;min-height:65px;padding:8px}
 .apr-smartviewer .apr-r912-status{grid-column:2;justify-self:start;padding:2px 6px}
 .apr-smartviewer .apr-r912-stepnum{width:23px;height:23px;min-width:23px;grid-row:1/3}
 .apr-smartviewer .apr-r912-steptxt small{font-size:8px}
}
/* On narrow or short screens use one continuous page, so tracking cannot trap the document. */
@media screen and (max-width:700px),screen and (max-height:680px){
 .apr-smartviewer{display:block!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin}
 .apr-smartviewer>.apr-smarttop{position:sticky;top:0;z-index:20;display:flex;background:#fff;width:100%;box-shadow:0 2px 10px #0b153505}
 .apr-smartviewer>.apr-smarttop>strong{flex:1;font-size:11px}
 .apr-smartviewer .apr-smarttools{flex-basis:100%;justify-content:flex-start;margin:0;gap:5px}
 .apr-smartviewer .apr-smarttools>.hb-btn{font-size:9px;min-height:32px;padding:7px 9px}
 .apr-smartviewer>.apr-smartbanner{padding:7px 14px;font-size:9px;line-height:1.5}
 .apr-smartviewer .apr-r912-journey{margin:10px 10px 8px;border-radius:10px}
 .apr-smartviewer .apr-r912-top{grid-template-columns:minmax(0,1fr) 125px;gap:10px;padding:12px}
 .apr-smartviewer .apr-r912-eyebrow{font-size:7px;letter-spacing:.06em;margin-bottom:4px}
 .apr-smartviewer .apr-r912-topcopy h2{font-size:16px;line-height:1.3;margin-bottom:0}
 .apr-smartviewer .apr-r912-topcopy p{display:none}
 .apr-smartviewer .apr-r912-total{padding-left:10px;gap:3px}
 .apr-smartviewer .apr-r912-total small{font-size:7px;letter-spacing:0}
 .apr-smartviewer .apr-r912-total strong{font-size:21px}
 .apr-smartviewer .apr-r912-total span{font-size:8px}
 .apr-smartviewer .apr-r912-progressmeta{padding:8px 11px 4px;font-size:8px}
 .apr-smartviewer .apr-r912-progressmeta strong{font-size:9px}
 .apr-smartviewer .apr-r912-progressbar{margin:0 11px 7px}
 .apr-smartviewer .apr-r912-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 9px 9px}
 .apr-smartviewer .apr-r912-stage button{grid-template-columns:22px minmax(0,1fr);gap:5px;min-height:65px;padding:8px}
 .apr-smartviewer .apr-r912-steptxt strong{font-size:10px}
 .apr-smartviewer .apr-r912-steptxt small{font-size:8px;line-height:1.4}
 .apr-smartviewer .apr-r912-stepnum{width:22px;height:22px;min-width:22px;border-radius:50%;grid-row:1/3}
 .apr-smartviewer .apr-r912-status{font-size:7px;padding:2px 5px;grid-column:2;justify-self:start}
 .apr-smartviewer .apr-r912-next{padding:8px 11px;flex-direction:column;align-items:stretch;gap:7px}
 .apr-smartviewer .apr-r912-next>div{gap:3px;flex-direction:column}
 .apr-smartviewer .apr-r912-next strong,.apr-smartviewer .apr-r912-next p{font-size:9px}
 .apr-smartviewer .apr-r912-primary{max-width:none;width:100%;min-height:32px;padding:7px}
 .apr-smartviewer>.apr-viewerprogress{padding:7px 10px;justify-content:flex-start;min-height:40px;gap:5px}
 .apr-smartviewer>.apr-viewercanvas{overflow:visible;max-height:none;height:auto;min-height:0;padding:12px 9px 25px;background:#f5f7fc}
 .apr-smartviewer .apr-pageintro{padding:20px 17px}
 .apr-smartviewer .apr-pageintro h1{font-size:24px;letter-spacing:-.4px}
 .apr-smartviewer .apr-pageintro p{font-size:11px}
 .apr-smartviewer .apr-viewerpaging{padding:16px 12px;gap:7px}
 .apr-smartviewer .apr-viewerpaging button{font-size:10px;padding:9px 11px}
 .apr-smartviewer .apr-viewerpaging small{font-size:9px}
 .apr-smartviewer .apr-r917-diagnostic,.apr-smartviewer .apr-flowinsights,.apr-smartviewer .apr-fileaccessnotice{max-height:none;overflow:visible}
}
