/* ============================================================
   PRAXT KINETIC — DESIGN SYSTEM
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

/* ── DARK MODE (default) ─────────────────────────────────── */
:root,
[data-mode="dark"] {
  /* Surfaces */
  --bg-void: #09090C;
  --bg-deep: #111116;
  --bg-surface: #18181F;
  --bg-raised: #21212B;
  --bg-overlay: #2B2B38;

  /* Borders */
  --border: #33333F;
  --border-subtle: #2B2B38;

  /* Text */
  --text-muted: #72728A;
  --text-subtle: #A8A8BC;
  --text-primary: #E8E7F0;
  --text-bright: #F8F7FF;

  /* Semantic accents */
  --accent-1: #FF4520;
  /* Action / CTA / Record / Streaks */
  --accent-1-glow: rgba(255, 69, 32, .35);
  --accent-2: #00D4A1;
  /* Social / Confirm / Follow / Success */
  --accent-2-glow: rgba(0, 212, 161, .30);
  --accent-3: #FFB800;
  /* Progress / XP / Streak count / Badges */
  --accent-3-glow: rgba(255, 184, 0, .30);
  --accent-4: #3E8EFF;
  /* Info / Tags / Links / Labels */
  --accent-4-glow: rgba(62, 142, 255, .30);

  /* White-label primary slot — override per school */
  --wl-primary: var(--accent-1);
  --wl-primary-glow: var(--accent-1-glow);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .6);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .5);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .5);

  /* Header */
  --header-bg: rgba(9, 9, 12, 0.8);
}

/* ── LIGHT MODE ───────────────────────────────────────────── */
[data-mode="light"] {
  --bg-void: #F2F1F8;
  --bg-deep: #ECEAF5;
  --bg-surface: #FFFFFF;
  --bg-raised: #F6F5FC;
  --bg-overlay: #ECEAF5;
  --border: #DDDBE8;
  --border-subtle: #E8E6F2;
  --text-muted: #8885A0;
  --text-subtle: #5A5870;
  --text-primary: #1A1828;
  --text-bright: #0A0914;
  --accent-1: #E83A12;
  --accent-1-glow: rgba(232, 58, 18, .20);
  --accent-2: #00A882;
  --accent-2-glow: rgba(0, 168, 130, .20);
  --accent-3: #D49800;
  --accent-3-glow: rgba(212, 152, 0, .20);
  --accent-4: #2E78E8;
  --accent-4-glow: rgba(46, 120, 232, .20);
  --wl-primary: var(--accent-1);
  --wl-primary-glow: var(--accent-1-glow);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04);

  /* Header */
  --header-bg: rgba(255, 255, 255, 0.8);
}

/* ── WHITE-LABEL SCHOOL OVERRIDES ─────────────────────────── */
/* Add one block per partner school. Mount via data-school on <html>. */
[data-school="example-conservatory"] {
  --wl-primary: #002868;
  --wl-primary-glow: rgba(0, 40, 104, .30);
  --accent-1: #002868;
  --accent-1-glow: rgba(0, 40, 104, .30);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
:root {
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Scale */
  --text-xs: 0.6875rem;
  /*  11px */
  --text-sm: 0.8125rem;
  /*  13px */
  --text-base: 0.9375rem;
  /*  15px */
  --text-md: 1.0625rem;
  /*  17px */
  --text-lg: 1.25rem;
  /*  20px */
  --text-xl: 1.625rem;
  /*  26px */
  --text-2xl: 2.25rem;
  /*  36px */
  --text-3xl: 3.25rem;
  /*  52px */
  --text-4xl: 5rem;
  /*  80px */
  --text-hero: clamp(4rem, 10vw, 8rem);

  /* Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Spacing — 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Border radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Kinetic Design Tokens */
  --card-radius: 18px;
  --chip-radius: 9999px;
  --btn-radius: 9999px;
  --tag-style: uppercase;
  --tag-track: 0.1em;
  --score-font: 'Cormorant', serif;

  /* Motion */
  --ease-snap: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-mid: 240ms;
  --dur-slow: 480ms;
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT & HEADER
   ══════════════════════════════════════════════════════════════ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, rgba(9, 9, 12, .8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--dur-mid) ease;
  overflow: visible;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 100%;
  padding: 0 16px;
  gap: 16px;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--dur-fast) ease;
}

.app-logo:hover {
  opacity: 0.8;
}

.app-logo__mark {
  width: 32px;
  height: 24px;
  color: var(--accent-1);
  flex-shrink: 0;
}

.app-logo__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-style: italic;
}

.app-logo__text em {
  color: var(--accent-1);
  font-style: italic;
  font-weight: 300;
}

