/* ============================================================
   Vault 3.0 — Boutique Knowledge Vault Dashboard
   (2026-05-25, Day 5 → Day 10 inline chat + embers)
   Atakan: "Obsidian'ın aynısı bağlantılarla, turuncu rengimizle,
   her nokta tıklanabilir, animasyonlarla". Day 10: chat inline ortada,
   ember kıvılcımları, keystroke spark emit.
   ============================================================ */

/* Page itself is a stacking context for the ember canvas */
#page-vault-explorer { position: relative; isolation: isolate; }

/* Day 10/11 — Ambient ember canvas (fixed BG of vault page).
   Day 11: opacity ↓ 0.7→0.45, blend lightened for "hafif tonda arkaplan". */
.vault-embers-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.45;
}
/* Day 11/12 — Large rotating square glyph (BG accent).
   Day 12: rotation 42s → 96s (yarısından az hız), opacity 0.55 → 0.32. */
.vault-rotating-square {
  position: absolute;
  top: 42%;
  right: -180px;
  width: 560px; height: 560px;
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(47, 92, 168, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 28% 28%, rgba(47, 92, 168, 0.05), transparent 65%);
  transform: translateY(-50%) rotate(0deg);
  animation: vault-rotate-square 96s linear infinite;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 1px rgba(47, 92, 168, 0.03) inset,
    0 0 70px rgba(47, 92, 168, 0.04);
  opacity: 0.32;
  transition: opacity 320ms ease;
}
.vault-rotating-square::before,
.vault-rotating-square::after {
  content: '';
  position: absolute; inset: 70px;
  border: 1px solid rgba(63, 111, 187, 0.06);
  border-radius: 22px;
  animation: vault-rotate-square-inner 70s linear infinite reverse;
}
.vault-rotating-square::after {
  inset: 150px;
  border-color: rgba(110, 146, 206, 0.05);
  border-radius: 14px;
  animation-duration: 86s;
}
@keyframes vault-rotate-square {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes vault-rotate-square-inner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .vault-rotating-square {
    width: 340px; height: 340px; right: -140px;
    border-radius: 22px;
  }
  .vault-rotating-square::before { inset: 44px; border-radius: 16px; }
  .vault-rotating-square::after  { inset: 100px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vault-rotating-square,
  .vault-rotating-square::before,
  .vault-rotating-square::after { animation: none; }
}

/* Everything above embers + rotating square */
#page-vault-explorer > *:not(.vault-embers-canvas):not(.vault-rotating-square) { position: relative; z-index: 1; }

/* Day 12 — Atakan: "graph sayfasında yine chatbot sayfasının aynısı var".
   Graph view is its own focused canvas — hide ember stream and rotating
   square so the force-directed graph is the only animated element. */
#page-vault-explorer.graph-mode .vault-embers-canvas,
#page-vault-explorer.graph-mode .vault-rotating-square {
  opacity: 0;
  pointer-events: none;
}

/* Day 12 critical — Atakan: "graph hala çalışmıyo, ux gözükmüyo".
   The `hidden` HTML attribute is overridden by `.vault-layout {display:grid}`
   and `.vault-graph-view {display:flex}` (equal specificity, author rule
   wins). Force-hide with explicit selectors + !important so the tab
   switch actually works. Also defensive: in .graph-mode, kill the
   3-col layout regardless of `hidden` attribute. */
.vault-layout[hidden],
.vault-graph-view[hidden] { display: none !important; }
#page-vault-explorer.graph-mode .vault-layout { display: none !important; }
#page-vault-explorer:not(.graph-mode) .vault-graph-view { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .vault-embers-canvas { display: none; }
}

/* Day 10 — Live status pill (replaces big toggle button) */
.vault-live-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47, 92, 168, 0.08);
  border: 1px solid rgba(47, 92, 168, 0.18);
  color: var(--accent);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.vault-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(47, 92, 168,0.7);
  animation: vault-cta-pulse 1.6s ease-in-out infinite;
}

/* ── Tab row ─────────────────────────────────────────────── */
.vault-tab-row {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 0 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.vault-tab {
  padding: 8px 14px; background: transparent; border: none;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
  font-family: inherit;
}
.vault-tab:hover { background: var(--bg-elevated); color: var(--text-primary); }
.vault-tab.active {
  color: var(--accent); background: rgba(47, 92, 168, 0.08);
  font-weight: 600;
}
.vault-tab-pill {
  font-size: 9px; padding: 2px 6px; border-radius: 8px;
  background: rgba(100, 100, 100, 0.15); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-left: -4px;
}
.vault-tab-spacer { flex: 1; }
.vault-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 6px;
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border); font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.vault-action-btn:hover {
  background: rgba(47, 92, 168, 0.06); border-color: rgba(47, 92, 168, 0.22);
  transform: translateY(-1px);
}
.vault-action-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.vault-action-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
}
/* Enrich button + undo bar (2026-06-01) */
.vault-enrich-btn {
  color: var(--accent);
  border-color: rgba(47, 92, 168, 0.30);
  background: rgba(47, 92, 168, 0.08);
}
.vault-enrich-btn:hover { background: rgba(47, 92, 168, 0.16); }
.vault-enrich-btn:disabled { opacity: 0.7; cursor: wait; }
.vault-enrich-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; padding: 8px 12px;
  background: rgba(125, 200, 176, 0.10);
  border: 1px solid rgba(125, 200, 176, 0.30);
  border-radius: 8px;
  font-size: 12px; color: #7DC8B0;
  animation: cc-reply-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vault-enrich-undo-btn {
  background: transparent; border: 1px solid rgba(125, 200, 176, 0.45);
  color: #7DC8B0; border-radius: 999px; padding: 3px 12px;
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit;
  flex-shrink: 0;
}
.vault-enrich-undo-btn:hover { background: rgba(125, 200, 176, 0.18); }

/* ─────────────────────────────────────────────────────────
   Day 9 — Futuristic chat-first CTA (Asistan button in tab row)
   ───────────────────────────────────────────────────────── */
.vault-assistant-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 92, 168,0.95) 0%, rgba(63, 111, 187,0.95) 100%);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 6px 18px rgba(47, 92, 168, 0.32),
    0 0 24px rgba(47, 92, 168, 0.18);
  transition: transform 220ms cubic-bezier(.18,.85,.3,1),
              box-shadow 220ms ease;
  overflow: hidden;
}
.vault-assistant-cta::after {
  /* subtle shimmer sweep */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: vault-assistant-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vault-assistant-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.vault-assistant-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(47, 92, 168, 0.46),
    0 0 36px rgba(47, 92, 168, 0.28);
}
.vault-assistant-cta-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 18px rgba(255,255,255,0.45);
  animation: vault-cta-pulse 1.6s ease-in-out infinite;
}
@keyframes vault-cta-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.7); }
}
.vault-assistant-cta-icon {
  display: inline-flex;
  color: rgba(255,255,255,0.95);
}
.vault-assistant-cta-icon svg {
  animation: vault-cta-spin 8s linear infinite;
}
@keyframes vault-cta-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vault-assistant-cta-label { letter-spacing: 0.02em; }
.vault-assistant-cta-status {
  font-size: 9.5px; padding: 2px 7px; border-radius: 8px;
  background: rgba(255,255,255,0.16); color: #fff;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}

/* ── 3-column layout ─────────────────────────────────────── */
.vault-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  gap: 16px;
  min-height: calc(100vh - 220px);
}
@media (max-width: 1080px) {
  .vault-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .vault-right-rail { display: none; }
}
@media (max-width: 768px) {
  .vault-layout { grid-template-columns: 1fr; }
  .vault-left-rail { display: none; }
}

