@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   AuraNotes Design System Tokens
   Themes: Dark Obsidian, Warm Paper, Solarized Teal, Dracula Neon, Sepia Minimal
   ========================================================================== */

:root {
  /* Default: Dark Obsidian (Swiss Editorial Refined) */
  --bg-app: #0c0d10;
  --bg-sidebar: #101216;
  --bg-surface: #15181f;
  --bg-elevated: #1e212b;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: #d97706;

  --text-primary: #f4f4f6;
  --text-secondary: #9aa0aa;
  --text-muted: #666c78;

  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-glow: rgba(217, 119, 6, 0.2);

  --badge-bg: rgba(217, 119, 6, 0.12);
  --badge-text: #f59e0b;
  --tag-bg: rgba(255, 255, 255, 0.05);
  --tag-hover: rgba(255, 255, 255, 0.09);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);

  --font-serif: 'Newsreader', Georgia, Cambria, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Emil Kowalski Springs & Timings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-instant: 50ms;
  --duration-fast: 110ms;
  --duration-normal: 180ms;
  --duration-modal: 220ms;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Spacing Scale (4/8px Systematic Tokens) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Reading Metrics */
  --editor-font-size: 1.06rem;
  --editor-max-width: 760px;
}

/* Theme: Warm Editorial Paper (Craft-inspired) */
[data-theme="paper"] {
  --bg-app: #f7f4ee;
  --bg-sidebar: #efebe1;
  --bg-surface: #ffffff;
  --bg-elevated: #e7e2d4;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-active: rgba(0, 0, 0, 0.08);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: #b45309;

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #8e8d89;

  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: rgba(180, 83, 9, 0.12);
  --accent-glow: rgba(180, 83, 9, 0.2);

  --badge-bg: rgba(180, 83, 9, 0.1);
  --badge-text: #92400e;
  --tag-bg: rgba(0, 0, 0, 0.04);
  --tag-hover: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Theme: Solarized Teal (Bear-inspired) */
[data-theme="solarized"] {
  --bg-app: #002b36;
  --bg-sidebar: #073642;
  --bg-surface: #0a404e;
  --bg-elevated: #0f4b5a;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: rgba(255, 255, 255, 0.12);

  --border-subtle: rgba(147, 161, 161, 0.15);
  --border-medium: rgba(147, 161, 161, 0.25);
  --border-focus: #2aa198;

  --text-primary: #fdf6e3;
  --text-secondary: #93a1a1;
  --text-muted: #657b83;

  --accent: #2aa198;
  --accent-hover: #268bd2;
  --accent-soft: rgba(42, 161, 152, 0.18);
  --accent-glow: rgba(42, 161, 152, 0.3);

  --badge-bg: rgba(42, 161, 152, 0.15);
  --badge-text: #2aa198;
  --tag-bg: rgba(255, 255, 255, 0.07);
  --tag-hover: rgba(255, 255, 255, 0.12);
}

/* Theme: Dracula Neon */
[data-theme="dracula"] {
  --bg-app: #1e1f29;
  --bg-sidebar: #282a36;
  --bg-surface: #2d303e;
  --bg-elevated: #383a59;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: rgba(255, 255, 255, 0.12);

  --border-subtle: rgba(98, 114, 164, 0.25);
  --border-medium: rgba(98, 114, 164, 0.4);
  --border-focus: #bd93f9;

  --text-primary: #f8f8f2;
  --text-secondary: #bd93f9;
  --text-muted: #6272a4;

  --accent: #bd93f9;
  --accent-hover: #ff79c6;
  --accent-soft: rgba(189, 147, 249, 0.18);
  --accent-glow: rgba(189, 147, 249, 0.3);

  --badge-bg: rgba(255, 121, 198, 0.15);
  --badge-text: #ff79c6;
  --tag-bg: rgba(98, 114, 164, 0.2);
  --tag-hover: rgba(98, 114, 164, 0.35);
}

/* Theme: Sepia Minimal */
[data-theme="sepia"] {
  --bg-app: #f4ecd8;
  --bg-sidebar: #ebdcb9;
  --bg-surface: #faf4e6;
  --bg-elevated: #e3cfab;
  --bg-hover: rgba(0, 0, 0, 0.05);
  --bg-active: rgba(0, 0, 0, 0.09);

  --border-subtle: rgba(100, 70, 40, 0.12);
  --border-medium: rgba(100, 70, 40, 0.2);
  --border-focus: #8f5d38;

  --text-primary: #3b2c1f;
  --text-secondary: #6e5743;
  --text-muted: #9c8470;

  --accent: #8f5d38;
  --accent-hover: #714626;
  --accent-soft: rgba(143, 93, 56, 0.14);
  --accent-glow: rgba(143, 93, 56, 0.25);

  --badge-bg: rgba(143, 93, 56, 0.12);
  --badge-text: #714626;
  --tag-bg: rgba(0, 0, 0, 0.05);
  --tag-hover: rgba(0, 0, 0, 0.09);
}

/* ==========================================================================
   Color-Coding Tokens for Individual Notes (Supernotes style)
   ========================================================================== */

.note-color-amber { --note-accent: #d97706; --note-soft: rgba(217, 119, 6, 0.12); }
.note-color-blue { --note-accent: #2563eb; --note-soft: rgba(37, 99, 235, 0.12); }
.note-color-emerald { --note-accent: #059669; --note-soft: rgba(5, 150, 105, 0.12); }
.note-color-purple { --note-accent: #7c3aed; --note-soft: rgba(124, 58, 237, 0.12); }
.note-color-rose { --note-accent: #e11d48; --note-soft: rgba(225, 29, 72, 0.12); }
.note-color-slate { --note-accent: #64748b; --note-soft: rgba(100, 116, 139, 0.12); }

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  border: none;
  background: transparent;
  outline: none;
}

button {
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* App Shell */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Sidebar: Navigation & Notes Tree
   ========================================================================== */

.sidebar {
  width: 320px;
  min-width: 250px;
  max-width: 650px;
  height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-spring);
  z-index: 20;
  position: relative;
  flex-shrink: 0;
}

/* Sidebar Resizer Divider Handle */
.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 50;
}

.sidebar-resizer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: 2px;
  height: 100%;
  background: transparent;
  transition: background var(--duration-fast);
}

.sidebar-resizer:hover::after,
.sidebar-resizer.is-resizing::after {
  background: var(--accent);
}

body.is-resizing-sidebar {
  cursor: col-resize !important;
  user-select: none !important;
}

body.is-resizing-sidebar * {
  cursor: col-resize !important;
  user-select: none !important;
}

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

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.brand-logo svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-quick-actions {
  padding: 12px 14px;
  display: flex;
  gap: 8px;
}

.btn-primary-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-fast);
}

.btn-primary-action:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-icon-subtle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
}

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

.sidebar-search-trigger {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: border var(--duration-fast), background var(--duration-fast);
}

.sidebar-search-trigger:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcut-kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Capacities Object Filter Bar */
.object-filter-section {
  padding: 4px 14px 10px;
}

.object-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.object-filter-tabs.grabbing {
  cursor: grabbing;
}

.object-filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.object-filter-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.object-filter-tabs::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.object-filter-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.obj-filter-btn {
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.obj-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.obj-filter-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* Notes List in Sidebar */
.notes-scroll-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 14px;
}

.notes-scroll-list::-webkit-scrollbar {
  width: 4px;
}
.notes-scroll-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.note-card-compact {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.note-card-compact:hover {
  background: var(--bg-hover);
  border-color: var(--border-subtle);
}

.note-card-compact.selected {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-glow);
}

.note-card-compact[data-color="amber"] { border-left-color: #d97706; }
.note-card-compact[data-color="blue"] { border-left-color: #2563eb; }
.note-card-compact[data-color="emerald"] { border-left-color: #059669; }
.note-card-compact[data-color="purple"] { border-left-color: #7c3aed; }
.note-card-compact[data-color="rose"] { border-left-color: #e11d48; }
.note-card-compact[data-color="slate"] { border-left-color: #64748b; }

.note-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 6px;
}

/* Card Pin Button (1-Click Pinning in Sidebar) */
.btn-card-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast);
  opacity: 0;
  flex-shrink: 0;
}

.note-card-compact:hover .btn-card-pin {
  opacity: 0.65;
}

.btn-card-pin:hover {
  opacity: 1 !important;
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--accent);
  transform: scale(1.15);
}

.btn-card-pin.active {
  opacity: 1 !important;
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.28);
}

.btn-card-pin.active:hover {
  background: rgba(217, 119, 6, 0.22);
}

/* Section divider header for pinned & recent notes */
.nav-sub-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.nav-sub-divider:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.nav-sub-divider svg {
  color: var(--accent);
}

.nav-sub-divider .count-badge {
  font-size: 0.62rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  color: var(--text-secondary);
}

.note-card-obj-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
}

.note-card-title {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-card-snippet {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.note-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.note-card-tag {
  background: var(--tag-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sidebar);
}

.footer-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  position: relative;
  overflow: hidden;
}

/* Telemetry Bar (Balanced Editorial Navigation) */
.telemetry-bar {
  height: 52px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-app);
  z-index: 10;
  gap: 16px;
}

.telemetry-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  display: none;
}

