/* Only the Codex Reader and its one archive action are styled here. */
.icems-la .icems-cr-read-link{display:inline-flex!important;align-items:center;justify-content:center;line-height:1.3!important;font-size:24px;color:#eed69b!important}
.icems-cr,.icems-cr *{box-sizing:border-box}
.icems-cr{--cr-gold:#d5b476;--cr-muted:#a6b2c3;--cr-night:#0b1220;--cr-stroke:rgba(220,190,128,.22);width:min(1400px,calc(100vw - 26px));max-width:none;position:relative;left:50%;transform:translateX(-50%);background:linear-gradient(145deg,#0c1525,#172336 55%,#0b1524);border:1px solid var(--cr-stroke);border-radius:14px;color:#f4ecdc;font:14px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 26px 70px rgba(0,0,0,.26);overflow:hidden;text-align:left;isolation:isolate;margin:18px 0 36px}
.icems-cr button,.icems-cr input{font:inherit}
.icems-cr button{cursor:pointer}
.icems-cr button:disabled{opacity:.3;cursor:default}
.icems-cr button:focus-visible,.icems-cr a:focus-visible,.icems-cr input:focus-visible{outline:2px solid var(--cr-gold);outline-offset:3px}
.icems-cr-head{padding:22px clamp(20px,3vw,38px) 18px;border-bottom:1px solid var(--cr-stroke);background:radial-gradient(ellipse at 92% 15%,rgba(198,151,74,.13),transparent 40%)}
.icems-cr-eyebrow{letter-spacing:.25em;font-size:10px;font-weight:700;color:var(--cr-gold);margin-bottom:8px}
.icems-cr-return{display:inline-block;color:#e2c287!important;text-decoration:none!important;margin-bottom:10px;font-size:12px}
.icems-cr-return:hover{text-decoration:underline!important}
.icems-cr-head h1{font:400 clamp(24px,3vw,40px)/1.1 Georgia,serif!important;letter-spacing:-.03em;color:#f1ddb2;margin:5px 0 9px}
.icems-cr-head p{margin:0;color:var(--cr-muted);font-size:12px}
.icems-cr-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:9px clamp(12px,2vw,28px);border-bottom:1px solid var(--cr-stroke);background:#101b2b}
.icems-cr-controls button{color:#f0d6a0;background:#1b2a3d;border:1px solid rgba(214,180,121,.28);border-radius:6px;min-width:34px;min-height:34px;padding:5px 9px}
.icems-cr-controls button:hover{background:#293b52}
.icems-cr-controls input{width:58px;text-align:center;height:34px;color:#efdfc1!important;background:#111d2d!important;border:1px solid #526074!important;border-radius:5px;padding:2px 3px!important}
.icems-cr-controls input::-webkit-outer-spin-button,.icems-cr-controls input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.icems-cr-of{color:var(--cr-muted);font-size:12px}
.icems-cr-controls output{font-size:12px;min-width:41px;text-align:center;color:#ead2a6}
.icems-cr-divider{height:21px;border-left:1px solid var(--cr-stroke);margin:0 3px}
.icems-cr-controls [data-fullscreen]{margin-left:auto}
.icems-cr-body{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:550px;max-height:76vh;overflow:hidden}
.icems-cr-side{display:flex;flex-direction:column;min-height:0;background:#0e1929;border-right:1px solid var(--cr-stroke)}
.icems-cr-side-title{letter-spacing:.19em;color:#d7bb85;font-size:10px;font-weight:700;padding:13px 16px;border-bottom:1px solid var(--cr-stroke)}
.icems-cr-thumbs{min-height:85px;max-height:40%;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}
.icems-cr-thumb{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px;border:1px solid rgba(214,187,127,.18);background:#1a2739;color:#acb6c2;border-radius:7px;font-size:11px;min-width:0}
.icems-cr-thumb img{width:100%;height:116px;object-fit:contain;background:#293243}
.icems-cr-thumb.is-active,.icems-cr-thumb:hover{border-color:#d8b677;color:#f2d69e;background:#28394d}
.icems-cr-search{overflow:auto;padding:14px;border-top:1px solid var(--cr-stroke);flex:1;min-height:180px}
.icems-cr-search label{display:block;font-size:11px;color:#dbc08a;font-weight:650;margin-bottom:8px}
.icems-cr-search form{display:flex;gap:5px}
.icems-cr-search input{min-width:0;flex:1;color:#f1e4cd!important;background:#152237!important;border:1px solid #455269!important;border-radius:5px;padding:8px!important;box-shadow:none!important}
.icems-cr-search button{color:#111d2e;background:#d9bb80;border:0;border-radius:5px;padding:8px 10px}
.icems-cr-search-count,.icems-cr-help{font-size:11px;color:#a5b0be;line-height:1.5;margin:11px 0}
.icems-cr-result{display:block!important;text-align:left!important;width:100%;background:#1a283c!important;color:#b6c4d3!important;border:1px solid #37465a!important;border-radius:5px!important;margin:8px 0;padding:9px!important}
.icems-cr-result strong{display:block;color:#dec48b;font-size:11px;margin-bottom:5px}
.icems-cr-result span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:11px;line-height:1.5}
.icems-cr-stage{background:radial-gradient(ellipse at 50% 10%,#39414b,#151e2b 55%,#0c1523);overflow:auto;padding:26px clamp(12px,2vw,32px);text-align:center;min-width:0;min-height:300px}
.icems-cr-paper{position:relative;width:min(100%,850px);margin:0 auto;min-height:450px;text-align:center}
.icems-cr-paper img{display:block;margin:0 auto;width:100%;max-width:none!important;height:auto;object-fit:contain;background:#eee5d2;box-shadow:0 14px 42px rgba(0,0,0,.48);user-select:none}
.icems-cr-paper img[hidden]{display:none!important}
.icems-cr-loading{display:flex;min-height:410px;align-items:center;justify-content:center;border:1px solid #4c5261;background:#121c2c;color:#e6ca96;padding:20px}
.icems-cr-loading[hidden]{display:none!important}
.icems-cr-footer{padding:13px clamp(16px,2vw,28px);color:#98a5b6;font-size:11px;border-top:1px solid var(--cr-stroke)}
.icems-cr-guard{max-width:800px;margin:30px auto;padding:25px 30px;border:1px solid #8d7043;background:#111e30;color:#e9ddc1;border-radius:10px}
.icems-cr-guard h2{color:#d8bb82;font-family:Georgia,serif}
.icems-cr:fullscreen{height:100vh;width:100vw;margin:0;border-radius:0;left:auto;transform:none;display:flex;flex-direction:column}
.icems-cr:fullscreen .icems-cr-body{flex:1;max-height:calc(100vh - 230px)}
@media(max-width:850px){.icems-cr-body{grid-template-columns:190px minmax(0,1fr)}.icems-cr-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.icems-cr-thumb img{height:86px}}
@media(max-width:620px){.icems-cr{width:calc(100vw - 14px)}.icems-cr-head{padding:17px}.icems-cr-body{display:flex;flex-direction:column;max-height:none}.icems-cr-side{order:2;border-right:0;border-top:1px solid var(--cr-stroke);max-height:330px}.icems-cr-thumbs{display:flex;max-height:135px;overflow:auto;gap:5px}.icems-cr-thumb{min-width:84px}.icems-cr-thumb img{height:74px}.icems-cr-search{min-height:100px}.icems-cr-stage{order:1;min-height:400px;max-height:64vh;padding:13px}.icems-cr-paper{min-height:330px}.icems-cr-controls{gap:5px}.icems-cr-controls button{padding:4px 6px;min-width:31px}.icems-cr-controls [data-fullscreen] span{display:none}.icems-cr-loading{min-height:330px}}
@media(prefers-reduced-motion:reduce){.icems-cr *, .icems-cr *::before,.icems-cr *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ICEMS Codex Reader v1.1.0 · Immersive reading layout and accessible controls. */
.icems-cr {
  width:min(1740px,calc(100vw - 20px));
  margin:8px 0 24px;
  border-radius:11px;
}
.icems-cr-head {padding:14px clamp(14px,2.3vw,30px) 13px;}
.icems-cr-head h1 {font-size:clamp(25px,2.8vw,37px)!important;line-height:1.12!important;margin:4px 0 6px!important;}
.icems-cr-head p {font-size:11px;}
.icems-cr-controls {gap:8px;padding:8px clamp(12px,1.7vw,25px);position:relative;z-index:2;}
.icems-cr-controls [data-toggle-sidebar],
.icems-cr-controls [data-focus-mode] {font-size:11px;font-weight:600;padding:7px 10px;white-space:nowrap;}
.icems-cr-controls [data-focus-mode][aria-pressed="true"] {border-color:#d5b476;color:#f2dfad;background:#334157;}
.icems-cr-body {grid-template-columns:218px minmax(0,1fr);max-height:83vh;min-height:580px;}
.icems-cr-side {min-width:0;}
.icems-cr-stage {padding:19px clamp(11px,2vw,30px);}
.icems-cr-paper {width:min(100%,1000px);min-height:400px;}
.icems-cr-stage img {background:#f7f3e9;}
.icems-cr-thumb img {height:105px;}
.icems-cr-thumbs {gap:7px;padding:9px;}
.icems-cr-footer {display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:9px clamp(14px,1.7vw,24px);}
.icems-cr-shortcuts {color:#d6bb84;white-space:nowrap;}
.icems-cr.is-side-collapsed .icems-cr-body {grid-template-columns:minmax(0,1fr);}
.icems-cr .icems-cr-side[hidden],
.icems-cr.is-side-collapsed .icems-cr-side {display:none!important;}
.icems-cr.is-focus .icems-cr-head,
.icems-cr.is-focus .icems-cr-footer {display:none!important;}
.icems-cr.is-focus .icems-cr-body {max-height:calc(95vh - 60px);min-height:calc(80vh - 60px);}
.icems-cr.is-focus .icems-cr-stage {padding:13px;}
.icems-cr:fullscreen {width:100vw;margin:0;}
.icems-cr:fullscreen .icems-cr-body {max-height:none;min-height:0;flex:1;}
.icems-cr:fullscreen .icems-cr-stage {min-height:0;}
@media(max-width:850px) {
  .icems-cr-body {grid-template-columns:188px minmax(0,1fr);}
  .icems-cr-shortcuts {white-space:normal;}
}
@media(max-width:620px) {
  .icems-cr {width:calc(100vw - 12px);margin:5px 0 18px;border-radius:8px;}
  .icems-cr-head {padding:12px 15px;}
  .icems-cr-head h1 {font-size:clamp(24px,5.5vw,31px)!important;}
  .icems-cr-controls {gap:5px;padding:8px;}
  .icems-cr-controls [data-toggle-sidebar],
  .icems-cr-controls [data-focus-mode] {min-height:31px;font-size:10px;padding:6px 7px;}
  .icems-cr-controls [data-fullscreen] {margin-left:0;}
  .icems-cr-body {display:flex;flex-direction:column;max-height:none;min-height:0;}
  .icems-cr-side {order:2;border-right:0;border-top:1px solid var(--cr-stroke);max-height:250px;}
  .icems-cr-stage {order:1;min-height:370px;max-height:73vh;padding:10px;}
  .icems-cr.is-focus .icems-cr-body {max-height:calc(100vh - 100px);min-height:0;}
  .icems-cr.is-focus .icems-cr-stage {max-height:calc(100vh - 100px);}
  .icems-cr-footer {font-size:10px;}
}
@media(prefers-reduced-motion:reduce) { .icems-cr {scroll-behavior:auto!important;} }


/* v1.1.1: thumbnails show an intentional preview state until a JPEG is decoded. */
.icems-cr-thumb .icems-cr-thumb-frame {
  display:block; position:relative; width:100%; min-width:0;
  background:radial-gradient(ellipse at 50% 35%,#303e50,#202c3e);
  border:1px solid rgba(211,183,123,.18);
  border-radius:3px; overflow:hidden;
}
.icems-cr-thumb .icems-cr-thumb-frame img {
  width:100%; height:105px; object-fit:contain; display:block;
  background:#293243; border:0; margin:0;
}
.icems-cr-thumb:not(.is-loaded) .icems-cr-thumb-frame img {visibility:hidden;}
.icems-cr-thumb .icems-cr-thumb-status {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:5px; font-size:9px; line-height:1.35;
  letter-spacing:.015em; color:#c6b896;
}
.icems-cr-thumb.is-loaded .icems-cr-thumb-status {display:none;}
.icems-cr-thumb.is-loading .icems-cr-thumb-status {color:#dfc78c;}
.icems-cr-thumb.is-error .icems-cr-thumb-status {color:#ddb58c;}
@media(max-width:850px){.icems-cr-thumb .icems-cr-thumb-frame img{height:86px}}
@media(max-width:620px){.icems-cr-thumb .icems-cr-thumb-frame img{height:74px}}


/* ICEMS Codex Reader v1.2.0 · Living Codex Flipbook, scoped to the protected reader. */
.icems-cr [hidden], .icems-cr .icems-cr-flip-error[hidden] {display:none!important}
.icems-cr [data-reader-mode][aria-pressed="true"]{background:#344359;color:#ffe2a4;border-color:#c9a96a}
.icems-cr-controls [data-motion-toggle],.icems-cr-controls [data-sound-toggle],.icems-cr-controls [data-reader-mode]{font-size:11px;font-weight:650;white-space:nowrap}
.icems-cr .icems-cr-flip-viewport{width:100%;min-height:450px;padding:4px 0 8px;margin:0 auto;text-align:center;position:relative}
.icems-cr .icems-cr-flip-scale{--icems-flip-scale:1;transform:scale(var(--icems-flip-scale));transform-origin:top center;transition:transform .25s ease;margin:0 auto;max-width:1140px}
.icems-cr .icems-cr-flipbook{position:relative;isolation:isolate;display:flex;margin:auto;width:100%;aspect-ratio:1.4142 / 1;max-height:none;perspective:2200px;filter:drop-shadow(0 18px 24px rgba(0,0,0,.45));touch-action:pan-y;user-select:none;background:#162131;border:1px solid rgba(215,182,119,.32);border-radius:3px 9px 9px 3px;overflow:visible}
.icems-cr .icems-cr-flip-paper{position:relative;display:flex;align-items:center;justify-content:center;width:50%;height:100%;overflow:hidden;background:#f8f5ef}
.icems-cr .icems-cr-flip-left{box-shadow:inset -16px 0 18px -16px rgba(30,25,21,.5)}
.icems-cr .icems-cr-flip-right{box-shadow:inset 16px 0 18px -16px rgba(30,25,21,.45)}
.icems-cr .icems-cr-flip-paper img{display:block;width:100%;height:100%;max-width:none!important;object-fit:contain;background:#fff;user-select:none;pointer-events:none}
.icems-cr .icems-cr-flip-inside{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:100%;height:100%;font:400 clamp(28px,3.2vw,48px)/1.1 Georgia,serif;letter-spacing:.15em;color:#bd9a5b;background:radial-gradient(ellipse at 50% 45%,rgba(195,168,106,.15),transparent 62%),linear-gradient(140deg,#142137,#0a1323)}
.icems-cr .icems-cr-flip-inside small{font:600 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.23em;color:#d5be8d}
.icems-cr .icems-cr-flip-spine{position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-1px);background:linear-gradient(90deg,rgba(22,18,14,.65),rgba(255,255,255,.24),rgba(22,18,14,.55));z-index:6;pointer-events:none;box-shadow:0 0 9px rgba(27,21,17,.3)}
.icems-cr .icems-cr-flip-corner{position:absolute;top:36%;width:9%;min-width:32px;height:28%;z-index:10;border:0;border-radius:4px;background:linear-gradient(90deg,rgba(11,16,25,.15),rgba(17,23,32,.07));color:#bda06b;font:400 clamp(28px,3vw,40px)/1 Georgia,serif;opacity:.15;transition:opacity .2s ease,background .2s ease;cursor:pointer}
.icems-cr .icems-cr-flip-corner:hover,.icems-cr .icems-cr-flip-corner:focus-visible{opacity:1;background:rgba(12,21,32,.40);color:#f3d69b}
.icems-cr .icems-cr-flip-corner-left{left:0}
.icems-cr .icems-cr-flip-corner-right{right:0}
.icems-cr .icems-cr-flip-status{margin:17px auto 5px;color:#dcc58e;font-size:11px;letter-spacing:.04em}
.icems-cr .icems-cr-flip-error{border:1px solid #9a704e;color:#f3d7b2;background:#35261d;padding:13px 17px;margin:13px auto;max-width:760px;border-radius:6px;font-size:12px}
.icems-cr .icems-cr-flipbook.is-preparing{opacity:.92}
.icems-cr .icems-cr-flip-turn{position:absolute;top:0;bottom:0;width:50%;z-index:9;transform-style:preserve-3d;pointer-events:none;will-change:transform;transition:transform .73s cubic-bezier(.32,.04,.2,.98)}
.icems-cr .icems-cr-flip-turn.is-forward{left:50%;transform-origin:left center;transform:rotateY(0deg)}
.icems-cr .icems-cr-flip-turn.is-forward.is-turning{transform:rotateY(-180deg)}
.icems-cr .icems-cr-flip-turn.is-backward{left:0;transform-origin:right center;transform:rotateY(0deg)}
.icems-cr .icems-cr-flip-turn.is-backward.is-turning{transform:rotateY(180deg)}
.icems-cr .icems-cr-flip-face{position:absolute;inset:0;backface-visibility:hidden;background:#f9f5ed;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.32)}
.icems-cr .icems-cr-flip-face-back{transform:rotateY(180deg)}
.icems-cr .icems-cr-flip-face img{width:100%;height:100%;object-fit:contain;display:block}
.icems-cr.icems-cr-motion-off .icems-cr-flip-turn,.icems-cr.icems-cr-motion-off .icems-cr-flip-scale{transition:none!important}
.icems-cr.icems-cr-is-flipbook .icems-cr-stage{padding:clamp(12px,2.7vw,38px) clamp(10px,2.3vw,34px) 22px;overflow:auto}
.icems-cr:fullscreen .icems-cr-flip-viewport{min-height:0}
@media(max-width:850px){.icems-cr .icems-cr-flip-viewport{min-height:310px}.icems-cr .icems-cr-flip-scale{max-width:100%}}
@media(max-width:720px){
  .icems-cr .icems-cr-flip-viewport{max-width:min(100%,500px);min-height:0}
  .icems-cr .icems-cr-flipbook{aspect-ratio:0.7071 / 1;max-width:460px}
  .icems-cr .icems-cr-flip-left{display:none}
  .icems-cr .icems-cr-flip-right{width:100%}
  .icems-cr .icems-cr-flip-spine{display:none}
  .icems-cr .icems-cr-flip-turn{width:100%!important;left:0!important;transform-origin:left center!important}
  .icems-cr .icems-cr-flip-turn.is-backward{transform-origin:right center!important}
  .icems-cr .icems-cr-flip-corner{opacity:.48}
  .icems-cr .icems-cr-flip-status{font-size:10px}
  .icems-cr .icems-cr-flip-inside{font-size:26px}
}
@media(max-width:480px){.icems-cr-controls [data-motion-toggle],.icems-cr-controls [data-sound-toggle]{font-size:10px}.icems-cr .icems-cr-flip-viewport{padding:0}.icems-cr .icems-cr-flipbook{width:100%}}
@media(prefers-reduced-motion:reduce){.icems-cr .icems-cr-flip-turn,.icems-cr .icems-cr-flip-scale{transition:none!important}}


/* ICEMS Codex Reader v1.2.2: uninterrupted book height and theme-shell cleanup. */
/* The plugin's breakout can expose a light WPBakery/JNews parent above and below it.
   The JS marks ONLY pale ancestors of the open reader, never the global site header. */
body.icems-cr-reader-active {background-color:#0c1118!important;}
body.icems-cr-reader-active .icems-cr-shell-neutral {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.icems-cr-reader-active .icems-cr { margin-top:0!important; margin-bottom:0!important; }
/* Do not cap the book at viewport height: its full bottom margin must remain accessible. */
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-body {
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
  align-items:stretch;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-stage {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto;
  padding-bottom:clamp(25px,3vw,46px)!important;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-side {
  overflow:hidden;
  min-height:0;
  height:auto;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-thumbs {
  max-height:min(70vh,750px)!important;
  overflow-y:auto;
  flex:0 1 auto;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-search {
  flex:0 0 auto;
  max-height:240px;
}
/* The spread status and newly appended identification strips stay below all page content. */
body.icems-cr-reader-active .icems-cr .icems-cr-flip-viewport {
  height:auto;
  max-height:none;
  overflow:visible;
}
body.icems-cr-reader-active .icems-cr .icems-cr-flipbook {
  flex-shrink:0;
}
body.icems-cr-reader-active .icems-cr .icems-cr-flip-status {
  padding:10px 0 18px;
}
@media(max-width:720px){
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-stage{max-height:none!important;}
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-thumbs{max-height:130px!important;}
}


/* ICEMS Codex Reader v1.2.3: archive-shell neutralization and tighter reading stage. */
body.icems-cr-archive-active{background-color:#0c1118!important;}
body.icems-cr-archive-active .icems-cr-shell-neutral,
body.icems-cr-reader-active .icems-cr-shell-neutral{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-color:transparent!important;
}
body.icems-cr-archive-active .icems-cr-shell-neutral::before,
body.icems-cr-archive-active .icems-cr-shell-neutral::after,
body.icems-cr-reader-active .icems-cr-shell-neutral::before,
body.icems-cr-reader-active .icems-cr-shell-neutral::after{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.icems-cr-archive-active .icems-la,
body.icems-cr-archive-active .icems-cr,
body.icems-cr-reader-active .icems-cr{
  position:relative;
  z-index:2;
}
body.icems-cr-reader-active .icems-cr,
body.icems-cr-archive-active .icems-cr{margin-top:0!important;margin-bottom:0!important;}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-body{
  display:flex!important;
  align-items:flex-start!important;
  gap:0!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-side{
  width:218px;
  flex:0 0 218px;
  align-self:flex-start;
  max-height:none!important;
  overflow:hidden;
}
body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-stage{
  flex:1 1 auto;
  align-self:flex-start;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto;
  padding:16px clamp(10px,2vw,28px) 14px!important;
}
body.icems-cr-reader-active .icems-cr .icems-cr-flip-viewport{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:0!important;
  padding-bottom:0!important;
}
body.icems-cr-reader-active .icems-cr .icems-cr-flip-status{
  margin:10px auto 0!important;
  padding:8px 0 6px!important;
}
body.icems-cr-reader-active .icems-cr .icems-cr-search{
  max-height:180px!important;
  overflow:auto!important;
}
body.icems-cr-reader-active .icems-cr .icems-cr-footer{
  padding-top:10px!important;
  padding-bottom:10px!important;
}
@media(max-width:850px){
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-side{width:188px;flex-basis:188px;}
}
@media(max-width:620px){
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-body{display:flex!important;flex-direction:column!important;}
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-side{width:auto;flex:0 0 auto;}
  body.icems-cr-reader-active .icems-cr:not(:fullscreen) .icems-cr-stage{padding:10px 10px 12px!important;}
}