/* ── Left rail (tag tree) ─────────────────────────────────── */
.vault-left-rail {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  height: fit-content;
  position: sticky; top: 18px;
}
.vault-rail-section { margin-bottom: 16px; }
.vault-rail-section:last-child { margin-bottom: 0; }
.vault-rail-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 8px;
}
.vault-search-input {
  width: 100%; padding: 7px 10px;
  background: rgba(0, 0, 0, 0.12); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px; font-family: inherit; outline: none;
  transition: border-color 140ms ease;
}
.vault-search-input:focus { border-color: var(--accent); }

/* Tag tree groups */
.vault-tag-group { margin-bottom: 12px; }
.vault-tag-group-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; user-select: none; padding: 4px 0;
}
.vault-tag-group-header svg {
  width: 10px; height: 10px;
  transition: transform 180ms;
}
.vault-tag-group.collapsed .vault-tag-group-header svg { transform: rotate(-90deg); }
.vault-tag-group.collapsed .vault-tag-group-items { display: none; }
.vault-tag-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; border-radius: 5px;
  font-size: 12px; color: var(--text-primary);
  cursor: pointer; transition: background 120ms ease, color 120ms ease;
}
.vault-tag-item:hover { background: rgba(47, 92, 168, 0.08); color: var(--accent); }
.vault-tag-item.active { background: rgba(47, 92, 168, 0.16); color: var(--accent); font-weight: 600; }
.vault-tag-count {
  font-size: 10px; color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15); padding: 1px 6px; border-radius: 8px;
}
.vault-tag-item.active .vault-tag-count { background: rgba(47, 92, 168, 0.25); color: var(--accent); }

/* ── Center (note list) ──────────────────────────────────── */
.vault-center {}
.vault-filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px; min-height: 0;
}
.vault-filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 12px;
  background: rgba(47, 92, 168, 0.14); color: var(--accent);
  font-size: 11px; font-weight: 500;
  border: 1px solid rgba(47, 92, 168, 0.22);
}
.vault-filter-chip button {
  background: transparent; border: none; color: var(--accent);
  cursor: pointer; padding: 0 2px; font-size: 13px; line-height: 1;
}
.vault-note-list { display: flex; flex-direction: column; gap: 10px; }
.vault-note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.18,.85,.3,1),
              border-color 180ms ease, box-shadow 180ms ease;
  opacity: 0; transform: translateY(6px);
  animation: vault-card-in 320ms cubic-bezier(.18,.85,.3,1) forwards;
}
@keyframes vault-card-in { to { opacity: 1; transform: translateY(0); } }
.vault-note-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 92, 168, 0.32);
  box-shadow: 0 6px 16px rgba(10, 6, 6, 0.18);
}
.vault-note-card.selected { border-color: var(--accent); background: rgba(47, 92, 168, 0.05); }
.vault-note-card-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.vault-note-title { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.vault-note-meta {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vault-note-body-preview {
  font-size: 12px; color: var(--text-secondary, var(--text-muted));
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vault-note-tag-row {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.vault-note-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: rgba(47, 92, 168, 0.10); color: var(--accent);
  border: 1px solid rgba(47, 92, 168, 0.18);
  cursor: pointer; transition: background 120ms;
}
.vault-note-tag:hover { background: rgba(47, 92, 168, 0.22); }
.vault-note-type-badge {
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.15); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-right: 6px;
}

/* ── Right rail (detail preview) ─────────────────────────── */
.vault-right-rail {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
  height: fit-content; max-height: calc(100vh - 100px);
  overflow-y: auto;
  position: sticky; top: 18px;
}
.vault-detail-header { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.vault-detail-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.vault-detail-meta { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.vault-detail-body {
  font-size: 13px; line-height: 1.55; color: var(--text-primary);
  margin-bottom: 14px;
}
.vault-detail-body p { margin: 0 0 8px; }
.vault-detail-body a.vault-wikilink {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px dashed rgba(47, 92, 168, 0.4);
  cursor: pointer;
}
.vault-detail-body a.vault-wikilink:hover { background: rgba(47, 92, 168, 0.08); }
.vault-detail-section {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.vault-detail-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 6px;
}
.vault-backlink-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 5px;
  font-size: 12px; color: var(--text-primary);
  cursor: pointer; transition: background 120ms;
}
.vault-backlink-item:hover { background: rgba(47, 92, 168, 0.08); }

/* ── Empty states ────────────────────────────────────────── */
.vault-empty {
  padding: 32px 18px; text-align: center;
  background: var(--bg-elevated); border: 1px dashed var(--border);
  border-radius: 10px;
}
.vault-empty-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.vault-empty-body {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5; max-width: 380px; margin: 0 auto;
}
.vault-empty-soft {
  font-size: 12px; color: var(--text-muted);
  padding: 18px 12px; text-align: center;
}

/* ─────────────────────────────────────────────────────────
   Day 9 — Hero empty state (chat-first onboarding)
   ───────────────────────────────────────────────────────── */
.vault-hero-empty {
  position: relative;
  padding: 56px 24px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(47, 92, 168,0.10), transparent 70%),
    linear-gradient(180deg, rgba(47, 92, 168,0.04) 0%, rgba(63, 111, 187,0.02) 100%);
  border: 1px solid rgba(47, 92, 168, 0.15);
  border-radius: 16px;
  overflow: hidden;
}
.vault-hero-empty::before {
  /* subtle moving grid pattern bg */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 92, 168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 92, 168,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}
.vault-hero-glyph {
  display: inline-flex; margin-bottom: 18px;
  color: var(--accent);
  filter: drop-shadow(0 0 18px rgba(47, 92, 168,0.45));
  animation: vault-hero-float 6s ease-in-out infinite;
}
@keyframes vault-hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
.vault-hero-title {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px; letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.vault-hero-body {
  font-size: 13.5px; color: var(--text-muted);
  line-height: 1.55; max-width: 460px; margin: 0 auto 24px;
  position: relative; z-index: 1;
}
.vault-hero-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #2f5ca8 0%, #3a68b0 100%);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(47, 92, 168,0.38), 0 0 32px rgba(47, 92, 168,0.22);
  transition: transform 220ms cubic-bezier(.18,.85,.3,1), box-shadow 220ms;
  margin-bottom: 28px;
}
.vault-hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 36px rgba(47, 92, 168,0.52), 0 0 44px rgba(47, 92, 168,0.32);
}
.vault-hero-suggestions {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 540px; margin: 0 auto;
}
.vault-hero-suggestion-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.vault-hero-suggestion {
  display: block; width: 100%;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(47, 92, 168, 0.16);
  color: var(--text-secondary, var(--text-muted));
  font-family: inherit; font-size: 12px; line-height: 1.4;
  text-align: left; cursor: pointer;
  transition: all 160ms;
}
.vault-hero-suggestion:hover {
  background: rgba(47, 92, 168, 0.08);
  border-color: rgba(47, 92, 168, 0.36);
  color: var(--text-primary); transform: translateX(4px);
}

/* ── Pagination ──────────────────────────────────────────── */
.vault-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 18px 0;
}
.vault-pagination button {
  padding: 6px 12px; border-radius: 6px;
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border); font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.vault-pagination button:hover { border-color: var(--accent); }
.vault-pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.vault-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────────
   Day 10 — Inline chat panel (centered, always-open)
   ───────────────────────────────────────────────────────── */