.telemetry-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.telemetry-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.telemetry-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  transition: background var(--duration-normal) var(--ease-out);
}

.status-dot.syncing {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  animation: pulseSync 1s infinite alternate;
}

@keyframes pulseSync {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.status-dot.offline {
  background: #9ca3af;
  box-shadow: none;
}

/* Segmented View Tabs (Linear & Apple Spring Polish) */
.view-tabs {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.view-tab-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  background: var(--bg-elevated);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform var(--duration-normal) var(--ease-spring), width var(--duration-normal) var(--ease-spring);
  pointer-events: none;
  z-index: 1;
}

.view-tab {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-instant) var(--ease-spring);
}

.view-tab:hover {
  color: var(--text-primary);
}

.view-tab:active {
  transform: scale(0.97);
}

.view-tab.active {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Editorial Workspace (Craft + Bear Style)
   ========================================================================== */

.editor-viewport {
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 120px;
}

.editor-viewport::-webkit-scrollbar {
  width: 6px;
}
.editor-viewport::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

/* Craft-Style Dynamic Cover Banner */
.cover-banner-container {
  width: 100%;
  max-width: var(--editor-max-width);
  height: 180px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: none;
  border: 1px solid var(--border-subtle);
}

.cover-banner-container.active {
  display: block;
}

.cover-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.cover-banner-actions {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.btn-cover-action {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--duration-fast);
}

.btn-cover-action:hover {
  background: rgba(0, 0, 0, 0.85);
}

.editor-stage {
  width: 100%;
  max-width: var(--editor-max-width);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 24px;
}

/* Editor Metadata Ribbon (Capacities & Supernotes style) */
.editor-meta-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.meta-ribbon-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Object Type Dropdown (Capacities style) */
.object-type-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.object-type-picker:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

/* Color Palette Picker (Supernotes style) */
.color-picker-group {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.color-dot-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--duration-fast);
  border: 2px solid transparent;
}

