/* ═══════════════════════════════════════════════════════════════
   NOVA — Design System v2.0
   Light: Soft lavender whites, airy & premium (Financial CRM style)
   Dark:  Deep violet midnight, rich & sophisticated
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── LIGHT MODE (DEFAULT) ── */
:root {
  /* Backgrounds */
  --bg-primary:      #f0eeff;
  --bg-secondary:    #ffffff;
  --bg-tertiary:     #ebe8ff;
  --bg-card:         #ffffff;
  --bg-input:        #f8f7ff;
  --bg-sidebar:      rgba(255, 255, 255, 0.82);
  --bg-nav:          rgba(255, 255, 255, 0.88);

  /* Text */
  --text-primary:    #18162e;
  --text-secondary:  #4b4870;
  --text-muted:      #8e8bb0;
  --text-placeholder: #b0adcc;

  /* Accent — electric violet */
  --accent-color:    #6c3fff;
  --accent-hover:    #5a2de8;
  --accent-soft:     rgba(108, 63, 255, 0.10);
  --accent-medium:   rgba(108, 63, 255, 0.18);
  --accent-text:     #6c3fff;

  /* Danger */
  --danger-color:    #f04060;
  --danger-hover:    #d42f50;
  --danger-soft:     rgba(240, 64, 96, 0.10);

  /* Success */
  --success-color:   #0cc08a;
  --success-soft:    rgba(12, 192, 138, 0.12);

  /* Borders */
  --border-color:    rgba(108, 63, 255, 0.12);
  --border-strong:   rgba(108, 63, 255, 0.22);
  --border-subtle:   rgba(180, 170, 220, 0.35);

  /* Shadows */
  --shadow-xs:       0 1px 3px rgba(80, 50, 180, 0.06);
  --shadow-soft:     0 4px 24px rgba(80, 50, 180, 0.08), 0 1px 4px rgba(80, 50, 180, 0.04);
  --shadow-medium:   0 8px 32px rgba(80, 50, 180, 0.12), 0 2px 8px rgba(80, 50, 180, 0.06);
  --shadow-strong:   0 20px 60px rgba(80, 50, 180, 0.16), 0 4px 16px rgba(80, 50, 180, 0.08);
  --shadow-accent:   0 8px 24px rgba(108, 63, 255, 0.28);

  /* Shape */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       18px;
  --radius-xl:       24px;

  /* Motion */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ripple */
  --ripple-x: calc(100% - 0px);
  --ripple-y: 0px;

  /* Typography */
  --font-stack: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  'DM Mono', 'Fira Code', monospace;

  --pin-code-box-size: 56px;
  --pin-code-gap: 12px;
  --pin-code-width: calc((var(--pin-code-box-size) * 4) + (var(--pin-code-gap) * 3));
}

/* ── DARK MODE ── */
html[data-theme="dark"] {
  /* Backgrounds — deep violet midnight */
  --bg-primary:      #0e0b1e;
  --bg-secondary:    #16122a;
  --bg-tertiary:     #1e1938;
  --bg-card:         rgba(26, 20, 50, 0.92);
  --bg-input:        rgba(14, 11, 30, 0.85);
  --bg-sidebar:      rgba(14, 11, 30, 0.7);
  --bg-nav:          rgba(18, 14, 34, 0.82);

  /* Text */
  --text-primary:    #ede9ff;
  --text-secondary:  #9d96c8;
  --text-muted:      #5e5a88;
  --text-placeholder: #3e3a62;

  /* Accent */
  --accent-color:    #8b5cf6;
  --accent-hover:    #7c3aed;
  --accent-soft:     rgba(139, 92, 246, 0.12);
  --accent-medium:   rgba(139, 92, 246, 0.22);
  --accent-text:     #c4b5fd;

  /* Danger */
  --danger-color:    #f87171;
  --danger-hover:    #ef4444;
  --danger-soft:     rgba(248, 113, 113, 0.12);

  /* Success */
  --success-color:   #34d399;
  --success-soft:    rgba(52, 211, 153, 0.12);

  /* Borders */
  --border-color:    rgba(139, 92, 246, 0.14);
  --border-strong:   rgba(139, 92, 246, 0.28);
  --border-subtle:   rgba(80, 60, 140, 0.4);

  /* Shadows */
  --shadow-xs:       0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-soft:     0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.18);
  --shadow-medium:   0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-strong:   0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-accent:   0 8px 24px rgba(139, 92, 246, 0.35);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

html, body {
  height: 100%;
}

html {
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
}

body {
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════
   THEME BACKGROUND + RIPPLE
   ═══════════════════════════════════════ */

.theme-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: background var(--transition-slow);
}

.theme-bg-next {
  clip-path: circle(0px at var(--ripple-x) var(--ripple-y));
}

