/* ============================================================
   BATTERY PICKER MODAL
   ============================================================ */
.bp-panel {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dark) 100%);
  border: 4px solid var(--brass-dark);
  border-radius: 6px;
  padding: 16px 20px 14px;
  max-width: 520px;
  width: calc(100% - 40px);
  color: var(--ink);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: Georgia, serif;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--paper-edge);
  margin-bottom: 14px;
}
.bp-header h3 {
  font-family: 'Didot', Georgia, serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 3px;
}
.bp-sub {
  font-size: 11px;
  font-style: italic;
  color: var(--ink-light);
}

.bp-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.bp-section-head {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--brass-dark);
  border-bottom: 1px dashed var(--paper-edge);
  padding-bottom: 3px;
}
.bp-catalog-head {
  margin-top: 10px;
}

.bp-battery-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}

.bp-battery-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(253, 240, 213, 0.75);
  border: 1px solid var(--paper-edge);
  border-left: 4px solid var(--copper);
  border-radius: 3px;
  transition: transform 0.1s, background 0.15s;
}
.bp-battery-card:hover {
  background: rgba(255, 217, 125, 0.2);
  transform: translateY(-1px);
}

.bp-bat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.bp-bat-icon svg { max-width: 100%; max-height: 100%; }

.bp-bat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bp-bat-name {
  font-weight: bold;
  font-size: 12px;
  font-family: 'Didot', Georgia, serif;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.bp-bat-specs {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.3px;
}

.bp-bat-install {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fdf0d5;
  border: 1px solid var(--green-dark);
  padding: 6px 14px;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 3px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.bp-bat-install:hover { transform: translateY(-1px); }
.bp-bat-install:active { transform: translateY(1px); }

.bp-catalog-btn {
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-dark) 100%);
  color: #fdf0d5;
  border: 1px solid var(--brass-dark);
  padding: 10px 14px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.1s;
}
.bp-catalog-btn:hover { transform: translateY(-1px); }

.bp-empty {
  font-style: italic;
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  padding: 16px 8px;
  background: rgba(43, 24, 16, 0.04);
  border: 1px dashed var(--paper-edge);
  border-radius: 3px;
}

/* ============================================================
   CATALOG — BATTERY DUAL BUTTON ROW (BUY vs INSTALL)
   ============================================================ */
.card-battery-actions {
  display: flex;
  gap: 6px;
}
.card-battery-actions .card-install {
  flex: 1;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.card-install-buy {
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-dark) 100%) !important;
}
.card-install-install {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%) !important;
  border-color: var(--green-dark) !important;
}

/* ============================================================
   SLOT ADD / REMOVE CONTROLS (list view)
   ============================================================ */
.chain-slot-actions {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--paper-edge);
  justify-content: flex-end;
  background: rgba(43, 24, 16, 0.03);
}
.slot-add-btn, .slot-remove-btn {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold;
  padding: 4px 12px;
  background: rgba(43, 24, 16, 0.08);
  border: 1px dashed var(--paper-edge);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.12s;
}
.slot-add-btn:hover {
  background: var(--green);
  color: #fdf0d5;
  border-color: var(--green-dark);
  border-style: solid;
}
.slot-remove-btn:hover:not(:disabled) {
  background: var(--bad);
  color: #fdf0d5;
  border-color: var(--bad);
  border-style: solid;
}
.slot-remove-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   EMPTY WORKSHOP — START A CIRCUIT CTA
   ============================================================ */
.workshop-empty {
  padding: 40px 20px;
  text-align: center;
  background: rgba(253, 240, 213, 0.85);
  border: 3px dashed var(--brass-dark);
  border-radius: 6px;
  margin: 20px 0;
}
.workshop-empty-title {
  font-family: 'Didot', Georgia, serif;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 8px;
}
.workshop-empty-sub {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.4;
}
.workshop-empty-btn {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fdf0d5;
  border: 2px solid var(--green-dark);
  padding: 12px 28px;
  font-family: 'Didot', Georgia, serif;
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.25), 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s;
  text-transform: uppercase;
}
.workshop-empty-btn:hover { transform: translateY(-1px); }
.workshop-empty-btn:active { transform: translateY(1px); }

/* ============================================================
   SLOT ADD / REMOVE (board view — inline in chain strip header)
   ============================================================ */
.bb-strip-slots {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--brass-dark);
  border-radius: 3px;
  padding: 1px 3px;
}
.bb-slot-plus, .bb-slot-minus {
  background: transparent;
  color: var(--gold);
  border: none;
  width: 18px;
  height: 18px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-slot-plus:hover:not(:disabled) {
  background: var(--green);
  color: #fdf0d5;
}
.bb-slot-minus:hover:not(:disabled) {
  background: var(--bad);
  color: #fdf0d5;
}
.bb-slot-plus:disabled, .bb-slot-minus:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.bb-slot-count {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--gold);
  padding: 0 3px;
  opacity: 0.8;
}