.vault-chat-inline {
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(47, 92, 168,0.10), transparent 70%),
    linear-gradient(180deg, rgba(20, 12, 11, 0.6) 0%, rgba(20, 12, 11, 0.85) 100%);
  border: 1px solid rgba(47, 92, 168, 0.18);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 12px 36px rgba(10, 6, 6, 0.32),
    0 0 48px rgba(47, 92, 168, 0.06);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  min-height: 360px; max-height: 60vh;
  margin-bottom: 24px;
  overflow: hidden;
}
.vault-chat-inline-glow {
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, rgba(47, 92, 168,0.18), transparent 50%, rgba(63, 111, 187,0.10));
  border-radius: 18px; pointer-events: none; opacity: 0.6;
  filter: blur(8px);
  z-index: -1;
}
.vault-chat-inline-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.08);
  background: linear-gradient(180deg, rgba(47, 92, 168,0.05) 0%, transparent 100%);
}
.vault-chat-inline-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px; letter-spacing: -0.005em;
}
.vault-chat-inline-orb {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #5c96c4 38%, var(--accent) 72%, rgba(47, 92, 168,0.4) 100%);
  box-shadow: 0 0 10px rgba(47, 92, 168,0.75), 0 0 20px rgba(63, 111, 187,0.45), 0 0 30px rgba(63, 111, 187,0.22);
  animation: vault-orb-breathe 2.8s ease-in-out infinite;
}
@keyframes vault-orb-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.75); opacity: 0.7; }
}
.vault-chat-inline-sub {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.vault-chat-inline .vault-chat-stream {
  flex: 1; padding: 16px 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.vault-chat-input-wrap {
  position: relative;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(47, 92, 168, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.vault-keystroke-canvas {
  position: absolute;
  top: -50px; left: 0; right: 0;
  width: 100%; height: 60px;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}
.vault-chat-inline .vault-chat-input-row {
  display: flex; gap: 8px;
  padding: 0; border-top: none; background: transparent;
}
.vault-chat-inline .vault-chat-input {
  flex: 1; padding: 11px 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(47, 92, 168, 0.20);
  border-radius: 12px;
  color: var(--text-primary); font-size: 14px; line-height: 1.4;
  font-family: inherit; outline: none; resize: none;
  transition: border-color 180ms, box-shadow 180ms;
}
.vault-chat-inline .vault-chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 92, 168, 0.10), 0 0 18px rgba(47, 92, 168, 0.18);
}
.vault-chat-inline .vault-chat-input::placeholder { color: rgba(255, 255, 255, 0.32); }
.vault-chat-inline .vault-chat-send {
  width: 44px; height: 44px;
  align-self: flex-end;
}

/* ─── Day 11 — Gemini-style typing animation on input row ───
   Atakan: "google gemininin yeni arayüzü gibi ufak canlı animasyon".
   Conic-gradient sweep around input border while typing, plus a small
   light bar that slides across the top edge. Fades out 240ms after
   last keystroke (class toggled by vaultChatbot.js). */
@property --vault-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.vault-chat-inline .vault-chat-input-row {
  position: relative;
  isolation: isolate;
}
.vault-chat-inline .vault-chat-input-row::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--vault-angle, 0deg),
    rgba(47, 92, 168, 0.0)   0%,
    rgba(47, 92, 168, 0.0)   30%,
    rgba(63, 111, 187, 0.55) 45%,
    rgba(110, 146, 206, 0.85) 50%,
    rgba(63, 111, 187, 0.55) 55%,
    rgba(47, 92, 168, 0.0)   70%,
    rgba(47, 92, 168, 0.0)   100%
  );
  filter: blur(7px);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}
/* Day 12 — Atakan: "parlama efekti aşırı agresif, sadece bir kere olmalı".
   Opacity 0.9 → 0.32, infinite → 1 iteration, slower sweep 2.4s → 3.8s.
   The .typing class is removed 320ms after last keystroke so the next
   typing burst re-fires the animation cleanly. */
.vault-chat-inline .vault-chat-input-row.typing::before {
  opacity: 0.32;
  animation: vault-gemini-sweep 1.6s ease-out 1;
  animation-fill-mode: forwards;
}
@keyframes vault-gemini-sweep {
  from { --vault-angle: 0deg;   }
  to   { --vault-angle: 360deg; }
}
/* Fallback for browsers without @property: simple shimmer */
@supports not (background: conic-gradient(from var(--vault-angle), red, blue)) {
  .vault-chat-inline .vault-chat-input-row::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(63, 111, 187, 0.55) 50%,
      transparent 100%);
    background-size: 220% 100%;
  }
  .vault-chat-inline .vault-chat-input-row.typing::before {
    animation: vault-gemini-shimmer 1.8s linear infinite;
  }
  @keyframes vault-gemini-shimmer {
    0%   { background-position: -110% 0; opacity: 0; }
    20%  { opacity: 0.85; }
    80%  { opacity: 0.85; }
    100% { background-position: 110% 0; opacity: 0; }
  }
}
/* Small spark line that travels across top edge while typing */
.vault-chat-inline .vault-chat-input-row::after {
  content: '';
  position: absolute; top: -2px; left: 6%;
  width: 22%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(110, 146, 206, 0.7) 40%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(110, 146, 206, 0.7) 60%,
    transparent 100%);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
/* Day 12 — spark line also single-shot + lower peak opacity */
.vault-chat-inline .vault-chat-input-row.typing::after {
  animation: vault-gemini-spark 1.6s ease-in-out 1;
  animation-fill-mode: forwards;
}
@keyframes vault-gemini-spark {
  0%   { transform: translateX(0);    opacity: 0; }
  20%  { opacity: 0.55; }
  80%  { opacity: 0.55; }
  100% { transform: translateX(360%); opacity: 0; }
}
/* Lift textarea above the glow so text stays crisp */
.vault-chat-inline .vault-chat-input { position: relative; z-index: 1; }
.vault-chat-inline .vault-chat-send  { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .vault-chat-inline .vault-chat-input-row.typing::before,
  .vault-chat-inline .vault-chat-input-row.typing::after { animation: none; opacity: 0; }
}

/* Recent notes section below inline chat */
.vault-recent-section {
  display: flex; flex-direction: column; gap: 10px;
}

/* ─────────────────────────────────────────────────────────
   Day 7 — Chatbot drawer (slide-in from right) — LEGACY (Day 10 inline replaces)
   Kept for compat; .vault-chat-drawer no longer mounted by vaultChatbot.js
   ───────────────────────────────────────────────────────── */
.vault-chat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 94vw;
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(47, 92, 168,0.10), transparent 70%),
    linear-gradient(180deg, #1a0e0c 0%, #14090a 100%);
  border-left: 1px solid rgba(47, 92, 168, 0.18);
  box-shadow: -12px 0 36px rgba(10, 6, 6, 0.5), -1px 0 0 rgba(47, 92, 168,0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
  z-index: 80;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.vault-chat-drawer.open { transform: translateX(0); pointer-events: auto; }

.vault-chat-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.12);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(47, 92, 168,0.12), transparent 70%),
    rgba(47, 92, 168, 0.03);
}
.vault-chat-header::after {
  /* live scanline */
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 92, 168,0.6), transparent);
  animation: vault-chat-scanline 3.5s ease-in-out infinite;
}
@keyframes vault-chat-scanline {
  0%, 100% { opacity: 0.3; transform: scaleX(0.4); }
  50%      { opacity: 1; transform: scaleX(1); }
}
.vault-chat-header-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.vault-chat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: vault-chat-pulse 2.2s ease-in-out infinite;
}
@keyframes vault-chat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.vault-chat-close {
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 20px; line-height: 1; padding: 4px 8px;
  border-radius: 6px;
  transition: background 140ms, color 140ms;
}
.vault-chat-close:hover { background: rgba(47, 92, 168, 0.08); color: var(--accent); }