.theme-bg-next.expanding {
  clip-path: circle(150vmax at var(--ripple-x) var(--ripple-y));
  transition: clip-path 0.78s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */

.navbar {
  background-color: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  gap: 16px;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-wordmark-img {
  display: none;
  height: 34px;
  width: auto;
}

.brand-wordmark-light {
  display: block;
}

html[data-theme="dark"] .brand-wordmark-light {
  display: none;
}

html[data-theme="dark"] .brand-wordmark-dark {
  display: block;
}

/* ── Search ── */
.search-wrapper {
  position: relative;
  display: block;
  width: 380px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
}

.search-input {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0 56px 0 42px;
  border-radius: 50px;
  font-size: 13px;
  line-height: 44px;
  font-family: var(--font-stack);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-placeholder);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--text-muted);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.search-shortcut-btn,
.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.search-shortcut-btn {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  gap: 2px;
  box-shadow: var(--shadow-xs);
}

#searchShortcutBtn,
#searchClearBtn {
  position: absolute;
  top: 50%;
  right: 8px;
  bottom: auto;
  left: auto;
  margin: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.search-shortcut-btn:hover,
.search-shortcut-btn:focus-visible,
.search-clear-btn:hover,
.search-clear-btn:focus-visible {
  border-color: var(--border-color);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.search-shortcut-key,
.search-shortcut-letter {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.search-shortcut-key {
  color: var(--text-secondary);
}

.search-clear-btn {
  width: 30px;
  height: 30px;
  padding: 0;
}

.search-wrapper.has-value .search-shortcut-btn {
  opacity: 0;
  pointer-events: none;
}

.search-wrapper:not(.has-value) .search-clear-btn {
  opacity: 0;
  pointer-events: none;
}

/* ── Nav actions ── */
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.nav-avatar-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-avatar-btn:hover {
  border-color: var(--border-color);
  background: var(--accent-soft);
  box-shadow: var(--shadow-soft);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.nav-more-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 12px 32px rgba(108, 63, 255, 0.38);
}

.btn-white {
  background: transparent;
  border-color: rgba(180, 170, 220, 0.48);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(180, 170, 220, 0.72);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.btn-white svg {
  flex-shrink: 0;
}

.btn-icon-image {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--accent-color);
  box-shadow: none;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: currentColor;
  animation: nova-spin 0.72s linear infinite;
}

@keyframes nova-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
  display: none !important;
}

.app-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6000;
  width: max-content;
  min-width: 112px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  background: color-mix(in srgb, var(--bg-card) 97%, rgba(124, 92, 255, 0.06));
  color: var(--text-primary);
  box-shadow: 0 10px 24px rgba(32, 22, 76, 0.14);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.app-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-tooltip::after {
  content: '';
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: color-mix(in srgb, var(--bg-card) 97%, rgba(124, 92, 255, 0.06));
}

.app-tooltip[data-placement="bottom"]::after {
  top: -7px;
  border-left: 1px solid rgba(124, 92, 255, 0.22);
  border-top: 1px solid rgba(124, 92, 255, 0.22);
}

.app-tooltip[data-placement="top"]::after {
  bottom: -7px;
  border-right: 1px solid rgba(124, 92, 255, 0.22);
  border-bottom: 1px solid rgba(124, 92, 255, 0.22);
}

/* ═══════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════ */

.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.dashboard-skeleton {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 22px 22px;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.10), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 96%, transparent), var(--bg-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.dashboard-loading .dashboard-skeleton {
  opacity: 1;
}

body.dashboard-loading > .navbar,
body.dashboard-loading > .app-container {
  opacity: 0;
}

body.dashboard-loading > .modal-overlay,
body.dashboard-loading > .ad-modal-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

.dashboard-skeleton-topbar,
.dashboard-skeleton-shell,
.dashboard-skeleton-actions,
.dashboard-skeleton-list,
.dashboard-skeleton-header,
.dashboard-skeleton-header-actions,
.dashboard-skeleton-overview,
.dashboard-skeleton-grid {
  display: flex;
  gap: 14px;
}

.dashboard-skeleton-topbar {
  align-items: center;
}

.dashboard-skeleton-wordmark {
  width: 132px;
  height: 30px;
  border-radius: 14px;
}

.dashboard-skeleton-search {
  flex: 1;
  height: 42px;
  border-radius: 999px;
}

.dashboard-skeleton-actions {
  align-items: center;
  margin-left: auto;
}

.dashboard-skeleton-chip {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.dashboard-skeleton-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.dashboard-skeleton-shell {
  flex: 1;
  min-height: 0;
}

.dashboard-skeleton-sidebar,
.dashboard-skeleton-main,
.dashboard-skeleton-right {
  min-height: 0;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 74%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 18px;
}

.dashboard-skeleton-sidebar {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-skeleton-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-skeleton-right {
  width: 330px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-skeleton-title {
  width: 92px;
  height: 16px;
  border-radius: 999px;
}

.dashboard-skeleton-list {
  flex-direction: column;
}

.dashboard-skeleton-row {
  width: 100%;
  height: 42px;
  border-radius: 16px;
}

.dashboard-skeleton-button {
  width: 100%;
  height: 42px;
  border-radius: 16px;
  margin-top: auto;
}

.dashboard-skeleton-header {
  align-items: center;
  justify-content: space-between;
}

.dashboard-skeleton-heading {
  width: 180px;
  height: 24px;
  border-radius: 12px;
}

.dashboard-skeleton-pill {
  width: 132px;
  height: 40px;
  border-radius: 999px;
}

.dashboard-skeleton-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-skeleton-card {
  min-height: 104px;
  border-radius: 22px;
}

.dashboard-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-skeleton-collection,
.dashboard-skeleton-panel {
  min-height: 200px;
  border-radius: 22px;
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    color-mix(in srgb, var(--bg-secondary) 82%, transparent);
}

.skeleton-block::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: skeleton-sheen 1.5s ease-in-out infinite;
}

@keyframes skeleton-sheen {
  to {
    transform: translateX(120%);
  }
}

/* ── Left sidebar — Spaces ── */
.spaces-sidebar {
  width: 236px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 12px;
  overflow-x: hidden;
}

.spaces-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.spaces-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spaces-header-small-btn {
  min-width: 30px;
  width: auto;
  max-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 11px;
  gap: 0;
  justify-content: center;
  overflow: hidden;
  border-color: var(--border-color);
  color: var(--text-muted);
  transition: max-width var(--transition-fast), padding var(--transition-fast), gap var(--transition-fast);
}

.spaces-header-small-btn svg {
  flex-shrink: 0;
}

.spaces-header-small-label {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: max-width var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.spaces-header-small-btn:hover,
.spaces-header-small-btn:focus-visible {
  max-width: 160px;
  padding: 0 10px;
  gap: 6px;
}

.spaces-header-small-btn:hover .spaces-header-small-label,
.spaces-header-small-btn:focus-visible .spaces-header-small-label {
  max-width: 120px;
  opacity: 1;
  transform: translateX(0);
}

.spaces-header-small-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.spaces-header-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast), width var(--transition-fast), margin var(--transition-fast);
}

.spaces-header-icon-btn.is-active {
  background: var(--accent-medium);
  border-color: var(--border-strong);
  color: var(--accent-text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-color) 14%, transparent);
}

.spaces-header-icon-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.spaces-header-actions:has(.spaces-header-small-btn:hover) #btnToggleSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:focus-visible) #btnToggleSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:focus) #btnToggleSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:active) #btnToggleSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:hover) #btnRefreshSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:focus-visible) #btnRefreshSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:focus) #btnRefreshSharedSpaces,
.spaces-header-actions:has(.spaces-header-small-btn:active) #btnRefreshSharedSpaces {
  width: 0;
  margin-right: -2px;
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}

.spaces-header {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.spaces-footer-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.spaces-org-switcher {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spaces-org-switcher.is-hidden {
  display: none;
}

.spaces-org-card-shell {
  position: relative;
  display: flex;
  width: 100%;
}

.spaces-org-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 56px 8px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.spaces-org-card:hover,
.spaces-org-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent-color) 34%, var(--border-color));
}

.spaces-org-card:disabled {
  cursor: default;
}

.spaces-org-card-copy {
  position: absolute;
  left: 16px;
  right: 44px;
  top: 0;
  bottom: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}

.spaces-org-card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  opacity: 0.82;
}

.spaces-org-card-title {
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spaces-org-title-row {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.spaces-org-title-row .spaces-org-card-title,
.spaces-org-title-row .spaces-org-option-title {
  min-width: 0;
}

.spaces-org-shared-indicator {
  width: 16px;
  height: 16px;
}

.spaces-org-shared-indicator svg {
  width: 8px;
  height: 8px;
}

.spaces-org-card-badge {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 18%, var(--border-subtle));
  background: color-mix(in srgb, var(--accent-color) 10%, var(--bg-card));
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.spaces-org-card-shell:hover .spaces-org-card-badge,
.spaces-org-card-shell:focus-within .spaces-org-card-badge {
  opacity: 0;
}

.spaces-org-card-actions {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  padding: 4px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  transition: opacity var(--transition-fast);
}

.spaces-org-card-shell:hover .spaces-org-card-actions,
.spaces-org-card-shell:focus-within .spaces-org-card-actions {
  opacity: 1;
  pointer-events: auto;
}

.spaces-org-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.spaces-org-action-btn.is-open svg {
  transform: rotate(180deg);
}

.spaces-org-action-btn svg {
  transition: transform var(--transition-fast);
}

.spaces-org-option-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  max-height: min(320px, 50vh);
  overflow-y: auto;
}

.spaces-org-option-list.is-open {
  display: flex;
  pointer-events: auto;
}

.spaces-org-option {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 4px 40px 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.spaces-org-option:hover,
.spaces-org-option:focus-visible {
  border-color: var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.spaces-org-option.is-current {
  border-color: color-mix(in srgb, var(--accent-color) 22%, var(--border-color));
  background: color-mix(in srgb, var(--accent-color) 12%, var(--bg-secondary));
  color: var(--text-primary);
}

.spaces-org-option.is-current .spaces-org-option-icon {
  opacity: 1;
}

.spaces-org-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.spaces-org-option-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  opacity: 0.82;
}

.spaces-org-option-title {
  font-size: 12px;
  font-weight: 700;
}

.spaces-org-option-count {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 18%, var(--border-subtle));
  background: color-mix(in srgb, var(--accent-color) 10%, var(--bg-card));
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.spaces-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
}

.spaces-empty-state {
  padding: 14px 12px;
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  color: var(--text-secondary);
}

.spaces-empty-state strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.spaces-empty-state span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.spaces-organization-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 6px 4px;
  margin-top: 6px;
}

