/* ============================================
   Mindly — Deep Slate Dark Theme
   ============================================ */

:root {
  --bg-deep: #0f172a;
  --bg-panel: #1e293b;
  --bg-panel-hover: #273449;
  --bg-input: #0c1222;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-sky: #38bdf8;
  --accent-mint: #34d399;
  --accent-glow-sky: rgba(56, 189, 248, 0.25);
  --accent-glow-mint: rgba(52, 211, 153, 0.2);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(56, 189, 248, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-panel: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.app.is-tab-mode {
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

/* ---- Home Panel ---- */
.panel--home {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 0;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.25rem 1.25rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-panel);
}

.home-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-hero__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px var(--accent-glow-sky);
  flex-shrink: 0;
}

.home-hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.home-hero__subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.home-hero__date {
  font-size: 0.8rem;
  color: var(--accent-sky);
  margin-top: 0.35rem;
}

.home-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.hero-card {
  margin-top: 0.25rem;
}

.home-hero__stats .stat-card {
  min-width: 0;
}

.home-hero__stats .streak-badge {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.home-hero__quote {
  padding: 0.85rem 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--accent-mint);
  text-align: center;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-hero__actions .btn {
  width: 100%;
  min-width: 0;
}

.home-music {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn--music-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn--music-toggle.is-on {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.08);
}

.audio-player--home {
  margin-top: 0;
}

.panel--journal .journal-history {
  max-height: none;
  flex: 1;
}

/* ---- Legacy header aliases (desktop grid) ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-panel);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.header__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px var(--accent-glow-sky);
  flex-shrink: 0;
}

.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header__date {
  font-size: 0.75rem;
  color: var(--accent-sky);
  margin-top: 0.25rem;
}

.header__stats {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 150px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.stat-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-sky);
}

.stat-card--mind .stat-card__label {
  color: var(--accent-mint);
}

.stat-card__value {
  font-size: 0.78rem;
  font-weight: 600;
}

.stat-card__sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.45rem;
}

.stat-card__bar {
  height: 5px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.stat-card__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-sky), #0ea5e9);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.stat-card__bar--mind .stat-card__bar-fill {
  background: linear-gradient(90deg, var(--accent-mint), #10b981);
}

.header__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
}

.streak-badge__icon {
  font-size: 1.1rem;
}

.streak-badge__count {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
}

.streak-badge__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-sky), #0ea5e9);
  color: var(--bg-deep);
  box-shadow: 0 2px 12px var(--accent-glow-sky);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow-sky);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--notify {
  padding: 0.6rem 0.9rem;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

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

.btn--notify.btn--notify-on {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.08);
}

.btn--notify:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--accent {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: var(--accent-mint);
  color: var(--bg-deep);
}

.btn--preset {
  position: relative;
  padding: 0.875rem 0.65rem;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.btn--preset:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-accent);
}

.btn--premium {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

/* ---- Tab Navigation ---- */
.tab-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  z-index: 900;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.tab-nav__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.15rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  min-width: 0;
}

.tab-nav__btn.is-active {
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
}

.tab-nav__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.tab-nav__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---- Dashboard Grid ---- */
.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

[data-tab-panel] {
  display: none !important;
  flex: 1;
  flex-direction: column;
  min-height: calc(100dvh - 4.25rem - env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  margin: 0;
  overflow-y: auto;
}

[data-tab-panel].is-active {
  display: flex !important;
}

.panel--home.is-active .home-hero {
  flex: 1;
  min-height: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  justify-content: flex-start;
}

.panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-panel);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.panel__header--center {
  flex-direction: column;
  text-align: center;
}

.panel__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.panel__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.panel__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-glow-sky);
  color: var(--accent-sky);
}

.panel__badge--library {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-sky);
}

.panel__badge--journal {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  max-width: 58%;
  text-align: right;
  line-height: 1.3;
}

.panel__badge--journal.is-done {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-mint);
}

/* ---- AI Panel ---- */
.input-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stress-input {
  width: 100%;
  padding: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.875rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.stress-input:focus {
  outline: none;
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px var(--accent-glow-sky);
}

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

.quick-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.preset-tag {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
  color: var(--accent-sky);
  opacity: 0.85;
}

.panel__desc--ai,
.panel__desc--library {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -0.25rem;
}

.library-hint {
  padding: 0.75rem 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--accent-mint);
  line-height: 1.5;
}