.color-dot-btn:hover {
  transform: scale(1.2);
}

.color-dot-btn.active {
  border-color: #ffffff;
  transform: scale(1.15);
}

.color-dot-amber { background: #d97706; }
.color-dot-blue { background: #2563eb; }
.color-dot-emerald { background: #059669; }
.color-dot-purple { background: #7c3aed; }
.color-dot-rose { background: #e11d48; }
.color-dot-slate { background: #64748b; }

.btn-toggle-cover {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-toggle-cover:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Editor Ribbon Pin Toggle */
.btn-toggle-pin {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-toggle-pin:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.btn-toggle-pin.active {
  color: #d97706;
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.35);
  font-weight: 600;
}

.btn-toggle-pin.active svg {
  fill: currentColor;
}

/* Tags bar */
.tags-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--tag-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tag-pill:hover {
  background: var(--tag-hover);
  border-color: var(--border-medium);
}

.btn-add-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-medium);
  transition: all var(--duration-fast);
}

.btn-add-tag:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Note Title (ContentEditable H1) */
.editor-title-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
  outline: none;
  border: none;
  background: transparent;
  min-height: 1.2em;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-title-input::placeholder,
.editor-title-input:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

/* Editor Toolbar */
.editor-quick-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.tool-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--duration-fast);
}

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

.tool-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  margin: 0 4px;
}

/* Rich Visual Editor Canvas */
.editor-body-content {
  width: 100%;
  min-height: 520px;
  font-family: var(--font-sans);
  font-size: var(--editor-font-size);
  line-height: 1.85;
  color: var(--text-primary);
  outline: none;
  background: transparent;
  word-break: break-word;
  white-space: pre-wrap;
  caret-color: var(--accent);
}

.editor-body-content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.55;
  pointer-events: none;
  display: block;
}

/* Note Visual Image Cards in Editor */
.note-image-card {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.4em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  user-select: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.note-image-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.note-image-card img {
  display: block;
  max-width: 100%;
  max-height: 540px;
  height: auto;
  border-radius: calc(var(--radius-md) - 1px);
  object-fit: contain;
}

.btn-remove-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(6px);
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.88);
  transition: all var(--duration-fast);
  z-index: 10;
}