.spaces-organization-header:first-child {
  margin-top: 0;
  padding-top: 2px;
}

.spaces-organization-title,
.spaces-organization-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-placeholder);
}

.spaces-shared-loading-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.spaces-shared-loading-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 0;
  color: var(--text-placeholder);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spaces-shared-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-color);
  opacity: 0.7;
  animation: spaces-shared-loading-pulse 1.2s ease-in-out infinite;
}

@keyframes spaces-shared-loading-pulse {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.82;
    transform: scale(1);
  }
}

.space-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  -webkit-user-select: none;
  user-select: none;
}

.space-node-skeleton {
  pointer-events: none;
}

.space-node.space-node-dragging {
  z-index: 8;
  opacity: 0.98;
  filter: saturate(1.08);
  will-change: transform;
}

.space-entry {
  position: relative;
  min-width: 0;
}

.space-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-stack);
  text-align: left;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
}

.space-btn-skeleton {
  cursor: default;
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
}

.space-btn-skeleton .space-btn-main {
  flex: 1;
  min-width: 0;
  display: flex;
}

.space-skeleton-line,
.space-skeleton-count {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--text-placeholder) 24%, transparent);
}

.space-skeleton-line::after,
.space-skeleton-count::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: space-skeleton-shimmer 1.3s ease-in-out infinite;
}

.space-skeleton-line {
  display: block;
  height: 11px;
  width: 100%;
  max-width: 150px;
  border-radius: 999px;
  flex: 1;
}

.space-skeleton-line-title {
  width: 72%;
  min-width: 112px;
}

.space-skeleton-count {
  width: 26px;
  height: 18px;
  border-radius: 999px;
  flex-shrink: 0;
}

@keyframes space-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.space-btn:hover {
  background-color: var(--accent-soft);
  color: var(--text-primary);
}

.space-entry:hover .space-btn,
.space-entry:focus-within .space-btn {
  padding-right: 92px;
}

.space-btn.active {
  background-color: var(--accent-medium);
  border-color: var(--border-strong);
  color: var(--accent-text);
  font-weight: 600;
}

.space-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-btn-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shared-state-indicator {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  opacity: 1;
}

.space-protected-indicator {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.space-protected-indicator svg,
.space-locked-icon svg,
.workspace-locked-state-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-state-indicator svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.space-count {
  font-size: 10px;
  font-family: var(--font-mono);
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 20px;
}

.space-node.locked .space-btn {
  border-color: var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-input), var(--bg-secondary));
}

.space-locked-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  width: calc(100% - 12px);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  text-align: left;
  transition: all var(--transition-fast);
}

.space-locked-hint:hover {
  border-color: var(--accent-color);
  background: var(--accent-medium);
}

.space-locked-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.space-collections-tree {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  margin-top: -2px;
  min-width: 0;
}

.space-node.expanded .space-collections-tree {
  display: flex;
}

.space-row-actions,
.space-collection-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.space-entry:hover .space-row-actions,
.space-entry:focus-within .space-row-actions,
.space-collection-row:hover .space-collection-actions,
.space-collection-row:focus-within .space-collection-actions,
.space-collection-edit .space-collection-actions {
  opacity: 1;
  pointer-events: auto;
}

.space-row-actions {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  flex-shrink: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(240, 238, 255, 0) 0%, rgba(248, 247, 255, 0.94) 26%, rgba(255, 255, 255, 0.98) 100%);
  padding-left: 18px;
  border-radius: 999px;
}

.space-action-btn {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.space-action-btn:hover {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.space-action-btn.space-action-btn-disabled {
  opacity: 0.46;
}

.space-action-btn.space-action-btn-disabled:hover {
  background-color: rgba(148, 163, 184, 0.08);
  border-color: transparent;
  color: var(--text-muted);
}

.space-action-danger:hover {
  background-color: var(--danger-soft);
  border-color: rgba(240, 64, 96, 0.2);
  color: var(--danger-color);
}

.space-drag-handle {
  cursor: grab;
}

.space-drag-handle:active {
  cursor: grabbing;
}

.space-collection-row {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  -webkit-user-select: none;
  user-select: none;
}

.space-collection-row-readonly {
  grid-template-columns: minmax(0, 1fr);
}

.space-collection-row-no-actions .space-collection-item {
  padding-right: 10px;
}

.space-collection-row.space-collection-dragging {
  z-index: 8;
  opacity: 0.98;
  filter: saturate(1.08);
  will-change: transform;
}

.space-collection-row.dragover .space-collection-item {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
}

.space-node.space-node-dragging .space-btn,
.space-collection-row.space-collection-dragging .space-collection-item,
.link-row.link-row-dragging,
.tab-source-item.tab-source-dragging,
.card.card-dragging-origin {
  border-color: var(--border-color);
  background-color: rgba(124, 92, 255, 0.08);
  box-shadow: 0 8px 20px rgba(13, 9, 38, 0.28);
}

.space-node.space-node-dragging .space-drag-handle,
.space-collection-row.space-collection-dragging .space-drag-handle,
.link-row.link-row-dragging .link-drag-handle,
.tab-source-item.tab-source-dragging .tab-source-drag,
.card.card-dragging-origin .card-drag-handle {
  color: var(--accent-color);
}

.space-node[data-drag-position="before"] > .space-entry .space-btn,
.space-collection-row[data-drag-position="before"] .space-collection-item,
.card[data-drag-position="before"],
.link-row[data-drag-position="before"],
.tab-source-item[data-drag-position="before"] {
  box-shadow: inset 0 3px 0 var(--accent-color);
}

.space-node[data-drag-position="after"] > .space-entry .space-btn,
.space-collection-row[data-drag-position="after"] .space-collection-item,
.card[data-drag-position="after"],
.link-row[data-drag-position="after"],
.tab-source-item[data-drag-position="after"] {
  box-shadow: inset 0 -3px 0 var(--accent-color);
}

.link-row[data-drag-position="before"]::before,
.link-row[data-drag-position="after"]::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
  pointer-events: none;
}

.link-row[data-drag-position="before"]::before {
  top: -3px;
}

.link-row[data-drag-position="after"]::after {
  bottom: -3px;
}

.space-collection-item {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-stack);
  text-align: left;
  cursor: grab;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
}

.space-collection-row-readonly .space-collection-item {
  cursor: pointer;
}

.space-collection-item:hover {
  background-color: var(--accent-soft);
  color: var(--text-primary);
}

.space-collection-item.active {
  background-color: var(--accent-medium);
  border-color: var(--border-color);
  color: var(--accent-text);
}

.space-collection-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-collection-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.space-collection-count {
  flex-shrink: 0;
  width: 28px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: right;
}

.space-collection-actions {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  z-index: 2;
  background: linear-gradient(90deg, rgba(240, 238, 255, 0) 0%, rgba(248, 247, 255, 0.94) 26%, rgba(255, 255, 255, 0.98) 100%);
  padding-left: 18px;
  border-radius: 999px;
}

html[data-theme="dark"] .space-row-actions,
html[data-theme="dark"] .space-collection-actions {
  background: linear-gradient(90deg, rgba(9, 8, 41, 0) 0%, rgba(20, 13, 56, 0.85) 26%, rgba(33, 23, 79, 0.95) 100%);
}

.space-collection-row:hover .space-collection-item,
.space-collection-row:focus-within .space-collection-item {
  padding-right: 64px;
}

.space-collection-row-no-actions:hover .space-collection-item,
.space-collection-row-no-actions:focus-within .space-collection-item {
  padding-right: 10px;
}

.space-collection-row-readonly:hover .space-collection-item,
.space-collection-row-readonly:focus-within .space-collection-item {
  padding-right: 10px;
}