.library-hint[hidden] {
  display: none !important;
}

.library-now-playing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}

.library-now-playing[hidden] {
  display: none !important;
}

.library-now-playing__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.library-now-playing__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.library-now-playing__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-sky);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-now-playing__stop {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.ai-breathe-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}

.ai-breathe-cta[hidden] {
  display: none !important;
}

.ai-breathe-cta__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.ai-breathe-cta .btn--accent {
  width: 100%;
}

.ai-output {
  flex: 1;
  min-height: 120px;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ai-output__cursor-line {
  white-space: pre-wrap;
  word-break: keep-all;
}

.typing-cursor {
  color: var(--accent-sky);
  animation: blink 0.8s step-end infinite;
}

.typing-cursor.is-hidden {
  display: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.panel__title--sub {
  font-size: 0.95rem;
}

/* ---- Breathe Panel ---- */
.panel--breathe {
  align-items: center;
  text-align: center;
  min-height: 0;
}

.breathe-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 0;
}

.breathe-bubble {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow:
    0 0 40px var(--accent-glow-mint),
    0 0 80px var(--accent-glow-sky);
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0% {
    transform: scale(1);
    background-color: var(--accent-mint);
    box-shadow: 0 0 40px var(--accent-glow-mint);
  }
  40% {
    transform: scale(1.5);
    background-color: var(--accent-sky);
    box-shadow: 0 0 60px var(--accent-glow-sky);
  }
  60% {
    transform: scale(1.5);
    background-color: var(--accent-sky);
    box-shadow: 0 0 60px var(--accent-glow-sky);
  }
  100% {
    transform: scale(1);
    background-color: var(--accent-mint);
    box-shadow: 0 0 40px var(--accent-glow-mint);
  }
}

.breathe-guide {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-sky);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.breathe-guide.phase-hold {
  color: var(--accent-sky);
}

.breathe-guide.phase-exhale {
  color: var(--accent-mint);
}

.breathe-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.legend-item--inhale {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-sky);
}

.legend-item--hold {
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--accent-sky);
}

.legend-item--exhale {
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-mint);
}

/* ---- Gratitude Journal ---- */
.journal-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.82rem;
  resize: none;
}

.journal-input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.btn--journal {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--bg-deep);
  font-weight: 700;
}

.journal-history-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.journal-history__title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.journal-history {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  max-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.25rem;
}

.journal-history__item {
  padding: 0.55rem 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.journal-history__date {
  font-size: 0.65rem;
  color: var(--accent-sky);
  font-weight: 700;
}

.journal-history__text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.journal-history__empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

/* ---- XP Toast & Level Up ---- */
.xp-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--bg-deep);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
}

.xp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.levelup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}

.levelup-modal__content {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.25);
  animation: levelUpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes levelUpPop {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.levelup-modal__coins {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: coinShine 1.2s ease infinite alternate;
}

@keyframes coinShine {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.08); filter: brightness(1.2); }
}

.levelup-modal__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #fbbf24;
  font-weight: 800;
}

.levelup-modal__level {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fde68a;
  margin: 0.35rem 0;
}

.levelup-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.levelup-modal__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.75rem 0 1.25rem;
}

/* ---- Audio Library ---- */
.panel--library {
  min-height: 0;
}

.audio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.breathe-gallery {
  flex: 0 0 auto;
  width: 100%;
  height: 210px;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  position: relative;
}

.breathe-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.5s ease;
}

.breathe-gallery__img.is-fading {
  opacity: 0;
}

.library-journal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  flex: 1;
  min-height: 0;
}

.audio-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.audio-item__btn:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-accent);
}

.audio-item.is-locked .audio-item__btn {
  opacity: 0.72;
}

.audio-item.is-unlocked .audio-item__btn {
  opacity: 1;
}

.audio-item__lock {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  flex-shrink: 0;
}

.audio-item.is-unlocked .audio-item__lock {
  display: none;
}

.audio-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audio-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audio-item__title {
  font-size: 0.875rem;
  font-weight: 600;
}

.audio-item__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.audio-item.is-playing .audio-item__btn {
  border-color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 16px var(--accent-glow-mint);
}