.vault-chat-intro {
  position: relative;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(47, 92, 168,0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(47, 92, 168, 0.08);
}
.vault-chat-intro-title {
  font-size: 14.5px; font-weight: 700; color: var(--accent);
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.vault-chat-intro-body {
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}

.vault-chat-stream {
  flex: 1; overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Shared bubble spec — matches .chatbot-msg + .rt-bubble (radius 16px w/ one
   5px tail, padding 10px 14px, 13.5px/1.5) so every chat surface reads as one
   consistent, professional component in both dark and warm-light themes. */
.vault-chat-bubble {
  max-width: 85%;
  padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5;
  word-wrap: break-word;
  opacity: 0; transform: translateY(6px) scale(0.98);
  animation: vault-chat-bubble-in 320ms cubic-bezier(.18,.85,.3,1) forwards;
}
@keyframes vault-chat-bubble-in { to { opacity: 1; transform: translateY(0) scale(1); } }
.vault-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px rgba(47, 92, 168, 0.22);
}
.vault-chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 5px;
}

.vault-chat-notes-added {
  display: flex; flex-direction: column; gap: 4px;
  align-self: flex-start; max-width: 85%;
  margin-top: -4px;
}
.vault-chat-note-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(47, 92, 168, 0.08);
  border: 1px solid rgba(47, 92, 168, 0.22);
  border-radius: 8px;
  font-size: 11px; color: var(--text-primary);
  cursor: pointer; font-family: inherit;
  transition: background 140ms, transform 140ms;
}
.vault-chat-note-chip:hover {
  background: rgba(47, 92, 168, 0.16);
  transform: translateX(2px);
}
.vault-chat-note-chip-type {
  font-size: 9px; padding: 2px 5px; border-radius: 4px;
  background: rgba(47, 92, 168, 0.16); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.vault-chat-note-chip-title { color: var(--text-primary); font-weight: 500; }

.vault-chat-typing {
  display: inline-flex; gap: 4px; padding: 10px 14px;
  background: rgba(0, 0, 0, 0.18); border-radius: 14px;
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.vault-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
  animation: vault-chat-typing-bounce 1.2s infinite ease-in-out;
}
.vault-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.vault-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes vault-chat-typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.vault-chat-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
}
.vault-chat-input {
  flex: 1; padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 13px;
  font-family: inherit; outline: none; resize: none;
  transition: border-color 140ms;
}
.vault-chat-input:focus { border-color: var(--accent); }
.vault-chat-send {
  width: 40px; padding: 0; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #2f5ca8 0%, #3a68b0 100%);
  color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms cubic-bezier(.18,.85,.3,1), box-shadow 160ms;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(47, 92, 168, 0.32);
}
.vault-chat-send:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 6px 18px rgba(47, 92, 168, 0.48); }
.vault-chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 768px) {
  .vault-chat-drawer { width: 100vw; max-width: 100vw; }
}

/* ─────────────────────────────────────────────────────────
   Day 8 — Yeni Not modal (textarea + tags)
   ───────────────────────────────────────────────────────── */
.vault-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
}
.vault-modal.open { display: flex; }
.vault-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 6, 6, 0.6); backdrop-filter: blur(4px);
  animation: vault-modal-fade-in 200ms ease;
}
@keyframes vault-modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.vault-modal-panel {
  position: relative; z-index: 1;
  width: 600px; max-width: 92vw; max-height: 88vh;
  background: var(--bg-elevated, #1a1010);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(10, 6, 6, 0.4);
  display: flex; flex-direction: column;
  animation: vault-modal-rise 280ms cubic-bezier(.18,.85,.3,1);
}
@keyframes vault-modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.vault-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.vault-modal-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.vault-modal-close {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 10px; border-radius: 6px;
  transition: background 140ms;
}
.vault-modal-close:hover { background: rgba(47, 92, 168, 0.1); color: var(--accent); }
.vault-modal-body {
  padding: 18px 20px; overflow-y: auto; flex: 1;
}
.vault-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.vault-form-row { margin-bottom: 14px; }
.vault-form-row:last-child { margin-bottom: 0; }
.vault-form-row-inline { display: flex; align-items: center; gap: 8px; }
.vault-form-row-inline label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; color: var(--text-primary); }
.vault-form-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.vault-form-input {
  width: 100%; padding: 9px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 13px;
  font-family: inherit; outline: none;
  transition: border-color 140ms;
}
.vault-form-input:focus { border-color: var(--accent); }
.vault-form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vault-form-hint {
  font-size: 11px; color: var(--text-muted); margin-top: 6px; line-height: 1.4;
}
.vault-form-hint strong { color: var(--accent); }
.vault-form-tag-suggestions {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px;
}
.vault-tag-suggestion-chip {
  font-size: 10px; padding: 3px 8px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer; font-family: inherit;
  transition: all 120ms;
}
.vault-tag-suggestion-chip:hover {
  background: rgba(47, 92, 168, 0.14); color: var(--accent);
  border-color: rgba(47, 92, 168, 0.3);
}

/* ════════════════════════════════════════════════════════════
   Day 12-14 — Force-directed graph view
   Atakan: "Obsidian'ın aynısı görsel şematiği ve bağlantıları,
   her nokta tıklanabilir olmalı".
   ════════════════════════════════════════════════════════════ */