.space-collection-edit {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.space-collection-edit-input {
  flex: 1;
  min-width: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-stack);
  outline: none;
}

.space-collection-edit-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Main content area ── */
.main-content {
  flex: 1;
  padding: 20px 24px 28px;
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
  min-width: 0;
}

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

.content-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#btnCreateCollection {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-accent);
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.view-toggle-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  min-width: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 0;
  flex-shrink: 0;
}

.view-toggle-btn:hover {
  transform: none;
  box-shadow: none;
}

.view-toggle-btn svg,
.space-action-btn svg {
  display: block;
  margin: 0 auto;
}

.view-toggle-btn.active {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--accent-color);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.section-title-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-title-org-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   OVERVIEW CARDS
   ═══════════════════════════════════════ */

.workspace-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.overview-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
}

.overview-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.overview-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-color);
  color: var(--accent-color);
  flex-shrink: 0;
}

html[data-theme="dark"] .overview-icon {
  color: var(--accent-text);
}

.overview-meta {
  flex: 1;
  min-width: 0;
}

.overview-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.overview-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.overview-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   COLLECTIONS GRID & CARDS
   ═══════════════════════════════════════ */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-content: start;
  min-width: 0;
  width: 100%;
}

.collections-grid.collections-list-mode {
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 370px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  cursor: grab;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

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

.card.card-dragging-origin {
  opacity: 0.98;
  border-color: var(--border-color);
  transform: scale(0.994);
  box-shadow: 0 10px 22px rgba(13, 9, 38, 0.28);
  will-change: transform;
}

.card.dragover {
  border-color: var(--border-color);
  background-color: rgba(124, 92, 255, 0.09);
  transform: none;
  box-shadow: inset 0 0 0 2px var(--accent-color), 0 10px 26px rgba(108, 63, 255, 0.12);
}

.card.dragover[data-drop-intent="add-inline"] {
  border-color: var(--border-subtle);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.card.dragover[data-drop-intent="add"]::after {
  content: "Soltar para agregar";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-accent);
  pointer-events: none;
}

.card.dragover[data-drop-intent="add-inline"]::after {
  content: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
  min-width: 0;
}

.card-title-container {
  flex: 1;
  min-width: 0;
  -webkit-user-select: none;
  user-select: none;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-stack);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.card-title-with-indicator {
  width: auto;
  flex: 0 1 auto;
  max-width: 100%;
}

.card-title:focus {
  background-color: var(--bg-input);
  box-shadow: 0 0 0 2px var(--accent-color);
}

.card-stats {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 6px;
  margin-top: 1px;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
}

.card-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.card-drag-handle {
  cursor: grab;
}

.card-drag-handle:active {
  cursor: grabbing;
}

.card-flash {
  animation: cardFlash 1.1s ease;
}

@keyframes cardFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 63, 255, 0);
  }
  30% {
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-medium);
  }
  100% {
    box-shadow: var(--shadow-soft);
  }
}

.collections-grid.collections-list-mode .card {
  height: auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.collections-grid.collections-list-mode .card-header {
  width: 100%;
  min-width: 0;
}

.collections-grid.collections-list-mode .links-list {
  max-height: 260px;
  min-width: 0;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   ICON BUTTONS
   ═══════════════════════════════════════ */

.icon-btn {
  background: transparent;
  border: 1.5px solid transparent;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-stack);
  transition: all var(--transition-fast);
}

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

.icon-btn-session {
  color: #3b82f6;
}
.icon-btn-session:hover {
  background-color: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.icon-btn-inbox {
  color: var(--accent-color);
}
.icon-btn-inbox:hover {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--accent-hover);
}

.icon-btn-incognito {
  color: var(--text-secondary);
}

.icon-btn-incognito svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn-incognito:hover {
  background-color: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.icon-btn-danger:hover {
  background-color: var(--danger-soft);
  border-color: rgba(240, 64, 96, 0.2);
  color: var(--danger-color);
}

/* ═══════════════════════════════════════
   LINKS LIST (inside cards)
   ═══════════════════════════════════════ */

.links-list {
  flex: 1;
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
  min-width: 0;
}

.link-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background-color: var(--bg-input);
  cursor: grab;
  transition: all var(--transition-fast);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.link-row.link-row-no-drag {
  grid-template-columns: minmax(0, 1fr);
}

.link-row.link-row-dragging {
  opacity: 0.98;
  will-change: transform;
}

.link-row.link-row-floating {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  margin: 0;
  transform: translateY(var(--drag-translate-y, 0px));
  box-shadow: var(--shadow-medium);
}

.link-row.dragover {
  background-color: rgba(124, 92, 255, 0.06);
  border-color: var(--border-color);
}

.collection-drop-placeholder {
  min-height: 52px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--accent-color);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 42px;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.collection-cross-collection-placeholder {
  border-color: var(--accent-color);
  background: rgba(124, 92, 255, 0.08);
}

.link-row.link-row-drop-placeholder {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  background: var(--bg-input);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
  pointer-events: none;
  position: relative;
}

.link-row.link-row-cross-collection-placeholder {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  background: var(--bg-input);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
  pointer-events: none;
  position: relative;
}

.link-row.link-row-drop-placeholder::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-md) - 3px);
  border: 1.5px dashed color-mix(in srgb, var(--accent-color) 82%, white 18%);
  background: rgba(124, 92, 255, 0.04);
  pointer-events: none;
}

.link-row.link-row-cross-collection-placeholder::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-md) - 3px);
  border: 1.5px dashed color-mix(in srgb, var(--accent-color) 82%, white 18%);
  background: rgba(124, 92, 255, 0.07);
  pointer-events: none;
}

.link-row-drop-placeholder .collection-drop-placeholder-handle {
  color: var(--text-placeholder);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.link-row-cross-collection-placeholder .collection-drop-placeholder-handle {
  color: var(--accent-color);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.link-row-drop-placeholder .collection-drop-placeholder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.link-row-cross-collection-placeholder .collection-drop-placeholder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.link-row-drop-placeholder .collection-drop-placeholder-line {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-placeholder) 34%, transparent);
}

.link-row-cross-collection-placeholder .collection-drop-placeholder-line {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color) 28%, transparent);
}

.link-row-drop-placeholder .collection-drop-placeholder-line-title {
  width: min(220px, 58%);
}

.link-row-cross-collection-placeholder .collection-drop-placeholder-line-title {
  width: min(220px, 58%);
}

.link-row-drop-placeholder .collection-drop-placeholder-line-url {
  width: min(140px, 34%);
  height: 7px;
  opacity: 0.78;
}

.link-row-cross-collection-placeholder .collection-drop-placeholder-line-url {
  width: min(140px, 34%);
  height: 7px;
  opacity: 0.78;
}

.link-item {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: inherit;
  transition: all var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.link-item-collection {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.link-drag-handle {
  width: 22px;
  min-height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: grab;
}

.link-drag-handle:active {
  cursor: grabbing;
}

.link-row:hover {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
}

.link-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
}

.link-favicon-fallback {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}

.link-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.link-item-collection .link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.link-url {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.link-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 6px;
}

.tag-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-color);
  color: var(--accent-text);
  font-family: var(--font-mono);
}

.tag-chip-sponsored {
  background: rgba(255, 159, 67, 0.12);
  border-color: rgba(255, 159, 67, 0.28);
  color: #d97706;
}

html[data-theme="dark"] .tag-chip-sponsored {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.24);
  color: #fbbf24;
}

.sponsored-countdown-chip {
  background: rgba(108, 63, 255, 0.12);
  border-color: rgba(108, 63, 255, 0.22);
  color: var(--accent-text);
}

.sponsored-progress-track {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(108, 63, 255, 0.12);
  overflow: hidden;
}

