/* ============================================
   My Connector — Spatial Brain
   Session 1: Dark Void + Circles + Camera
   ============================================ */

:root {
  --void: #050508;
  --void-soft: #0a0a10;
  --circle-bg: #12121a;
  --circle-border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-dim: #6b6b80;
  --accent: #7c6bff;
  --accent-glow: rgba(124, 107, 255, 0.45);
  --success: #4ade80;
  --danger: #f87171;
  --one-thumb: 28vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  touch-action: none;
}

/* ---------- THE VOID ---------- */
.void {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #0c0c14 0%, var(--void) 70%),
    var(--void);
  overflow: hidden;
  cursor: grab;
}

.void.grabbing {
  cursor: grabbing;
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

/* World layer — transformed by camera */
.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* ---------- CIRCLES ---------- */
.circle {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--circle-bg);
  border: 1.5px solid var(--circle-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
  box-shadow:
    0 0 0 0 transparent,
    0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.circle:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.circle.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-glow),
    0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 20;
}

/* Breathing Active Ring */
.circle.active::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.7;
  animation: breathe 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%       { transform: scale(1.08); opacity: 0.9; }
}

/* Depth Layers — active circles float higher */
.circle.active {
  transform: translate(-50%, -50%) translateY(-4px);
}

/* Account Health */
.circle.status-resting {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.circle.status-dead {
  opacity: 0.35;
  filter: grayscale(0.85);
  border-color: rgba(248, 113, 113, 0.25);
}
.circle.status-dead .halo circle {
  stroke: var(--danger);
}

.circle-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.circle-sub {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
  pointer-events: none;
}

/* Battery Halo (tiny arc) */
.circle .halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
}

.circle .halo svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle .halo circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
  transition: stroke-dashoffset 0.4s ease;
}

/* ---------- UI OVERLAY ---------- */
.ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.empty-state {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.empty-state p {
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.empty-state.hidden {
  opacity: 0;
  pointer-events: none;
}

/* One-Thumb Zone */
.thumb-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--one-thumb);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.btn-add {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #1a1a28, #12121c);
  color: var(--text);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-add:active {
  transform: scale(0.92);
}

.btn-add .plus {
  display: block;
  margin-top: -2px;
}

.btn-ghost {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 30, 0.7);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Kill Switch — always in One-Thumb Zone */
.btn-kill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(248, 113, 113, 0.5);
  background: rgba(40, 12, 12, 0.85);
  color: var(--danger);
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 0 0 0 transparent;
}
.btn-kill:active {
  transform: scale(0.9);
  background: rgba(248, 113, 113, 0.25);
}
.btn-kill.armed {
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.2);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.4);
  animation: killPulse 1.4s ease-in-out infinite;
}
@keyframes killPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(248, 113, 113, 0.35); }
  50%       { box-shadow: 0 0 20px rgba(248, 113, 113, 0.65); }
}

