/* Diamond Caelum AI · ÇDP v1.8.5-rc1
   Only the two Fixed Stars panels: collapsible headers and eight-direction resize.
   General page splitters, virtual canvas, and all record fields are unchanged. */
section.page[data-view="fixed-stars"] > .split-flex-row {
  align-items: flex-start !important;
  min-width: 0 !important;
}
#fs-left-panel:not(.is-collapsed-horiz),
#fs-right-panel:not(.is-collapsed-horiz) {
  box-sizing: border-box !important;
  position: relative !important;
  min-height: 185px !important;
  max-height: none !important;
  height: var(--fs-landscape-height, min(540px, 74dvh)) !important;
  overflow: hidden !important;
}
#fs-left-panel .card-title,
#fs-right-panel .card-title {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
}
#fs-left-panel .card-title .panel-collapse-btn,
#fs-right-panel .card-title .panel-collapse-btn {
  flex: 0 0 30px !important;
  min-width: 30px;
  min-height: 30px;
  cursor: pointer;
}
#fs-star-list, #fs-subview-content {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
/* Controls live directly in the panel header, not in the article text/scroll area. */
.fs-panel-reset {
  flex: 0 0 30px;
  min-width: 30px;
  height: 30px;
  border: 1px solid rgba(234,242,255,.38);
  border-radius: 9px;
  color: #EAF2FF;
  background: rgba(40,55,105,.40);
  cursor: pointer;
  touch-action: manipulation;
  font-size: 16px;
}
.fs-panel-reset:focus-visible,
.fs-panel-resize-handle:focus-visible,
#fs-left-panel .panel-collapse-btn:focus-visible,
#fs-right-panel .panel-collapse-btn:focus-visible {
  outline: 2px solid #A0ECF4;
  outline-offset: 2px;
}
.fs-panel-resize-handle {
  position: absolute;
  z-index: 15;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(96,215,232,.24);
  box-shadow: inset 0 0 0 1px rgba(160,236,244,.45);
  opacity: .65;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.fs-panel-resize-handle:hover,
.fs-panel-resize-handle:focus-visible,
.fs-panel-resize-handle.is-dragging { opacity: 1; background: rgba(96,215,232,.65); }
.fs-panel-resize-handle[data-fs-resize="t"] { top:0;left:calc(50% - 9px);cursor:n-resize; }
.fs-panel-resize-handle[data-fs-resize="b"] { bottom:0;left:calc(50% - 9px);cursor:s-resize; }
.fs-panel-resize-handle[data-fs-resize="l"] { top:calc(50% - 9px);left:0;cursor:w-resize; }
.fs-panel-resize-handle[data-fs-resize="r"] { top:calc(50% - 9px);right:0;cursor:e-resize; }
.fs-panel-resize-handle[data-fs-resize="tl"] { top:0;left:0;cursor:nw-resize; }
.fs-panel-resize-handle[data-fs-resize="tr"] { top:0;right:0;cursor:ne-resize; }
.fs-panel-resize-handle[data-fs-resize="bl"] { bottom:0;left:0;cursor:sw-resize; }
.fs-panel-resize-handle[data-fs-resize="br"] { bottom:0;right:0;cursor:se-resize; }
#fs-left-panel.is-collapsed-horiz,
#fs-right-panel.is-collapsed-horiz {
  /* Wide screen: a slim VERTICAL rail with a readable rotated title. */
  height: var(--fs-landscape-height, min(540px, 74dvh)) !important;
  min-height: 185px !important;
  max-height: none !important;
  overflow: hidden !important;
}
#fs-left-panel.is-collapsed-horiz .fs-panel-resize-handle,
#fs-right-panel.is-collapsed-horiz .fs-panel-resize-handle,
#fs-left-panel.is-collapsed-horiz .fs-panel-reset,
#fs-right-panel.is-collapsed-horiz .fs-panel-reset {display:none !important;}
#fs-left-panel.is-collapsed-horiz > .card-title > h2,
#fs-right-panel.is-collapsed-horiz > .card-title > div:first-child {display:none !important;}
#fs-left-panel.is-collapsed-horiz > .card-title > .fs-collapsed-caption,
#fs-right-panel.is-collapsed-horiz > .card-title > .fs-collapsed-caption {
  display:block !important;
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  overflow:hidden;
  color: #EAF2FF;
}
.fs-collapsed-caption {display:none;}
@media (max-width:920px) {
  section.page[data-view="fixed-stars"] > .split-flex-row { align-items:stretch !important; }
  #fs-left-panel:not(.is-collapsed-horiz),
  #fs-right-panel:not(.is-collapsed-horiz) {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    min-width: min(270px, 100%) !important;
    width: min(100%, var(--fs-portrait-width, 100%)) !important;
    height: var(--fs-portrait-height, 270px) !important;
    align-self: flex-start !important;
  }
  #fs-right-panel:not(.is-collapsed-horiz) {height:var(--fs-portrait-height, 540px) !important;}
  #fs-left-panel.is-collapsed-horiz,
  #fs-right-panel.is-collapsed-horiz {
    box-sizing: border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    flex:0 0 48px !important;
    padding: 0 8px !important;
    overflow:hidden !important;
  }
  #fs-left-panel.is-collapsed-horiz > .card-title,
  #fs-right-panel.is-collapsed-horiz > .card-title {
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    min-height:46px;
    gap:8px !important;
    width:100% !important;
    padding: 0 !important;
  }
  #fs-left-panel.is-collapsed-horiz .panel-collapse-btn,
  #fs-right-panel.is-collapsed-horiz .panel-collapse-btn {order:-1 !important;}
  #fs-left-panel.is-collapsed-horiz > .card-title > .fs-collapsed-caption,
  #fs-right-panel.is-collapsed-horiz > .card-title > .fs-collapsed-caption {
    writing-mode:horizontal-tb !important;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
  }
}
@media (max-width:360px) {
  .fs-panel-resize-handle {width:15px;height:15px;}
}