.sponsored-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b 0%, #8b5cf6 100%);
  box-shadow: 0 0 12px rgba(108, 63, 255, 0.28);
  transition: width 0.22s linear;
}

.empty-card-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  gap: 8px;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card.dragover .empty-card-state {
  display: none;
}

/* ═══════════════════════════════════════
   RIGHT SIDEBAR
   ═══════════════════════════════════════ */

.sidebar-right {
  width: 320px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.tabs-count-badge {
  background-color: var(--accent-soft);
  border: 1.5px solid var(--border-color);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.sidebar-tabs {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-tab {
  flex: 1;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-stack);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-tab.active {
  background: var(--accent-medium);
  border-color: var(--border-strong);
  color: var(--accent-text);
}

.sidebar-pane {
  flex: 1;
  overflow-y: auto;
  overflow-y: overlay;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.sidebar-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-switch-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-switch-subtitle {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
}

.sidebar-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.sidebar-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sidebar-switch-slider {
  position: absolute;
  inset: 0;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.sidebar-switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.sidebar-switch input:checked + .sidebar-switch-slider {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
}

.sidebar-switch input:checked + .sidebar-switch-slider::after {
  transform: translateX(20px);
  background-color: var(--accent-color);
}

.hidden {
  display: none !important;
}

/* ── Tab groups ── */
.group-container {
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.group-header-bar {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: var(--radius-sm);
  margin: -1px -1px 2px;
}

.group-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.group-header-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.group-header-actions .icon-btn {
  width: 26px;
  height: 26px;
}

.group-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tab-source-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
  cursor: grab;
  position: relative;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background-color: var(--bg-secondary);
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
}

#sidebarOpenTabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 18px;
}

.tab-source-item.tab-source-dragging {
  opacity: 0.98;
  will-change: transform;
}

.tab-source-item.dragover {
  background-color: rgba(124, 92, 255, 0.06);
  border-color: var(--border-color);
  box-shadow: inset 0 2px 0 var(--accent-color);
}

.tab-source-item:hover {
  background-color: var(--accent-soft);
  border-color: var(--border-color);
}

.tab-source-drag {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: grab;
  flex-shrink: 0;
}

.tab-source-drag:active {
  cursor: grabbing;
}

.space-node.space-node-dragging .space-btn,
.space-collection-row.space-collection-dragging .space-collection-item,
.link-row.link-row-dragging,
.tab-source-item.tab-source-dragging,
.card.card-dragging-origin,
.space-node.space-node-dragging .space-drag-handle,
.space-collection-row.space-collection-dragging .space-drag-handle,
.link-row.link-row-dragging .link-drag-handle,
.tab-source-item.tab-source-dragging .tab-source-drag,
.card.card-dragging-origin .card-drag-handle {
  cursor: grabbing;
}

.tab-source-info {
  flex: 1;
  min-width: 0;
}

.tab-source-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-source-url {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-sidebar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Focus panel ── */
.focus-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.notes-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
  font-family: var(--font-stack);
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notes-textarea::placeholder {
  color: var(--text-placeholder);
}

.notes-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.todo-input-row {
  display: flex;
  gap: 8px;
}

.todo-input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
  font-family: var(--font-stack);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.todo-input::placeholder {
  color: var(--text-placeholder);
}

.todo-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.workspace-locked-state,
.workspace-locked-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1.5px dashed var(--border-color);
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-input));
  color: var(--text-secondary);
}

.workspace-locked-state {
  min-height: 240px;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.workspace-locked-state-icon {
  font-size: 28px;
}

.workspace-locked-state-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.workspace-locked-state-copy {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.55;
}

.workspace-locked-panel {
  min-height: 140px;
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 13px;
  font-weight: 600;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.todo-item:hover {
  border-color: var(--border-strong);
}

.todo-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  flex-shrink: 0;
}

.todo-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-text.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ═══════════════════════════════════════
   MODALS
   ═══════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(14, 11, 30, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  padding: 20px 16px;
  transition: opacity var(--transition-fast);
}

html[data-theme="dark"] .modal-overlay {
  background-color: rgba(5, 3, 14, 0.75);
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 440px;
  max-width: 92vw;
  max-height: calc(100vh - 40px);
  padding: 24px;
  box-shadow: var(--shadow-strong);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-med), opacity var(--transition-fast);
  overflow-y: auto;
  margin: auto 0;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 14px;
}

.form-group-panel {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(124, 92, 255, 0.03)),
    var(--bg-secondary);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-stack);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.25 6.25 8 10l3.75-3.75' stroke='%238e8bb0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) 50%;
  background-size: 14px 14px;
  background-repeat: no-repeat;
}

select.form-input:hover {
  border-color: var(--border-color);
  background-color: var(--bg-tertiary);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-input) 92%, white 8%) 0%, var(--bg-input) 100%);
  color: var(--text-primary);
  padding: 10px 14px;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 24px rgba(17, 12, 40, 0.08);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--border-color);
  background: var(--bg-tertiary);
}

.custom-select-trigger:focus-visible {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 30px rgba(17, 12, 40, 0.1);
  outline: none;
}

.custom-select-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.custom-select-label {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.custom-select-icon svg {
  width: 16px;
  height: 16px;
}

.custom-select-icon path {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-select.is-open .custom-select-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.custom-select-panel {
  position: absolute;
  z-index: 320;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--border-color) 75%, transparent 25%);
  border-radius: calc(var(--radius-md) + 4px);
  background-color: var(--bg-secondary);
  box-shadow:
    0 18px 40px rgba(17, 12, 40, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

#moveCollectionModal .modal,
#moveWorkspaceModal .modal,
#mergeCollectionModal .modal {
  overflow: visible;
}

#moveCollectionModal .form-group-panel,
#moveWorkspaceModal .form-group-panel,
#mergeCollectionModal .form-group-panel {
  overflow: visible;
}

.custom-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-tertiary) 45%);
  color: var(--text-primary);
  outline: none;
}

.custom-select-option.is-selected {
  background: color-mix(in srgb, var(--accent-soft) 65%, transparent 35%);
  color: var(--accent-color);
}

.form-input::placeholder {
  color: var(--text-placeholder);
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.emoji-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.emoji-btn {
  width: 40px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.emoji-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.emoji-btn.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--accent-soft);
}

.form-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.sync-confirm-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-confirm-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sync-confirm-title {
  margin-bottom: 0;
}

.sync-confirm-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.sync-confirm-summary {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(124, 92, 255, 0.03)),
    var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.sync-confirm-actions {
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-left: 4px solid var(--accent-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  min-width: 240px;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.toast-message {
  line-height: 1.4;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left-color: var(--success-color);
}

.toast-error {
  border-left-color: var(--danger-color);
}

.toast-loading {
  min-width: 280px;
}

.toast-progress {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), #9f7aea);
  animation: toast-progress-slide 1.1s ease-in-out infinite;
}

@keyframes toast-progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

.import-progress-overlay {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.import-progress-overlay.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.import-progress-card {
  min-width: 320px;
  max-width: min(92vw, 420px);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.import-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.import-progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.import-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), #9f7aea);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.35);
  transition: width 0.28s ease;
}

/* ═══════════════════════════════════════
   POPUP SHELL
   ═══════════════════════════════════════ */

.popup-shell {
  width: 380px;
  height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-shell .navbar {
  padding: 10px 14px;
}

.popup-shell .search-wrapper {
  width: 100%;
}

.popup-shell .app-container {
  flex-direction: column;
}

.popup-shell .main-content {
  padding: 14px;
  overflow-y: auto;
  overflow-y: overlay;
}

.popup-save-btn {
  gap: 8px;
  min-width: 142px;
  justify-content: center;
  padding-inline: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 94%, white 6%), var(--accent-color));
  border-color: color-mix(in srgb, var(--accent-color) 88%, black 12%);
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-color) 34%, transparent);
}

