/* ── bc3d-panels.css ────────────────────────────────────────────────
   Panel UI for the 3D birth chart — camera, transits, view, flyby.
   Ported from the Claude Design mockup (Zodelicious Charts Live).
   Dynamic JS-built elements (waypoints, timeline) live at the bottom.
   ─────────────────────────────────────────────────────────────────── */

/* ── Extra tokens not in cosmic.css ──────────────────────────────── */
:root {
  --surface-mid:   #1d1b28;
  --surface-hi:    #25232f;
  --line:          rgba(202,190,255,0.07);
  --line-strong:   rgba(202,190,255,0.14);
  --muted-2:       #5e5874;
  --r-card:        18px;
  --r-md:          12px;
  /* aspect colours */
  --conj:   #e9c349;
  --sextile:#00ccff;
  --square: #ff4488;
  --trine:  #8063ff;
  --oppos:  #ff6699;
}

/* ── Panel stack wrapper ──────────────────────────────────────────── */

.bc3d-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Top row: Camera | Transits | View (overridden by charts.css) */
.bc3d-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

/* ── Card primitive ───────────────────────────────────────────────── */

.card {
  background: var(--surface-low, #1b1b20);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 16px;
}

.cardlabel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.cardlabel::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.cardmeta {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* ── Camera card ──────────────────────────────────────────────────── */

.camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ── D-pad ────────────────────────────────────────────────────────── */

.dpad {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(202,190,255,0.04), transparent 60%),
    #100e18;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5), inset 0 -20px 40px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.dpad-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.02);
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background 0.15s;
}
.dpad-btn:hover { color: var(--primary); background: rgba(202,190,255,0.06); }
.dpad-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.8; fill: none;
  pointer-events: none;
}
.dpad-btn--u { top: 10px;    left: 50%; transform: translateX(-50%); }
.dpad-btn--d { bottom: 10px; left: 50%; transform: translateX(-50%); }
.dpad-btn--l { left: 10px;   top: 50%;  transform: translateY(-50%); }
.dpad-btn--r { right: 10px;  top: 50%;  transform: translateY(-50%); }

.dpad-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(202,190,255,0.25);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
}
.dpad-core::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin: 6px auto;
}

/* ── Knobs ────────────────────────────────────────────────────────── */

.knobs {
  display: flex;
  gap: 28px;
}

/* .knob = wrapper div created by _makeKnob */
.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* .knob__dial = the interactive dial element created by _makeKnob */
.knob__dial {
  --rot: -120deg;
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2738 0%, #14121c 75%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(202,190,255,0.1), 0 4px 14px rgba(0,0,0,0.5);
  cursor: ns-resize;
  user-select: none;
  touch-action: none;
}
.knob__dial::before {
  content: '';
  position: absolute;
  left: 50%; top: 9px;
  width: 2px; height: 14px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent);
  transform-origin: 50% 23px;
  transform: translateX(-50%) rotate(var(--rot));
  pointer-events: none;
}

.knob__lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Transits card ────────────────────────────────────────────────── */

.transits-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.date-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 0.7rem;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  outline: none;
  /* show native date picker */
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.date-input:focus { border-color: var(--line-strong); }

.today-btn {
  height: 40px;
  padding: 0 1rem;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}
.today-btn:hover { border-color: var(--line-strong); background: var(--surface-hi); }

