/* ===========================
   DISCORD ANSI STUDIO PRO
   styles.css
=========================== */

:root {
  --bg-base:       #1e1f22;
  --bg-surface:    #2b2d31;
  --bg-elevated:   #313338;
  --bg-input:      #1e1f22;
  --bg-hover:      #35373c;
  --bg-active:     #404249;

  --accent:        #5865f2;
  --accent-hover:  #4752c4;
  --accent-glow:   rgba(88,101,242,0.3);

  --text-primary:  #dbdee1;
  --text-muted:    #80848e;
  --text-faint:    #4e5058;
  --text-white:    #ffffff;

  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);

  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

  /* ANSI colors as CSS vars */
  --ansi-gray:   #4f5660;
  --ansi-red:    #e74c3c;
  --ansi-green:  #2ecc71;
  --ansi-yellow: #f1c40f;
  --ansi-blue:   #3498db;
  --ansi-pink:   #e91e8c;
  --ansi-cyan:   #1abc9c;
  --ansi-white:  #ffffff;

  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* ===========================
   TOP NAV
=========================== */

.topnav {
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topnav-left { display: flex; align-items: center; gap: 12px; }
.topnav-right { display: flex; align-items: center; gap: 6px; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.logo-icon {
  color: var(--accent);
  font-size: 18px;
  animation: logo-spin 8s linear infinite;
}

@keyframes logo-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.logo-accent { color: var(--accent); }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text-white);
}

.nav-btn-settings {
  padding: 5px 9px;
  font-size: 16px;
}

.btn-icon { font-size: 12px; opacity: 0.7; }

/* ===========================
   MAIN LAYOUT
=========================== */

.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: calc(100vh - 52px - 180px);
  overflow: hidden;
}

/* ===========================
   PANELS
=========================== */

.editor-panel, .preview-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
}

.editor-panel {
  border-right: 1px solid var(--border);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  flex-shrink: 0;
}

.panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-actions { display: flex; align-items: center; gap: 6px; }

.panel-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.panel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.panel-btn-toolbar {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  gap: 4px;
}

.preview-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #2d7d32;
  color: #a5d6a7;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ===========================
   EDITOR
=========================== */

.editor-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.editor-content {
  min-height: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  outline: none;
  word-wrap: break-word;
  white-space: pre-wrap;
  caret-color: var(--accent);
}

.editor-content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-faint);
  pointer-events: none;
  white-space: pre-wrap;
}

/* Colored spans in editor */
.ansi-span { border-radius: 2px; }
.ansi-gray   { color: var(--ansi-gray); }
.ansi-red    { color: var(--ansi-red); }
.ansi-green  { color: var(--ansi-green); }
.ansi-yellow { color: var(--ansi-yellow); }
.ansi-blue   { color: var(--ansi-blue); }
.ansi-pink   { color: var(--ansi-pink); }
.ansi-cyan   { color: var(--ansi-cyan); }
.ansi-white  { color: var(--ansi-white); }

.editor-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.autosave-status {
  margin-left: auto;
  color: #2ecc71;
  transition: opacity 0.3s;
}

.autosave-status.saving { color: var(--ansi-yellow); }

/* ===========================
   DISCORD PREVIEW
=========================== */

.discord-mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  overflow: hidden;
}

.discord-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.discord-hashtag {
  font-size: 20px;
  color: var(--text-faint);
  font-weight: 700;
}

.discord-channel {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.discord-mock-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.discord-message {
  display: flex;
  gap: 12px;
}

.discord-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-avatar-inner {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.discord-msg-content { flex: 1; }

.discord-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.discord-username {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-white);
}

.discord-timestamp {
  font-size: 11px;
  color: var(--text-faint);
}

.discord-code-block {
  background: #2b2d31;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.discord-code-lang {
  background: #1e1f22;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
}

.discord-preview-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 12px 16px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  min-height: 40px;
}

/* ===========================
   COLOR TOOLBAR
=========================== */

