/* Panel System — Panel chrome
   system.panel-system v1.0.0 (v0.6 Day 1)
   Panel header, buttons, resize handles.
*/

.fv-panel {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 9000;
  overflow: hidden;
}

.fv-panel-header {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  cursor: move;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

.fv-panel-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.fv-panel-tab {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  scroll-snap-align: start;
}

.fv-panel-tab.fv-panel-tab-active {
  background: white;
  border-color: #ddd;
  font-weight: 600;
}

.fv-panel-content {
  flex: 1;
  overflow: auto;
  padding: 8px;
}

.fv-panel-resize {
  position: absolute;
  background: transparent;
  z-index: 1;
}

.fv-panel-resize-left { left: -3px; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.fv-panel-resize-right { right: -3px; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.fv-panel-resize-top { top: -3px; left: 0; right: 0; height: 6px; cursor: ns-resize; }

/* Docked right (Edge Panel default) */
.fv-panel-docked-R {
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  border-radius: 8px 0 0 8px;
  border-right: none;
}

/* Minimized: only the pill shows */
.fv-panel-minimized {
  display: none;
}

/* Pro Mode lock visual */
.fv-panel-minimize-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
