/* ============================================================
   BAYVIEW SETTINGS PANEL â€” hidden, owner-only accent editor
   Trigger: Ctrl + Shift + ,
   ============================================================ */

#bv-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(4, 18, 76, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#bv-settings-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#bv-settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99999;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.22s ease;

  width: min(440px, calc(100vw - 32px));
  background: #0d1f5e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.45),
    0  0   0 1px rgba(255,255,255,0.05) inset;
  padding: 28px 28px 24px;
  color: #f6f6f7;
  font-family: 'Poppins', sans-serif;
}
#bv-settings-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* â”€â”€ Header â”€â”€ */
.bvs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.bvs-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6f6f7;
}
.bvs-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bvs-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.bvs-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* â”€â”€ Divider â”€â”€ */
.bvs-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 0 20px;
}

/* â”€â”€ Label â”€â”€ */
.bvs-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

/* â”€â”€ Swatches â”€â”€ */
.bvs-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.bvs-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.bvs-swatch:hover {
  transform: scale(1.1);
}
.bvs-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
.bvs-swatch .bvs-check {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.bvs-swatch.active .bvs-check {
  display: flex;
}

/* â”€â”€ Custom color row â”€â”€ */
.bvs-custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.bvs-color-input-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  flex-shrink: 0;
}
.bvs-color-input-wrap input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}
.bvs-hex-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Poppins', monospace;
  font-size: 13px;
  color: #f6f6f7;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.15s;
}
.bvs-hex-input:focus {
  border-color: rgba(255,255,255,0.3);
}

/* â”€â”€ Footer row â”€â”€ */
.bvs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bvs-note {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.bvs-reset {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Poppins', sans-serif;
}
.bvs-reset:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* â”€â”€ Shortcut hint â”€â”€ */
.bvs-hint {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}
.bvs-hint kbd {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 10px;
}

