/* Isolated entry attachments; the main microscope's controls/layout are untouched. */:root{--microscope-category-histology:#16a34a;--microscope-category-pathology:#f97316;--microscope-category-embryology:#8b5cf6}.is-microscope-media[data-microscope-category="histology"]{--microscope-group-color:var(--microscope-category-histology)}.is-microscope-media[data-microscope-category="pathology"]{--microscope-group-color:var(--microscope-category-pathology)}.is-microscope-media[data-microscope-category="embryology"]{--microscope-group-color:var(--microscope-category-embryology)}.img-card.is-microscope-media[data-microscope-category]{border-color:color-mix(in srgb, var(--microscope-group-color) 28%, var(--line));background:color-mix(in srgb, var(--microscope-group-color) 7%, var(--secondary-bg))}.library-media-group-divider{grid-column:1/-1;width:100%;height:0;border-top:1px solid var(--line);margin:4px 0}.entry-microscope-picker,.entry-microscope-window{position:fixed;color:var(--text);background:var(--menu-bg);border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 48px rgba(15, 23, 42, .18);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box}.entry-microscope-picker::backdrop{background:rgba(15, 23, 42, .25)}.entry-microscope-window::backdrop{background:transparent}.entry-microscope-picker[open]{display:flex;flex-direction:column;gap:12px;width:760px;padding:20px;overflow-y:auto;overscroll-behavior:contain}.entry-microscope-picker h2{margin:0;font-size:1.2rem}.entry-microscope-picker input{width:100%;min-height:42px;flex:none}.entry-microscope-picker p{margin:0;font-size:.88rem}.entry-microscope-choices{display:grid;grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));gap:8px;overflow-y:auto;min-height:70px;max-height:34dvh;flex:1 1 auto;overscroll-behavior:contain}.entry-microscope-choice{display:flex;flex-direction:column;align-items:stretch;padding:8px;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--secondary-bg);color:var(--text);text-align:left;font:inherit;font-size:.88rem;cursor:pointer}.entry-microscope-choice[aria-pressed="true"]{border-color:var(--selected-border);background:var(--selected-bg)}.entry-microscope-choice:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.entry-microscope-choice[hidden],.entry-microscope-preview[hidden]{display:none}.entry-microscope-choice img{width:100%;height:80px;object-fit:contain;background:#fff;border-radius:6px}.entry-microscope-choice img:not([src]){visibility:hidden}.entry-microscope-choices.is-entry-list{display:flex;flex-direction:column;max-height:55dvh}.entry-microscope-picker-actions{display:flex;justify-content:flex-end;gap:10px;flex:none}.entry-microscope-preview{position:relative;height:30dvh;min-height:140px;flex:none;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.entry-microscope-surface{width:100%;height:100%;touch-action:none;overscroll-behavior:contain}.entry-microscope-window{margin:0;padding:0;border:1px solid #fff;overflow:hidden}.entry-microscope-window.is-right-dragging,.entry-microscope-window.is-right-dragging *{cursor:grabbing !important}.entry-microscope-frame{position:relative;width:100%;height:100%;overflow:hidden}.entry-microscope-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);pointer-events:none;font-size:.9rem}.entry-microscope-grip{position:absolute;touch-action:none;z-index:2}.entry-microscope-grip.grip-n,.entry-microscope-grip.grip-s{left:16px;right:16px;height:5px;cursor:ns-resize}.entry-microscope-grip.grip-e,.entry-microscope-grip.grip-w{top:16px;bottom:16px;width:5px;cursor:ew-resize}.entry-microscope-grip.grip-n{top:0}.entry-microscope-grip.grip-s{bottom:0}.entry-microscope-grip.grip-e{right:0}.entry-microscope-grip.grip-w{left:0}.entry-microscope-grip.grip-ne,.entry-microscope-grip.grip-nw,.entry-microscope-grip.grip-se,.entry-microscope-grip.grip-sw{width:16px;height:16px;z-index:3}.entry-microscope-grip.grip-ne{top:0;right:0;cursor:nesw-resize}.entry-microscope-grip.grip-nw{top:0;left:0;cursor:nwse-resize}.entry-microscope-grip.grip-se{bottom:0;right:0;cursor:nwse-resize}.entry-microscope-grip.grip-sw{bottom:0;left:0;cursor:nesw-resize}.entry-microscope-grip[class*="grip-move-"]{cursor:move}.entry-microscope-grip.grip-move-n,.entry-microscope-grip.grip-move-s{left:16px;right:16px;height:7px}.entry-microscope-grip.grip-move-n{top:5px}.entry-microscope-grip.grip-move-s{bottom:5px}.entry-microscope-grip.grip-move-e,.entry-microscope-grip.grip-move-w{top:16px;bottom:16px;width:7px}.entry-microscope-grip.grip-move-e{right:5px}.entry-microscope-grip.grip-move-w{left:5px}@media (max-width: 700px){.entry-microscope-picker[open]{padding:14px;gap:10px}.entry-microscope-choices{grid-template-columns:repeat(2, minmax(0, 1fr))}}