.popup-save-btn:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-hover) 92%, white 8%), var(--accent-hover));
  border-color: color-mix(in srgb, var(--accent-hover) 88%, black 12%);
  color: #fff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent-color) 42%, transparent);
}

.popup-save-btn:disabled,
.popup-save-btn:disabled:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 82%, white 18%), color-mix(in srgb, var(--accent-color) 88%, black 12%));
  border-color: color-mix(in srgb, var(--accent-color) 72%, transparent);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  opacity: 0.72;
  transform: none;
}

.popup-save-btn.is-saved {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-hover) 88%, white 12%), var(--accent-hover));
  border-color: color-mix(in srgb, var(--accent-hover) 86%, black 14%);
  color: #fff;
}

.popup-save-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-save-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.popup-save-btn-label {
  line-height: 1;
}

.popup-open-btn {
  min-width: 118px;
  min-height: 42px;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-secondary) 82%, var(--bg-tertiary) 18%);
  border-color: color-mix(in srgb, var(--accent-color) 18%, var(--border-subtle));
  color: var(--accent-color);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 12%, transparent),
    0 6px 18px color-mix(in srgb, var(--accent-color) 10%, transparent);
}

.popup-open-btn:hover,
.popup-open-btn:focus-visible {
  background: color-mix(in srgb, var(--bg-secondary) 74%, var(--accent-soft) 26%);
  border-color: color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
  color: var(--accent-hover);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 18%, transparent),
    0 10px 24px color-mix(in srgb, var(--accent-color) 16%, transparent);
  outline: none;
}

.popup-open-btn:active {
  transform: scale(0.98);
}

html[data-theme="dark"] .popup-open-btn {
  background: color-mix(in srgb, var(--bg-secondary) 78%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--accent-color) 34%, var(--border-subtle));
  color: var(--accent-text);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 18%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .popup-open-btn:hover,
html[data-theme="dark"] .popup-open-btn:focus-visible {
  background: color-mix(in srgb, var(--bg-tertiary) 78%, var(--accent-soft) 22%);
  border-color: color-mix(in srgb, var(--accent-color) 42%, var(--border-color));
  color: #ffffff;
}

.popup-neutral-btn,
.popup-neutral-btn:hover,
.popup-neutral-btn:focus-visible,
.popup-neutral-btn:active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(24, 22, 46, 0.08);
  color: var(--text-primary);
  box-shadow: none;
  transform: none;
}

.popup-shell .spaces-sidebar {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid var(--border-color);
}

.popup-shell .sidebar-right {
  width: 100%;
  border-left: none;
  border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════
   SETTINGS MODAL
   ═══════════════════════════════════════ */

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-input);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: min(100%, 340px);
}

.settings-actions[hidden] {
  display: none !important;
}

.settings-actions .btn {
  flex: 1;
  justify-content: center;
}

.settings-actions-stack {
  width: 100%;
}

.settings-actions-stack .btn {
  min-height: 46px;
  border-radius: 999px;
}

.settings-actions-stack .btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.settings-row-stack {
  align-items: stretch;
  flex-direction: column;
}

.settings-row-stack .settings-row-title {
  gap: 6px;
}

.settings-row-stack .settings-row-title span {
  line-height: 1.5;
}

.modal-switch-row {
  margin-bottom: 10px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}

.modal-narrow {
  width: 560px;
}

.sync-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.account-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 72%, var(--bg-input));
}

.account-summary-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
}

.account-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.account-summary-copy strong {
  font-size: 14px;
  color: var(--text-primary);
}

.account-summary-copy span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.account-status-note,
.account-device-note {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-tertiary) 45%, transparent);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.account-status-note {
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.account-status-note.is-error {
  border-color: rgba(240, 64, 96, 0.22);
  background: rgba(240, 64, 96, 0.08);
  color: var(--danger-color);
}

.account-status-note.is-success {
  border-color: rgba(12, 192, 138, 0.22);
  background: rgba(12, 192, 138, 0.1);
  color: var(--success-color);
}

.account-status-note.is-syncing {
  border-color: rgba(124, 92, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.14), rgba(124, 92, 255, 0.06), rgba(124, 92, 255, 0.14)),
    color-mix(in srgb, var(--bg-tertiary) 52%, transparent);
  color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.04), 0 16px 32px rgba(124, 92, 255, 0.12);
  background-size: 200% 100%;
  animation: sync-status-wave 1.8s linear infinite;
}

.account-status-note.is-pending {
  border-color: rgba(255, 122, 66, 0.26);
  background: rgba(255, 122, 66, 0.08);
  color: #ff8a57;
}

@keyframes sync-status-wave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.account-devices-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 55%, var(--bg-input));
}

.account-transfers-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 55%, var(--bg-input));
}

.account-devices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.account-devices-header strong {
  font-size: 13px;
  color: var(--text-primary);
}

.account-devices-header span {
  font-size: 12px;
  color: var(--text-secondary);
}

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

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

.account-device-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
}

.account-transfer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
}

.account-device-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 700;
}

.account-transfer-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 700;
}

.account-device-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.account-transfer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.account-device-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-transfer-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-device-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-transfer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.account-device-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 192, 138, 0.12);
  color: var(--success-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.account-transfer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 87, 0.14);
  color: #ff8a57;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.account-device-meta,
.account-device-submeta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.account-transfer-meta,
.account-transfer-submeta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.account-transfer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

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

.share-modal-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-modal-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(124, 92, 255, 0.10);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-modal-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.share-target-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 68%, var(--bg-input));
}

.share-target-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.96), rgba(154, 118, 255, 0.96));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}

.share-target-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-target-copy strong {
  font-size: 14px;
  color: var(--text-primary);
}

.share-target-copy span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.share-invite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 122px;
  gap: 12px;
  align-items: end;
}

.share-invite-action .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
}

.share-status-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-tertiary) 45%, transparent);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.share-status-note.is-error {
  border-color: rgba(240, 64, 96, 0.22);
  background: rgba(240, 64, 96, 0.08);
  color: var(--danger-color);
}

.share-status-note.is-success {
  border-color: rgba(12, 192, 138, 0.24);
  background: rgba(12, 192, 138, 0.10);
  color: var(--success-color);
}

.share-status-note.is-loading {
  border-color: rgba(124, 92, 255, 0.22);
  background: rgba(124, 92, 255, 0.08);
  color: var(--accent-color);
}

.share-status-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: -4px;
}

.share-status-actions[hidden] {
  display: none;
}

.share-status-actions .btn {
  min-height: 40px;
  border-radius: 999px;
}

.share-transfer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 87, 0.24);
  background: rgba(255, 138, 87, 0.08);
}

.share-transfer-panel[hidden] {
  display: none;
}

.share-transfer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.share-transfer-copy strong {
  font-size: 13px;
  color: var(--text-primary);
}

.share-transfer-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.share-transfer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.share-members-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 60%, var(--bg-input));
}

.share-audit-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 60%, var(--bg-input));
}

.share-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-members-header strong {
  font-size: 13px;
  color: var(--text-primary);
}

.share-members-header span {
  font-size: 12px;
  color: var(--text-secondary);
}

.share-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.share-member-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: flex-start;
  column-gap: 12px;
  row-gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}

.share-member-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 800;
}

.share-member-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-member-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.share-member-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.share-member-email,
.share-member-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.share-member-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.share-member-badge.is-owner {
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-color);
}

.share-member-badge.is-editor {
  background: rgba(12, 192, 138, 0.12);
  color: var(--success-color);
}

.share-member-badge.is-viewer {
  background: rgba(142, 139, 176, 0.16);
  color: var(--text-secondary);
}

.share-member-controls {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 0;
}

.share-member-role-select {
  min-width: 126px;
}