.audio-item.is-playing .audio-item__meta::after {
  content: ' · 재생 중';
  color: var(--accent-mint);
}

.audio-player {
  flex-shrink: 0;
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.audio-player[hidden] {
  display: none !important;
}

.audio-player__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audio-player__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-mint);
  text-transform: uppercase;
}

.audio-player__title {
  font-size: 0.85rem;
  font-weight: 600;
}

.audio-player__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-player__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-player__btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-panel-hover);
}

.audio-player__volume {
  flex: 1;
  accent-color: var(--accent-sky);
  cursor: pointer;
}

/* ---- Paywall Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.modal__close:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.modal__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal__message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal__features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.modal__features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.modal__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-mint);
  font-weight: 700;
}

.modal__footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---- UX v1: Hero Card ---- */
.hero-card {
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(52, 211, 153, 0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card__greeting {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-card__name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-card__condition-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.hero-card__condition-label {
  color: var(--text-secondary);
}

.hero-card__condition-value {
  font-weight: 600;
  color: var(--accent-mint);
}

.hero-card__condition-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}

.hero-card__condition-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--accent-sky), var(--accent-mint));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.hero-card__condition-delta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.hero-card__condition-delta.is-up {
  color: var(--accent-mint);
}

.hero-card__condition-delta.is-down {
  color: #f87171;
}

.hero-card__missions-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.mission-list__item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.mission-list__item.is-done {
  color: var(--accent-mint);
}

.hero-card__missions-reward {
  font-size: 0.8rem;
  color: var(--accent-sky);
  margin-top: 0.25rem;
}

.hero-card__missions-reward.is-ready {
  color: var(--accent-mint);
  font-weight: 600;
}

.hero-card__missions-reward.is-claimed {
  color: var(--text-muted);
}

.btn--hero-start {
  margin-top: 0.25rem;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
  50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15); }
}

.home-hero__brand {
  position: relative;
}

.home-hero__logo.mindly-character {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero__logo.mindly-character:hover {
  transform: scale(1.05);
}

.settings-btn {
  margin-left: auto;
  align-self: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.settings-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-panel-hover);
}

/* ---- UX v1: AI Chat ---- */
.ai-chat {
  margin-bottom: 1rem;
}

.ai-chat__msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ai-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

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

.ai-chat__bubble {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: 4px;
}

.ai-chat__name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-bottom: 0.25rem;
}

.ai-chat__text {
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-line;
  color: var(--text-primary);
}

/* ---- UX v1: Breathe recommendation ---- */
.breathe-recommendation {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-mint);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
}

/* ---- UX v1: Library badges ---- */
.audio-item__badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}

/* ---- UX v1: Floating Mini Player ---- */
.mini-player {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 608px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 90;
  animation: slide-up 0.3s ease;
}

.mini-player[hidden] {
  display: none !important;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mini-player__art {
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.mini-player__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mini-player__title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player__progress {
  width: 100%;
  height: 4px;
  accent-color: var(--accent-sky);
  cursor: pointer;
}

.mini-player__controls {
  display: flex;
  gap: 0.25rem;
}

.mini-player__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mini-player__btn:hover {
  background: var(--bg-panel-hover);
  transform: scale(1.05);
}

/* ---- UX v1: Onboarding & Settings ---- */
.onboarding-modal {
  z-index: 1200;
}

body.is-onboarding .app,
body.is-onboarding .tab-nav,
body.is-onboarding .mini-player,
body.settings-open .tab-nav,
body.settings-open .mini-player {
  visibility: hidden;
  pointer-events: none;
}

body.modal-open .tab-nav {
  pointer-events: none;
}

.onboarding-modal__content {
  text-align: center;
  max-width: 360px;
}

.onboarding-modal__emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.onboarding-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.onboarding-modal__desc,
.onboarding-modal__question {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.onboarding-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  text-align: center;
}

.onboarding-modal__input:focus {
  outline: none;
  border-color: var(--accent-sky);
}

.mindly-character-modal__img {
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid rgba(56, 189, 248, 0.4);
}

.mindly-character-modal__text {
  text-align: center;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- UX v1: Confetti & XP pop ---- */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.xp-toast.xp-pop {
  animation: xp-pop 0.8s ease forwards;
}

@keyframes xp-pop {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
  20% { transform: translateX(-50%) scale(1.08); opacity: 1; }
  80% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.95); opacity: 0; }
}

/* ---- UX v1: Micro animations ---- */
.fade-in {
  animation: fade-in 0.4s ease;
}

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

.btn,
.stat-card,
.hero-card,
.audio-item__btn,
.tab-nav__btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:active,
.tab-nav__btn:active {
  transform: scale(0.97);
}

.panel.is-active {
  animation: fade-in 0.25s ease;
}

/* ---- PWA Install Banner ---- */
.pwa-install-banner {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 608px;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 1050;
  animation: slide-up 0.3s ease;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-banner__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.pwa-install-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.pwa-install-banner__actions .btn {
  flex: 1;
}

[data-pwa-install]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- PWA Update Banner ---- */
.pwa-update-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.98);
  border-bottom: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 1200;
  animation: slide-down 0.3s ease;
}

