
/* V18 — centered page navigator, paging actions and book zoom */
#editor .spread-nav.nav18{width:100%;margin:0;min-height:36px;padding:3px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px;background:#fbfcfd;border-top:1px solid #dfe4e8;border-bottom:1px solid #dfe4e8}
#editor .nav-center18{display:flex;align-items:center;justify-content:center;gap:7px;min-width:160px}
#editor .nav-center18 strong{min-width:0;font-size:12px;white-space:nowrap;text-align:center;color:#2c3d4c;font-weight:650}
#editor .nav-center18 button{width:25px;height:25px;padding:0;flex:none;font:22px/22px Arial,sans-serif;border:1px solid transparent;border-radius:6px;display:grid;place-items:center;color:#35495b;background:transparent}
#editor .nav-center18 button:hover:not(:disabled){background:#e9eff5;border-color:#d4e0e8}
#editor .nav-zoom18{justify-self:end;display:flex;align-items:center;gap:2px;border:1px solid #dce2e6;border-radius:6px;overflow:hidden;background:#fff}
#editor .nav-zoom18 button{width:30px;height:28px;border:0;border-radius:0;padding:0;background:#fff;color:#405163;font:19px/1 Arial,sans-serif}
#editor .nav-zoom18 button:hover:not(:disabled){background:#e9eff5}
#editor .nav-zoom18 button:disabled{opacity:.3}
#editor .nav-zoom18 select{appearance:none;min-width:57px;width:65px;text-align:center;text-align-last:center;height:28px;padding:0 4px;font:600 12px Arial,sans-serif;color:#3a526a;background:#fff;border:0;border-inline:1px solid #e2e8ed;cursor:pointer}
#editor .page-bottom18{flex:0 0 105px;height:105px;min-height:0;width:100%;display:flex;align-items:stretch;gap:8px;border-top:1px solid #e0e4e8;background:#fafbfc;padding:5px 4px 5px 2px}
#editor .thumb-viewport18{flex:1 1 auto;min-width:0;height:100%;position:relative;overflow:hidden}
#editor .thumbrail{width:100%;height:100%;max-width:none!important;min-height:0;flex:initial;padding:4px 0;display:flex;gap:9px;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
#editor .thumbrail::before{content:'';flex:0 0 max(0px,calc(50% - 55px))}
#editor .thumbrail::after{content:'';flex:0 0 max(0px,calc(50% + 62px))}
#editor .thumbrail .thumb{scroll-snap-align:center;flex:0 0 106px;min-width:106px;width:106px;height:85px;min-height:85px;font-size:10px}
#editor .thumbrail .thumbicon{min-height:56px;height:56px!important;width:93px!important}
#editor .thumbrail .thumb.cover .thumbicon{width:90px!important}
#editor .thumb-add18{background:#f8fafc;border:1px dashed #b8c5cf;color:#3b5267;gap:3px;font-weight:750}
#editor .thumb-add18:hover{background:#edf5fb;border-color:#789bbb}
#editor .thumb-add-symbol18{width:72px;height:51px;border:1.5px dashed #a1b2c0;background:#fff;border-radius:6px;display:grid;place-items:center;font:34px/1 Arial,sans-serif;box-shadow:0 2px 5px #15263815}
#editor .page-actions18{flex:0 0 137px;min-width:137px;display:flex;flex-direction:column;justify-content:center;gap:4px;border-left:1px solid #dfe4e8;padding-left:8px}
#editor .page-actions18 button{height:29px;min-height:29px;display:flex;align-items:center;gap:7px;justify-content:flex-start;border:0;border-radius:7px;background:#eef0f2;color:#455463;font:650 11px Arial,sans-serif;padding:0 10px;white-space:nowrap;text-align:left}
#editor .page-actions18 button span{font:18px/1 Arial,sans-serif;width:19px;text-align:center;flex:none}
#editor .page-actions18 .page-add18{background:#15191c;color:white}
#editor .page-actions18 button:hover:not(:disabled){background:#dfe9f1;color:#1b3550}
#editor .page-actions18 .page-add18:hover:not(:disabled){background:#334452;color:#fff}
#editor .page-actions18 button:disabled{background:#f0f1f2;color:#adb6bd;opacity:1;cursor:not-allowed}
#editor .main-canvas{min-height:0}
#editor .canvas-area{padding-bottom:0}
@media(max-height:690px){#editor .page-bottom18{height:86px;flex-basis:86px}#editor .thumbrail .thumb{height:67px;min-height:67px}#editor .thumbrail .thumbicon{height:41px!important;min-height:41px;width:86px!important}#editor .thumb-add-symbol18{height:39px}#editor .page-actions18 button{height:24px;min-height:24px;font-size:10px}}
@media(max-width:730px){#editor .page-actions18{flex-basis:95px;min-width:95px;padding-left:4px}#editor .page-actions18 button{font-size:9px;gap:3px;padding:0 4px}#editor .page-actions18 button span{font-size:14px;width:14px}#editor .nav-zoom18 select{width:51px;min-width:51px;font-size:11px}#editor .nav-zoom18 button{width:25px}#editor .spread-nav.nav18{padding:3px 2px}#editor .nav-center18{min-width:114px;gap:2px}#editor .nav-center18 strong{font-size:10px}#editor .nav-center18 button{width:19px}}
