@font-face {
  font-family: "Inter var";
  src: url("/static/fonts/inter-roman.var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter var";
  src: url("/static/fonts/inter-italic.var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono var";
  src: url("/static/fonts/jetbrainsmono.var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #0b1020;
  --bg-elev: #0d1426;
  --card: rgba(255,255,255,0.04);
  --surface-1: var(--card);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.08);
  --inset-1: rgba(0,0,0,0.22);
  --hairline: rgba(255,255,255,0.07);
  --muted: #a1b3d6;
  --fg: #ffffff;
  --accent: #3b82f6; /* primary */
  --accent-secondary: #8b5cf6;
  --ring: rgba(59, 130, 246, 0.32);
  --border: rgba(255,255,255,0.08);
  --nav-surface: rgba(0, 0, 0, 0.7);
  --nav-surface: rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.02), 0 10px 30px rgba(0,0,0,0.30);
  --shadow-md: 0 1px 0 rgba(255,255,255,0.03), 0 18px 60px rgba(0,0,0,0.36);
  --shadow-lg: 0 1px 0 rgba(255,255,255,0.03), 0 30px 90px rgba(0,0,0,0.46);
  --card-radius: 12px;
  --font-family: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
}

.theme-midnight,
.theme-dark {
  --bg: #0c1426;
  --bg-elev: #0f1a33;
  --card: rgba(255,255,255,0.06);
  --muted: #c8d7f0;
  --fg: #ffffff;
  --accent: #0a84ff; /* macOS blue */
  --accent-secondary: #5ac8fa;
  --ring: rgba(10, 132, 255, 0.28);
  --border: rgba(255,255,255,0.08);
}

.theme-oled {
  --bg: #030303;
  --bg-elev: #0a0a0a;
  --card: rgba(255,255,255,0.06);
  --muted: #a5adbb;
  --fg: #ffffff;
  --accent: #38bdf8; /* brighter blue accent */
  --accent-secondary: #60a5fa;
  --ring: rgba(56, 189, 248, 0.32);
  --border: rgba(255,255,255,0.08);
}

.theme-obsidian {
  --bg: #0b1220;
  --bg-elev: #0f172a;
  --card: rgba(255,255,255,0.08);
  --muted: #c2c9d8;
  --fg: #ffffff;
  --accent: #7de3f4; /* icy cyan */
  --accent-secondary: #7c7fbc; /* muted purple */
  --ring: rgba(125, 227, 244, 0.22);
  --border: rgba(255,255,255,0.08);
}

.theme-ocean,
.theme-blue {
  --bg: #04141d;
  --bg-elev: #061b28;
  --card: rgba(255,255,255,0.04);
  --muted: #a7d7f0;
  --fg: #ffffff;
  --accent: #06b6d4;
  --accent-secondary: #38bdf8;
  --ring: rgba(56, 189, 248, 0.24);
  --border: rgba(255,255,255,0.08);
}

.theme-forest,
.theme-emerald {
  --bg: #07140c;
  --bg-elev: #081a0f;
  --card: rgba(255,255,255,0.04);
  --muted: #b6e3c5;
  --fg: #ffffff;
  --accent: #22c55e;
  --accent-secondary: #16a34a;
  --ring: rgba(34, 197, 94, 0.24);
  --border: rgba(255,255,255,0.08);
}

.theme-velvet,
.theme-purple {
  --bg: #100718;
  --bg-elev: #140a1f;
  --card: rgba(255,255,255,0.04);
  --muted: #d1b7e8;
  --fg: #ffffff;
  --accent: #a855f7;
  --accent-secondary: #ec4899;
  --ring: rgba(168, 85, 247, 0.24);
  --border: rgba(255,255,255,0.08);
}

.theme-ember,
.theme-sunset {
  --bg: #1a0d08;
  --bg-elev: #21110a;
  --card: rgba(255,255,255,0.05);
  --muted: #f2c5a3;
  --fg: #ffffff;
  --accent: #f97316;
  --accent-secondary: #f59e0b;
  --ring: rgba(249, 115, 22, 0.22);
  --border: rgba(255,255,255,0.08);
}

.theme-espresso {
  --bg: #1b120d;
  --bg-elev: #231610;
  --card: rgba(255, 255, 255, 0.06);
  --muted: #f3e6d0;
  --fg: #ffffff;
  --accent: #4db8aa; /* soft teal */
  --accent-secondary: #d99a5a; /* muted orange */
  --ring: rgba(77, 184, 170, 0.24);
  --border: rgba(255,255,255,0.08);
}

.theme-midnight-blue {
  --bg: #121416;             /* almost-black navy */
  --bg-elev: #161a1f;
  --card: #191c20;           /* subtle elevation */
  --muted: #a8b2c2;          /* soft cool gray text */
  --fg: #ffffff;
  --accent: #3a5a7a;         /* subtle blue reveal */
  --accent-secondary: #5f7ba0; /* lighter supporting accent */
  --ring: rgba(95, 123, 160, 0.24);
  --border: rgba(255,255,255,0.10);
}

.theme-dracula-white {
  --bg: #eef2f7;
  --bg-elev: #f8fafc;
  --card: #ffffff;
  --surface-2: rgba(15, 23, 42, 0.03);
  --surface-3: rgba(15, 23, 42, 0.06);
  --inset-1: rgba(15, 23, 42, 0.04);
  --hairline: rgba(15, 23, 42, 0.10);
  --muted: #64748b;
  --fg: #0f172a;
  --accent: #7c3aed; /* purple */
  --accent-secondary: #db2777; /* pink */
  --ring: rgba(124, 58, 237, 0.18);
  --border: rgba(15, 23, 42, 0.14);
  --surface: #f8fafc;
  --nav-surface: rgba(255, 255, 255, 0.9);
}

html { font-size: var(--base-font-size, 16px); }
body {
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255,255,255,0.04), transparent 55%), var(--bg);
  color: var(--fg);
  transition: background-color 180ms ease, color 180ms ease;
  text-rendering: optimizeLegibility;
}
.app-shell, body, button, input, select, textarea { font-family: var(--font-family) !important; font-size: var(--font-size-base); }
.app-shell, body { font-size: var(--font-size-base); }
.app-shell { background: transparent; color: var(--fg); transition: background-color 180ms ease, color 180ms ease; }
.app-card { background: var(--surface-1); border: 1px solid var(--hairline) !important; box-shadow: var(--shadow-sm); }
.text-muted { color: var(--muted); }
.accent { color: var(--accent); }
.btn-primary { background: var(--accent); color: #0f172a; }
.btn-secondary { background: var(--accent-secondary); color: #0f172a; }
.nav-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-surface);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-side { border-right: 1px solid var(--border); background: var(--nav-surface); }

.brand-wordmark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.theme-dracula-white .brand-wordmark {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.font-mono {
  font-family: "JetBrains Mono var", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.bi {
  vertical-align: -0.125em;
}

.nav-top, .nav-side, .app-card { transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: var(--accent);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.nav-link .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Icon-only navigation link (modern, minimal) */
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav-link-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-link-icon.is-active {
  background: var(--accent);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}

.nav-link-icon.is-active:hover {
  transform: translateY(-1px);
}

/* Inbox filters sidebar - sticky scroll fix */
.inbox-filters-sidebar,
.inbox-filters-sidebar-sticky {
  /* Enable GPU acceleration for smoother scrolling */
  will-change: transform;
  /* Ensure proper stacking context */
  z-index: 10;
  /* Smooth scrolling within the sidebar */
  scroll-behavior: smooth;
  /* Custom scrollbar for better aesthetics */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.inbox-filters-sidebar::-webkit-scrollbar,
.inbox-filters-sidebar-sticky::-webkit-scrollbar {
  width: 6px;
}

.inbox-filters-sidebar::-webkit-scrollbar-track,
.inbox-filters-sidebar-sticky::-webkit-scrollbar-track {
  background: transparent;
}

.inbox-filters-sidebar::-webkit-scrollbar-thumb,
.inbox-filters-sidebar-sticky::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.inbox-filters-sidebar::-webkit-scrollbar-thumb:hover,
.inbox-filters-sidebar-sticky::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Force sticky behavior even within overflow containers */
.inbox-filters-sidebar-sticky {
  /* Use a higher z-index to stay on top */
  z-index: 20;
  /* Ensure it creates its own stacking context */
  isolation: isolate;
}

.nav-link.is-active .nav-icon {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.nav-side nav {
  display: flex;
  flex-direction: column;
}

.sm\:hidden.fixed.inset-0 .p-3.space-y-2 {
  display: flex;
  flex-direction: column;
}

.inbox-nav {
  order: -1;
}

.nav-link:has([data-icon="inbox"]) {
  order: -1;
  justify-content: center;
  position: relative;
}

.nav-link:has([data-icon="inbox"]) > span:not(.nav-icon) {
  display: none;
}

.nav-link:has([data-icon="inbox"]) .text-left,
.nav-link:has([data-icon="inbox"]) .text-xs,
.nav-link:has([data-icon="inbox"]) .inline-flex span:last-child {
  display: none;
}

[data-inbox-pending="1"] .nav-link:has([data-icon="inbox"])::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.9);
}

/* Settings sidebar (docs-inspired) */
.settings-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
  color: var(--fg);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.2;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.settings-nav:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.settings-nav.is-active {
  background: var(--accent);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.settings-nav .nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.settings-nav.is-active .nav-icon {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.theme-dracula-white .btn-primary,
.theme-dracula-white .btn-secondary {
  color: #ffffff;
}

.theme-dracula-white .nav-top,
.theme-dracula-white .nav-side {
  background: rgba(248, 250, 252, 0.92) !important;
}

.theme-dracula-white .auth-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid var(--border) !important;
}
.theme-dracula-white .auth-input {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--border) !important;
  color: #0f172a !important;
}
.theme-dracula-white .auth-muted { color: var(--muted) !important; }

.theme-dracula-white .text-white,
.theme-dracula-white .text-zinc-950 { color: #0f172a !important; }
.theme-dracula-white .text-zinc-900 { color: #111827 !important; }
.theme-dracula-white .text-zinc-200,
.theme-dracula-white .text-zinc-100 { color: #1f2937 !important; }
.theme-dracula-white .text-zinc-300 { color: #334155 !important; }
.theme-dracula-white .text-zinc-400 { color: #475569 !important; }
.theme-dracula-white .text-zinc-500 { color: #64748b !important; }

.theme-dracula-white .placeholder-white\\/40 { color: rgba(71, 85, 105, 0.70) !important; }

.theme-dracula-white .text-emerald-100,
.theme-dracula-white .text-emerald-200 { color: #065f46 !important; }
.theme-dracula-white .text-amber-100,
.theme-dracula-white .text-amber-200 { color: #92400e !important; }
.theme-dracula-white .text-rose-200 { color: #9f1239 !important; }
.theme-dracula-white .text-sky-200 { color: #075985 !important; }
.theme-dracula-white .text-slate-200 { color: #334155 !important; }

/* Global UI: soften common Tailwind utility surfaces (within app shell only) */
.app-shell .border-white,
.app-shell .border-white\\/10,
.app-shell .border-white\\/15 {
  border-color: var(--hairline) !important;
}

.app-shell .bg-white\\/5 { background-color: var(--surface-1) !important; }
.app-shell .bg-white\\/10 { background-color: var(--surface-2) !important; }
.app-shell .bg-white\\/30 { background-color: var(--surface-3) !important; }
.app-shell .bg-white\\/\\[0\\.02\\] { background-color: var(--surface-1) !important; }
.app-shell .bg-white\\/\\[0\\.03\\] { background-color: var(--surface-1) !important; }
.app-shell .bg-white\\/\\[0\\.04\\] { background-color: var(--surface-1) !important; }

.app-shell .bg-zinc-950,
.app-shell .bg-zinc-950\\/95,
.app-shell .bg-zinc-950\\/80,
.app-shell .bg-zinc-950\\/90 {
  background-color: var(--bg-elev) !important;
}

.app-shell .bg-zinc-900\\/60 {
  background-color: var(--surface-2) !important;
}

.app-shell .bg-black\\/30,
.app-shell .bg-black\\/40,
.app-shell .bg-black\\/50 {
  background-color: var(--inset-1) !important;
}

.app-shell :is(button, input, select, textarea, a):focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--hairline), 0 0 0 4px var(--ring);
}

/* Subtle shadows: keep elevation calm (override Tailwind shadow intensity) */
.app-shell .shadow-sm { --tw-shadow: var(--shadow-sm) !important; }
.app-shell .shadow-lg { --tw-shadow: var(--shadow-md) !important; }
.app-shell .shadow-2xl { --tw-shadow: var(--shadow-lg) !important; }

/* Subtle motion: replace bounce with a gentle bob */
@keyframes shelfarr-subtle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.app-shell .animate-bounce { animation: shelfarr-subtle-bob 2.4s ease-in-out infinite !important; }
/* Dividers: keep them hairline-soft */
.app-shell .divide-white\\/10 > :not([hidden]) ~ :not([hidden]) { border-color: var(--hairline) !important; }
.app-shell .divide-white\\/15 > :not([hidden]) ~ :not([hidden]) { border-color: var(--hairline) !important; }
.app-shell .divide-white\\/20 > :not([hidden]) ~ :not([hidden]) { border-color: var(--hairline) !important; }

/* Density presets (global) */
:root {
  --table-px: 15px;
  --table-py: 13px;
  --table-head-py: 12px;
  --table-font: 13px;
  --table-sub: 11px;
  --table-row-hover: rgba(255,255,255,0.06);
}
html[data-density="compact"] {
  --table-px: 12px;
  --table-py: 10px;
  --table-head-py: 10px;
  --table-font: 12.5px;
  --table-sub: 10.5px;
}
html[data-density="spacious"] {
  --table-px: 17px;
  --table-py: 15px;
  --table-head-py: 12px;
  --table-font: 13.75px;
  --table-sub: 11.25px;
}

/* Calm tables / data lists */
.s-table-shell {
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.s-table-scroll {
  position: relative;
  overflow: auto;
  --scrim-surface: var(--surface-1);
}

.s-scrim-x::before,
.s-scrim-x::after,
.s-scrim-y::before,
.s-scrim-y::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.s-scrim-x::before,
.s-scrim-x::after {
  top: 0;
  bottom: 0;
  width: 28px;
  opacity: 0.9;
}
.s-scrim-x::before {
  left: 0;
  background: linear-gradient(90deg, var(--scrim-surface), rgba(0,0,0,0));
}
.s-scrim-x::after {
  right: 0;
  background: linear-gradient(270deg, var(--scrim-surface), rgba(0,0,0,0));
}

.s-scrim-y::before,
.s-scrim-y::after {
  left: 0;
  right: 0;
  height: 22px;
  opacity: 0.85;
}
.s-scrim-y::before {
  top: 0;
  background: linear-gradient(180deg, var(--scrim-surface), rgba(0,0,0,0));
}
.s-scrim-y::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--scrim-surface), rgba(0,0,0,0));
}

@media (prefers-reduced-motion: reduce) {
  .s-scrim-x::before,
  .s-scrim-x::after,
  .s-scrim-y::before,
  .s-scrim-y::after {
    opacity: 0.65;
  }
}

.table-calm {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--table-font);
}
.table-calm thead th {
  padding: var(--table-head-py) var(--table-px);
  font-size: var(--table-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(161, 179, 214, 0.9);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border-bottom: 1px solid var(--hairline);
}
.theme-dracula-white .table-calm thead th {
  color: rgba(100, 116, 139, 0.95);
}
.table-calm tbody td {
  padding: var(--table-py) var(--table-px);
  vertical-align: top;
  border-top: 1px solid var(--hairline);
}
.table-calm tbody tr:first-child td {
  border-top: none;
}
.table-calm tbody tr {
  transition: background-color 140ms ease;
}
.table-calm tbody tr:hover {
  background: var(--table-row-hover);
}

.s-grid-head {
  padding: var(--table-head-py) var(--table-px);
  font-size: var(--table-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(161, 179, 214, 0.9);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border-bottom: 1px solid var(--hairline);
}
.theme-dracula-white .s-grid-head {
  color: rgba(100, 116, 139, 0.95);
}

.s-grid-row {
  padding: var(--table-py) var(--table-px);
  transition: background-color 140ms ease;
}
.s-grid-row:hover {
  background: var(--table-row-hover);
}

.s-divide-y > * + * {
  border-top: 1px solid var(--hairline);
}

/* Text scrim for truncated single-line content */
.s-text-scrim {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 18px), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 18px), rgba(0,0,0,0) 100%);
}

@keyframes shelfarr-attention-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2px);
  }
  70% {
    transform: translateY(1px);
  }
}

.shelfarr-automation-ring {
  position: relative;
}

.shelfarr-automation-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: conic-gradient(
    rgba(16, 185, 129, 0) 0deg,
    rgba(16, 185, 129, 0.35) 70deg,
    rgba(16, 185, 129, 0) 160deg,
    rgba(16, 185, 129, 0.22) 240deg,
    rgba(16, 185, 129, 0) 360deg
  );
  opacity: 0.62;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.12));
  pointer-events: none;
  z-index: 0;
  animation: shelfarr-ring-rotate 3.2s linear infinite;
}

.shelfarr-automation-ring::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(0.75rem - 1px);
  background: rgba(0, 0, 0, 0.20);
  pointer-events: none;
  z-index: 0;
}

.shelfarr-automation-ring > * {
  position: relative;
  z-index: 1;
}

@keyframes shelfarr-ring-rotate {
  to {
    transform: rotate(360deg);
  }
}

.shelfarr-automation-bounce {
  animation: shelfarr-attention-bounce 1.4s ease-in-out 0.6s 2;
}

@keyframes shelfarr-attention-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  6% {
    transform: translateY(-3px);
  }
  12% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(-2px);
  }
  24% {
    transform: translateY(0);
  }
}

