/* right_panel_minimize.css — IT65 (part 1): right-panel minimize/restore.
 *
 * Additive + freeze-safe: every rule is scoped under the .right-panel-minimized
 * class (added by right_panel_minimize.js) or targets the two injected controls.
 * With the panel expanded and no controls present, nothing here applies, so the
 * default render is byte-identical to today.
 */

/* The minimize control sits in the tab header, top-right. */
.right-panel-minimize-btn {
  align-self: flex-end;
  margin: 2px 2px 0 0;
  padding: 1px 7px;
  background: rgba(0, 0, 0, 0.35);
  color: #aaa;
  border: 1px solid var(--border, #444);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.2;
}
.right-panel-minimize-btn:hover {
  color: #fff;
  border-color: #666;
  background: rgba(40, 40, 60, 0.8);
}

/* Collapsed: shrink the panel to a thin edge strip and hide its innards. */
#right-panel.right-panel-minimized {
  width: 26px !important;
  min-width: 26px;
  max-width: 26px;
  padding: 0;
  overflow: hidden;
}
#right-panel.right-panel-minimized #right-tabs,
#right-panel.right-panel-minimized .tab-content,
#right-panel.right-panel-minimized #right-panel-footer {
  display: none !important;
}

/* The restore strip: a full-height clickable edge that reads "Panel" vertically.
 * Hidden by default; the JS shows it only while minimized. */
.right-panel-restore {
  display: none;
  width: 100%;
  height: 100%;
  background: var(--bg2, #1a1a22);
  color: #9ad;
  border: none;
  border-left: 1px solid var(--border, #444);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
#right-panel.right-panel-minimized .right-panel-restore {
  display: flex;
}
.right-panel-restore:hover {
  background: rgba(40, 40, 60, 0.9);
  color: #cfe;
}
.right-panel-restore-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