.app-nav {
  display: flex;
  gap: 8px;
}

.app-nav__link {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}

.app-nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.app-nav__link.active {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

/* Search */
.app-search {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.app-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.app-search__input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: all var(--dur-fast) ease;
}

.app-search__input::placeholder {
  color: var(--text-muted);
}

.app-search__input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 69, 32, .15);
}

.app-search__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-card);
  transition: opacity var(--dur-fast) ease, visibility var(--dur-fast) ease;
}

.app-search__dropdown.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Theme toggle */
/* Profile menu */
.app-profile-menu {
  position: relative;
  flex-shrink: 0;
}

.app-profile-menu__trigger {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: opacity var(--dur-fast) ease;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.app-profile-menu__trigger:hover {
  opacity: 0.7;
}

.app-profile-menu__trigger:active {
  transform: scale(0.98);
}

.app-profile-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.app-profile-menu__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: white;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.app-profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  padding: 8px;
  display: none !important;
  z-index: 10000;
  overflow: hidden;
  visibility: hidden !important;
}

.app-profile-menu__dropdown.open {
  display: block !important;
  visibility: visible !important;
  animation: slideDown var(--dur-fast) ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-profile-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--dur-fast) ease;
  min-height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-profile-menu__item:hover {
  background: var(--bg-raised);
}

.app-profile-menu__item svg {
  width: 18px !important;
  height: 18px !important;
  display: inline !important;
  flex-shrink: 0;
}

.app-profile-menu__item--danger {
  color: var(--text-primary);
}

.app-profile-menu__item--danger:hover {
  background: rgba(255, 69, 32, 0.1);
  color: var(--accent-1);
}

.app-profile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Hide form wrapper but preserve layout */
.app-profile-menu__form {
  display: contents;
}

/* Main content */
.app-main {
  padding: 32px 24px 120px 24px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Bottom navigation */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 12px env(safe-area-inset-bottom, 12px) 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  height: 80px;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--dur-fast) ease;
  flex: 1;
}

.app-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.app-nav-item.active {
  color: var(--accent-1);
}

.app-nav-item.active:hover {
  background: transparent;
}

.app-nav-item--cta {
  color: var(--accent-1);
}

.app-nav-item--cta:hover {
  color: var(--accent-1);
  background: transparent;
}

/* Toast notifications */
.app-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  animation: toastIn var(--dur-slow) var(--ease-out) both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.app-toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-toast--success .app-toast__icon {
  color: var(--accent-2);
}

.app-toast--error .app-toast__icon {
  color: var(--accent-1);
}

.app-toast__text {
  flex: 1;
}

.app-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  border-radius: 4px;
  transition: all var(--dur-fast) ease;
  flex-shrink: 0;
}

.app-toast__close:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.app-toast__close svg {
  width: 16px;
  height: 16px;
}




/* ============================================================
   BASE RESET & GLOBAL STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-mid) ease, color var(--dur-mid) ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-raised);
  border-radius: 3px;
}

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

/* Focus ring — keyboard accessible, invisible on mouse */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Selection */
::selection {
  background: rgba(255, 69, 32, .25);
  color: var(--text-bright);
}

/* Layout helpers */
.container {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-24);
}

.section+.section {
  border-top: 1px solid var(--border);
}

/* ============================================================
   COMPONENT STYLES
   ============================================================ */

/* Import utility classes (must come after reset) */
@import "utilities.css";

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  line-height: 1;
  border: none;
  cursor: pointer;
  border-radius: var(--r-full);
  padding: var(--sp-3) var(--sp-6);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-snap),
    transform var(--dur-fast) var(--ease-snap),
    filter var(--dur-fast) var(--ease-snap);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--dur-fast);
  pointer-events: none;
}

.btn:hover::after {
  background: rgba(255, 255, 255, .06);
}

.btn:active {
  transform: scale(.97);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn:disabled:active {
  transform: none;
}

/* Sizes */
.btn-xl {
  padding: var(--sp-5) var(--sp-10);
  font-size: var(--text-md);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-base);
}

.btn-md {
  padding: var(--sp-3) var(--sp-6);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs);
  letter-spacing: .04em;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--dur-fast) ease;
}

/* Variants */
.btn-primary {
  background: var(--wl-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--wl-primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px var(--wl-primary-glow);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-subtle);
  border: 1px solid transparent;
}

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

.btn-social {
  background: var(--accent-2);
  color: var(--bg-void);
  box-shadow: 0 4px 16px var(--accent-2-glow);
}