.shelfarr-attention-bounce {
  will-change: transform;
  animation: shelfarr-attention-nudge 6.5s ease-in-out infinite;
}

@keyframes shelfarr-presets-attention {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  10% {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.10), 0 0 22px rgba(16, 185, 129, 0.18);
  }
  20% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.06), 0 0 16px rgba(16, 185, 129, 0.12);
  }
  30% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.10), 0 0 22px rgba(16, 185, 129, 0.18);
  }
  40% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
}

.shelfarr-presets-attention {
  will-change: transform, box-shadow;
  animation: shelfarr-presets-attention 2.8s ease-in-out infinite;
}

[data-shelfarr-control="presets-toggle"][data-shelfarr-attention="1"] {
  will-change: transform, box-shadow;
  animation: shelfarr-presets-attention 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .shelfarr-attention-bounce,
  .shelfarr-presets-attention,
  .shelfarr-automation-bounce,
  .shelfarr-automation-ring::before {
    animation: none !important;
  }
  .shelfarr-attention-bounce,
  .shelfarr-presets-attention {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.10), 0 0 18px rgba(16, 185, 129, 0.10);
  }

  [data-shelfarr-control="presets-toggle"][data-shelfarr-attention="1"] {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.10), 0 0 18px rgba(16, 185, 129, 0.10);
  }
}

