/* ÇDP v2.0.5-rc1: iPad screenshot regressions, no record mutations. */
/* Fixed Stars: both panels fill the available screen height by default, with
   independent scroll; old manually saved height values keep precedence. */
section.page[data-view="fixed-stars"] > .split-flex-row {align-items:stretch !important;}
@media (min-width:921px) {
 #fs-left-panel:not(.is-collapsed-horiz),
 #fs-right-panel:not(.is-collapsed-horiz) {
  height:var(--fs-landscape-height, var(--fs-auto-height, min(680px,74dvh))) !important;
  max-height:none !important;
  align-self:stretch !important;
 }
}
#fs-star-list, #fs-subview-content {
 flex:1 1 auto !important;
 min-height:0 !important;
 overflow-y:auto !important;
 overscroll-behavior:contain !important;
 -webkit-overflow-scrolling:touch !important;
 touch-action:pan-y !important;
}
/* Full screen chart: fitted image and markers share one exact coordinate space. */
.dc-fs-image-frame {position:relative;display:block;flex:0 0 auto;max-width:calc(100dvw - 40px);max-height:calc(100dvh - 120px);}
.dc-fs-fitted-image {display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;-webkit-user-drag:none;}
.dc-fs-image-markers {position:absolute;inset:0;pointer-events:none;overflow:visible;}
.dc-fs-marker-button {pointer-events:auto;touch-action:manipulation;z-index:2;}
/* Chat messages grow in maximized mode, NOT the text composer. */
#window-assistant .float-body {display:flex;flex-direction:column;min-height:0;overflow-y:auto !important;}
#window-assistant #diamond-chat-log {flex:1 1 90px;min-height:80px;max-height:none;overflow-y:auto;}
#window-assistant textarea#assistant-draft,
#window-assistant.is-maximized-float textarea#assistant-draft {
 flex:0 0 auto !important;height:clamp(68px,12dvh,118px) !important;
 min-height:64px !important;max-height:130px !important;resize:vertical;
}
#window-assistant .assistant-title {flex:0 0 auto;}
/* Keep exit reachable even if the fullscreen toolbar needs horizontal scroll. */
#dc-fullscreen-modal .dc-fs-topbar {flex-wrap:nowrap;min-width:0;}
#dc-fullscreen-modal .dc-fs-title-wrap {min-width:0;flex:0 1 auto;}
#dc-fullscreen-modal .dc-fs-controls {min-width:0;flex:1 1 auto;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;}
#dc-fullscreen-modal .dc-fs-controls > * {flex:0 0 auto;}
#dc-fullscreen-modal #dc-fs-close-btn {position:sticky;right:0;z-index:3;}
@media (max-width:740px) {
 #dc-fullscreen-modal .dc-fs-topbar {flex-wrap:wrap;padding:9px 12px;gap:5px;}
 #dc-fullscreen-modal .dc-fs-title-wrap {width:100%;}
 #dc-fullscreen-modal .dc-fs-controls {width:100%;}
}

#fs-left-panel .dc-fs-fill-screen,#fs-right-panel .dc-fs-fill-screen{flex:0 0 28px;min-width:28px;height:28px;font-size:15px;}
#fs-left-panel.is-collapsed-horiz .dc-fs-fill-screen,#fs-right-panel.is-collapsed-horiz .dc-fs-fill-screen{display:none !important;}