.btn-gold {
  background: var(--accent-3);
  color: var(--bg-void);
  box-shadow: 0 4px 16px var(--accent-3-glow);
}

.btn-danger {
  background: transparent;
  color: var(--accent-1);
  border: 1px solid rgba(255, 69, 32, .3);
}

.btn-danger:hover {
  background: rgba(255, 69, 32, .1);
}

/* Record button — the hero CTA */
.btn-record {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 var(--accent-1-glow);
  animation: recordPulse 2.2s ease-out infinite;
  transition: transform var(--dur-fast) var(--ease-bounce);
}

.btn-record:hover {
  transform: scale(1.08);
  animation-play-state: paused;
}

.btn-record:active {
  transform: scale(.93);
  animation: none;
}

.btn-record--sm {
  width: 48px;
  height: 48px;
}

.btn-record--lg {
  width: 88px;
  height: 88px;
}

.btn-record svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  pointer-events: none;
}

@keyframes recordPulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-1-glow);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(255, 69, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 69, 32, 0);
  }
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--dur-mid) var(--ease-snap),
    transform var(--dur-mid) var(--ease-snap),
    box-shadow var(--dur-mid) var(--ease-snap),
    background-color var(--dur-mid) ease;
}

.card--hoverable:hover {
  border-color: var(--bg-overlay);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card--raised {
  background: var(--bg-raised);
}

.card--flat {
  box-shadow: none;
  border-radius: 0;
}

.card--inset {
  background: var(--bg-raised);
  border-color: var(--border-subtle);
}

/* Accent stripe — one per semantic colour */
.card--stripe-action {
  border-top: 2px solid var(--accent-1);
}

.card--stripe-social {
  border-top: 2px solid var(--accent-2);
}

.card--stripe-progress {
  border-top: 2px solid var(--accent-3);
}

.card--stripe-info {
  border-top: 2px solid var(--accent-4);
}

/* Card padding conventions */
.card__body {
  padding: var(--sp-5);
}

.card__body--lg {
  padding: var(--sp-8);
}

.card__body--none {
  padding: 0;
}

.card__header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.card__header--user {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.card__header--large {
  padding: var(--sp-8);
}

.card__header--vertical {
  align-items: flex-start;
}

.card__footer {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Card modifiers */
.card--clickable {
  cursor: pointer;
}

.card--clickable:hover {
  border-color: var(--bg-overlay);
  transform: translateY(-2px);
}

.card--success {
  background: var(--color-success-bg, #e8f5e9);
  border-color: var(--color-success, #4caf50);
}

.card--warning {
  background: var(--color-warning-bg, #fff3e0);
  border-color: var(--color-warning, #ff9800);
}

.card--error {
  background: var(--color-error-bg, #ffebee);
  border-color: var(--color-error, #f44336);
}

.card--info {
  background: var(--bg-overlay);
  border-color: var(--accent-4);
}

.card--divided {
  padding: 0;
}

.card--divided .card__item {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.card--divided .card__item:last-child {
  border-bottom: none;
}

.card--auth {
  max-width: 360px;
  margin: 0 auto;
}

.card--auth .card__body {
  padding: 40px 32px;
}

.card--stat {
  transition: transform var(--dur-fast) var(--ease-snap);
}

.card--stat:hover {
  transform: translateY(-2px);
}

/* Card empty state */
.card__empty {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: var(--text-muted);
}

.card__empty p {
  margin-bottom: var(--sp-4);
}

/* Card user component */
.card__user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}

.card__user-avatar {
  flex-shrink: 0;
}

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

.card__user-name {
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
}

.card__user-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.card__user-actions {
  flex-shrink: 0;
}

/* Generic card components (replacing feed-specific) */
.card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin: 0;
}

.card__title a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast);
}

.card__title a:hover {
  color: var(--accent-1);
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
}

.card__tag {
  display: inline-block;
  background: var(--bg-overlay);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: var(--sp-2);
  flex-shrink: 0;
}

.card__body-content {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.card__action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: all var(--dur-fast);
}

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

.card__action-btn svg {
  width: 16px;
  height: 16px;
}

.card__action-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Feed container */
#feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card container - consistent spacing for cards */
.card-container,
.cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Auto-fill grid for feed cards */
.auto-fill-feed {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Feed card styles deprecated - use .card with .card__* components instead */

/* ── WAVEFORM ────────────────────────────────────────────── */
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 0 var(--sp-4);
  user-select: none;
}

.waveform--sm {
  height: 40px;
}

.waveform--md {
  height: 56px;
}

.waveform--lg {
  height: 80px;
}

.waveform__bar {
  flex: 1;
  border-radius: 2px;
  transition: opacity var(--dur-fast);
}

.waveform:hover .waveform__bar {
  opacity: .8;
}

/* Live/animated waveform during recording */
.waveform--live .waveform__bar {
  animation: liveBar 1s ease-in-out infinite;
}

@keyframes liveBar {

  0%,
  100% {
    transform: scaleY(.25);
    opacity: .6;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--xs {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.avatar--xl {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

/* Profile card avatar spacing */
.card>.px-8 .avatar--lg {
  margin-right: 24px;
}

/* Online ring */
.avatar--online::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid var(--bg-surface);
}

/* Avatar stack */
.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  border: 2px solid var(--bg-surface);
  margin-left: -8px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.avatar-stack__overflow {
  background: var(--bg-overlay);
  color: var(--text-muted);
  font-size: 10px;
}

/* ── BADGE / TAG / CHIP ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.badge--action {
  background: rgba(255, 69, 32, .12);
  color: var(--accent-1);
  border-color: rgba(255, 69, 32, .3);
}

.badge--social {
  background: rgba(0, 212, 161, .12);
  color: var(--accent-2);
  border-color: rgba(0, 212, 161, .3);
}

.badge--progress {
  background: rgba(255, 184, 0, .12);
  color: var(--accent-3);
  border-color: rgba(255, 184, 0, .3);
}

.badge--info {
  background: rgba(62, 142, 255, .12);
  color: var(--accent-4);
  border-color: rgba(62, 142, 255, .3);
}

.badge--muted {
  background: var(--bg-raised);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge--teacher {
  background: rgba(255, 184, 0, .12);
  color: var(--accent-3);
  border-color: rgba(255, 184, 0, .3);
}

.badge--student {
  background: rgba(62, 142, 255, .12);
  color: var(--accent-4);
  border-color: rgba(62, 142, 255, .3);
}

/* Instrument/genre tag — larger, interactive */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  color: var(--text-subtle);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-snap);
}

.tag:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.tag--active {
  background: rgba(255, 69, 32, .1);
  border-color: rgba(255, 69, 32, .4);
  color: var(--accent-1);
}

/* Stat card styles deprecated - use .card with modifiers instead */

/* ── STREAK CALENDAR ─────────────────────────────────────── */
.streak-calendar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}

.streak-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}

.streak-calendar__title {
  font-weight: var(--fw-semi);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.streak-calendar__count {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--accent-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.streak-calendar__grid {
  display: flex;
  gap: 4px;
}

.streak-calendar__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.streak-calendar__day {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--bg-raised);
  transition: background var(--dur-fast);
}

.streak-calendar__day--done {
  background: var(--accent-2);
}

.streak-calendar__day--partial {
  background: rgba(0, 212, 161, .35);
}

.streak-calendar__day--today {
  box-shadow: 0 0 0 2px var(--accent-3);
}

.streak-calendar__month-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: 10px;
  color: var(--text-muted);
}

/* ── PROGRESS RING ───────────────────────────────────────── */
.ring {
  position: relative;
  display: inline-block;
}

.ring svg {
  transform: rotate(-90deg);
}

.ring__bg {
  fill: none;
  stroke: var(--bg-raised);
}

.ring__fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out);
}

.ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ring__value {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
}

.ring__unit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TOP NAV ─────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 12, .8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-mid) ease;
}

[data-mode="light"] .top-nav {
  background: rgba(242, 241, 248, .88);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 60px;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.top-nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-light);
  letter-spacing: -.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.top-nav__wordmark em {
  color: var(--accent-1);
  font-style: italic;
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  margin-left: var(--sp-8);
}

.top-nav__link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-snap);
}