.theme-dracula-white .border-white,
.theme-dracula-white .border-white\\/10,
.theme-dracula-white .border-white\\/15 {
  border-color: var(--border) !important;
}

.theme-dracula-white .bg-white\\/5 { background-color: rgba(15, 23, 42, 0.05) !important; }
.theme-dracula-white .bg-white\\/10 { background-color: rgba(15, 23, 42, 0.09) !important; }
.theme-dracula-white .bg-white\\/30 { background-color: rgba(15, 23, 42, 0.18) !important; }
.theme-dracula-white .bg-white\\/\\[0\\.02\\] { background-color: rgba(15, 23, 42, 0.03) !important; }
.theme-dracula-white .bg-white\\/\\[0\\.03\\] { background-color: rgba(15, 23, 42, 0.04) !important; }
.theme-dracula-white .bg-white\\/\\[0\\.04\\] { background-color: rgba(15, 23, 42, 0.06) !important; }
.theme-dracula-white .bg-zinc-100 { background-color: #f1f5f9 !important; }
.theme-dracula-white .bg-zinc-700 { background-color: #e2e8f0 !important; }
.theme-dracula-white .bg-zinc-900\\/60 { background-color: #f1f5f9 !important; }
.theme-dracula-white .bg-zinc-950,
.theme-dracula-white .bg-zinc-950\\/95,
.theme-dracula-white .bg-zinc-950\\/80,
.theme-dracula-white .bg-zinc-950\\/90 {
  background-color: var(--surface) !important;
}

.theme-dracula-white .s-divide-y > *:nth-child(odd) {
  background: rgba(15, 23, 42, 0.025);
}
.theme-dracula-white .s-divide-y > *:nth-child(even) {
  background: rgba(15, 23, 42, 0.05);
}

.theme-dracula-white .app-card {
  border-color: var(--border) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

#shelfarr-scanner .app-card {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.40) !important;
}
.theme-dracula-white #shelfarr-scanner .app-card {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12) !important;
}
