.series-list{display:flex;flex-direction:column;height:100%}.series-list-header{display:flex;align-items:center;justify-content:space-between;gap:.55rem;padding:.55rem .55rem .55rem .9rem;border-bottom:1px solid #3b4556;background:#0000001f}.series-list-header h3{margin:0;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:#b9c5d9}.series-list-header-actions{display:flex;align-items:center;gap:.35rem}.series-list-header-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #4f5f79;border-radius:4px;background:#1e2837e6;color:#c7d8f5;cursor:pointer;padding:0}.series-list-header-btn:hover{background:#2b3d55f2;border-color:#6eaee6;color:#e5f1ff}.series-items{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.4rem;padding:.5rem;scrollbar-color:#8b919d #1a2230;scrollbar-width:thin}.series-items::-webkit-scrollbar{width:10px;height:10px}.series-items::-webkit-scrollbar-track{background:#1a2230;border-radius:999px}.series-items::-webkit-scrollbar-thumb{background:#8b919d;border-radius:999px;border:2px solid #1a2230}.series-items::-webkit-scrollbar-thumb:hover{background:#a3a9b4}.series-item{display:flex;flex-direction:column;gap:.35rem;padding:.5rem;background:#2a313e;border:1px solid #3f4757;border-radius:4px;cursor:pointer;transition:all .2s}.series-item:hover{background:#354152;border-color:#58aef0}.series-item.selected{background:#19384a;border-color:#31a6f5}.series-thumbnail-container{position:relative;width:100%;aspect-ratio:1;background:#1a202a;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center}.series-thumbnail{width:100%;height:100%;object-fit:contain;background:#000}.series-thumbnail-placeholder{font-size:1.8rem;opacity:.6}.series-header{display:flex;align-items:flex-start;gap:.4rem}.series-modality{display:flex;align-items:center;justify-content:center;min-width:30px;width:30px;height:30px;background:#3f6a94;border-radius:3px;font-weight:700;font-size:.74rem;color:#fff;flex-shrink:0}.series-item.selected .series-modality{background:#0d649b}.series-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.series-description{margin:0;color:#f0f5ff;font-size:.8rem;line-height:1.3;word-break:break-word;max-height:2.6em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.series-info{margin:0;color:#a8b1be;font-size:.72rem;white-space:nowrap}.series-progress-wrap{display:flex;align-items:center;gap:.35rem}.series-progress-track{flex:1;height:5px;border-radius:999px;background:#1a2433;overflow:hidden}.series-progress-fill{height:100%;background:linear-gradient(90deg,#1ea8ff,#51d2ff)}.series-progress-label{min-width:42px;text-align:right;color:#9bb9d9;font-size:.68rem}.series-list--horizontal .series-items{flex-direction:row;overflow-x:auto;overflow-y:hidden;align-items:stretch}.series-list--horizontal .series-item{flex:0 0 150px;min-width:150px;max-width:180px}.series-list--horizontal .series-list-header-btn:first-child svg{transform:rotate(-90deg)}.series-list--horizontal .series-thumbnail-container{aspect-ratio:1.25}.toolbar{--toolbar-control-height: 30px;display:flex;gap:.4rem;align-items:flex-start;align-content:flex-start;padding:.5rem .75rem;background:linear-gradient(to bottom,#2f3440,#1d222c);border-bottom:1px solid #3b4454;flex-wrap:wrap;min-height:56px;position:relative;overflow:visible}.toolbar--collapsed{min-height:44px;padding:.35rem .55rem}.toolbar--collapsed .toolbar-patient{display:none}.toolbar--density-medium{--toolbar-control-height: 28px;gap:.45rem;padding:.36rem .5rem;min-height:46px}.toolbar--density-medium.toolbar--icon-only{flex-wrap:wrap;overflow:visible}.toolbar--density-medium.toolbar--icon-only .toolbar-section{flex-wrap:wrap;flex:0 1 auto}.toolbar--density-medium.toolbar--icon-only .toolbar-tools{min-width:0;flex-wrap:wrap;flex:1 1 auto}.toolbar--density-medium .toolbar-section{gap:.24rem}.toolbar--density-medium .toolbar button,.toolbar--density-medium .wl-split-main{padding:.28rem .46rem;font-size:.72rem}.toolbar--density-medium .wl-split-arrow{padding:0 .28rem}.toolbar--density-medium .toolbar-info{font-size:.72rem}.toolbar--density-medium .toolbar-section h2{font-size:.84rem}.toolbar--density-compact{--toolbar-control-height: 24px;gap:.2rem;padding:.2rem .3rem;min-height:34px}.toolbar--density-compact .toolbar-section{gap:.12rem}.toolbar--density-compact .toolbar button,.toolbar--density-compact .wl-split-main{padding:.14rem .25rem;font-size:.64rem}.toolbar--density-compact .wl-split-arrow{padding:0 .16rem}.toolbar--density-compact .toolbar-info{font-size:.62rem}.toolbar--density-compact .toolbar-section h2{font-size:.72rem}.toolbar--density-compact .toolbar-patient{min-width:150px;max-width:190px;gap:0}.toolbar-section{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem;min-width:0}.toolbar-patient{min-width:260px;max-width:360px;flex-direction:column;align-items:flex-start;gap:.1rem}.toolbar-section h2{margin:0;font-size:.92rem;letter-spacing:.02em;color:#f4f8ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.toolbar-info{color:#a8b0bf;font-size:.78rem}.toolbar-tools{flex:0 1 auto;display:flex;flex-wrap:wrap;align-items:center;gap:.18rem;min-width:0}.toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--toolbar-control-height);line-height:1;gap:.26rem;padding:.26rem .42rem;background:#2f3746;border:1px solid #4b5567;color:#dbe6f9;border-radius:3px;cursor:pointer;font-size:.78rem;font-weight:600;transition:background .2s}.wl-split-main,.layout-menu-trigger{gap:.26rem}.toolbar button:hover:not(:disabled){background:#3c475a;border-color:#6199d8}.toolbar button:disabled{opacity:.38;cursor:not-allowed}.toolbar button.active{background:#0a4f7c;border-color:#2eb8ff;color:#fff}.toolbar button.active:hover{background:#15679f}.layout-btn{display:inline-flex;align-items:center;gap:.35rem}.layout-glyph{display:grid;gap:2px;width:15px;height:15px;flex:0 0 15px}.layout-glyph-cell{min-width:0;min-height:0;border:1px solid #8aa7c6;border-radius:1px;background:linear-gradient(180deg,#0b131eb8,#21344d80)}.layout-menu{position:relative}.layout-menu-trigger,.layout-menu-item{display:inline-flex;align-items:center;gap:.45rem}.layout-menu-trigger{min-width:92px;justify-content:space-between}.layout-menu-caret{color:#9fb5cf;font-size:.72rem;transition:transform .18s ease}.layout-menu-caret.open{transform:rotate(180deg)}.layout-menu-popover{position:absolute;top:calc(100% + .4rem);left:0;right:auto;z-index:30;min-width:180px;padding:.35rem;display:grid;gap:.22rem;background:linear-gradient(180deg,#1f2734fa,#11171ffa);border:1px solid #445066;border-radius:6px;box-shadow:0 10px 28px #00000061;max-height:min(62vh,480px);overflow-y:auto;overflow-x:hidden}.layout-menu--align-right .layout-menu-popover{left:auto;right:0}.layout-menu-item{width:100%;justify-content:flex-start;text-align:left}.layout-menu-item.active .layout-glyph-cell,.layout-btn.active .layout-glyph-cell,.layout-menu-trigger.active .layout-glyph-cell{border-color:#d5ebff;background:linear-gradient(180deg,#59b4ff73,#146cada6)}.toolbar-views,.toolbar-layouts,.toolbar-windowing{border-left:none;padding-left:0}.windowing-menu-popover,.pan-menu-popover,.zoom-menu-popover{min-width:260px!important;grid-template-columns:1fr!important}.measure-menu-popover{min-width:240px!important;grid-template-columns:1fr!important;max-height:min(62vh,460px)!important}.windowing-menu-item,.pan-menu-item,.zoom-menu-item,.measure-menu-item{display:flex!important;justify-content:space-between!important;gap:.5rem!important;padding:.3rem .5rem!important}.measure-menu-separator{height:1px;background:#ffffff1f;margin:.25rem .5rem}.measure-menu-item--action{justify-content:flex-start!important;font-style:italic;opacity:.9}.measure-menu-item--action:disabled{opacity:.5;cursor:default}.zoom-menu-main{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.zoom-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:14px;color:#cdd6e4;flex:0 0 16px;line-height:1}.zoom-menu-icon svg{display:block}.zoom-menu-item:hover .zoom-menu-icon{color:#fff}.pan-menu-main{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.pan-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:#cdd6e4;flex:0 0 14px}.pan-menu-item:hover .pan-menu-icon{color:#fff}.windowing-preset-label{flex:1;font-size:.82rem;color:#dbe6f9}.windowing-preset-values{font-size:.72rem;color:#8a9ab5;white-space:nowrap}.windowing-preset-key{font-size:.68rem;background:#1a2233;border:1px solid #445066;border-radius:3px;padding:.05rem .35rem;color:#9fb5cf;font-family:inherit;min-width:1.4rem;text-align:center}.wl-split-btn{display:inline-flex;align-items:stretch;border:1px solid #4b5567;border-radius:4px;overflow:hidden}.wl-split-btn.active .wl-split-main,.wl-split-btn.active .wl-split-arrow{background:#1a3a5c;border-color:#4aa3df;color:#7dd3fc}.wl-split-main{display:inline-flex;align-items:center;min-height:var(--toolbar-control-height);line-height:1;gap:.4rem;padding:.36rem .55rem;background:#2f3746;border:none;border-right:1px solid #4b5567;color:#dbe6f9;font-size:.8rem;font-weight:600;cursor:pointer;white-space:nowrap}.wl-split-main:hover{background:#3a4760;color:#fff}.wl-split-arrow{display:inline-flex;align-items:center;min-height:var(--toolbar-control-height);line-height:1;padding:0 .38rem;background:#2f3746;border:none;color:#9fb5cf;cursor:pointer;font-size:.72rem}.wl-split-arrow:hover{background:#3a4760;color:#fff}.toolbar-sync,.toolbar-cine{border-left:1px solid #3e4859;padding-left:.6rem;flex-wrap:nowrap}.cine-speed:disabled{opacity:.38;cursor:not-allowed}.cine-menu-popover{min-width:130px!important;grid-template-columns:1fr!important}.channels-menu-popover{min-width:170px!important;grid-template-columns:1fr!important}.channels-menu-item{display:flex!important;align-items:center;gap:8px;padding:5px 10px!important}.channels-menu-swatch{width:12px;height:12px;border-radius:2px;border:1px solid rgba(255,255,255,.2);flex-shrink:0}.fusion-menu-popover{display:flex!important;flex-direction:column!important;min-width:220px!important;max-height:420px;overflow-y:auto;padding:4px 0!important}.fusion-menu-section-title{padding:6px 12px 2px;font-size:.62rem;text-transform:uppercase;letter-spacing:.07em;color:#6b8cae;user-select:none}.fusion-menu-divider{height:1px;background:#ffffff14;margin:4px 0}.fusion-colormap-item{display:flex!important;align-items:center;gap:8px;padding:5px 12px!important}.fusion-colormap-swatch{display:inline-block;width:44px;height:10px;border-radius:3px;border:1px solid rgba(255,255,255,.15);flex-shrink:0}.fusion-check{margin-left:auto;color:#58c4f5;font-size:.8rem}.fusion-series-item{display:flex!important;align-items:center;gap:6px;padding:5px 12px!important}.fusion-series-mod{background:#1a3050;border:1px solid #2a5080;border-radius:3px;padding:1px 4px;font-size:.62rem;color:#7dd3fc;flex-shrink:0}.fusion-series-desc{font-size:.72rem;color:#c8d8ea;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.fusion-opacity-row{display:flex;align-items:center;gap:8px;padding:4px 12px}.fusion-opacity-label{font-size:.68rem;color:#9fb5cf;width:52px;flex-shrink:0}.fusion-opacity-slider{flex:1;accent-color:#58c4f5;height:4px;cursor:pointer}.fusion-opacity-value{font-size:.68rem;color:#c8d8ea;width:30px;text-align:right}.toolbar-appearance{margin-left:0}.appearance-menu-popover{min-width:210px}.toolbar--icon-only .toolbar-windowing .wl-split-main>span:last-child,.toolbar--icon-only .toolbar-tools .wl-split-main>span:last-child,.toolbar--icon-only .toolbar-tools>button>span:last-child,.toolbar--icon-only .toolbar-views>button>span:last-child,.toolbar--icon-only .toolbar-sync>button>span:last-child,.toolbar--icon-only .toolbar-cine .wl-split-main>span:last-child,.toolbar--icon-only .layout-menu-trigger>span:not(.layout-menu-caret),.toolbar--icon-only .toolbar-section .wl-split-main>span:last-child{display:none}.toolbar--icon-only .toolbar-section>button>span:not(.layout-menu-caret),.toolbar--icon-only .toolbar-section .layout-menu-trigger>span:not(.layout-menu-caret),.toolbar--icon-only .toolbar-section .wl-split-main>span{display:none}.toolbar--icon-only .toolbar-windowing .wl-split-main,.toolbar--icon-only .toolbar-tools .wl-split-main,.toolbar--icon-only .toolbar-tools>button,.toolbar--icon-only .toolbar-views>button,.toolbar--icon-only .toolbar-sync>button,.toolbar--icon-only .layout-menu-trigger,.toolbar--icon-only .toolbar-cine .wl-split-main,.toolbar--icon-only .toolbar-section .wl-split-main{min-width:34px;justify-content:center;gap:0}.toolbar--icon-only .toolbar-section>button,.toolbar--icon-only .toolbar-section .layout-menu-trigger,.toolbar--icon-only .toolbar-section .wl-split-main{min-width:34px;justify-content:center;gap:0}.toolbar--icon-only .toolbar-patient{display:none}.toolbar--icon-only .toolbar-appearance{margin-left:0}@media (max-width: 1200px){.toolbar{row-gap:.45rem}.toolbar-patient{min-width:240px;max-width:100%;flex:1 1 100%;order:1}.toolbar-windowing,.toolbar-tools,.toolbar-sync,.toolbar-cine,.toolbar-views,.toolbar-layouts{order:2}.toolbar-tools{min-width:280px;flex:1 1 100%}.toolbar-windowing,.toolbar-sync,.toolbar-cine,.toolbar-views,.toolbar-layouts{border-left:none;padding-left:0}.layout-menu-popover{max-width:min(92vw,340px)}}@media (max-width: 860px){.toolbar{padding:.45rem .55rem;gap:.5rem}.toolbar button,.wl-split-main{padding:.32rem .52rem;font-size:.74rem}.wl-split-arrow{padding:0 .3rem}.toolbar-tools{min-width:100%}.toolbar-patient h2{font-size:.84rem}.toolbar-info{font-size:.72rem}}.viewer{position:relative;width:100%;height:100%;background:#000;overflow:hidden;display:block}.viewer-canvas{display:block;width:100%;height:100%}.viewer-center-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#d5e7ff;font-size:.95rem;pointer-events:none;text-align:center;padding:1rem}.viewer-badge{position:absolute;background:#00000094;color:#d4deee;font-size:var(--viewer-badge-font-size, 10px);font-family:Courier New,monospace;padding:3px 6px;border-radius:3px;pointer-events:none;line-height:1.3;max-width:var(--viewer-badge-max-width, 180px);max-height:var(--viewer-badge-max-height, 34%);overflow:hidden;text-overflow:ellipsis}.viewer-badge p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-actions{position:absolute;top:6px;right:34px;display:flex;gap:4px;z-index:15}.viewer-action-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#0c121cd1;color:#cde0f8;border:1px solid rgba(92,116,146,.85);border-radius:4px;cursor:pointer}.viewer-action-btn:hover{border-color:#6ec7ff;background:#132334eb}.viewer-action-btn.active{border-color:#29beff;color:#e9f7ff;background:#0f4a73eb}.viewer-action-icon{line-height:1;font-size:13px}.viewer-context-menu{position:absolute;z-index:18;min-width:188px;padding:.3rem;display:grid;gap:.12rem;background:#202632f7;border:1px solid rgba(86,100,125,.95);border-radius:6px;box-shadow:0 12px 28px #0000006b}.viewer-context-menu__item{width:100%;padding:.42rem .62rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:transparent;border:1px solid transparent;border-radius:4px;color:#d9e7f8;font-size:.75rem;font-weight:600;text-align:left;cursor:pointer}.viewer-context-menu__item:hover,.viewer-context-menu__item.active,.viewer-context-menu__submenu-wrap:hover>.viewer-context-menu__item{background:#12527ef2;border-color:#38b9ffcc;color:#fff}.viewer-context-menu__submenu-wrap{position:relative}.viewer-context-menu__submenu{position:absolute;top:-.3rem;left:calc(100% + .22rem);min-width:172px;padding:.3rem;display:none;gap:.12rem;background:#202632f7;border:1px solid rgba(86,100,125,.95);border-radius:6px;box-shadow:0 12px 28px #0000006b}.viewer-context-menu__submenu--left{left:auto;right:calc(100% + .22rem)}.viewer-context-menu__submenu-wrap:hover .viewer-context-menu__submenu{display:grid}.viewer-context-menu__caret{color:#9fc0dd;font-size:.7rem}.viewer-copy-feedback{position:absolute;top:34px;right:34px;z-index:15;background:#0a111ce6;border:1px solid rgba(78,109,149,.85);color:#d7e8ff;font-size:.68rem;font-family:Courier New,monospace;padding:2px 6px;border-radius:4px}.viewer-selection-count{position:absolute;top:56px;right:34px;z-index:15;background:#071a28eb;border:1px solid rgba(72,215,255,.85);color:#d7f4ff;font-size:.68rem;font-family:Courier New,monospace;padding:2px 6px;border-radius:4px}.viewer-scale{position:absolute;display:flex;align-items:flex-end;gap:8px;color:#f3efe1;font-family:Courier New,monospace;font-size:.7rem;text-shadow:0 1px 2px rgba(0,0,0,.85);pointer-events:none}.viewer-scale-track{position:relative}.viewer-scale-horizontal{left:90px;bottom:10px;flex-direction:column;align-items:flex-end}.viewer-scale-horizontal .viewer-scale-track{height:11px;border-bottom:1px solid rgba(255,244,210,.95)}.viewer-scale-horizontal .viewer-scale-tick{position:absolute;bottom:-1px;width:1px;height:11px;background:#fff4d2f2;transform:translate(-.5px)}.viewer-scale-vertical{left:10px;bottom:90px;flex-direction:row;align-items:flex-end}.viewer-scale-vertical .viewer-scale-track{width:11px;border-left:1px solid rgba(255,244,210,.95)}.viewer-scale-vertical .viewer-scale-tick{position:absolute;left:-1px;width:11px;height:1px;background:#fff4d2f2;transform:translateY(.5px)}.viewer-scale-vertical .viewer-scale-label{writing-mode:vertical-rl;transform:rotate(180deg)}.viewer-scale-label{white-space:nowrap}.viewer-scrollbar{position:absolute;top:34px;right:8px;bottom:34px;width:20px;display:flex;align-items:center;justify-content:center;background:#080c1299;border:1px solid rgba(70,92,125,.75);border-radius:10px;pointer-events:auto}.viewer-scrollbar input[type=range]{-webkit-appearance:slider-vertical;width:16px;height:100%;writing-mode:bt-lr;accent-color:#8b919d}.viewer-preload-progress{position:absolute;left:8px;right:36px;bottom:28px;display:flex;align-items:center;gap:8px;background:#080c1294;border:1px solid rgba(66,92,127,.75);border-radius:4px;padding:3px 6px;color:#9dc4ee;font-family:Courier New,monospace;font-size:.68rem}.viewer-preload-track{flex:1;height:4px;border-radius:999px;background:#1a2433;overflow:hidden}.viewer-preload-fill{height:100%;background:linear-gradient(90deg,#1ea8ff,#51d2ff)}.vb-tl{top:6px;left:6px}.vb-tr{top:36px;right:34px}.vb-bl{bottom:6px;left:6px}.vb-br{bottom:6px;right:6px}.viewer-unsaved-bar{position:absolute;bottom:38px;left:50%;transform:translate(-50%);z-index:20;display:flex;align-items:center;gap:10px;padding:5px 12px;background:#b46400eb;border:1px solid #ffaa44;border-radius:6px;color:#fff3e0;font-size:.75rem;font-family:Courier New,monospace;white-space:nowrap;pointer-events:auto;box-shadow:0 2px 8px #00000080}.viewer-unsaved-bar.saving{background:#1e50a0eb;border-color:#4ea8ff;color:#dff0ff}.viewer-unsaved-bar.error{background:#8c1414eb;border-color:#f55;color:#ffe0e0}.viewer-unsaved-bar.saved{background:#146428eb;border-color:#4caf50;color:#e0ffe8}.viewer-unsaved-label{line-height:1}.viewer-unsaved-save-btn{padding:2px 10px;background:#fff3e0;color:#7a3800;border:none;border-radius:4px;font-size:.72rem;font-weight:700;cursor:pointer;font-family:Courier New,monospace}.viewer-unsaved-save-btn:hover{background:#fff}.viewer-fusion-bar{position:absolute;bottom:6px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;background:#0a0e16d1;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:3px 10px;pointer-events:auto;z-index:12;font-size:.7rem;color:#e0e0e0;font-family:Courier New,monospace;white-space:nowrap}.viewer-fusion-tag{background:#ff781e40;border:1px solid rgba(255,120,30,.5);border-radius:3px;padding:1px 5px;color:#ffc07a;text-transform:uppercase;font-size:.65rem;letter-spacing:.04em}.viewer-fusion-tag--secondary{background:#5ac8ff2e;border-color:#5ac8ff73;color:#8de2ff}.viewer-fusion-sep{color:#fff6;font-size:.75rem}.viewer-fusion-opacity-label{display:flex;align-items:center;gap:3px;color:#bbb;cursor:default}.viewer-fusion-slider{width:64px;height:4px;accent-color:#58c4f5;cursor:pointer}.viewer-frame-controls{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:6px;background:#0009;padding:4px 8px;border-radius:0;border:1px solid rgba(90,150,200,.3);border-left:none;border-right:none;border-bottom:none;z-index:14}.viewer-frame-btn{background:#5a96c826;border:1px solid rgba(90,150,200,.4);color:#8de2ff;padding:4px 8px;border-radius:3px;cursor:pointer;font-size:.75rem;font-weight:700;transition:all .15s ease;flex:0 0 auto}.viewer-frame-btn:hover{background:#5a96c840;border-color:#5a96c899}.viewer-frame-btn.active{background:#5cc8f54d;border-color:#5cc8f5;color:#5cc8f5}.viewer-frame-btn--play{min-width:32px}.viewer-frame-slider{flex:1;height:4px;accent-color:#58c4f5;cursor:pointer;background:#5a96c833;border-radius:2px}.viewer-frame-counter{color:#a0b8d4;font-size:.65rem;font-family:Courier New,monospace;white-space:nowrap;flex:0 0 auto}.mpr-view{display:grid;width:100%;height:100%;gap:2px;background:#222;position:relative}.mpr-view--single{grid-template-columns:1fr;grid-template-rows:1fr}.mpr-view--orthogonal,.mpr-view--mist{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr}.mpr-pane{position:relative;background:#000;overflow:hidden}.mpr-label{position:absolute;top:6px;left:6px;z-index:10;background:#0009;color:#7dd3fc;font-size:.7rem;font-weight:700;font-family:Courier New,monospace;padding:2px 6px;border-radius:3px;letter-spacing:.08em;pointer-events:none}.mpr-canvas{display:block;width:100%;height:100%}.mpr-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8;font-size:.8rem;gap:.5rem;z-index:5;pointer-events:none}.mpr-progress-bar{width:60%;height:4px;background:#333;border-radius:2px;overflow:hidden}.mpr-progress-fill{height:100%;background:#667eea;transition:width .2s ease}.mpr-controls{position:absolute;right:8px;bottom:8px;z-index:12;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;border-radius:8px;background:#0c1017c7;border:1px solid rgba(107,114,128,.45);max-width:min(calc(100% - 16px),640px)}.mpr-controls-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.mpr-controls-modes button{border:1px solid #3f4a5a;background:#121822;color:#cdd6e3;border-radius:5px;font-size:.68rem;padding:4px 6px;cursor:pointer}.mpr-controls-modes button.active{background:#0c5b7e;border-color:#22b5f2;color:#effbff}.mpr-slab-control{display:flex;align-items:center;gap:8px;color:#d6dee9;font-size:.72rem}.mpr-slab-label{color:#d6dee9;font-size:.72rem;white-space:nowrap}.mpr-slab-value{color:#7dd3fc;font-weight:700;margin-left:4px}.mpr-slab-control input[type=range]{width:160px;accent-color:#22b5f2;cursor:pointer}.mpr-slab-select,.mpr-proj-select{min-width:92px;height:28px;border:1px solid #3f4a5a;background:#121822;color:#e5edf6;border-radius:5px}.mpr-plane-scrollbar{position:absolute;right:4px;top:50%;transform:translate(50%) translateY(-50%) rotate(90deg);transform-origin:center center;width:calc(100% - 24px);max-width:320px;height:20px;z-index:11;accent-color:#6b7280;opacity:.55;cursor:pointer;pointer-events:auto;transition:opacity .15s}.mpr-plane-scrollbar:hover{opacity:1}.mpr-resize-handle{position:absolute;top:0;right:-5px;width:10px;height:100%;z-index:14;cursor:col-resize;background:linear-gradient(to right,#22b5f200,#22b5f247,#22b5f200)}.mpr-resize-handle:hover,.mpr-resize-handle:active{background:linear-gradient(to right,#22b5f214,#22b5f280,#22b5f214)}@media (max-width: 1100px){.mpr-view--orthogonal{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(200px,1fr))}.mpr-view--mist{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(180px,1fr))}.mpr-controls{max-width:calc(100% - 16px)}.mpr-slab-control{width:100%;flex-wrap:wrap}.mpr-slab-control input[type=range]{width:100%}.mpr-resize-handle{display:none}}.stack-layout{width:100%;height:100%;display:grid;gap:2px;background:#131821;padding:2px}.stack-layout-1x1{grid-template-columns:1fr;grid-template-rows:1fr}.stack-layout-1x2{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.stack-layout-1x3{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr}.stack-layout-1x4{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr}.stack-layout-2x1{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.stack-layout-2x2{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.stack-layout-2x3{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr}.stack-layout-2x4{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr}.stack-layout-2x6{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:1fr 1fr}.stack-layout-3x2{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr 1fr}.stack-layout-3x3{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.stack-layout-4x2{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.stack-layout-4x4{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.stack-pane{padding:0;border:1px solid #2c3442;background:#000;position:relative;overflow:hidden;cursor:pointer}.stack-pane.active{border-color:#00b4ff;box-shadow:inset 0 0 0 1px #00b4ff4d}.viewer-page{display:flex;flex-direction:column;height:100%;width:100%;background:#171d27}.viewer-toolbar-restore-btn{position:fixed;top:.6rem;right:.8rem;z-index:90;padding:.35rem .65rem;border:1px solid #4b5567;background:#1b222eeb;color:#dbe6f9;border-radius:4px;cursor:pointer;font-size:.74rem;font-weight:600}.viewer-sidebar-restore-btn{position:fixed;top:.6rem;left:.8rem;z-index:90;padding:.35rem .65rem;border:1px solid #4b5567;background:#1b222eeb;color:#dbe6f9;border-radius:4px;cursor:pointer;font-size:.74rem;font-weight:600}.viewer-toolbar-restore-btn:hover,.viewer-sidebar-restore-btn:hover{background:#324259f2;border-color:#6199d8}.viewer-page.loading,.viewer-page.error{display:flex;align-items:center;justify-content:center}.spinner{color:#667eea;font-size:1.2rem}.error-box{text-align:center;color:#ff6b6b;padding:2rem}.error-box h2{margin:0 0 1rem}.viewer-container{display:flex;flex:1;gap:0;overflow:hidden}.viewer-container--top,.viewer-container--bottom{flex-direction:column}.viewer-main{flex:1;min-width:0;min-height:0;background:#090d14}.viewer-sidebar{background:linear-gradient(to bottom,#252c39,#1a212d);overflow:hidden;display:flex;flex-direction:column}.viewer-sidebar--vertical{min-width:180px;max-width:45vw}.viewer-sidebar--horizontal{width:100%;min-height:120px;max-height:40vh}.viewer-sidebar--left{border-right:1px solid #3a4354}.viewer-sidebar--right{border-left:1px solid #3a4354}.viewer-sidebar--top{border-bottom:1px solid #3a4354}.viewer-sidebar--bottom{border-top:1px solid #3a4354}.viewer-sidebar--collapsed{align-items:center;justify-content:center;background:linear-gradient(to bottom,#202734,#181e29)}.viewer-sidebar--collapsed.viewer-sidebar--vertical{min-width:36px}.viewer-sidebar--collapsed.viewer-sidebar--horizontal{min-height:36px}.viewer-sidebar-collapse-button{display:flex;align-items:center;justify-content:center;gap:.45rem;width:100%;height:100%;padding:.35rem;border:0;color:#dce8fb;background:transparent;cursor:pointer}.viewer-sidebar--collapsed.viewer-sidebar--vertical .viewer-sidebar-collapse-button{writing-mode:vertical-rl;transform:rotate(180deg)}.viewer-sidebar-collapse-button:hover{background:#58aef01a}.viewer-resizer{flex:0 0 auto;background:#253042;position:relative}.viewer-resizer:after{content:"";position:absolute;inset:0;background:#58aef000;transition:background .15s ease}.viewer-resizer:hover:after{background:#58aef038}.viewer-resizer--vertical{width:6px;cursor:col-resize}.viewer-resizer--horizontal{height:6px;cursor:row-resize}@media (max-width: 1100px){.viewer-sidebar--vertical{width:240px}}.studies-page{display:flex;flex-direction:column;height:100%}.studies-main{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:1rem;background:#1a1a1a}.search-form{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem;width:100%;background:#252525;border:1px solid #404040;border-radius:8px;padding:.75rem 1rem;box-sizing:border-box}.filters-top-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end}.filters-modalities-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;flex:1;min-width:0}.modalities-label{font-size:.85rem;color:#aaa;font-weight:500;margin-right:.25rem;white-space:nowrap}.form-group{display:flex;flex-direction:column;gap:.3rem;min-width:110px}.form-group--wide{flex:1;min-width:160px}.form-group label{font-weight:500;font-size:.8rem;color:#bbb;text-transform:uppercase;letter-spacing:.03em}.form-group input,.form-group select{padding:.4em .6em;border:1px solid #404040;border-radius:4px;background:#2a2a2a;color:#fff;font-size:.9rem}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 4px #667eea4d}.modality-checkbox{display:flex;align-items:center;gap:.35rem;cursor:pointer;font-size:.85rem;color:#ddd;white-space:nowrap}.modality-checkbox input[type=checkbox]{cursor:pointer;width:14px;height:14px}.btn-search{padding:.45em 1.5em;background:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:500;font-size:.9rem;transition:background .2s;margin-left:auto;white-space:nowrap}.btn-search:hover:not(:disabled){background:#5568d3}.btn-search:disabled{opacity:.6;cursor:not-allowed}.studies-results{flex:1;width:100%}.empty-state{text-align:center;color:#888;padding:2rem;font-size:1.1rem}.studies-table-wrapper{border:1px solid #404040;border-radius:8px;overflow:auto;box-shadow:0 2px 8px #0000004d}.studies-table{width:100%;min-width:920px;border-collapse:collapse;background:#2a2a2a}.studies-table thead{background:#1f1f1f;border-bottom:2px solid #404040}.studies-table th{padding:1rem;text-align:left;font-weight:600;color:#ddd;cursor:pointer;user-select:none;transition:background .2s;white-space:nowrap}.studies-table th:hover{background:#252525}.sort-arrow{display:inline-block;margin-left:.5rem;color:#999;font-size:.9rem}.studies-table tbody tr{border-bottom:1px solid #373737;transition:background .15s;cursor:pointer}.studies-table tbody tr:hover{background:#313131}.study-row td{padding:1rem;color:#ddd;font-size:.95rem}.study-row td:first-child{font-weight:500;color:#fff}@media (max-width: 960px){.filters-bottom-row{align-items:flex-start}.btn-search{width:100%;margin-left:0}.studies-main{padding:.75rem}.filters-bottom-row{flex-direction:column}.filters-modalities-row{width:100%}}.studies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}.study-card{background:#2a2a2a;border:1px solid #404040;border-radius:8px;padding:1.5rem;display:flex;flex-direction:column;gap:1rem;transition:border-color .2s}.study-card:hover{border-color:#667eea}.study-header{display:flex;justify-content:space-between;align-items:start;gap:1rem}.study-header h3{margin:0;font-size:1.1rem;flex:1}.study-date{white-space:nowrap;font-size:.9rem;color:#999;padding:.25rem .5rem;background:#1a1a1a;border-radius:3px}.study-info{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem}.study-info p{margin:0;color:#ccc}.study-info strong{color:#fff}.btn-open{background:#667eea;color:#fff;border:none;padding:.8em 1.2em;border-radius:4px;cursor:pointer;font-weight:500;transition:background .2s}.btn-open:hover{background:#5568d3}.open-mode-selector{display:flex;align-items:center;gap:1.5rem;margin-bottom:1.5rem;padding:1rem;background:#252525;border:1px solid #404040;border-radius:8px}.open-mode-label{font-weight:600;color:#ddd;white-space:nowrap;font-size:.95rem}.open-mode-radios{display:flex;gap:1.5rem;flex-wrap:wrap}.radio-option{display:flex;align-items:center;gap:.5rem;cursor:pointer;user-select:none;color:#ccc;font-size:.95rem}.radio-option input[type=radio]{cursor:pointer;width:16px;height:16px;accent-color:#667eea}.radio-option:hover{color:#ddd}@media (max-width: 768px){.open-mode-selector{flex-direction:column;align-items:flex-start;gap:.75rem}.open-mode-radios{flex-direction:column;gap:.75rem}}#root{width:100%;height:100%;display:flex;flex-direction:column}main{flex:1;display:flex;overflow:hidden}:root{color:#e8efff;background-color:#10151d;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;font-family:inherit;background:#10151d;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