.top-nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.top-nav__link--active {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.top-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* Mobile bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 22, 26, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-4) env(safe-area-inset-bottom, 8px);
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--text-subtle);
  letter-spacing: .02em;
}

.form-label--required::after {
  content: ' *';
  color: var(--accent-1);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast) var(--ease-snap);
  outline: none;
  -webkit-appearance: none;
}

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

.form-input:hover,
.form-textarea:hover {
  border-color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 69, 32, .15);
}

.form-input--error {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 69, 32, .1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--accent-1);
  margin-top: var(--sp-1);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── TOAST / NOTIFICATION ────────────────────────────────── */
.toast {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  animation: toastIn var(--dur-slow) var(--ease-out) both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.toast__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast__dot--action {
  background: var(--accent-1);
}

.toast__dot--social {
  background: var(--accent-2);
}

.toast__dot--progress {
  background: var(--accent-3);
}

.toast__content {
  flex: 1;
}

.toast__title {
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.toast__body {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--sp-1);
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease-snap);
}

.toast__close:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

/* Toast container — positioned fixed */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast-container .toast {
  pointer-events: auto;
}

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────── */
.type-display {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  letter-spacing: -.03em;
  line-height: 1.0;
}

.type-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.type-heading {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.type-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-black);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.type-muted {
  color: var(--text-muted);
}