.aspects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aspect {
  display: grid;
  grid-template-columns: 22px 1fr auto 14px;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.aspect:hover { background: rgba(202,190,255,0.025); }

.aspect > input[type="checkbox"] { display: none; }

.aspect__box {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--surface-hi);
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aspect__box svg {
  width: 11px; height: 11px;
  stroke: var(--bg, #0c0b12); fill: none; stroke-width: 3;
  opacity: 0;
}
.aspect > input[type="checkbox"]:checked + .aspect__box { background: currentColor; }
.aspect > input[type="checkbox"]:checked + .aspect__box svg { opacity: 1; }

.aspect__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: currentColor;
}

.aspect__orb {
  width: 48px; height: 28px;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: right;
  padding: 0 0.45rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  color: var(--primary);
  outline: none;
  color-scheme: dark;
}

.aspect__deg {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Per-aspect colour tokens */
.aspect[data-k="conjunction"] { color: var(--conj);    }
.aspect[data-k="sextile"]     { color: var(--sextile); }
.aspect[data-k="square"]      { color: var(--square);  }
.aspect[data-k="trine"]       { color: var(--trine);   }
.aspect[data-k="opposition"]  { color: var(--oppos);   }

/* ── View card ────────────────────────────────────────────────────── */

.view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Native <select> styled to match the mockup */
.bc3d-pill-sel {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 28px 0 12px;
  background: var(--surface-mid)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238a83a0' stroke-width='1.8' fill='none'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  color-scheme: dark;
}
.bc3d-pill-sel:hover { border-color: var(--line-strong); }
.bc3d-pill-sel option { background: var(--surface-mid); color: var(--primary); }

.bc3d-view-go {
  margin-top: auto;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128,99,255,0.20), rgba(128,99,255,0.32));
  border: 1px solid rgba(128,99,255,0.42);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.bc3d-view-go:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #16102e;
  border-color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(128,99,255,0.55);
}

/* ── Flyby card ───────────────────────────────────────────────────── */

.flyby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.flyby-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--primary);
}
.flyby-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 0.3rem;
  align-self: center;
  flex-shrink: 0;
}
.flyby-title em {
  font-family: 'Noto Serif', serif;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 0.92rem;
}

.flyby-kf {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.flyby-kf strong { color: var(--primary); font-size: 0.95rem; font-weight: 500; }

/* ── Transport ────────────────────────────────────────────────────── */

.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tplay {
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(128,99,255,0.20);
  color: var(--primary);
  border: 1px solid rgba(128,99,255,0.30);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}
.tplay:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #16102e;
}
.tplay svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

.tbtn {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.tbtn:hover { color: var(--primary); border-color: var(--line-strong); }
.tbtn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

.tbtn.rec-btn { color: #ff7799; border-color: rgba(255,119,153,0.3); }
.tbtn.rec-btn.is-active { background: rgba(255,119,153,0.12); border-color: rgba(255,119,153,0.6); }

.reddot {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ff5577;
  box-shadow: 0 0 8px rgba(255,85,119,0.6);
}

.bc3d-divider {
  width: 1px; height: 26px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── Loop toggle ──────────────────────────────────────────────────── */

.tog {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.tog-track {
  width: 30px; height: 16px;
  border-radius: 999px;
  background: var(--surface-hi);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.tog-track::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.18s, background 0.18s;
}
.tog input { display: none; }
.tog input:checked + .tog-track { background: rgba(128,99,255,0.25); border-color: rgba(128,99,255,0.5); }
.tog input:checked + .tog-track::after { transform: translateX(14px); background: var(--primary); }

/* ── Speed ────────────────────────────────────────────────────────── */

.speed {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.speed-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.speed-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  color: var(--primary);
  min-width: 38px;
  text-align: right;
}

.speed-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.speed-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-deep) 0 var(--p,50%), var(--surface-hi) var(--p,50%) 100%);
  border: 1px solid var(--line);
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--primary) 60%, var(--primary-deep));
  border: 1px solid rgba(255,255,255,0.4);
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(128,99,255,0.5);
}
.speed-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--primary));
  border: 1px solid rgba(255,255,255,0.4);
}

/* ── Empty / add / pill ───────────────────────────────────────────── */

.flyby-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 36px 18px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.flyby-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.95rem;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s;
}
.pill-btn:hover { border-color: var(--line-strong); background: var(--surface-hi); }
.pill-btn svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

/* ── Test text row ────────────────────────────────────────────────── */

