/* Bookshelf inspector + shared floating panel styling.
   Brutalism-light to match the graph editor panel.               */

.bs-float-panel {
  position: fixed;
  top: 200px;       /* lower from the top of the viewport */
  width: 340px;
  min-width: 260px;
  min-height: 180px;
  max-width: 90vw;
  max-height: 90vh;
  background: #f3efe4;
  color: #1a1713;
  border: 2px solid #1a1713;
  border-radius: 10px;
  box-shadow: 6px 6px 0 #1a1713;
  z-index: 9998;
  font: 11px/1.35 ui-monospace, Menlo, monospace;
  display: none;
  overflow: auto;
  resize: both;
}

.bs-float-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #e85d2a 0%, #c8b57a 100%);
  color: #18120c;
  cursor: move;
  user-select: none;
  font-weight: bold;
  letter-spacing: 2.5px;
  font-size: 10.5px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  border-bottom: 2px solid #18120c;
}
.bs-float-panel__close {
  color: #18120c !important;
}
.bs-float-panel__close:hover { color: #fff !important; }
.bs-float-panel__grip    { opacity: 0.75; }
.bs-float-panel__title   { flex: 1; letter-spacing: 0; text-transform: none; font-weight: normal; opacity: 0.9; }
.bs-float-panel__close {
  background: transparent; border: 0; color: #e8e5dc;
  font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer;
}
.bs-float-panel__close:hover { color: #ff8a3d; }

.bs-float-panel__body  { padding: 10px 12px 14px; }
.bs-float-panel__group { margin-bottom: 10px; }
.bs-float-panel__group-header {
  font-weight: bold; font-size: 9.5px; letter-spacing: 1.5px;
  color: #5a4434; margin: 6px 0 4px;
  border-bottom: 1px solid #c9c1a8;
  padding-bottom: 3px;
}

.bs-float-panel__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  margin: 3px 0;
}
.bs-float-panel__label {
  font-weight: bold; color: #3a2a1c; text-align: right;
}
.bs-num-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #1a1713;
  border-radius: 4px;
  padding: 4px 6px;
  font: inherit;
  color: #1a1713;
  box-shadow: 1px 1px 0 #1a1713 inset;
}
.bs-num-input:focus {
  outline: 2px solid #ff8a3d;
  outline-offset: 1px;
}

.bs-float-panel__meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #b6ad94;
  font-size: 10px;
  color: #4a3a2c;
  line-height: 1.6;
  word-break: break-all;
}
.bs-float-panel__meta b { color: #1a1713; letter-spacing: 1px; margin-right: 4px; }