.share-member-empty {
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px dashed var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

.share-audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.share-audit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}

.share-audit-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.share-audit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.share-audit-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-audit-meta,
.share-audit-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.share-audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.share-audit-badge.is-success {
  background: rgba(12, 192, 138, 0.12);
  color: var(--success-color);
}

.share-audit-badge.is-error {
  background: rgba(255, 93, 125, 0.12);
  color: var(--danger-color);
}

.sync-provider-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sync-provider-btn:hover {
  border-color: var(--border-color);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.sync-provider-btn[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sync-provider-btn[disabled]:hover {
  border-color: var(--border-subtle);
  background: var(--bg-secondary);
  transform: none;
}

.sync-provider-btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.sync-provider-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

@media (max-width: 760px) {
  .share-invite-grid {
    grid-template-columns: 1fr;
  }

  .share-member-item {
    flex-direction: column;
  }

  .share-member-controls {
    width: 100%;
    margin-left: 0;
  }

  .share-member-role-select,
  .share-member-controls .btn {
    width: 100%;
  }
}

#btnPushToCloud.is-loading,
#btnPullFromCloud.is-loading {
  box-shadow: 0 14px 28px rgba(124, 92, 255, 0.18);
}

#btnPushToCloud.is-loading {
  border-color: rgba(124, 92, 255, 0.34);
  color: var(--accent-color);
  background: rgba(124, 92, 255, 0.08);
}

#btnPullFromCloud.is-loading {
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.92), rgba(154, 118, 255, 0.96)),
    var(--accent-color);
  border-color: rgba(124, 92, 255, 0.84);
  color: #fff;
}

.settings-row-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-row-title strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-row-title span {
  font-size: 12px;
  color: var(--text-muted);
}

.import-compatibility-note {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  background: var(--accent-soft);
}

.import-compatibility-note strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.import-compatibility-note span {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.import-inline-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.10), rgba(124, 92, 255, 0.04)),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.import-inline-status[hidden] {
  display: none !important;
}

.import-inline-status[data-state="success"] {
  border-color: rgba(12, 192, 138, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 192, 138, 0.10), rgba(12, 192, 138, 0.04)),
    var(--bg-card);
}

.import-inline-status[data-state="error"] {
  border-color: rgba(240, 64, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(240, 64, 96, 0.10), rgba(240, 64, 96, 0.04)),
    var(--bg-card);
}

.import-inline-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.import-inline-status-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.import-inline-status-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.import-inline-status-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.import-inline-pill {
  flex-shrink: 0;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.import-inline-status[data-state="success"] .import-inline-pill {
  color: var(--success-color);
  border-color: rgba(12, 192, 138, 0.22);
}

.import-inline-status[data-state="error"] .import-inline-pill {
  color: var(--danger-color);
  border-color: rgba(240, 64, 96, 0.22);
}

.import-inline-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.import-inline-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), #9f7aea);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.35);
  transition: width 0.28s ease;
}

.import-inline-status[data-state="success"] .import-inline-bar {
  background: linear-gradient(90deg, var(--success-color), #34d399);
  box-shadow: 0 0 18px rgba(12, 192, 138, 0.28);
}

.import-inline-status[data-state="error"] .import-inline-bar {
  background: linear-gradient(90deg, var(--danger-color), #fb7185);
  box-shadow: 0 0 18px rgba(240, 64, 96, 0.28);
}

.pin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.pin-security-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
}

.pin-security-status.is-configured {
  color: var(--success-color);
  background: var(--success-soft);
  border-color: rgba(12, 192, 138, 0.22);
}

.pin-unlock-copy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pin-digit-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--pin-code-box-size));
  gap: var(--pin-code-gap);
  align-items: center;
  width: var(--pin-code-width);
  max-width: 100%;
}

.pin-digit-input {
  width: var(--pin-code-box-size);
  height: var(--pin-code-box-size);
  border-radius: 16px;
  border: 1.5px solid rgba(120, 92, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text-primary);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.pin-digit-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

.pin-unlock-grid {
  margin: 2px auto 0;
}

.pin-visibility-row {
  width: var(--pin-code-width);
  margin-left: auto;
  margin-right: auto;
}

#accountModal .pin-visibility-row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#pinUnlockModal .modal {
  max-width: 420px;
  text-align: left;
}

#pinUnlockModal .form-label {
  display: none;
}

#pinUnlockModal .pin-unlock-error {
  width: var(--pin-code-width);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#pinUnlockModal .pin-visibility-row {
  width: var(--pin-code-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

#pinUnlockModal .pin-visibility-row .sidebar-switch-copy {
  text-align: left;
  align-items: flex-start;
}

.pin-unlock-actions {
  width: var(--pin-code-width);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pin-unlock-primary {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 14px;
}

.btn.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  width: 100%;
  justify-content: center;
  padding: 8px 0;
  box-shadow: none;
  transform: none;
}

.btn.btn-link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}

.pin-unlock-error {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger-color);
  margin-bottom: 14px;
}

.settings-segment {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.segment-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-stack);
  transition: all var(--transition-fast);
}

.segment-btn.active {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* ── Theme toggle switch ── */
.theme-switch {
  width: 160px;
  height: 62px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-tertiary));
  border: 1.5px solid var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.theme-switch:active {
  transform: scale(0.97);
}

.theme-switch[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.theme-switch-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  color: var(--accent-color);
  z-index: 2;
  position: relative;
  pointer-events: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

html[data-theme="dark"] .theme-switch-icon {
  color: var(--accent-text);
}

/* Ícono activo más brillante */
html[data-theme="light"] .theme-switch-icon:first-of-type {
  opacity: 1;
}
html[data-theme="dark"] .theme-switch-icon:last-of-type {
  opacity: 1;
}

.theme-switch-knob {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--accent-color);
  box-shadow: var(--shadow-accent);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

html[data-theme="dark"] .theme-switch-knob {
  transform: translateX(96px);
}

/* ── Palette dots ── */
.palette-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.palette-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.palette-dot:hover {
  transform: scale(1.15);
}

.palette-dot.active {
  border-color: var(--accent-color);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */

.landing-shell {
  overflow: auto;
}

body.dashboard-ad-mode {
  overflow: hidden;
}

body.dashboard-ad-mode > .navbar,
body.dashboard-ad-mode > .app-container,
body.dashboard-ad-mode > .modal-overlay,
body.dashboard-ad-mode > #demoBanner {
  display: none !important;
}

.landing-main {
  flex: 1;
  overflow: auto;
  padding: 28px 24px 60px;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 36px;
  border-radius: var(--radius-xl);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(50vh 36vh at 10% 20%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(40vh 30vh at 90% 10%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(44vh 32vh at 80% 95%, rgba(12, 192, 138, 0.06), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.hero-title {
  font-size: 46px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  max-width: 700px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.hero-pill-hash {
  color: var(--accent-color);
  margin-right: 6px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-showcase {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase-card {
  position: relative;
  border-radius: 28px;
  border: 1.5px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-showcase-card-main {
  width: min(100%, 360px);
  padding: 28px;
  z-index: 2;
}

.hero-showcase-card-floating {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 220px;
  padding: 18px 18px 16px;
  z-index: 3;
  transform: rotate(-4deg);
}

.hero-showcase-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.hero-showcase-title {
  font-size: 30px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
}

.hero-showcase-metric {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.hero-showcase-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-color);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.hero-showcase-text {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.hero-showcase-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12) 35%, rgba(108, 63, 255, 0.28) 68%, rgba(108, 63, 255, 0.08) 100%);
  filter: blur(4px);
  right: 42px;
  top: 6px;
  opacity: 0.92;
}

/* Features */
.features-grid {
  max-width: 1080px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-medium);
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-shell {
  max-width: 1080px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.editorial-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.editorial-card-primary {
  background:
    radial-gradient(55vh 32vh at 10% 8%, var(--accent-soft) 0%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 58%, var(--bg-card)) 0%, var(--bg-card) 100%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-medium);
}

.logo-cloud {
  padding: 18px 0 4px;
}

.logo-cloud-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.logo-cloud-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.logo-cloud-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: logoCloudScroll 28s linear infinite;
}

.logo-cloud-item {
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.8px;
  opacity: 0.72;
  white-space: nowrap;
}

@keyframes logoCloudScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% + 21px));
  }
}

.promise-contract {
  padding: 34px 36px;
  border-radius: 32px;
  border: 1.5px solid var(--border-strong);
  background:
    radial-gradient(55vh 30vh at 10% 12%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 56%, var(--bg-card)) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-medium);
}

.promise-contract-copy {
  max-width: 860px;
}

.promise-contract-title {
  margin-top: 10px;
  max-width: 10ch;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.promise-contract-desc {
  margin-top: 28px;
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.72;
}

.promise-contract-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.promise-contract-tag {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.promise-contract-tag::before {
  content: '✓';
  margin-right: 10px;
  color: var(--accent-color);
  font-weight: 900;
}

.promise-contract-actions {
  margin-top: 24px;
}

.feature-editorial-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 4px;
}

.feature-editorial-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}

.feature-editorial-heading h2 span {
  color: var(--accent-color);
}

.feature-mini-shell {
  background: transparent;
  border: none;
  box-shadow: none;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-mini-card {
  min-height: 292px;
  padding: 20px;
  border-radius: 24px;
  border: 1.5px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 84%, transparent);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-medium);
  background:
    radial-gradient(26vh 18vh at 100% 0%, rgba(108, 63, 255, 0.1) 0%, transparent 58%),
    color-mix(in srgb, var(--bg-secondary) 88%, transparent);
}