.type-subtle {
  color: var(--text-subtle);
}

.type-action {
  color: var(--accent-1);
}

.type-social {
  color: var(--accent-2);
}

.type-progress {
  color: var(--accent-3);
}

.type-info {
  color: var(--accent-4);
}

/* Legacy Praxt styles - preserved for backward compatibility */
/* Gradually migrating to Kinetic tokens and components */

/* Utility: visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Utility: text alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Utility: margins */
.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

/* Badge feed category */
.feed-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-sm);
  background: var(--accent-1);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  flex-shrink: 0;
}

/* Button forms (button_to) - reset form styles */
form.button_to {
  display: inline-flex;
  flex-direction: row;
  padding: 0;
  margin: 0;
  gap: 0;
}

/* Page header spacing */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.page-header h1 {
  margin: 0;
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
}

.page-header>div:first-child {
  flex: 1;
}

.page-header small {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--sp-1);
}

/* Empty states - use .card__empty component instead */

/* Errors box */
.errors {
  background: rgba(255, 69, 32, .08);
  color: var(--accent-1);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  border-left: 3px solid var(--accent-1);
}

/* Lists */
ul,
ol {
  padding-left: var(--sp-6);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-raised);
}

/* Dialog/Modal */
dialog {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  max-width: 28rem;
  width: calc(100% - 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .5);
}

dialog h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--text-xl);
}

/* Auth layout */
.auth-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--bg-void);
}

/* Auth card styles deprecated - use .card with utility classes instead */

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═════════════════════════════════════════════════════════════════ */

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 0 0;
  /* Full width inside card is intentional for visual separation */
}

.stat-item {
  padding: var(--sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border-right: 1px solid var(--border);
  background: transparent;
  border: none;
  cursor: default;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item--interactive {
  cursor: pointer;
  transition: background-color var(--dur-fast);
}

.stat-item--interactive:hover {
  background: var(--bg-overlay);
}

.stat-item--interactive:active {
  background: var(--bg-overlay);
}

.stat-value {
  font-family: var(--score-font, 'Cormorant', serif);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semi);
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: var(--fw-semi);
}

/* Panel Modal */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  animation: fadeIn var(--dur-fast);
}

.panel.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.panel .card {
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  max-height: 80vh;
  overflow-y: auto;
}

.panel header {
  background: var(--bg-raised);
}

.divide-y>* {
  border-bottom: 1px solid var(--border);
}

.divide-y>*:last-child {
  border-bottom: none;
}

/* User Row */
.user-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  transition: background-color var(--dur-fast);
}

.user-row:hover {
  background: var(--bg-overlay);
}

.user-info {
  flex: 1;
}

.user-info a {
  color: var(--text-primary);
  font-weight: var(--fw-semi);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.user-info a:hover {
  color: var(--accent-1);
}

/* Responsive */
@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right-color: var(--border);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }
}

.auth-footer a {
  color: var(--accent-1);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--dur-fast) ease;
}

.auth-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── FEED COMMENTS ────────────────────────────────────────── */

/* Comments container - inline with card */
.feed-comments {
  padding: 12px 16px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
  animation: slideDown 200ms ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  to {
    opacity: 1;
    max-height: 100vh;
  }
}

.feed-comments-content {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 12px;
}

/* Individual comment */
.feed-comment {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.feed-comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Comment header with avatar and user info */
.feed-comment-header {
  margin-bottom: 8px;
}

/* Comment body text */
.feed-comment-body {
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

/* Attachments in comment */
.feed-comment-attachments {
  margin-bottom: 8px;
}

/* Comment actions bar */
.feed-comment-actions {
  font-size: 0.875rem;
}

/* Reply form */
.feed-comment-reply-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  animation: slideDown 200ms ease-out;
}

/* Comment textarea */
.feed-comment-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--bg-base);
  resize: vertical;
  min-height: 40px;
  transition: border-color var(--dur-fast);
}

.feed-comment-textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 2px rgba(var(--accent-1-rgb), 0.1);
}

/* File input for attachments */
.feed-comment-file-input {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Comment input group */
.feed-comment-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Comment form styling */
.feed-comment-form {
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}

.feed-comment-form-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Nested comments indentation */
.feed-nested-comments {
  margin-left: 8px;
  margin-top: 8px;
}