.bc3d-test-row {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
}
.bc3d-test-input {
  flex: 1;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  padding: 0.22rem 0.45rem;
  font-size: 0.78rem;
  outline: none;
  color-scheme: dark;
}
.bc3d-test-size {
  width: 3.5rem;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  padding: 0.22rem 0.35rem;
  font-size: 0.78rem;
  text-align: center;
  outline: none;
  color-scheme: dark;
}
.bc3d-test-go {
  background: rgba(202,190,255,0.08);
  border: 1px solid rgba(202,190,255,0.2);
  border-radius: 8px;
  color: var(--primary);
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
}
.bc3d-test-go:hover { border-color: rgba(202,190,255,0.35); background: rgba(202,190,255,0.12); }

/* ── Camera position panel ────────────────────────────────────────── */

.pos-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: default;
  border-bottom: 1px solid var(--line);
}

.pos-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.pos-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.pos-snap {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  padding: 0.18rem 0.38rem;
  font-size: 0.7rem;
  transition: color 0.12s, border-color 0.12s;
  display: flex;
  align-items: center;
}
.pos-snap:hover { color: var(--primary); border-color: var(--line-strong); }
.pos-snap .icon { font-size: 0.9rem; line-height: 1; pointer-events: none; }

.pos-knobs {
  padding: 14px 20px 18px;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.pos-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
  min-width: 3.5em;
  text-align: center;
  display: block;
}

/* ── Dynamic JS-built elements: waypoints & timeline ─────────────── */

.bc3d-timeline {
  position: relative;
  height: 68px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-mid) 0%, var(--surface-low, #1b1b20) 100%);
  border: 1px solid var(--line);
  padding: 10px 14px;
  overflow: hidden;
}
.bc3d-timeline__empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2);
}
.bc3d-timeline__rail {
  position: absolute; left: 14px; right: 14px; top: 50%;
  transform: translateY(-50%);
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(202,190,255,0.04) 0%,
    rgba(202,190,255,0.18) 50%,
    rgba(202,190,255,0.04) 100%);
}
.bc3d-timeline__kf {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.bc3d-pin {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--surface-mid);
  border: 1.5px solid var(--primary-deep);
  transform: rotate(45deg);
  display: block;
}
.bc3d-pin--text { border-color: var(--accent); border-radius: 50%; transform: none; }
.bc3d-timeline__lbl {
  position: absolute; top: 14px;
  left: 50%; transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.54rem; letter-spacing: 0.06em;
  color: var(--muted); white-space: nowrap;
}

.bc3d-wp-list { display: flex; flex-direction: column; gap: 0.5rem; }

.bc3d-wp-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.bc3d-wp-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  flex-shrink: 0; padding: 0.15rem 0.5rem; border-radius: 5px;
}
.bc3d-wp-type--fly  { color: var(--sextile); background: rgba(0,204,255,0.08); }
.bc3d-wp-type--text { color: var(--accent);  background: rgba(233,195,73,0.08); }
.bc3d-wp-select {
  background: var(--surface-hi);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  outline: none;
  color-scheme: dark;
}
.bc3d-wp-textarea {
  flex: 1; min-width: 120px;
  background: var(--surface-hi);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 2.4rem;
  font-family: 'Noto Serif', Georgia, serif;
  outline: none;
}
.bc3d-wp-numbox {
  background: var(--surface-hi);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  width: 4.5rem;
  text-align: center;
  color-scheme: dark;
}
.bc3d-wp-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
}
.bc3d-wp-arrow { color: var(--line-strong); font-size: 0.9rem; flex-shrink: 0; }
.bc3d-wp-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  padding: 0.18rem 0.38rem;
  transition: color 0.12s, border-color 0.12s;
  display: flex;
  align-items: center;
}
.bc3d-wp-btn:hover { color: var(--primary); border-color: var(--line-strong); }
.bc3d-wp-btn:disabled { opacity: 0.3; cursor: default; }
.bc3d-wp-btn .icon {
  font-size: 0.85rem; line-height: 1;
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.bc3d-btn--add {
  background: none;
  color: var(--primary);
  border: 1px dashed var(--line-strong);
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s;
}
.bc3d-btn--add:hover { border-color: var(--primary); border-style: solid; }
.bc3d-btn--add svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.bc3d-err {
  color: #ff4488;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  display: none;
}