.feature-mini-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-mini-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.feature-mini-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.feature-mini-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.feature-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.feature-mini-tag {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(108, 63, 255, 0.18);
  background: rgba(108, 63, 255, 0.08);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.feedback-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border-radius: 28px;
  border: 1.5px solid var(--border-subtle);
  background:
    radial-gradient(55vh 30vh at 10% 10%, var(--accent-soft) 0%, transparent 58%),
    color-mix(in srgb, var(--bg-card) 90%, transparent);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.feedback-link-card:hover,
.feedback-link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--border-strong);
  outline: none;
}

.feedback-link-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.feedback-link-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.feedback-link-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 760px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.section-heading p {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card-highlight {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-medium);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 60%, var(--bg-card)) 0%, var(--bg-card) 100%);
}

.pricing-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.pricing-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.pricing-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-list li {
  position: relative;
  padding-left: 16px;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-color);
}

.sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card-large {
  min-height: 150px;
}

.roadmap-board {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.roadmap-board-hero {
  padding: 28px 28px 24px;
  background:
    radial-gradient(60vh 35vh at 15% 10%, color-mix(in srgb, var(--accent-color) 26%, transparent) 0%, transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 72%, #ff5d8f 28%) 0%, color-mix(in srgb, var(--accent-hover) 74%, #f1537f 26%) 100%);
  color: #fff;
}

.roadmap-board-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.86;
}

.roadmap-board-title {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.6px;
  max-width: 760px;
}

.roadmap-board-subtitle {
  margin-top: 12px;
  max-width: 700px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.roadmap-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1.5px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
}

.roadmap-toolbar-item {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.roadmap-toolbar-cta {
  margin-left: auto;
}

.roadmap-list {
  display: flex;
  flex-direction: column;
}

.roadmap-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 24px;
  border-top: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
}

.roadmap-item:first-child {
  border-top: none;
}

.roadmap-item-copy {
  min-width: 0;
}

.roadmap-item-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.roadmap-item-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
}

.roadmap-item-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.roadmap-item-status-progress {
  background: rgba(12, 192, 138, 0.12);
  color: var(--success-color);
}

.roadmap-vote {
  align-self: center;
  min-width: 72px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.landing-footer {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.landing-footer-copy {
  color: var(--text-muted);
}

.landing-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.landing-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.landing-footer-links a:hover,
.landing-footer-links a:focus-visible {
  color: var(--accent-color);
  outline: none;
}

.ad-modal-overlay {
  position: relative;
  z-index: 180;
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(60vw 60vw at 12% 18%, rgba(108, 63, 255, 0.22), transparent 55%),
    radial-gradient(42vw 42vw at 88% 12%, rgba(12, 192, 138, 0.14), transparent 55%),
    rgba(8, 7, 21, 0.9);
  backdrop-filter: blur(18px);
  transition: opacity var(--transition-fast);
}

.ad-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.ad-modal-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.ad-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-modal-countdown {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ad-skip-btn {
  min-width: 170px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.ad-skip-btn:hover,
.ad-skip-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.ad-skip-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ad-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ad-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b7bff 0%, #6c3fff 70%, #4f22df 100%);
  box-shadow: 0 0 24px rgba(108, 63, 255, 0.38);
}

.ad-modal-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.ad-modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
}

.ad-modal-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  color: #fff;
  max-width: 760px;
}

.ad-modal-copy {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(235, 233, 255, 0.78);
}

.ad-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.ad-modal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.ad-modal-card strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.ad-modal-card span {
  color: rgba(235, 233, 255, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

.demo-frame {
  width: 100%;
  height: 700px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background-color: var(--bg-primary);
}

.demo-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1100px) {
  .workspace-overview {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-right {
    width: 280px;
  }
}

@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .spaces-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .sidebar-right {
    width: 100%;
    height: 300px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .workspace-overview {
    grid-template-columns: 1fr;
  }
  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .sync-grid,
  .editorial-band,
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .feature-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-showcase {
    min-height: 250px;
  }
  .hero-showcase-card-main,
  .hero-showcase-card-floating {
    width: 100%;
    max-width: none;
  }
  .hero-showcase-card-floating {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 14px;
    transform: none;
  }
  .hero-showcase-orb {
    right: 18px;
    top: 8px;
    width: 130px;
    height: 130px;
  }
  .promise-contract {
    padding: 26px 22px;
  }
  .promise-contract-title {
    max-width: none;
  }
  .promise-contract-desc {
    font-size: 15px;
  }
  .roadmap-toolbar {
    flex-wrap: wrap;
  }
  .roadmap-toolbar-cta {
    margin-left: 0;
  }
  .roadmap-item {
    grid-template-columns: 1fr;
  }
  .roadmap-vote {
    align-self: flex-start;
  }
  .ad-modal-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 34px;
  }
  .ad-modal-shell {
    padding: 18px;
  }
  .ad-modal-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .feature-mini-grid {
    grid-template-columns: 1fr;
  }
  .feature-mini-card {
    min-height: 248px;
  }
}

.space-row {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: var(--radius-md);
}

.space-row:hover .space-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.space-delete-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.space-delete-btn:hover {
  background: var(--danger-soft);
  color: var(--danger-color);
}

.space-row .space-btn {
  flex: 1;
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 64, 96, 0.28);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 64, 96, 0.38);
}

.delete-space-icon {
  width: 48px;
  height: 48px;
  background: var(--danger-soft);
  border: 1.5px solid rgba(240, 64, 96, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger-color);
  margin-bottom: 14px;
}

.delete-space-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.delete-space-desc strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* ═══════════════════════════════════════
   DEMO BANNER (extension context)
   ═══════════════════════════════════════ */

#demoBanner {
  background: linear-gradient(135deg, var(--accent-color), #a855f7);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* ═══════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════ */

::selection {
  background: var(--accent-medium);
  color: var(--accent-text);
}