.note-image-card:hover .btn-remove-img {
  opacity: 1;
  transform: scale(1);
}

.btn-remove-img:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

/* Rendered Preview Markdown & Images */
.rendered-preview {
  display: none;
  width: 100%;
  font-size: var(--editor-font-size);
  line-height: 1.8;
}

.rendered-preview.active {
  display: block;
}

.rendered-preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: block;
}

.editor-body-content h1,
.editor-h1,
.rendered-preview h1,
.editor-body-content h2,
.editor-h2,
.rendered-preview h2,
.editor-body-content h3,
.editor-h3,
.rendered-preview h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--text-primary);
  line-height: 1.25;
}

.editor-body-content h1,
.editor-h1,
.rendered-preview h1 { font-size: 2.1rem; letter-spacing: -0.02em; }

.editor-body-content h2,
.editor-h2,
.rendered-preview h2 { font-size: 1.55rem; letter-spacing: -0.015em; }

.editor-body-content h3,
.editor-h3,
.rendered-preview h3 { font-size: 1.25rem; font-family: var(--font-sans); }

.editor-body-content hr,
.editor-divider,
.rendered-preview hr {
  border: none;
  height: 1px;
  background: var(--border-medium);
  margin: 1.8em 0;
}

.editor-body-content p,
.rendered-preview p {
  margin-bottom: 0.9em;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all var(--duration-fast);
}

.task-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.task-checkbox.checked svg {
  display: block;
}

.task-checkbox svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke: #ffffff;
}

.task-text.checked {
  text-decoration: line-through;
  color: var(--text-muted);
}

.editorial-callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.callout-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.code-block-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-block-content {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==========================================================================
   Broadsheet / Cards Wall View (Supernotes style)
   ========================================================================== */

.broadsheet-viewport {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.broadsheet-viewport.active {
  display: block;
}

.broadsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.card-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  position: relative;
  animation: cardEntrance 240ms var(--ease-spring) backwards;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-tile:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-glow);
  border-color: var(--border-medium);
}

.card-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(217, 119, 6, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  pointer-events: none;
  z-index: 5;
}

.card-tile:hover::before {
  opacity: 1;
}

.card-tile-cover {
  height: 90px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.card-tile-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-tile-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 600;
}

.card-tile-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-tile-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Visual Canvas / Graph Mode
   ========================================================================== */

.graph-view-container {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 52px;
  left: 0;
  background: var(--bg-app);
  z-index: 5;
}

.graph-view-container.active {
  display: block;
}

#graphCanvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#graphCanvas:active {
  cursor: grabbing;
}

.graph-floating-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.graph-ctrl-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

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

.graph-legend-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Theme & Typography Settings Modal (Bear-inspired)
   ========================================================================== */

.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.settings-modal-backdrop.open {
  display: flex;
}

.settings-modal {
  width: 480px;
  max-width: 90vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: cmdPop 160ms var(--ease-spring);
}

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

.settings-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-section {
  margin-bottom: 20px;
}

.settings-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.theme-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-chip-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: all var(--duration-fast);
}

.theme-chip-btn:hover {
  border-color: var(--accent);
}

.theme-chip-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.theme-preview-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.typography-btn-group {
  display: flex;
  gap: 8px;
}

.typo-size-btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.typo-size-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Slide-out Drawer & Palettes (Radix Sheet Pattern)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  z-index: 95;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.55);
  transform: translate3d(100%, 0, 0);
  transition: transform var(--duration-modal) var(--ease-spring);
  will-change: transform;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.slide-drawer.open {
  transform: translate3d(0, 0, 0);
}

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

.drawer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.drawer-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drawer-stat-card {
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.drawer-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.drawer-stat-val {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 4px;
}

.export-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-export {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: all var(--duration-fast);
}

.btn-export:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

/* Command Palette (Raycast & Linear Polish) */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 150;
}

