/* R9.3 Drawer + fast shell. Additive, theme-safe, bounded DOM changes. */
#drawer .drawerpanel{width:min(800px,94vw)!important;max-width:100%;box-shadow:-12px 0 32px rgba(7,29,48,.20)!important}
#drawer .drawerhead{position:sticky;top:0;z-index:16;background:var(--panel,#fff);display:flex;gap:8px;align-items:center;min-height:54px;padding:9px 12px!important;border-bottom:1px solid var(--line,#d7e2ee)}
#drawer .drawerhead>div:nth-child(2){min-width:0;flex:1 1 auto}
#drawer .drawerhead b{font-size:14px!important;line-height:1.35!important;font-weight:800!important;letter-spacing:0!important;color:var(--text,#10263d)!important}
#drawer .drawerhead small{font-size:12px!important;color:var(--muted,#426078)!important;line-height:1.4!important;opacity:1!important}
#drawer .drawerbody{padding:12px!important;overflow-x:hidden!important;scrollbar-gutter:stable;overscroll-behavior:contain}
#drawer .drawerbody :is(.r5-drawer-section,.r79-media-card,.r79-spec-card,.detail-hero){margin-top:8px!important;margin-bottom:10px!important}
#drawer .drawerbody :is(.r5-detail-grid,.tech-grid){gap:6px!important}
#drawer .drawerbody .r5-detail{padding:8px 9px!important;min-height:58px!important;border-radius:8px!important;overflow-wrap:anywhere}
#drawer .drawerbody .r5-detail small,#drawer .drawerbody :is(.r79-catalog-copy small,.r79-dim-grid small){font-size:11px!important;line-height:1.4!important;opacity:1!important;font-weight:700!important;color:var(--muted,#426078)!important}
#drawer .drawerbody .r5-detail b,#drawer .drawerbody :is(.r79-catalog-copy b,.r79-dim-grid b){color:var(--text,#10263d)!important;font-size:13px!important;font-weight:750!important;line-height:1.45!important;letter-spacing:0!important;overflow-wrap:anywhere}
#drawer .drawerbody .r5-drawer-section>h3,#drawer .drawerbody .section-accent,#drawer .drawerbody .r79-section-head h3{font-size:12px!important;font-weight:850!important;letter-spacing:.035em!important;color:var(--accent,#116dc5)!important}
#drawer .drawerbody .r5-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
#drawer .drawerbody .r79-bearing-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
#drawer .drawerbody :is(.r5-kpi,.r79-bearing-metrics>*,.parity-metrics>*){padding:8px!important;min-width:0}
#drawer .drawerbody :is(.r5-kpi b,.parity-metrics b){font-size:16px!important}
#drawer .drawerbody :is(.table,.r5-table) th,#drawer .drawerbody :is(.table,.r5-table) td{font-size:12px!important;line-height:1.45!important;color:var(--text,#18314a)!important;padding:7px 9px!important;vertical-align:middle}
#drawer .drawerbody .tablewrap{max-height:320px;overflow:auto;border-radius:8px}
#drawer .drawerbody .r79-bearing-hero{padding:10px 12px!important;margin:0 0 7px!important}
#drawer .drawerbody .r79-bearing-hero h2{font-size:20px!important;margin:1px 0 4px!important}
#drawer .drawerbody .r79-bearing-hero p{font-size:12px!important;line-height:1.45!important;color:var(--muted,#426078)!important}
#drawer .drawerbody :is(.r79-feature-line span,.r79-ref-actions a){font-size:12px!important}
#drawer .drawerbody .r79-tech-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#drawer .drawerbody .r79-dim-grid{gap:6px!important}
#drawer .drawerbody .r79-dim-grid>div{padding:8px!important;min-width:0}
#drawer .drawerbody .r79-media-card{min-width:0!important;padding:10px!important}
#drawer .drawerbody .emd-r93-source-hidden{display:none!important}
.emd-r93-gallery{width:100%;display:grid;gap:7px;margin:3px 0 11px!important}
.emd-r93-gallery-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--text,#10263d);font-size:12px;min-width:0}
.emd-r93-gallery-head strong{font-weight:800}
.emd-r93-gallery-count{font-weight:700;color:var(--muted,#4a6780);font-size:11px}
.emd-r93-main-photo{background:color-mix(in srgb,var(--panel2,#eaf2f9) 75%,var(--panel,#fff));border:1px solid var(--line,#c9dbe9);border-radius:11px;position:relative;overflow:hidden;height:clamp(175px,23vw,275px)}
.emd-r93-main-photo>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;text-decoration:none;cursor:zoom-in}
.emd-r93-main-photo img{object-fit:contain;width:100%;height:100%;display:block;filter:none!important}
.emd-r93-img-error{position:absolute;inset:auto 4px 4px;background:color-mix(in srgb,var(--panel,#fff) 94%,transparent);border:1px solid var(--line,#c8d9eb);border-radius:8px;padding:8px;text-align:center;color:var(--text,#10263d);font-size:12px}
.emd-r93-img-error[hidden]{display:none!important}
.emd-r93-img-error p{margin:0 0 5px}
.emd-r93-thumb-rail{display:flex;overflow-x:auto;gap:7px;padding:2px 0 5px;max-width:100%;scrollbar-width:thin}
.emd-r93-thumb{position:relative;appearance:none;border:2px solid var(--line,#cee1f0);background:var(--panel,#fff);border-radius:9px;flex:0 0 70px;height:58px;cursor:pointer;padding:2px;overflow:hidden;transition:border-color .12s ease,transform .12s ease}
.emd-r93-thumb img{width:100%;height:100%;object-fit:contain}
.emd-r93-thumb span{position:absolute;top:2px;left:3px;border-radius:4px;padding:1px 4px;background:rgba(6,27,47,.8);color:#fff;font-size:10px}
.emd-r93-thumb.selected{border-color:var(--accent,#127fc5)!important;box-shadow:0 0 0 1px var(--accent,#127fc5)}
.emd-r93-thumb:focus-visible,.emd-r93-export:focus-visible{outline:2px solid var(--accent,#1685d8);outline-offset:2px}
.emd-r93-thumb-broken{opacity:.28}
.emd-r93-missing{font-size:12px;color:var(--muted,#456278);line-height:1.55;padding:16px 12px;background:var(--panel2,#f1f6fa);border:1px dashed var(--line,#bccfde);border-radius:9px}
.emd-r93-export{white-space:nowrap!important;flex-shrink:0;font-size:12px!important;font-weight:750!important;background:var(--accent,#137ebf)!important;color:#fff!important;border-color:var(--accent,#137ebf)!important}
.emd-r93-export:disabled{opacity:.5}
#content.emd-r93-softload{pointer-events:none;position:relative}
#content.emd-r93-softload::before{content:'';position:sticky;top:0;z-index:20;display:block;width:100%;height:3px;margin-bottom:-3px;background:linear-gradient(100deg,transparent,var(--accent,#1298dd),var(--good,#11b68d),transparent);background-size:180% 100%;animation:emd-r93-load 1.4s ease-in-out infinite}
#content.emd-r93-softload>*{opacity:.84;filter:saturate(.92);transition:opacity .12s ease}
@keyframes emd-r93-load{from{background-position:130% 0}to{background-position:-110% 0}}
#content .table td,#content .r5-table td{font-variant-numeric:tabular-nums}
@media(max-width:800px){#drawer .drawerpanel{width:min(100vw,100%)!important}#drawer .drawerbody .r5-split,#drawer .drawerbody .r79-bearing-top{grid-template-columns:1fr!important}#drawer .drawerbody .r79-tech-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.emd-r93-main-photo{height:220px}}
@media(max-width:430px){#drawer .drawerhead{flex-wrap:wrap}#drawer .drawerhead .emd-r93-export{order:3;margin-left:auto}#drawer .drawerbody{padding:8px!important}.emd-r93-main-photo{height:200px}#drawer .drawerbody .r79-tech-grid{grid-template-columns:1fr 1fr!important}}
@media(prefers-reduced-motion:reduce){#content.emd-r93-softload::before{animation:none}.emd-r93-thumb{transition:none!important}}