.color-toolbar {
  position: fixed;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
  animation: toolbar-appear 0.12s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes toolbar-appear {
  from { opacity: 0; transform: scale(0.9) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.toolbar-colors {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.25);
  border-color: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.toolbar-effects {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.effect-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.effect-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.effect-btn-clear {
  border-color: #e74c3c44;
  color: var(--ansi-red);
}

.effect-btn-clear:hover {
  background: var(--ansi-red);
  border-color: var(--ansi-red);
  color: white;
}

/* ===========================
   OUTPUT SECTION
=========================== */

.output-section {
  height: 180px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}

.output-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.output-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
  transition: all 0.2s;
}

.output-pulse.active {
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulse-anim 0.5s ease-out;
}

@keyframes pulse-anim {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.output-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
}

.output-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

.output-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: white;
}

.copy-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.copy-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.copy-btn.copied {
  background: #2d7d32;
  border-color: #2d7d32;
  color: #a5d6a7;
}

/* ===========================
   MODALS
=========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-in 0.15s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-hint code {
  background: var(--bg-base);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ansi-cyan);
}

.modal-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px;
  resize: vertical;
  min-height: 140px;
  outline: none;
  transition: border-color 0.15s;
}

.modal-textarea:focus { border-color: var(--accent); }

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.modal-btn:hover { background: var(--bg-active); }

.modal-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.modal-btn-primary:hover { background: var(--accent-hover); }

.modal-btn-danger {
  background: transparent;
  border-color: var(--ansi-red);
  color: var(--ansi-red);
}

.modal-btn-danger:hover { background: var(--ansi-red); color: white; }

/* PRESETS */

.preset-actions-top { display: flex; justify-content: flex-end; }

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

.preset-empty {
  color: var(--text-faint);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}

.preset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.15s;
}

.preset-item:hover { border-color: var(--accent); }

.preset-info { flex: 1; }

.preset-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.preset-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.preset-actions { display: flex; gap: 4px; }

.preset-action-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ui);
}

.preset-action-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.preset-action-btn.load { border-color: var(--accent); color: var(--accent); }
.preset-action-btn.load:hover { background: var(--accent); color: white; }
.preset-action-btn.del { border-color: #e74c3c44; color: var(--ansi-red); }
.preset-action-btn.del:hover { background: var(--ansi-red); color: white; }

/* SETTINGS */

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.setting-label { color: var(--text-primary); font-size: 13px; font-weight: 500; }

.setting-select {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

/* ===========================
   TOAST
=========================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===========================
   SCROLLBARS
=========================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ===========================
   SHORTCUTS HINT
=========================== */

.shortcuts-hint {
  position: fixed;
  top: 60px;
  right: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  z-index: 500;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  min-width: 200px;
}

.shortcuts-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 12px;
}

kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */

@media (max-width: 768px) {
  body { overflow: auto; }
  html, body { height: auto; }

  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor-panel, .preview-panel {
    height: 50vh;
    min-height: 280px;
  }

  .preview-panel { border-top: 1px solid var(--border); }

  .output-section {
    height: auto;
    min-height: 160px;
  }

  .color-toolbar {
    left: 8px !important;
    right: 8px;
    width: calc(100vw - 16px);
    max-width: none;
    bottom: 0 !important;
    top: auto !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .topnav-right { gap: 4px; }

  .nav-btn span.btn-icon { display: none; }

  .output-actions { flex-wrap: wrap; }

  .shortcuts-hint { display: none !important; }
}

/* ===========================
   SELECTION HIGHLIGHT
=========================== */

::selection {
  background: rgba(88,101,242,0.35);
}

/* ===========================
   EDITOR DRAG VISUAL
=========================== */

.editor-content:focus {
  box-shadow: inset 0 0 0 1px rgba(88,101,242,0.3);
  border-radius: var(--radius-sm);
}

/* ===========================
   ANIMATE OUTPUT UPDATE
=========================== */

@keyframes output-flash {
  0%   { background: rgba(88,101,242,0.08); }
  100% { background: transparent; }
}

.output-wrap.flash {
  animation: output-flash 0.4s ease-out;
}

/* ===========================
   GRADIENT EDITOR MODAL
=========================== */

.modal-gradient {
  width: 520px;
}

.grad-strip-wrap {
  padding: 24px 0 16px;
  position: relative;
}

.grad-strip {
  position: relative;
  height: 48px;
  cursor: crosshair;
  user-select: none;
}

.grad-strip-bar {
  position: absolute;
  inset: 12px 0;
  border-radius: 8px;
  pointer-events: none;
  transition: background 0.2s;
}

.grad-stop {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.6);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
  z-index: 2;
}

.grad-stop:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 2px white, 0 2px 10px rgba(0,0,0,0.7);
}

.grad-stop.selected {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 2px var(--accent), 0 2px 10px rgba(88,101,242,0.6);
}

.grad-stop.dragging {
  cursor: grabbing;
  transition: none;
  transform: translate(-50%, -50%) scale(1.3);
}

.grad-stop-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.grad-stop-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.grad-stop-swatches {
  display: flex;
  gap: 6px;
  flex: 1;
}

.grad-stop-swatches .color-swatch {
  width: 20px;
  height: 20px;
}

.grad-stop-swatches .color-swatch.active-swatch {
  border: 2px solid white;
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.grad-remove-btn {
  background: transparent;
  border: 1px solid rgba(231,76,60,0.4);
  color: var(--ansi-red);
  font-size: 11px;
  font-family: var(--font-ui);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.grad-remove-btn:hover { background: var(--ansi-red); color: white; }

.grad-node-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.grad-node-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.12s;
}

.grad-node-chip:hover { border-color: var(--accent); }
.grad-node-chip.selected-chip { border-color: var(--accent); background: var(--bg-hover); }

.grad-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