.cmd-backdrop.open {
  display: flex;
}

.cmd-palette {
  position: relative;
  width: 640px;
  max-width: 92vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: cmdPop 160ms var(--ease-spring);
}

.cmd-palette::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.35), transparent 45%, rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes cmdPop {
  from { opacity: 0; transform: scale(0.96) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cmd-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.cmd-input {
  flex: 1;
  font-size: 1rem;
  color: var(--text-primary);
}

.cmd-results-list {
  max-height: 440px;
  overflow-y: auto;
  padding: 6px 8px 12px;
  overscroll-behavior: contain;
}

.cmd-results-list::-webkit-scrollbar {
  width: 5px;
}
.cmd-results-list::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}

.cmd-section {
  margin-bottom: 6px;
}

.cmd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cmd-section:first-child .cmd-section-header {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.cmd-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cmd-section-title svg {
  opacity: 0.75;
}

.cmd-section-count {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-align: left;
}

.cmd-item:hover,
.cmd-item.active {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.08);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.cmd-item-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  transition: all 120ms ease;
}

.cmd-item.active .cmd-item-icon-box {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Cajas de iconos temáticas según tipo */
.cmd-item-icon-box.box-project {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.28);
  color: #fbbf24;
}

.cmd-item-icon-box.box-note {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.26);
  color: #93c5fd;
}

.cmd-item-icon-box.box-tag {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}

.cmd-item-icon-box.box-content {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.26);
  color: #d8b4fe;
}

.cmd-item-icon-box.box-action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.cmd-item-text {
  min-width: 0;
  flex: 1;
}

.cmd-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.cmd-item-title {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}

.cmd-item-snippet {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}

.cmd-item.active .cmd-item-snippet {
  color: var(--text-secondary);
}

.cmd-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.60rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1.5px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.cmd-badge-project {
  background: rgba(217, 119, 6, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.34);
}

.cmd-badge-title,
.cmd-badge-note {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cmd-badge-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.cmd-badge-content {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cmd-badge-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-item-shortcut {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 10px;
}

.cmd-item.active .cmd-item-shortcut {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.14);
}

.cmd-hl {
  background: rgba(245, 158, 11, 0.28);
  color: #fef08a;
  border-radius: 2px;
  padding: 0 3px;
  font-weight: 600;
}

.cmd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  color: var(--text-primary);
  animation: toastFade 220ms var(--ease-spring);
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Floating Selection Bubble Toolbar (Craft / Medium Style)
   ========================================================================== */

.floating-selection-toolbar {
  position: fixed;
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 3px 4px;
  z-index: 120;
  animation: floatPop 140ms var(--ease-spring);
  pointer-events: auto;
}

.floating-selection-toolbar.visible {
  display: flex;
}

@keyframes floatPop {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.float-tool-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

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

/* ==========================================================================
   Context Menu (Radix Context Menu Standard)
   ========================================================================== */

.context-menu {
  position: fixed;
  display: none;
  min-width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 4px;
  z-index: 200;
  animation: floatPop 120ms var(--ease-spring);
}

.context-menu.open {
  display: block;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.context-menu-item:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.context-menu-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.context-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle-btn {
    display: flex !important;
  }

  .telemetry-center {
    display: none;
  }
}

@media (max-width: 600px) {
  .editor-viewport {
    padding: 0 14px 80px;
  }

  .editor-title-input {
    font-size: 2rem;
  }

  .editor-meta-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }

  .broadsheet-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sidebar Quick Filter & Pinned Notes
   ========================================================================== */

.sidebar-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 14px 10px;
  padding: 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.sidebar-filter-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.sidebar-filter-wrapper svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-filter-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-primary);
  width: 100%;
}

.sidebar-filter-wrapper input::placeholder {
  color: var(--text-muted);
}

.btn-clear-filter {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

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

.nav-sub-divider {
  padding: 8px 16px 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-sub-divider svg {
  color: var(--accent);
}

.note-card-pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-left: auto;
  opacity: 0.9;
}

/* ==========================================================================
   Modo Zen / Focus Typewriter
   ========================================================================== */

body.zen-mode .sidebar,
body.zen-mode .sidebar-resizer,
body.zen-mode .telemetry-bar,
body.zen-mode .editor-meta-ribbon,
body.zen-mode .cover-banner-container,
body.zen-mode .floating-selection-toolbar {
  display: none !important;
}

body.zen-mode .main-content {
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--bg-app);
}