.vault-graph-view {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 92, 168,0.06), transparent 70%),
    linear-gradient(180deg, rgba(20, 12, 11, 0.55) 0%, rgba(14, 9, 10, 0.85) 100%);
  border: 1px solid rgba(47, 92, 168, 0.16);
  border-radius: 18px;
  margin-top: 12px;
  overflow: hidden;
  min-height: 620px;
  display: flex; flex-direction: column;
}
.vault-graph-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.08);
  background: linear-gradient(180deg, rgba(47, 92, 168, 0.04) 0%, transparent 100%);
}
.vault-graph-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.vault-graph-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255, 255, 255, 0.6); font-weight: 600;
  letter-spacing: 0.02em;
}
.vault-graph-swatch {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.vault-graph-swatch.swatch-note    { background: #2f5ca8; color: rgba(47, 92, 168,0.5); }
.vault-graph-swatch.swatch-user    { background: #D4A853; color: rgba(212,168,83,0.5); }
.vault-graph-swatch.swatch-product { background: #7DC8B0; color: rgba(125,200,176,0.5); }
.vault-graph-toolbar-spacer { flex: 1; }
.vault-graph-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(47, 92, 168, 0.10);
  border: 1px solid rgba(47, 92, 168, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
}
.vault-graph-btn:hover { background: rgba(47, 92, 168, 0.18); transform: translateY(-1px); }
.vault-graph-btn:active { transform: translateY(0); }

.vault-graph-canvas {
  flex: 1; min-height: 540px;
  position: relative;
  cursor: grab;
}
.vault-graph-canvas:active,
.vault-graph-canvas .vault-graph-svg.panning { cursor: grabbing; }
.vault-graph-canvas .vault-graph-svg.dragging { cursor: move; }

.vault-graph-svg {
  display: block;
  width: 100%; height: 100%;
  user-select: none;
}
.vault-graph-node {
  cursor: pointer;
  transition: opacity 220ms ease;
}
.vault-graph-node circle {
  transition: r 180ms cubic-bezier(.18,.85,.3,1), stroke-width 180ms;
  filter: drop-shadow(0 0 6px rgba(47, 92, 168, 0.20));
}
.vault-graph-node-user circle {
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.22));
}
.vault-graph-node-product circle {
  filter: drop-shadow(0 0 6px rgba(125, 200, 176, 0.22));
}
.vault-graph-node:hover circle {
  r: 13;
}
.vault-graph-label {
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
}
.vault-graph-edge {
  transition: stroke 220ms ease, stroke-width 220ms ease;
}

/* Tooltip on hover */
.vault-graph-tooltip {
  position: absolute; z-index: 10;
  pointer-events: none;
  background: rgba(10, 6, 6, 0.94);
  border: 1px solid rgba(47, 92, 168, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  max-width: 260px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  animation: vault-graph-tip-in 140ms ease;
}
@keyframes vault-graph-tip-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vault-graph-tooltip .tip-type {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  margin-bottom: 6px;
}
.vault-graph-tooltip .tip-type-note    { background: rgba(47, 92, 168, 0.20); color: var(--accent); }
.vault-graph-tooltip .tip-type-user    { background: rgba(212, 168, 83, 0.18); color: #FFE2A8; }
.vault-graph-tooltip .tip-type-product { background: rgba(125, 200, 176, 0.18); color: #C8F0E0; }
.vault-graph-tooltip .tip-title {
  font-size: 13px; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: 4px;
  word-wrap: break-word;
}
.vault-graph-tooltip .tip-meta {
  font-size: 10px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.vault-graph-tooltip .tip-tags {
  margin-top: 6px;
  font-size: 11px; color: rgba(63, 111, 187, 0.85); font-weight: 600;
}
.vault-graph-tooltip .tip-tier {
  display: inline-block; margin-top: 4px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* Empty / loading / error states */
.vault-graph-loading,
.vault-graph-empty,
.vault-graph-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 540px; gap: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 20px;
}
.vault-graph-loading { font-size: 13px; font-style: italic; }
.vault-graph-error   { color: var(--accent); font-size: 13px; }
.vault-graph-empty-glyph {
  font-size: 56px; color: rgba(47, 92, 168, 0.35);
  animation: vault-orb-breathe 3s ease-in-out infinite;
}
.vault-graph-empty-title {
  font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.85);
}
.vault-graph-empty-sub {
  font-size: 12px; color: rgba(255, 255, 255, 0.45);
  max-width: 360px; line-height: 1.5;
}

.vault-graph-stats {
  padding: 8px 18px;
  border-top: 1px solid rgba(47, 92, 168, 0.06);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vault-graph-stats .capped {
  color: var(--accent); font-weight: 700;
}
.vault-graph-hint {
  padding: 8px 18px 14px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.32);
  font-style: italic;
}

/* Small toast (product click for now) */
.vault-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 6, 6, 0.92);
  border: 1px solid rgba(47, 92, 168, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: vault-toast-in 200ms ease;
}
@keyframes vault-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Mobile — collapse graph height + smaller tooltip */
@media (max-width: 768px) {
  .vault-graph-view { min-height: 480px; }
  .vault-graph-canvas { min-height: 400px; }
  .vault-graph-tooltip { max-width: 200px; font-size: 11px; }
  .vault-graph-legend { gap: 8px; }
  .vault-graph-legend-item { font-size: 10px; }
}

/* Day 12/15 — Sparse-state hint overlay (1-2 nodes, looks empty but works) */
.vault-graph-sparse-hint {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  max-width: 380px;
  padding: 14px 18px;
  background: rgba(10, 6, 6, 0.92);
  border: 1px solid rgba(47, 92, 168, 0.22);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 5;
  pointer-events: none;
  animation: vault-graph-tip-in 280ms ease;
  backdrop-filter: blur(6px);
}
.vault-graph-sparse-glyph {
  font-size: 22px; color: var(--accent);
  margin-bottom: 6px;
  animation: vault-orb-breathe 2.4s ease-in-out infinite;
}
.vault-graph-sparse-title {
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}
.vault-graph-sparse-body {
  font-size: 11px; color: rgba(255, 255, 255, 0.55); line-height: 1.5;
}

/* Day 15 — Search input on graph toolbar */
.vault-graph-search-wrap {
  display: inline-flex; align-items: center;
  position: relative;
  margin-right: 8px;
}
.vault-graph-search {
  width: 260px;
  padding: 7px 12px 7px 30px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(47, 92, 168, 0.18);
  border-radius: 999px;
  color: var(--text-primary, #fff);
  font-size: 11px; font-family: inherit;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
}
.vault-graph-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 92, 168, 0.10);
}
.vault-graph-search::placeholder { color: rgba(255, 255, 255, 0.30); font-style: italic; }
.vault-graph-search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.vault-graph-search-clear {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  color: rgba(255, 255, 255, 0.45); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px 6px;
  border-radius: 50%;
  transition: color 140ms, background 140ms;
}
.vault-graph-search-clear:hover { color: #fff; background: rgba(47, 92, 168, 0.18); }

@media (max-width: 768px) {
  .vault-graph-search { width: 160px; font-size: 10px; }
  .vault-graph-sparse-hint { max-width: 280px; }
}

/* Phase A (2026-05-25) — Auto-fill toggle chips + tag swatch + pinned note */
.vault-graph-filters {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vault-graph-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 160ms, border-color 160ms, color 160ms, transform 160ms;
}
.vault-graph-filter-chip:hover {
  background: rgba(47, 92, 168, 0.06);
  border-color: rgba(47, 92, 168, 0.18);
  color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}
.vault-graph-filter-chip.active {
  background: rgba(47, 92, 168, 0.14);
  border-color: rgba(47, 92, 168, 0.36);
  color: var(--accent);
}
.vault-graph-filter-chip .vault-graph-swatch {
  opacity: 0.8;
}
.vault-graph-filter-chip.active .vault-graph-swatch {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}
/* Note swatch is presentational (notes always show), not a toggle */
.vault-graph-legend-note-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px; font-weight: 600;
}
.vault-graph-swatch.swatch-tag { background: #9098A1; color: rgba(144,152,161,0.5); }

/* Tag node — smaller, no fill ring */
.vault-graph-node-tag circle {
  filter: drop-shadow(0 0 4px rgba(144, 152, 161, 0.20));
}
/* Pinned note — extra glow ring */
.vault-graph-node.vault-graph-pinned circle {
  filter: drop-shadow(0 0 12px rgba(47, 92, 168, 0.55));
}

/* Tier-tinted user nodes (visual VIP highlight) */
.vault-graph-node-user.vault-graph-tier-vip circle {
  filter: drop-shadow(0 0 10px rgba(245, 199, 106, 0.55));
}
.vault-graph-node-user.vault-graph-tier-loyal circle {
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.45));
}
.vault-graph-node-user.vault-graph-tier-dormant circle {
  opacity: 0.7;
}

/* Tooltip sub-meta line (last-seen, anonymity) */
.vault-graph-tooltip .tip-meta-sub {
  font-size: 10px; color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.vault-graph-tooltip .tip-tier-row {
  margin-top: 6px;
}
.vault-graph-tooltip .tip-tier-vip     { background: rgba(245, 199, 106, 0.20); color: #FFE2A8; }
.vault-graph-tooltip .tip-tier-loyal   { background: rgba(212, 168, 83, 0.18);  color: #FFD68F; }
.vault-graph-tooltip .tip-tier-engaged { background: rgba(184, 148, 97, 0.15);  color: #FFC988; }
.vault-graph-tooltip .tip-tier-new     { background: rgba(142, 112, 72, 0.16);  color: #FFE0BA; }
.vault-graph-tooltip .tip-tier-dormant { background: rgba(92, 72, 48, 0.16);    color: #aab2bf; }

@media (max-width: 768px) {
  .vault-graph-filters { gap: 4px; }
  .vault-graph-filter-chip { padding: 4px 8px; font-size: 10px; }
  .vault-graph-legend-note-pill { font-size: 10px; padding: 4px 6px; }
}

/* ════════════════════════════════════════════════════════════
   Phase C (2026-05-25) — Insight cards row above chat stream
   Atakan: "ilk yazışta işi yazmadan direk karşılama + info"
   ════════════════════════════════════════════════════════════ */
.vault-insight-cards {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 18px 8px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.05);
}
.vault-insight-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(47, 92, 168, 0.04);
  border: 1px solid rgba(47, 92, 168, 0.12);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(6px);
  animation: vault-insight-in 380ms cubic-bezier(.18,.85,.3,1) forwards;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
@keyframes vault-insight-in {
  to { opacity: 1; transform: translateY(0); }
}
.vault-insight-card:hover {
  background: rgba(47, 92, 168, 0.10);
  border-color: rgba(47, 92, 168, 0.32);
  transform: translateY(-1px);
}
.vault-insight-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(47, 92, 168, 0.12);
  color: var(--accent);
  font-size: 14px;
}
.vault-insight-card.vault-insight-warning   .vault-insight-icon { background: rgba(63, 111, 187, 0.18); color: var(--accent); }
.vault-insight-card.vault-insight-info      .vault-insight-icon { background: rgba(125, 200, 176, 0.18); color: #C8F0E0; }
.vault-insight-card.vault-insight-attention .vault-insight-icon { background: rgba(212, 168, 83, 0.18); color: #FFE2A8; }
.vault-insight-card.vault-insight-positive  .vault-insight-icon { background: rgba(245, 199, 106, 0.20); color: #FFE2A8; }
.vault-insight-body { flex: 1; min-width: 0; }
.vault-insight-title {
  font-size: 12px; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vault-insight-sub {
  font-size: 11px; color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.vault-insight-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: color 140ms, transform 140ms;
}
.vault-insight-card:hover .vault-insight-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
/* Greeting bubble — same as bot but with subtle "first" accent */
.vault-chat-bubble-intro {
  background: linear-gradient(135deg, rgba(47, 92, 168, 0.10), rgba(63, 111, 187, 0.04));
  border-left: 2px solid var(--accent);
}
@media (max-width: 768px) {
  .vault-insight-cards { padding: 10px 12px 6px; gap: 6px; }
  .vault-insight-card { padding: 8px 10px; }
  .vault-insight-title { font-size: 11px; }
  .vault-insight-sub { font-size: 10px; }
}

/* Phase A.1 (2026-05-25) — Product GROUPS (category aggregate) + group modal
   Atakan: "her ürün değil her ürün GRUBUNUN birer noktası olsa daha mantıklı". */
.vault-graph-node-productGroup circle {
  filter: drop-shadow(0 0 8px rgba(125, 200, 176, 0.30));
}
.vault-graph-node-productGroup:hover circle { r: 15; }
.vault-graph-label-productGroup {
  font-weight: 700 !important;
  fill: rgba(200, 240, 224, 0.85) !important;
}

/* Tooltip: sample rows + click hint */
.vault-graph-tooltip .tip-samples {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5px;
}
.vault-graph-tooltip .tip-hint {
  font-size: 10px;
  color: var(--accent);
  margin-top: 6px;
  font-style: italic;
}

/* Product-group click modal — Atakan: "tıklanabilen vault yapısı yok" */
.vault-graph-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 6, 6, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: vault-modal-fade-in 200ms ease;
}
.vault-graph-modal {
  background: linear-gradient(180deg, #1A0E0C 0%, #14090A 100%);
  border: 1px solid rgba(47, 92, 168, 0.20);
  border-radius: 16px;
  width: min(520px, 90vw);
  max-height: 70vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: vault-modal-rise 280ms cubic-bezier(.18,.85,.3,1);
  overflow: hidden;
}
.vault-graph-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.10);
  background: linear-gradient(180deg, rgba(47, 92, 168, 0.04) 0%, transparent 100%);
}
.vault-graph-modal-tag {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(125, 200, 176, 0.18);
  color: #C8F0E0;
  margin-bottom: 6px;
}
.vault-graph-modal-title {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em;
}
.vault-graph-modal-close {
  background: transparent; border: none;
  color: rgba(255, 255, 255, 0.5); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 6px;
  border-radius: 8px;
  transition: background 140ms, color 140ms;
}
.vault-graph-modal-close:hover {
  background: rgba(47, 92, 168, 0.10);
  color: var(--accent);
}
.vault-graph-modal-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}
.vault-graph-modal-empty {
  padding: 32px 18px; text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}
.vault-graph-modal-list {
  list-style: none; margin: 0; padding: 0;
}
.vault-graph-modal-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  transition: background 120ms, color 120ms;
  border-left: 2px solid transparent;
}
.vault-graph-modal-row:hover {
  background: rgba(47, 92, 168, 0.06);
  color: #fff;
  border-left-color: var(--accent);
}
.vault-graph-modal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7DC8B0;
  box-shadow: 0 0 6px rgba(125, 200, 176, 0.5);
  flex-shrink: 0;
}
.vault-graph-modal-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vault-graph-modal-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(47, 92, 168, 0.06);
  font-size: 10px; color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.vault-graph-modal-count { color: var(--accent); font-weight: 700; }

/* Edge type: try (user→productGroup via UsageLog) — distinguish visually */
.vault-graph-edge-try {
  stroke-dasharray: 3,3;
  opacity: 0.45;
}

@media (max-width: 768px) {
  .vault-graph-modal { width: 94vw; max-height: 80vh; }
  .vault-graph-modal-row { font-size: 12px; padding: 8px 14px; }
}

/* Phase I.B (2026-05-25) — Proactive competitor research action chip */
.vault-research-action {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 16px;
  border-top: 1px solid rgba(47, 92, 168, 0.06);
  border-bottom: 1px solid rgba(47, 92, 168, 0.06);
  background: linear-gradient(180deg, rgba(47, 92, 168, 0.04) 0%, transparent 100%);
  animation: vault-insight-in 380ms cubic-bezier(.18,.85,.3,1) forwards;
  opacity: 0; transform: translateY(6px);
}
.vault-research-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: none; color: #fff; font-weight: 700; font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(47, 92, 168, 0.25);
  transition: transform 160ms, box-shadow 160ms;
}
.vault-research-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 92, 168, 0.40);
}
.vault-research-btn:disabled {
  cursor: wait;
  opacity: 0.85;
}
.vault-research-btn.researching svg {
  animation: vault-research-spin 1.2s linear infinite;
}
@keyframes vault-research-spin { to { transform: rotate(360deg); } }
.vault-research-hint {
  font-size: 10.5px; color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* Phase I.D (2026-05-25) — Tag-tag co-occurrence beams in graph.
   Atakan: "ışınlarla birleşsin". Thin glowing mint lines, animated shimmer. */
.vault-graph-edge-tag_co {
  stroke: rgba(125, 200, 176, 0.50) !important;
  stroke-width: 1 !important;
  stroke-dasharray: none !important;
  filter: drop-shadow(0 0 4px rgba(125, 200, 176, 0.65));
  opacity: 0.7;
  animation: vault-tag-beam 3s ease-in-out infinite;
}
@keyframes vault-tag-beam {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}

/* Phase I.E (2026-05-25) — Vault Home landing surface
   Atakan: "Home/index vs gibi gerekli kısımlar da olsun" */
.vault-home-view[hidden] { display: none !important; }
.vault-home-view {
  display: block;
  padding: 8px 0 20px;
  animation: vault-insight-in 280ms cubic-bezier(.18,.85,.3,1) forwards;
  opacity: 0;
}
.vault-home-greeting {
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.vault-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .vault-home-grid { grid-template-columns: 1fr; }
}
.vault-home-card {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(47, 92, 168,0.04), transparent 70%),
    linear-gradient(180deg, rgba(20, 12, 11, 0.55) 0%, rgba(14, 9, 10, 0.85) 100%);
  border: 1px solid rgba(47, 92, 168, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.vault-home-card-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.10);
}
.vault-home-card-body { flex: 1; }
.vault-home-skel {
  height: 120px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(47, 92, 168,0.06), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  border-radius: 8px;
  animation: vault-home-skel-shimmer 1.6s ease-in-out infinite;
}
@keyframes vault-home-skel-shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
.vault-home-empty {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}
.vault-home-count {
  font-size: 24px; font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1;
}
.vault-home-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.vault-home-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 140ms, color 140ms;
}
.vault-home-row:hover {
  background: rgba(47, 92, 168, 0.08);
  color: #fff;
}
.vault-home-row-type {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(47, 92, 168, 0.14);
  color: var(--accent);
  flex-shrink: 0;
}
.vault-home-row-pin { font-size: 11px; flex-shrink: 0; }
.vault-home-row-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vault-home-insight {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(47, 92, 168, 0.04);
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.vault-home-insight:hover {
  background: rgba(47, 92, 168, 0.10);
  border-color: rgba(47, 92, 168, 0.28);
  transform: translateY(-1px);
}
.vault-home-insight-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 92, 168, 0.16);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
}
.vault-home-insight-title {
  font-size: 12px; font-weight: 700; color: #fff;
  line-height: 1.3;
}
.vault-home-insight-body {
  font-size: 10.5px; color: rgba(255, 255, 255, 0.55);
  margin-top: 2px; line-height: 1.4;
}
.vault-home-tagcloud {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.vault-home-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: rgba(125, 200, 176, 0.08);
  border: 1px solid rgba(125, 200, 176, 0.20);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: #C8F0E0;
  cursor: pointer;
  transition: background 140ms, transform 140ms;
}
.vault-home-tag:hover {
  background: rgba(125, 200, 176, 0.16);
  transform: translateY(-1px);
}
.vault-home-tag-count {
  font-size: 9px; font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
}
.vault-home-cluster-hint {
  font-size: 10px; color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin-top: 4px;
}