.pwa-update-banner[hidden] {
  display: none !important;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pwa-update-banner__text {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.pwa-update-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.pwa-update-banner__actions .btn {
  flex: 1;
}

.btn--sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

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

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

/* ---- Settings Screen (Sprint 03) ---- */
.settings-screen {
  position: fixed;
  inset: 0;
  z-index: 1150;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  animation: fade-in 0.25s ease;
}

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

.settings-screen__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}

.settings-screen__back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.settings-screen__back:hover {
  background: var(--bg-panel-hover);
}

.settings-screen__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.settings-screen__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0 2rem;
}

.settings-list {
  list-style: none;
}

.settings-list__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease;
}

.settings-list__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-sky);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.settings-list__item:active::after {
  opacity: 0.08;
}

.settings-list__item:hover {
  background: var(--bg-panel-hover);
}

.settings-list__icon {
  font-size: 1.25rem;
  width: 1.75rem;
  text-align: center;
  flex-shrink: 0;
}

.settings-list__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.settings-list__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.settings-list__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.settings-list__badge {
  font-size: 0.72rem;
  color: var(--accent-sky);
  font-weight: 500;
}

.settings-list__arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.settings-list__divider {
  height: 1px;
  margin: 0.35rem 1.25rem;
  background: var(--border-subtle);
}

.settings-panel {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.settings-panel__desc,
.settings-panel__placeholder {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.settings-panel__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.about-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.about-card__logo {
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 0.75rem;
}

.about-card__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.about-card__version {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about-card__tagline {
  font-size: 0.88rem;
  color: var(--accent-sky);
  margin-top: 0.35rem;
}

.about-version-detail {
  margin: 1rem auto 0;
  max-width: 18rem;
  text-align: left;
  font-size: 0.78rem;
}

.about-version-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.about-version-detail__row:last-child {
  border-bottom: none;
}

.about-version-detail dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.about-version-detail dd {
  margin: 0;
  text-align: right;
  color: var(--text-secondary);
  word-break: break-all;
}

.about-version-detail__value--ok {
  color: #4ade80;
}

.about-version-detail__value--warn {
  color: #fbbf24;
}

.about-version-detail__value--pending {
  color: var(--text-muted);
  font-style: italic;
}

.install-guide__subheading {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
  color: var(--text-secondary);
}

.about-section {
  padding: 0.5rem 0;
}

.about-section__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-section__name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.about-section__role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-section__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.about-links__btn {
  flex: 1;
  min-width: 90px;
}

.about-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ---- PWA Install Guide ---- */
.modal__content--left {
  text-align: left;
}

.install-guide {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.install-guide--warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.install-guide__heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-sky);
}

.install-guide__steps {
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-guide__url {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--accent-mint);
  word-break: break-all;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 480px) {
  .quick-presets {
    grid-template-columns: 1fr;
  }

  .tab-nav__icon {
    font-size: 1rem;
  }

  .tab-nav__label {
    font-size: 0.52rem;
  }

  .home-hero__title {
    font-size: 1.35rem;
  }

  .hero-card {
    padding: 1rem;
    gap: 0.65rem;
  }

  .hero-card__name {
    font-size: 1.35rem;
  }

  .home-hero__stats {
    gap: 0.4rem;
  }
}