body.zen-mode .editor-viewport {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 90px 24px 140px;
}

body.zen-mode .editor-stage {
  max-width: 100%;
  padding: 0;
}

body.zen-mode .editor-title-input {
  font-size: 2.6rem;
  margin-bottom: 24px;
  text-align: left;
}

body.zen-mode .editor-body {
  font-size: 1.18rem;
  line-height: 2.0;
  color: var(--text-primary);
}

.zen-exit-pill {
  position: fixed;
  top: 24px;
  right: 28px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 999;
  animation: floatPop 160ms var(--ease-spring);
  transition: all var(--duration-fast) var(--ease-out);
}

body.zen-mode .zen-exit-pill {
  display: inline-flex;
}

.zen-exit-pill:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.zen-exit-pill kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 5px;
  background: var(--bg-active);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ==========================================================================
   Slash Menu Popover (Notion / Craft style)
   ========================================================================== */

.slash-menu {
  position: fixed;
  display: none;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  z-index: 210;
  animation: floatPop 130ms var(--ease-spring);
}

.slash-menu.open {
  display: block;
}

.slash-menu-header {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 6px 8px 4px;
}

.slash-menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slash-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.slash-menu-item:hover,
.slash-menu-item.selected {
  background: var(--bg-hover);
  color: var(--accent);
}

.slash-item-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

.slash-item-info {
  display: flex;
  flex-direction: column;
}

.slash-item-title {
  font-weight: 500;
  line-height: 1.2;
}

.slash-item-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Wiki-Links Autocomplete Menu & Preview Wiki-Links
   ========================================================================== */

.wiki-autocomplete-menu {
  position: fixed;
  display: none;
  width: 290px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  z-index: 220;
  animation: floatPop 130ms var(--ease-spring);
}

.wiki-autocomplete-menu.open {
  display: block;
}

.wiki-menu-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  padding: 6px 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.wiki-menu-header svg {
  color: var(--accent);
}

.wiki-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wiki-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.wiki-menu-item:hover,
.wiki-menu-item.selected {
  background: var(--bg-hover);
  color: var(--accent);
}

.wiki-menu-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-menu-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Wiki-Link badge in reading/preview view */
.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
  border: 1px solid rgba(217, 119, 6, 0.25);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92em;
  transition: all var(--duration-fast) var(--ease-out);
}

.wiki-link:hover {
  background: rgba(217, 119, 6, 0.22);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-1px);
}

.wiki-link svg {
  color: var(--accent);
}

/* Clickable URL & Markdown Links in Editor and Preview */
.editor-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.45);
  text-underline-offset: 3px;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  word-break: break-all;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.editor-link:hover {
  color: var(--accent-hover, #f59e0b);
  text-decoration-color: currentColor;
  background: rgba(217, 119, 6, 0.12);
  box-shadow: 0 0 8px var(--accent-glow);
}

.editor-link .link-ext-icon {
  opacity: 0.7;
  flex-shrink: 0;
  vertical-align: middle;
}

.editor-link * {
  cursor: pointer !important;
  pointer-events: none;
}

.editor-link:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Google Authentication & User Account Profile
   ========================================================================== */

.sidebar-auth-widget {
  margin: 8px 14px 4px;
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.sidebar-auth-widget:hover {
  border-color: var(--border-medium);
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-google-login:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.btn-google-text {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.user-account-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px;
}

.user-avatar-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-medium);
}

.user-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #92400e 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

.user-status-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid var(--bg-surface);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.7);
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.user-email {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.btn-auth-action {
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-auth-action:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.settings-auth-status {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* ==========================================================================
   Papelera de Reciclaje (Trash)
   ========================================================================== */

.trash-badge-count {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1;
  min-width: 14px;
  text-align: center;
}

.trash-modal-dialog {
  max-width: 580px;
}

.trash-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.trash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  text-align: center;
}

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

.trash-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.trash-item-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.trash-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  margin-right: 12px;
}

.trash-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trash-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.trash-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-trash-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-medium);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

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

.btn-restore-action:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.btn-purge-action:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-empty-trash {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-empty-trash:hover {
  background: rgba(239, 68, 68, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
