/* R9.4 - stable shell, professional compact drawers, in-page media viewer. */
html.emd-r94-spa #mainNav .navbtn {transition:background-color .14s ease,color .14s ease,border-color .14s ease!important;will-change:auto!important}
html.emd-r94-spa .side,html.emd-r94-spa .top,html.emd-r94-spa .shell,html.emd-r94-spa .main {animation:none!important;transition-property:background-color,color,border-color!important}
html.emd-r94-spa #content.r7-page-enter {animation-duration:.13s!important;animation-timing-function:ease-out!important}
/* Do not shrink desktop data fields to illegible text. Keep two columns only where useful. */
#drawer .drawerhead {display:flex;align-items:center;gap:9px;min-height:57px;padding:9px 12px!important;position:sticky;top:0;z-index:5;background:var(--panel,#fff)!important;border-bottom:1px solid var(--line,#d4e0ef)!important}
#drawer .drawerhead>div {flex:1;min-width:0}#drawer .drawerhead b {font-size:14px!important;line-height:1.32!important;overflow-wrap:anywhere;color:var(--text,#182f48)!important}
#drawer .drawerhead small{font-size:11px!important;color:var(--muted,#52657d)!important;line-height:1.36!important}
#drawer .drawerbody{padding:12px!important;font-size:12.5px!important;line-height:1.48!important;color:var(--text,#132d44)!important}
#drawer :is(.r5-detail,.tech-field,.r79-spec-card,.r5-mini){min-width:0;overflow-wrap:anywhere}
#drawer :is(.r5-detail small,.tech-field small,.r79-dim-grid small){font-size:10.5px!important;color:var(--muted,#48617e)!important;letter-spacing:0!important;line-height:1.4!important}
#drawer :is(.r5-detail b,.tech-field b,.r79-spec-card b){color:var(--text,#132d44)!important;line-height:1.43!important;font-size:12.5px!important;word-break:normal!important;overflow-wrap:anywhere}
#drawer .r5-section-title,#drawer .section-accent,#drawer .r79-section-title{margin:10px 0 5px!important;font-size:12px!important;letter-spacing:.045em}
#drawer .emd-r93-main-photo img{width:100%!important;height:100%!important;object-fit:contain!important;cursor:zoom-in}
#drawer .emd-r93-main-photo a{display:flex;align-items:center;justify-content:center;cursor:zoom-in;min-height:0}
#drawer .emd-r93-thumb-rail{display:flex!important;flex-wrap:wrap;gap:6px!important}
#drawer .emd-r93-thumb{flex:0 0 auto;min-width:56px!important;max-width:72px!important;height:57px!important}
#drawer .emd-r93-gallery{margin-bottom:6px!important}
#drawer button,#drawer a{touch-action:manipulation}
/* Lightbox uses original media URLs, never modifies stored R2/Drive references. */
#emdR94Viewer[hidden],#emdR94Error[hidden],#emdR94Lens[hidden],#emdR94Loader[hidden]{display:none!important}
html.emd-r94-viewer-open {overflow:hidden}
#emdR94Viewer {position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex;align-items:center;justify-content:center;padding:clamp(8px,1.6vw,20px);font-family:Inter,"Segoe UI",Arial,sans-serif;color:#f4f8ff}
#emdR94Viewer .emd-r94-backdrop {position:absolute;inset:0;background:rgba(4,13,28,.80);backdrop-filter:blur(15px) saturate(.72);-webkit-backdrop-filter:blur(15px) saturate(.72)}
#emdR94Viewer .emd-r94-modal {position:relative;width:min(1340px,100%);height:min(94dvh,960px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px;border:1px solid #ffffff35;background:linear-gradient(140deg,#152b45,#0c1d32 70%);box-shadow:0 22px 100px #0009;animation:emdR94Appear .18s ease-out}
@keyframes emdR94Appear{from{opacity:.35;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
#emdR94Viewer .emd-r94-head {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:11px 14px;background:#19324d;border-bottom:1px solid #ffffff27}
#emdR94Viewer .emd-r94-ident {display:flex;flex-direction:column;min-width:100px;gap:3px}
#emdR94Viewer .emd-r94-ident strong{font-size:14px;letter-spacing:.015em;color:#fff;line-height:1.25}
#emdR94Viewer .emd-r94-ident span{font-size:11px;color:#bfd5ef;font-variant-numeric:tabular-nums}
#emdR94Viewer .emd-r94-tools {display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
#emdR94Viewer button {font:inherit;cursor:pointer;touch-action:manipulation}
#emdR94Viewer .emd-r94-tools button {border:1px solid #ffffff40;border-radius:8px;padding:7px 10px;background:#294866;color:#f7fbff;min-width:35px;min-height:34px;font-size:13px;white-space:nowrap;transition:background .15s,border .15s}
#emdR94Viewer .emd-r94-tools button:hover,#emdR94Viewer .emd-r94-tools button.active{background:#347cc3;border-color:#8abcf3}
#emdR94Viewer .emd-r94-tools button:focus-visible,#emdR94Viewer .emd-r94-viewport button:focus-visible{outline:3px solid #91c7ff;outline-offset:2px}
#emdR94Viewer .emd-r94-tools button:disabled,#emdR94Viewer .emd-r94-viewport button:disabled{opacity:.45;cursor:not-allowed}
#emdR94Viewer #emdR94ZoomValue {min-width:50px;text-align:center;color:#dcecff;font-size:12px;font-variant-numeric:tabular-nums}
#emdR94Viewer .emd-r94-viewport {flex:1;min-height:0;display:grid;grid-template-columns:45px minmax(0,1fr) 45px;gap:2px;padding:8px;background:#09182a}
#emdR94Viewer .emd-r94-prev,#emdR94Viewer .emd-r94-next {border:0;border-radius:8px;background:#ffffff12;color:#fff;font-size:39px;line-height:1;align-self:center;min-height:90px;transition:background .15s}
#emdR94Viewer .emd-r94-prev:hover,#emdR94Viewer .emd-r94-next:hover{background:#ffffff24}
#emdR94Viewer .emd-r94-photo-area {position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;min-width:0;min-height:0;cursor:zoom-in;background:radial-gradient(ellipse at center,#18335133,transparent 70%)}
#emdR94Viewer .emd-r94-photo-area.is-zoomed{cursor:grab}#emdR94Viewer .emd-r94-photo-area.is-zoomed:active{cursor:grabbing}
#emdR94Viewer #emdR94Image {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center center;opacity:0;transition:opacity .15s,transform .09s linear;pointer-events:none;box-shadow:0 10px 32px #0005}
#emdR94Viewer #emdR94Image.is-ready{opacity:1}
#emdR94Viewer .emd-r94-loader {position:absolute;z-index:1;background:#1b3552cf;border:1px solid #ffffff3c;border-radius:9px;padding:9px 14px;color:#f2f7ff;font-size:12px}
#emdR94Viewer .emd-r94-error {position:absolute;z-index:3;bottom:12px;left:50%;transform:translateX(-50%);max-width:min(95%,510px);background:#57302d;border:1px solid #ffcfb5;padding:10px 14px;border-radius:10px;font-size:12px;text-align:center}
#emdR94Viewer .emd-r94-error a{color:#f9e2b1;text-decoration:underline}
#emdR94Viewer .emd-r94-lens {position:absolute;z-index:4;pointer-events:none;width:164px;height:164px;overflow:hidden;border:3px solid #fff;border-radius:50%;box-shadow:0 6px 35px #000b,0 0 0 1px #477bc8;transform:translate(-50%,-50%);background:#101b2b}
#emdR94Viewer .emd-r94-lens img {position:absolute;max-width:none!important;max-height:none!important;transform:none!important;object-fit:fill}
#emdR94Viewer .emd-r94-bottom {display:flex;align-items:center;gap:13px;justify-content:space-between;flex-wrap:wrap;min-height:48px;padding:9px 14px;background:#142c45;border-top:1px solid #ffffff21;color:#d7e9ff;font-size:11px}
#emdR94Viewer #emdR94Caption{font-weight:650;overflow-wrap:anywhere;flex:1;min-width:135px}
#emdR94Viewer .emd-r94-tip{color:#abc6e6;font-size:10px}
#emdR94Viewer #emdR94Notice{font-size:11px;color:#a8f0d1}
@media(max-width:740px){#emdR94Viewer{padding:0}#emdR94Viewer .emd-r94-modal{height:100dvh;border:0;border-radius:0}#emdR94Viewer .emd-r94-head{align-items:flex-start;flex-direction:column;padding:8px 11px;gap:7px}#emdR94Viewer .emd-r94-tools{width:100%;justify-content:space-between;gap:3px}#emdR94Viewer .emd-r94-tools button{padding:5px 7px;font-size:12px;min-height:32px}#emdR94Viewer .emd-r94-tools button span{display:none}#emdR94Viewer .emd-r94-viewport{grid-template-columns:24px minmax(0,1fr) 24px;gap:0;padding:2px}#emdR94Viewer .emd-r94-prev,#emdR94Viewer .emd-r94-next{font-size:26px;min-height:85px}#emdR94Viewer .emd-r94-bottom{padding:7px 11px}#emdR94Viewer .emd-r94-tip{display:none}#emdR94Viewer .emd-r94-lens{width:136px;height:136px}}
@media(prefers-reduced-motion:reduce){#emdR94Viewer *,#emdR94Viewer *:before,#emdR94Viewer *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
