/* Design tokens v5 - updated cache busting */
:root {
  /* Dark theme with lime accent */
  --color-bg: #0B0B0B;
  --color-surface: #121212;
  --color-text: #E8E8E8;
  --color-muted: #A8A8A8;
  --color-border: #2A2A2A;
  --color-accent: #ffffff;
  /* lime */

  --radius-soft: 12px;
  --radius-pill: 999px;

  --shadow-accent: 0 0 0 2px color-mix(in oklab, var(--color-accent) 18%, transparent),
    0 8px 24px color-mix(in oklab, var(--color-accent) 16%, transparent);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}

.button {
  background: var(--color-accent);
  color: #0b0b0b;
  border: 0;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}

.button.ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.input {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 10px;
  padding: .7rem .9rem;
}


.chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: .4rem .7rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-soft);
  padding: 1rem;
}

/* Compact icon button for quick actions */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem .8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
}

.iconbtn:hover {
  filter: brightness(1.08);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block
}

/* Ghost (borderless) quick action button */
.ghostbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.ghostbtn:hover {
  color: var(--color-text);
}

/* Bottom nav button (icons only) */
.navbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 0;
  border: 0;
  background: transparent;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: all .4s ease;
}

/* Scope icon styling to footer only so other icons keep their defaults */
.footer .icon svg {
  width: 26px;
  height: 26px;
  stroke: rgba(200, 200, 200, 0.6);
  fill: none;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 3px rgba(200, 200, 200, 0.3));
  transform: none;
  /* override global translateY */
  transition: stroke .4s ease, transform .4s ease, filter .4s ease;
}

.footer .navbtn:hover .icon svg {
  stroke: #d1d1d1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transform: scale(1.1);
}

.footer .navbtn.active .icon svg {
  stroke: #f0f0f0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
  transform: scale(1.15);
}

/* Underline disabled for new capsule design */
.navbtn::after {
  display: none !important;
}

.navbtn.active::after {
  display: none !important;
}

/* Generic stroked icon style (keep for non-footer). Footer overrides above */
.icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 1.8;
  transform: translateY(-6px);
}

.navbtn.active .icon svg {
  stroke: var(--color-accent);
}

/* Skeleton placeholder */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 10px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.25s infinite;
}

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

/* Raise bottom drawer handle above iPhone home indicator */
.drawer-handle-bottom {
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

/* Section title and list utilities */
.section-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

/* Switch (toggle) */
.switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--color-border);
  position: relative;
  border: 0;
  padding: 0;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform .18s ease;
}

.switch.on {
  background: color-mix(in oklab, var(--color-accent) 35%, black);
}

.switch.on::after {
  transform: translateX(20px);
  background: var(--color-accent);
}

/* Footer styles completely removed - handled by footer.js */