/* Phase II (2026-05-25) — Customer Requests inbox page */
#page-customer-requests { padding: 24px 28px; }
.cr-filter-row {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.08);
}
.cr-filter-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.cr-filter-chip:hover { background: rgba(47, 92, 168, 0.08); color: rgba(255, 255, 255, 0.85); }
.cr-filter-chip.active { background: rgba(47, 92, 168, 0.14); border-color: rgba(47, 92, 168, 0.36); color: var(--accent); }
.cr-spacer { flex: 1; }
.cr-count { font-size: 11px; color: rgba(255, 255, 255, 0.45); }

.cr-list { display: flex; flex-direction: column; gap: 8px; }
.cr-loading, .cr-error, .cr-empty {
  padding: 40px 20px; text-align: center;
  color: rgba(255, 255, 255, 0.55); font-size: 13px;
}
.cr-error { color: var(--accent); }
.cr-empty-glyph { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.cr-empty-title { font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.cr-empty-sub { font-size: 12px; color: rgba(255, 255, 255, 0.4); max-width: 360px; margin: 0 auto; }

.cr-row {
  background: rgba(20, 12, 11, 0.55);
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 160ms, transform 160ms;
}
.cr-row:hover { border-color: rgba(47, 92, 168, 0.24); transform: translateY(-1px); }
.cr-row-closed { opacity: 0.55; }
.cr-row-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cr-row-header-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr-row-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cr-expand {
  background: transparent; border: none; color: rgba(255, 255, 255, 0.5);
  font-size: 18px; cursor: pointer; padding: 0 6px;
}
.cr-row-detail { display: none; padding-top: 10px; border-top: 1px solid rgba(47, 92, 168, 0.06); margin-top: 10px; }
.cr-row-detail.open { display: block; }
.cr-row-body { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.55; margin-bottom: 12px; }
.cr-prev-response {
  background: rgba(125, 200, 176, 0.08);
  border: 1px solid rgba(125, 200, 176, 0.20);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(200, 240, 224, 0.9);
}
.cr-prev-label { font-size: 9px; font-weight: 700; text-transform: uppercase; color: #7DC8B0; margin-bottom: 4px; }
.cr-prev-date { font-size: 10px; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }
.cr-actions { display: flex; flex-direction: column; gap: 8px; }
.cr-response-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(47, 92, 168, 0.18);
  border-radius: 8px;
  color: #fff; font-size: 12px; font-family: inherit;
  outline: none; resize: vertical;
  transition: border-color 160ms;
}
.cr-response-input:focus { border-color: var(--accent); }
.cr-action-row { display: flex; gap: 6px; }
.cr-action-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 140ms, color 140ms;
}
.cr-action-btn:hover { background: rgba(47, 92, 168, 0.10); color: #fff; }
.cr-action-respond { background: var(--accent); color: #fff; border-color: var(--accent); }
.cr-action-respond:hover { background: var(--accent-hover); }

.cr-status {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px;
}
.cr-status-open { background: rgba(47, 92, 168, 0.18); color: var(--accent); }
.cr-status-in_progress { background: rgba(212, 168, 83, 0.18); color: #FFE2A8; }
.cr-status-closed { background: rgba(125, 200, 176, 0.18); color: #C8F0E0; }
.cr-priority-high { background: rgba(220, 38, 38, 0.18); color: #fca5a5; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
.cr-category {
  font-size: 10px; color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px; border-radius: 4px;
}
.cr-user { font-size: 11px; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.cr-date { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.cr-vault-link {
  display: inline-block; margin-top: 8px;
  font-size: 11px; color: var(--accent); cursor: pointer; text-decoration: none;
}
.cr-vault-link:hover { text-decoration: underline; }

/* Sidebar badge for unread count */
.nav-item-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: 800;
  border-radius: 999px;
}

/* Day 16 (2026-05-25) — Mobile responsive polish for vault.
   Atakan implicit: dashboard'un her parçası mobile-first çalışmalı. */
@media (max-width: 768px) {
  #page-vault-explorer { padding: 12px 14px; }
  .vault-layout { grid-template-columns: 1fr; gap: 10px; }
  .vault-left-rail { display: none; } /* tag tree hides — accessible via filter chips */
  .vault-right-rail { display: none; } /* detail moves to modal on tap */
  .vault-chat-inline { min-height: 280px; max-height: 50vh; }
  .vault-chat-inline-header { padding: 12px 14px 10px; }
  .vault-chat-inline-title { font-size: 14px; }
  .vault-chat-inline-sub { font-size: 11px; }
  .vault-chat-input-wrap { padding: 10px 12px 12px; }
  .vault-chat-stream { padding: 12px 14px; gap: 8px; }

  /* Graph view — full-screen modal on mobile (Atakan plan Day 16 spec) */
  .vault-graph-view {
    position: fixed; inset: 0;
    z-index: 1500;
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
    max-height: 100vh;
  }
  .vault-graph-canvas { min-height: 50vh; }
  .vault-graph-toolbar { padding: 8px 12px; gap: 6px; }

  /* Home view — single column already; tighten spacing */
  .vault-home-greeting { font-size: 18px; margin-bottom: 12px; }
  .vault-home-card { min-height: 160px; padding: 12px 14px; }
}

/* Day 17 — Small Home card hover lift (subtle) */
.vault-home-card { transition: transform 200ms cubic-bezier(.18,.85,.3,1), border-color 200ms; }
.vault-home-card:hover { transform: translateY(-2px); border-color: rgba(47, 92, 168, 0.26); }

/* ============================================================
   Faz A — Voice Assistant buttons (mic + mute) (2026-05-26)
   Beta-gated: injected by voiceAssistant.js when backend
   ELEVENLABS_API_KEY is set AND browser supports SpeechRecognition.
   ============================================================ */
.vault-chat-inline .vault-mic-btn,
.vault-chat-inline .vault-voice-mute-btn {
  align-self: flex-end;
  width: 38px; height: 38px;
  margin-bottom: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(47, 92, 168, 0.18);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms, transform 160ms, box-shadow 160ms;
}
.vault-chat-inline .vault-mic-btn:hover,
.vault-chat-inline .vault-voice-mute-btn:hover {
  color: var(--accent);
  border-color: rgba(47, 92, 168, 0.42);
  transform: translateY(-1px);
}
.vault-chat-inline .vault-voice-mute-btn.muted {
  color: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Listening state — soft accent pulse + ring */
.vault-chat-inline .vault-mic-btn.listening {
  background: rgba(47, 92, 168, 0.18);
  border-color: var(--accent);
  color: #fff;
  animation: vault-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes vault-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 92, 168, 0.6), 0 0 14px rgba(47, 92, 168, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 92, 168, 0.0), 0 0 22px rgba(47, 92, 168, 0.55); }
}

/* Speaking state — global body class adds a subtle waveform under the input.
   We use a pseudo on the input-row's existing ::after so we don't break the
   typing-glow ::before above. */
body.vto-voice-speaking .vault-chat-inline .vault-chat-input-row::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(47, 92, 168, 0.0) 8%,
    rgba(47, 92, 168, 0.55) 50%,
    rgba(47, 92, 168, 0.0) 92%,
    transparent 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  filter: blur(0.5px);
  animation: vault-voice-wave 1.6s linear infinite;
  pointer-events: none;
}
@keyframes vault-voice-wave {
  0%   { background-position: -100% 0; opacity: 0.55; }
  50%  { opacity: 1; }
  100% { background-position: 100% 0; opacity: 0.55; }
}

/* Footer voice telemetry badge (cost transparency) */
.vault-voice-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(47, 92, 168, 0.06);
  border: 1px solid rgba(47, 92, 168, 0.16);
  border-radius: 999px;
  font-size: 11px; color: rgba(255, 255, 255, 0.64);
  font-weight: 500;
}
.vault-voice-badge .vault-voice-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(47, 92, 168, 0.6);
}

/* ============================================================
   Faz L Tier 3.a — Vault chat pending action chips
   ============================================================ */
.vault-pending-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 12px;
}
.vault-pending-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(47, 92, 168, 0.18), rgba(63, 111, 187, 0.12));
  border: 1px solid rgba(47, 92, 168, 0.42);
  color: #fff; font-family: inherit; font-size: 12px; font-weight: 700;
  border-radius: 999px; cursor: pointer;
  transition: all 160ms;
}
.vault-pending-chip:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover, #3a68b0));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 92, 168, 0.32);
}
.vault-pending-chip-done {
  background: rgba(125, 200, 176, 0.18);
  border-color: rgba(125, 200, 176, 0.42);
  color: #7DC8B0;
}
.vault-pending-chip:disabled { cursor: wait; opacity: 0.7; }