/* Safety lock badge */
.safety-badge {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 150;
  animation: badgeIn 0.3s ease;
}
.safety-badge.hidden {
  display: none;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.zoom-label {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0.6;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

/* ---------- Silent Success Toast ---------- */
.toast {
  position: absolute;
  bottom: calc(var(--one-thumb) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(20, 20, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .check {
  color: var(--success);
  margin-right: 6px;
}

/* ---------- Bottom Sheet Editor ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.sheet-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sheet {
  width: 100%;
  max-width: 420px;
  background: #0e0e16;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.sheet-overlay.hidden .sheet {
  transform: translateY(100%);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field > span small {
  opacity: 0.7;
  font-weight: 400;
}
.field > span em {
  float: right;
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="password"],
.field select {
  width: 100%;
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
}

/* Status pills */
.status-pills {
  display: flex;
  gap: 8px;
}
.pill {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16161f;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill.active {
  border-color: var(--accent);
  background: rgba(124, 107, 255, 0.15);
  color: var(--text);
}
.pill[data-status="resting"].active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}
.pill[data-status="dead"].active {
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
}

/* Sheet action buttons */
.sheet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
}
.sheet-actions .spacer {
  flex: 1;
}

.btn-primary {
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:active {
  opacity: 0.85;
}

.btn-secondary {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
}

.btn-danger {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  font-size: 13px;
  cursor: pointer;
}
.btn-danger:active {
  background: rgba(248, 113, 113, 0.2);
}

/* Limit Pulse */
@keyframes limitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
}
.circle.limit-hit {
  border-color: var(--danger) !important;
  animation: limitPulse 1.2s ease-in-out infinite;
}

/* ---------- Chat Panel ---------- */
.chat-panel {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #08080e;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.chat-panel.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 30, 0.6);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.chat-title #chat-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-provider {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: lowercase;
}

.chat-stop {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-stop.hidden {
  display: none;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user {
  align-self: flex-end;
  background: rgba(124, 107, 255, 0.2);
  border: 1px solid rgba(124, 107, 255, 0.25);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.msg.assistant {
  align-self: flex-start;
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg.system {
  align-self: center;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px 10px;
}
.msg.streaming::after {
  content: "▍";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  opacity: 0.6;
}
@keyframes blink {
  50% { opacity: 0; }
}

.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a10;
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  resize: none;
  max-height: 120px;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #14141e;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus {
  border-color: var(--accent);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}
.chat-send:disabled {
  opacity: 0.4;
  cursor: default;
}
.chat-send:not(:disabled):active {
  transform: scale(0.92);
}

/* When chat is open, hide most of thumb zone but keep Kill Switch reachable */
body.chat-open .thumb-zone {
  /* Kill stays; others fade */
}
body.chat-open .thumb-zone .btn-add,
body.chat-open .thumb-zone .btn-ghost {
  opacity: 0;
  pointer-events: none;
}
body.chat-open .thumb-zone .btn-kill {
  opacity: 1;
  pointer-events: auto;
}
body.chat-open .empty-state {
  display: none;
}
body.chat-open .template-chips {
  display: none;
}

/* ---------- Context Threads ---------- */
.threads {
  position: absolute;
  top: 0;
  left: 0;
  width: 4000px;
  height: 4000px;
  overflow: visible;
  pointer-events: none;
  transform: translate(-2000px, -2000px);
}

.thread-line {
  fill: none;
  stroke: url(#thread-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(124, 107, 255, 0.8));
  animation: threadAppear 0.6s ease forwards;
}

.thread-line.fade {
  animation: threadFade 2.5s ease forwards;
}

@keyframes threadAppear {
  0%   { opacity: 0; stroke-dashoffset: 200; }
  40%  { opacity: 1; }
  100% { opacity: 0.85; stroke-dashoffset: 0; }
}

@keyframes threadFade {
  0%   { opacity: 0.85; }
  70%  { opacity: 0.5; }
  100% { opacity: 0.15; }
}

/* ---------- Chat switch button ---------- */
.chat-switch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(124, 107, 255, 0.35);
  background: rgba(124, 107, 255, 0.12);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-switch:active {
  background: rgba(124, 107, 255, 0.25);
}

/* ---------- Switch overlay ---------- */
.switch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 320;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.25s ease;
}
.switch-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.switch-sheet {
  width: 100%;
  max-width: 420px;
  background: #0e0e16;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  max-height: 70vh;
  overflow-y: auto;
}

.switch-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: -8px 0 14px;
  line-height: 1.4;
}

.switch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.switch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #14141e;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.switch-item:active,
.switch-item:hover {
  border-color: var(--accent);
  background: rgba(124, 107, 255, 0.1);
}
.switch-item.current {
  opacity: 0.4;
  pointer-events: none;
}
.switch-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.switch-item-dot.resting { background: #fbbf24; }
.switch-item-dot.dead { background: var(--danger); }
.switch-item-info {
  flex: 1;
  min-width: 0;
}
.switch-item-name {
  font-size: 14px;
  font-weight: 500;
}
.switch-item-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* ---------- Template Circles ---------- */
.circle.template {
  width: 72px;
  height: 72px;
  background: #0e0e18;
  border: 1.5px dashed rgba(167, 139, 250, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.circle.template .circle-label {
  font-size: 10px;
  color: #c4b5fd;
}
.circle.template .circle-sub {
  font-size: 8px;
  color: rgba(167, 139, 250, 0.6);
}
.circle.template .halo {
  display: none;
}
.circle.template.active {
  border-color: #a78bfa;
  border-style: solid;
  box-shadow:
    0 0 0 3px rgba(167, 139, 250, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
.circle.template.active::before {
  border-color: #a78bfa;
}

/* Drop target highlight when dragging a template near an account */
.circle.drop-target {
  border-color: #4ade80 !important;
  box-shadow:
    0 0 0 4px rgba(74, 222, 128, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* ---------- Template Chips ---------- */
.template-chips {
  position: absolute;
  bottom: calc(var(--one-thumb) + 4px);
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  pointer-events: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.template-chips::-webkit-scrollbar {
  display: none;
}
.template-chips:empty {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(20, 16, 40, 0.85);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.chip:active {
  background: rgba(167, 139, 250, 0.2);
  border-color: #a78bfa;
}

/* ---------- Ghost Preview ---------- */
.ghost-preview {
  position: absolute;
  z-index: 180;
  max-width: min(280px, 70vw);
  background: rgba(14, 14, 24, 0.95);
  border: 1px solid rgba(124, 107, 255, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ghost-preview.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.ghost-preview.hidden {
  display: none;
}
.ghost-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.ghost-body {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  opacity: 0.9;
}

/* Magnetic snap hint ring */
.circle.snap-near {
  box-shadow:
    0 0 0 2px rgba(124, 107, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Stronger depth for active */
.circle.active {
  z-index: 30;
}
