.bm-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.bm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bm-title {
  font-size: 1.6rem;
  color: var(--neon-amber, #ffc060);
  margin: 0 0 0.25rem;
}

.bm-subtitle {
  margin: 0;
  font-size: 0.85rem;
}

.bm-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── empty / loading ── */
.bm-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.bm-loading {
  padding: 2rem;
  text-align: center;
}

/* ── card grid ── */
.bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 1.25rem;
}

/* ── card internals ── */
.bm-card {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bm-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bm-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bm-worker-name {
  font-family: var(--font-display, monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: #eee;
}

.bm-platform-badge {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid currentColor;
  text-transform: uppercase;
}

.bm-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.bm-tag-fusion {
  background: rgba(255,100,0,0.18);
  color: #ff8c00;
  border: 1px solid rgba(255,100,0,0.45);
}

.bm-tag-universal {
  background: rgba(255,215,0,0.12);
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.35);
}

.bm-date {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text-secondary, #888);
  white-space: nowrap;
}

/* ── settings grid ── */
.bm-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.4rem 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
}

.bm-setting {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bm-setting-label {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-amber, #ffc060);
  opacity: 0.75;
}

.bm-setting-value {
  font-size: 0.78rem;
  color: #dde;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-setting-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
}

.bm-tls-badge {
  font-size: 0.62rem;
  color: var(--neon-cyan, #0ff);
  opacity: 0.8;
}

/* ── downloads ── */
.bm-downloads,
.bm-dropper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bm-downloads-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #888);
  margin-bottom: 0.05rem;
}

.bm-downloads-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bm-dl-btn {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
}

/* ── dropper rows ── */
.bm-dropper-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.05);
  min-width: 0;
}

.bm-dropper-os {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--neon-cyan, #0ff);
  min-width: 2rem;
  text-align: right;
  flex-shrink: 0;
}

.bm-dropper-cmd {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: #b8e0d0;
  word-break: break-all;
  min-width: 0;
}

.bm-copy-btn {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.28);
  border-radius: 3px;
  color: var(--neon-cyan, #0ff);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.bm-copy-btn:hover {
  background: rgba(0,245,255,0.18);
}

/* ── footer row ── */
.bm-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.bm-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.bm-qr-label {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--text-secondary, #888);
  letter-spacing: 0.05em;
}

.bm-action-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.bm-reforge-btn {
  font-size: 0.82rem;
}

.bm-del-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255,50,50,0.08);
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: 4px;
  color: #f87171;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.bm-del-btn:hover {
  background: rgba(255,50,50,0.16);
  border-color: rgba(255,80,80,0.55);
}

.bm-del-btn-confirm {
  background: rgba(255,80,0,0.22);
  border-color: rgba(255,100,0,0.65);
  color: #ff8c00;
}

/* ── Pinned state ── */
.bm-card-pinned {
  box-shadow: 0 0 0 1.5px rgba(0, 255, 130, 0.55), 0 0 18px rgba(0, 255, 100, 0.18);
}

.bm-pinned-banner {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #00ff88;
  background: rgba(0, 255, 100, 0.08);
  border: 1px solid rgba(0, 255, 100, 0.3);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.1rem;
  line-height: 1.5;
  word-break: break-all;
}

.bm-pinned-banner code {
  color: #7effc8;
  font-size: 0.7rem;
}

/* ── Pin button ── */
.bm-pin-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 200, 100, 0.08);
  border: 1px solid rgba(0, 200, 100, 0.3);
  border-radius: 4px;
  color: #5fffa8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.bm-pin-btn:hover:not(:disabled) {
  background: rgba(0, 200, 100, 0.18);
  border-color: rgba(0, 200, 100, 0.55);
}

.bm-pin-btn-active {
  background: rgba(0, 255, 120, 0.16);
  border-color: rgba(0, 255, 120, 0.6);
  color: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.25);
  font-weight: 600;
}

.bm-pin-btn-active:hover:not(:disabled) {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.4);
  color: #f87171;
}

@media (max-width: 640px) {
  .bm-grid {
    grid-template-columns: 1fr;
  }
  .bm-dropper-cmd {
    display: none;
  }
}