/* ══ Phase 4 — listing toolbar, type colors, grouping, merge (#15,19,20,21,22) ══ */

/* ── List toolbar: sort / type filter / group / merge ─────── */
.vault-list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 4px 0 10px;
}
.vault-tb-field {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vault-tb-field select {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; font-size: 12px; cursor: pointer;
  text-transform: none; letter-spacing: normal;
}
.vault-tb-field select:hover { border-color: rgba(47, 92, 168, 0.32); }
.vault-tb-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-elevated); color: var(--text-secondary, var(--text-muted));
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 12px; cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.vault-tb-toggle:hover { border-color: rgba(47, 92, 168, 0.32); color: var(--text-primary); }
.vault-tb-toggle.active {
  background: rgba(47, 92, 168, 0.12);
  border-color: var(--accent); color: var(--accent);
}

/* ── #19 Type badge color codes (8 valid types) ───────────── */
.vault-note-type-badge.t-plan        { background: rgba(96, 134, 255, 0.16);  color: #8AA6FF; }
.vault-note-type-badge.t-observation { background: rgba(150, 160, 178, 0.16); color: #AEB7C7; }
.vault-note-type-badge.t-campaign    { background: rgba(47, 92, 168, 0.16);   color: var(--accent); }
.vault-note-type-badge.t-season      { background: rgba(86, 196, 168, 0.16);  color: #6FD7B8; }
.vault-note-type-badge.t-product     { background: rgba(176, 122, 235, 0.16); color: #C7A0F0; }
.vault-note-type-badge.t-customer    { background: rgba(235, 110, 168, 0.16); color: #F08FC0; }
.vault-note-type-badge.t-goal        { background: rgba(232, 190, 92, 0.18);  color: #E8C66A; }
.vault-note-type-badge.t-free        { background: rgba(0, 0, 0, 0.15);        color: var(--text-muted); }

/* ── #20 Auto type-group sections ─────────────────────────── */
.vault-note-group { margin-bottom: 14px; }
.vault-note-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 5px 10px; margin-bottom: 8px;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em; border-left: 3px solid currentColor;
}
.vault-note-group-head.t-plan        { color: #8AA6FF; background: rgba(96, 134, 255, 0.10); }
.vault-note-group-head.t-observation { color: #AEB7C7; background: rgba(150, 160, 178, 0.10); }
.vault-note-group-head.t-campaign    { color: var(--accent); background: rgba(47, 92, 168, 0.10); }
.vault-note-group-head.t-season      { color: #6FD7B8; background: rgba(86, 196, 168, 0.10); }
.vault-note-group-head.t-product     { color: #C7A0F0; background: rgba(176, 122, 235, 0.10); }
.vault-note-group-head.t-customer    { color: #F08FC0; background: rgba(235, 110, 168, 0.10); }
.vault-note-group-head.t-goal        { color: #E8C66A; background: rgba(232, 190, 92, 0.12); }
.vault-note-group-head.t-free        { color: var(--text-muted); background: rgba(0, 0, 0, 0.12); }
.vault-note-group-count {
  font-size: 11px; font-weight: 600; opacity: 0.8;
  background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 1px 7px;
}

/* ── #21 Merge mode: card picks + floating action bar ─────── */
.vault-note-card.merge-mode { padding-left: 34px; position: relative; }
.vault-merge-check {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: #fff;
  transition: background 140ms ease, border-color 140ms ease;
}
.vault-note-card.merge-pick {
  border-color: var(--accent);
  background: rgba(47, 92, 168, 0.06);
}
.vault-note-card.merge-pick .vault-merge-check {
  background: var(--accent); border-color: var(--accent);
}
.vault-merge-bar {
  position: sticky; bottom: 12px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 9px 14px;
  background: var(--bg-elevated); border: 1px solid var(--accent);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(10, 6, 6, 0.28);
  animation: vault-card-in 240ms cubic-bezier(.18,.85,.3,1) forwards;
}
.vault-merge-bar.busy { opacity: 0.6; pointer-events: none; }
.vault-merge-bar-count { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-right: auto; }
.vault-merge-do {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease;
}
.vault-merge-do:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47, 92, 168, 0.32); }
.vault-merge-do:disabled { opacity: 0.5; cursor: not-allowed; }
.vault-merge-cancel {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.vault-merge-cancel:hover { color: var(--text-primary); border-color: rgba(47, 92, 168, 0.32); }
