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

:root {
  --bg-top: #eef7ff;
  --bg-bottom: #cfe8ff;
  --panel: #ffffff;
  --panel-soft: #f4faff;
  --panel-accent: #e5f2ff;
  --primary: #6bb8ff;
  --primary-strong: #2f8fe8;
  --primary-deep: #0d2942;
  --border: #b7d7f3;
  --text: #111111;
  --text-soft: #495766;
  --text-faint: #6f7b88;
  --danger: #2a2a2a;
  --danger-hover: #111111;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body.dashboard-mode {
  padding: 0;
  align-items: stretch;
  height: 100vh;
  overflow: hidden;
}

#login-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

#login-screen h1 {
  font-size: 2.1rem;
  color: var(--primary-deep);
  text-align: center;
}

#login-subtitle {
  color: var(--text-faint);
  font-size: 1.05rem;
  text-align: center;
}

#password-label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

#login-password {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1rem;
  outline: none;
}

#login-password:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(47, 143, 232, 0.2);
}

#login-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: -2px;
}

#role-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.role-btn.active {
  outline: 3px solid rgba(107, 184, 255, 0.35);
  background: var(--primary-strong);
}

#login-screen button {
  width: 100%;
  font-size: 1.05rem;
  padding: 12px;
}

#auth-submit {
  margin-top: 2px;
  background: var(--primary-deep);
}

#auth-submit:hover {
  background: #081a2a;
}

#auth-submit:disabled {
  background: #b9c0c8;
  cursor: not-allowed;
}

#dashboard-login-btn {
  margin-top: 6px;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  padding: 9px;
}

#dashboard-login-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

@media (max-width: 480px) {
  #login-screen {
    padding: 22px 16px;
    border-radius: 14px;
  }

  #login-screen h1 {
    font-size: 1.8rem;
  }
}

#app {
  width: 100%;
  max-width: 500px;
}

#app.dashboard-mode {
  max-width: none;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

#app.dashboard-mode > header,
#app.dashboard-mode > #avatar-panel,
#app.dashboard-mode > #schedule-toggle,
#app.dashboard-mode > #schedule-panel,
#app.dashboard-mode > #week-toggle,
#app.dashboard-mode > #week-panel,
#app.dashboard-mode > #parent-view,
#app.dashboard-mode > #kid-view,
#app.dashboard-mode > #message {
  display: none !important;
}

header {
  background: var(--primary-strong);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

#logged-in-as {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

header h1 {
  color: #fff;
  font-size: 1.6rem;
}

#logout-btn {
  background: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  padding: 7px 12px;
  width: auto;
  border: 1px solid rgba(255,255,255,0.5);
}

#logout-btn:hover {
  background: rgba(255,255,255,0.4);
}

#wallet {
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: bold;
  color: var(--primary-deep);
  font-size: 1rem;
  white-space: nowrap;
}

.avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fcff, #d7ebff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(255,255,255,0.6);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-large {
  width: 56px;
  height: 56px;
}

.avatar-xl {
  width: 92px;
  height: 92px;
  font-size: 2rem;
  border-color: rgba(47, 143, 232, 0.2);
}

#avatar-panel {
  margin-bottom: 16px;
}

.parent-dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.parent-dashboard-controls p {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.4;
}

#dashboard-toggle.active {
  background: var(--primary-deep);
  color: #fff;
}

#dashboard-mode {
  display: none;
  height: 100%;
  overflow: hidden;
}

#dashboard-shell {
  height: 100%;
}

/* ── Dashboard Animations — GPU-only (transform + opacity) ── */
@keyframes db-avatar-celebrate {
  0%   { transform: scale(1)    rotate(0deg); }
  15%  { transform: scale(10)   rotate(180deg); }
  45%  { transform: scale(12)   rotate(540deg); }
  75%  { transform: scale(9)    rotate(900deg); }
  90%  { transform: scale(1.4)  rotate(1040deg); }
  100% { transform: scale(1)    rotate(1080deg); }
}
.db-avatar-celebrate {
  animation: db-avatar-celebrate 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  z-index: 999;
}
.db-scoreboard-card {
  cursor: pointer;
}

.clickable-streak-avatar {
  cursor: pointer;
}

/* ── Streak Comet — fly across with fire trail ── */
.db-comet {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  transform: translate(var(--start-x), var(--start-y));
  will-change: transform;
}

.db-comet-avatar {
  font-size: 2.8rem;
  z-index: 2;
  filter: drop-shadow(0 0 8px #ff6b35) drop-shadow(0 0 20px #ff4500) drop-shadow(0 0 40px rgba(255, 107, 53, 0.4));
  animation: db-avatar-pulse 1.4s ease-in-out infinite;
}

.db-comet-trail {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  margin-right: -6px;
}

.db-comet-fire {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: -8px;
  background: radial-gradient(circle, #ffd93d 0%, hsl(calc(20deg + var(--i) * 3deg), 100%, 55%) 45%, transparent 72%);
  opacity: max(0.06, calc(1 - var(--i) * 0.07));
  transform: scale(max(0.12, calc(1 - var(--i) * 0.065)));
  animation: db-comet-fire-flicker 0.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.04s);
}

.db-comet-launch {
  animation: db-comet-fly 1.3s cubic-bezier(0.12, 0.8, 0.3, 1) forwards;
}

@keyframes db-comet-fly {
  0% {
    transform: translate(var(--start-x), var(--start-y)) rotate(0deg);
    opacity: 1;
  }
  8% {
    transform: translate(var(--start-x), var(--start-y)) rotate(-22deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--start-x) + var(--fly-x)), calc(var(--start-y) + var(--fly-y))) rotate(-22deg);
    opacity: 0;
  }
}

@keyframes db-comet-fire-flicker {
  0% {
    transform: scale(max(0.12, calc(1 - var(--i) * 0.065))) scale(0.85);
    opacity: max(0.06, calc(1 - var(--i) * 0.07));
  }
  100% {
    transform: scale(max(0.12, calc(1 - var(--i) * 0.065))) scale(1.15);
    opacity: 1;
  }
}

@keyframes db-avatar-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #ff6b35) drop-shadow(0 0 20px #ff4500) drop-shadow(0 0 40px rgba(255, 107, 53, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px #ff6b35) drop-shadow(0 0 30px #ff4500) drop-shadow(0 0 60px rgba(255, 107, 53, 0.6));
  }
}

@keyframes db-float-up {
  0%   { transform: translateY(0)   translateX(0); }
  100% { transform: translateY(-95vh) translateX(14px); }
}
@keyframes db-panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes db-fire-flicker {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}
@keyframes db-clock-tick {
  0%, 100% { opacity: 1; }
  48%, 52%  { opacity: 0.55; }
}
@keyframes db-bg-breathe {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.06); }
}
@keyframes db-bar-grow {
  from { transform: scaleX(0); transform-origin: left; }
}
@keyframes db-goal-pop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes db-shimmer-text {
  0%   { opacity: 0.8; }
  50%  { opacity: 1; }
  100% { opacity: 0.8; }
}
@keyframes db-clock-tick {
  0%, 100% { opacity: 1; }
  48%, 52%  { opacity: 0.55; }
}
@keyframes db-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes db-goal-pop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes db-bar-grow {
  from { width: 0; }
}

/* ── Floating emoji layer — above panels, pointer-events off ── */
.db-float-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.db-float-emoji {
  position: absolute;
  bottom: -8%;
  opacity: 0.2;
  animation: db-float-up linear infinite;
  user-select: none;
}

/* ── Shell static accent glow ── */
.dashboard-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 82%, rgba(107,184,255,0.14), transparent 42%),
    radial-gradient(circle at 80% 12%, rgba(255,185,107,0.09), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

/* ── Panel entry animation ── */
.db-panel-enter {
  animation: db-panel-enter 0.4s ease both;
}

/* ── Topbar clock pulse ── */
.db-clock-pulse {
  animation: db-clock-tick 2s ease-in-out infinite;
}

/* ── Hero title ── */
.db-hero-title {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(107, 184, 255, 0.6), 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
}

/* ── Motivational message strip ── */
.db-motivation {
  color: rgba(248, 251, 255, 0.88) !important;
  font-style: italic;
  font-size: 0.95rem !important;
}

/* ── Metric card accent colors ── */
.db-metric-done {
  border-color: rgba(108, 203, 119, 0.4) !important;
  background: rgba(108, 203, 119, 0.12) !important;
}
.db-metric-done strong { color: #7ddf95; }
.db-metric-progress {
  border-color: rgba(77, 150, 255, 0.4) !important;
  background: rgba(77, 150, 255, 0.1) !important;
}
.db-metric-progress strong { color: #7cc3ff; }

/* ── Balance cards ── */
.db-balance-rocky  { border-color: rgba(255, 107, 107, 0.35) !important; }
.db-balance-griffin { border-color: rgba(107, 184, 255, 0.35) !important; }

.db-hero-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}
.db-hero-score strong {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.db-score-rocky {
  background: rgba(255, 90, 90, 0.22);
  border-color: rgba(255, 130, 130, 0.55);
  color: #ffcaca;
  box-shadow: 0 0 12px rgba(255, 90, 90, 0.25);
}
.db-score-griffin {
  background: rgba(80, 160, 255, 0.22);
  border-color: rgba(100, 180, 255, 0.55);
  color: #c0e0ff;
  box-shadow: 0 0 12px rgba(80, 160, 255, 0.25);
}
.db-balance-rocky .dashboard-balance-value  { color: #ffb3b3; }
.db-balance-griffin .dashboard-balance-value { color: #a8d8ff; }
.dashboard-balance-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 4px;
}

/* ── Streak display ── */
.db-streak-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.db-streak-row:last-child { border-bottom: none; padding-bottom: 0; }
.db-streak-label {
  font-size: 0.82rem;
  color: rgba(248, 251, 255, 0.78);
  margin-bottom: 3px;
}
.db-streak-fires {
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.db-fire {
  display: inline-block;
}
.db-fire:nth-child(odd) {
  animation: db-fire-flicker 1.6s ease-in-out infinite;
}
.db-fire:nth-child(even) {
  animation: db-fire-flicker 1.6s ease-in-out infinite 0.8s;
}
.db-streak-zero {
  font-size: 0.78rem;
  color: rgba(248,251,255,0.45);
  font-style: italic;
}
.db-streak-bar {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.db-streak-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #ff6b6b);
  border-radius: 999px;
  animation: db-bar-grow 0.8s ease both;
}
.db-streak-bar-fill.db-streak-goal {
  background: linear-gradient(90deg, #ffd93d, #6bcb77);
  box-shadow: 0 0 8px rgba(107, 203, 119, 0.6);
}
.db-streak-meta { font-size: 0.78rem; }
.db-streak-goal-text { color: rgba(248,251,255,0.55); }
.db-goal-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffd93d, #6bcb77);
  color: #0d2942;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  animation: db-goal-pop 0.5s ease both;
}
.db-streak-rocky  h4 { color: #ffb3b3; }
.db-streak-griffin h4 { color: #a8d8ff; }

/* ── Dashboard avatar ── */
.db-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid rgba(255,255,255,0.25);
  vertical-align: middle;
  flex-shrink: 0;
}
.db-balance-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.db-balance-name-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ── Upcoming panel subtle highlight ── */
.dashboard-panel-upcoming {
  border-color: rgba(107, 184, 255, 0.35) !important;
}

.dashboard-shell {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.45), transparent 28%),
    linear-gradient(160deg, #0d2942 0%, #133d61 42%, #e7f4ff 100%);
  border-radius: 30px;
  padding: 20px 24px 20px;
  color: #f8fbff;
  box-shadow: 0 20px 50px rgba(13, 41, 66, 0.22);
  box-sizing: border-box;
}

.dashboard-shell.dashboard-night {
  background:
    radial-gradient(circle at top left, rgba(78, 110, 155, 0.2), transparent 24%),
    linear-gradient(160deg, #050b12 0%, #0d1827 38%, #13263b 100%);
  box-shadow: 0 24px 64px rgba(2, 8, 16, 0.48);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.dashboard-topbar h1 {
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  margin-top: 0;
  line-height: 1.1;
}

.dashboard-topbar p {
  max-width: 820px;
  color: rgba(248, 251, 255, 0.78);
  line-height: 1.3;
  margin-top: 4px;
  font-size: 0.9rem;
}

.dashboard-topbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dashboard-theme-btn {
  min-width: 120px;
}

.dashboard-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(248, 251, 255, 0.72);
}

.dashboard-clock {
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.75fr);
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dashboard-hero-main,
.dashboard-hero-side,
.dashboard-panel {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 10px 14px;
}

.dashboard-panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-panel > *:not(.dashboard-panel-header) {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dashboard-hero-main h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin: 2px 0 4px;
}

.dashboard-hero-main p {
  color: rgba(248, 251, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 760px;
}

.dashboard-hero-meta,
.dashboard-chip-list,
.dashboard-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-pill,
.dashboard-chip,
.dashboard-mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f8fbff;
  font-weight: 700;
  font-size: 0.86rem;
}

.dashboard-shell.dashboard-night .dashboard-pill,
.dashboard-shell.dashboard-night .dashboard-chip,
.dashboard-shell.dashboard-night .dashboard-mini-status {
  background: rgba(11, 20, 32, 0.58);
  border-color: rgba(142, 182, 225, 0.18);
}

.dashboard-hero-meta {
  margin-top: 6px;
}

.dashboard-metric-row,
.dashboard-balance-grid,
.dashboard-streak-grid {
  display: grid;
  gap: 10px;
}

.dashboard-metric-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.dashboard-metric-card,
.dashboard-balance-card,
.dashboard-streak-card {
  background: rgba(12, 25, 40, 0.18);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 6px 10px;
}

.dashboard-metric-card strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
}

.dashboard-metric-row-4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Scoreboard panel ── */
.dashboard-hero-scores {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.db-scoreboard {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  margin-top: 8px;
}

.db-scoreboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.db-scoreboard-card .db-avatar {
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.db-scoreboard-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.db-scoreboard-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.db-score-rocky .db-scoreboard-num  { color: #ffb3b3; text-shadow: 0 0 16px rgba(255,100,100,0.5); }
.db-score-griffin .db-scoreboard-num { color: #a8d8ff; text-shadow: 0 0 16px rgba(100,180,255,0.5); }

.db-scoreboard-divider {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-metric-card span,
.dashboard-balance-meta,
.dashboard-streak-row span,
.dashboard-list-item span,
.dashboard-empty {
  color: rgba(248, 251, 255, 0.78);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.dashboard-panel-upcoming {
  grid-row: span 2;
}

.dashboard-panel-streaks {
  grid-column: span 2;
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.dashboard-panel-header h3 {
  font-size: 1rem;
}

.dashboard-panel-header span {
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.82rem;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-list-item strong,
.dashboard-streak-row strong,
.dashboard-balance-name {
  display: block;
  color: #ffffff;
}

.dashboard-empty {
  display: block;
  line-height: 1.5;
}

.dashboard-upcoming-item em {
  font-style: normal;
}

.dashboard-balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
}

.dashboard-balance-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 4px;
}

.dashboard-balance-value span {
  font-size: 1.1rem;
}

.dashboard-streak-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-streak-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.dashboard-streak-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-streak-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-alert-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-alert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-alert-item strong,
.dashboard-toast strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

.dashboard-alert-item span,
.dashboard-toast span,
.dashboard-alert-item small {
  color: rgba(248, 251, 255, 0.78);
}

.dashboard-alert-item small {
  white-space: nowrap;
  font-size: 0.78rem;
}

.dashboard-alert-success,
.dashboard-alert-progress,
.dashboard-alert-warning,
.dashboard-alert-achievement {
  border-left: 3px solid transparent;
  padding-left: 12px;
}

.dashboard-alert-success {
  border-left-color: #77d99f;
}

.dashboard-alert-progress {
  border-left-color: #7cc3ff;
}

.dashboard-alert-warning {
  border-left-color: #ffb86b;
}

.dashboard-alert-achievement {
  border-left-color: #ffd76e;
}

.dashboard-toast-stack {
  position: absolute;
  top: 22px;
  right: 22px;
  width: min(360px, 36vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  z-index: 5;
}

.dashboard-toast {
  background: rgba(8, 21, 35, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.dashboard-shell.dashboard-night .dashboard-toast {
  background: rgba(3, 10, 18, 0.9);
}

.dashboard-shell.dashboard-night .dashboard-hero-main,
.dashboard-shell.dashboard-night .dashboard-hero-side,
.dashboard-shell.dashboard-night .dashboard-panel {
  background: rgba(8, 17, 28, 0.72);
  border-color: rgba(121, 158, 196, 0.16);
}

.dashboard-shell.dashboard-night .dashboard-metric-card,
.dashboard-shell.dashboard-night .dashboard-balance-card,
.dashboard-shell.dashboard-night .dashboard-streak-card {
  background: rgba(3, 10, 18, 0.52);
  border-color: rgba(121, 158, 196, 0.12);
}

.dashboard-shell.dashboard-night .dashboard-topbar p,
.dashboard-shell.dashboard-night .dashboard-metric-card span,
.dashboard-shell.dashboard-night .dashboard-balance-meta,
.dashboard-shell.dashboard-night .dashboard-streak-row span,
.dashboard-shell.dashboard-night .dashboard-list-item span,
.dashboard-shell.dashboard-night .dashboard-empty,
.dashboard-shell.dashboard-night .dashboard-alert-item span,
.dashboard-shell.dashboard-night .dashboard-alert-item small,
.dashboard-shell.dashboard-night .dashboard-toast span,
.dashboard-shell.dashboard-night .dashboard-kicker,
.dashboard-shell.dashboard-night .dashboard-panel-header span {
  color: rgba(231, 242, 255, 0.78);
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-editor-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.avatar-editor-copy p {
  color: var(--text-soft);
  line-height: 1.4;
}

.file-upload-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  width: auto;
  margin: 0;
}

.file-upload-btn {
  background: var(--primary-strong);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
}

.file-upload-btn:hover {
  background: var(--primary-deep);
}

.secondary-btn {
  background: var(--panel-soft);
  color: var(--primary-deep);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  background: var(--panel-accent);
}

.admin-chore-row {
  gap: 10px;
  align-items: end;
}

.drag-handle {
  width: 36px;
  min-width: 36px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: grab;
  user-select: none;
}

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

.admin-chore-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  flex: 1;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-field label {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-chore-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.ghost-btn {
  width: auto;
  margin: 0;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost-btn:hover {
  background: var(--panel-accent);
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions button {
  width: auto;
  margin: 0;
}

#avatar-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#chores-toggle {
  margin-bottom: 12px;
}

#chores-panel {
  margin-top: 0;
}

#rewards-toggle {
  margin-bottom: 12px;
}

#rewards-panel {
  margin-top: 0;
}

section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

section h2 {
  margin-bottom: 14px;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

button {
  background: var(--primary-strong);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.2s;
  margin: 4px 0;
  display: block;
  width: 100%;
}

button:hover {
  background: var(--primary-deep);
}

.shop-item,
.chore-item,
.streak-item,
.reward-item,
.admin-chore-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
}

.shop-item:last-child,
.chore-item:last-child,
.streak-item:last-child,
.reward-item:last-child,
.admin-chore-row:last-child {
  border-bottom: none;
}

.shop-item span,
.chore-item span,
.streak-item span,
.reward-item span {
  font-size: 1rem;
  color: var(--text);
}

.shop-item button,
.chore-item button,
.streak-item button,
.reward-item button {
  width: auto;
  margin: 0;
  padding: 8px 14px;
}

.streak-item {
  gap: 12px;
}

.streak-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.streak-item small,
.streak-board-group small {
  color: var(--text-faint);
  font-size: 0.84rem;
}

#streaks-panel {
  margin-bottom: 16px;
}

.streak-board-group + .streak-board-group {
  margin-top: 8px;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#message {
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  min-height: 28px;
  margin-top: 8px;
  transition: opacity 0.5s;
}

.parent-token-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.token-row {
  display: grid;
  grid-template-columns: 70px 90px 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.token-row span {
  font-weight: 600;
  color: var(--text);
}

.token-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
}

.ad-hoc-chore-panel {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-amount-input {
  width: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  margin-right: 6px;
}

.danger-btn {
  background: var(--danger);
}

.danger-btn:hover {
  background: var(--danger-hover);
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item small {
  color: var(--text-faint);
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .avatar-editor {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-chore-row {
    flex-direction: column;
    align-items: stretch;
  }

  .drag-handle {
    width: 100%;
  }

  .admin-chore-fields {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }

  .token-row {
    grid-template-columns: 1fr;
  }

  .schedule-block-status-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

#schedule-toggle {
  margin-bottom: 12px;
}

.schedule-week {
  background: var(--panel-soft);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.schedule-week strong {
  color: var(--primary-deep);
}

.schedule-week span {
  color: var(--text-soft);
}

.schedule-theme-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--panel-accent);
}

.schedule-theme-emoji {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.schedule-theme-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-theme-date {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.schedule-chores {
  margin-bottom: 14px;
}

.schedule-summary {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.schedule-summary-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.schedule-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-summary-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: var(--text-soft);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
}

.schedule-summary-done {
  background: #eff9f0;
  color: #176234;
  border-color: #b8dfbf;
}

.schedule-summary-progress {
  background: #eef7ff;
  color: var(--primary-deep);
}

.schedule-summary-missed {
  background: #fff1f1;
  color: #7a1e1e;
  border-color: #e6b7b7;
}

.schedule-summary-note {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.schedule-chores-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.schedule-chore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chore-chip {
  width: auto;
  margin: 0;
  padding: 7px 12px;
  font-size: 0.85rem;
  background: var(--panel-soft);
  color: var(--primary-deep);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.chore-chip:hover {
  background: var(--panel-accent);
}

.schedule-blocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.schedule-block-now {
  background: var(--panel-soft);
  border: 1px solid var(--primary);
}

.schedule-block-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9aa8b6;
  min-width: 36px;
  padding-top: 2px;
}

.schedule-block-now .schedule-block-time {
  color: var(--primary-deep);
}

.schedule-block-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.schedule-block-info {
  flex: 1;
}

.schedule-block-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.schedule-block-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 1px;
  line-height: 1.35;
}

.schedule-block-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.schedule-status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--panel-soft);
  color: var(--text-soft);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-status-not-done {
  background: #fff1f1;
  color: #7a1e1e;
  border-color: #e6b7b7;
}

.schedule-status-in-progress {
  background: #eef7ff;
  color: var(--primary-deep);
  border-color: var(--border);
}

.schedule-status-done {
  background: #eff9f0;
  color: #176234;
  border-color: #b8dfbf;
}

.schedule-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-status-note {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.schedule-status-btn {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.76rem;
  background: #fff;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.schedule-status-btn:hover {
  background: var(--panel-accent);
  color: var(--primary-deep);
}

.schedule-status-btn.active {
  background: var(--primary-strong);
  color: #fff;
  border-color: var(--primary-strong);
}

.schedule-block-not-done {
  border: 1px solid #e6b7b7;
  background: #fff7f7;
}

.schedule-block-in-progress {
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.schedule-block-done {
  border: 1px solid #b8dfbf;
  background: #f4fcf5;
}

.schedule-now-pill {
  display: inline-block;
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

#week-toggle {
  margin-bottom: 12px;
}

.week-days {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.week-day-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card-bg, #fff);
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.week-day-today {
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 2px var(--primary, #3b82f6)22;
}

.week-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 12px;
}

.week-day-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.week-day-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.week-day-date {
  font-size: 0.82rem;
  color: #4b5563;
}

.week-day-week-badge {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.week-day-theme {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.week-day-theme-emoji {
  font-size: 1.4rem;
}

.week-day-theme-name {
  font-size: 0.75rem;
  color: #374151;
  font-weight: 600;
  text-align: right;
}

.week-day-summary {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px 14px;
  background: var(--panel-soft, #f8fafc);
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.week-blocks {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.88rem;
}

.week-block-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9aa8b6;
  min-width: 36px;
  flex-shrink: 0;
}

.week-block-emoji {
  flex-shrink: 0;
}

.week-block-label {
  color: var(--text, #1f2937);
  font-weight: 500;
}

.week-day-empty {
  color: var(--text-soft, #6b7280);
  font-size: 0.85rem;
  margin: 4px 0;
}

/* ─── Affirmation Ticker ──────────────────────────────────────────────── */

.affirmation-ticker {
  height: 60px;
  overflow: hidden;
  background: linear-gradient(90deg, #78350f 0%, #92400e 50%, #78350f 100%);
  color: #fef3c7;
  border-top: 1px solid #b45309;
  border-bottom: 1px solid #b45309;
  position: relative;
}

.affirmation-ticker-viewport {
  position: relative;
  height: 100%;
}

.affirmation-ticker-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.affirmation-ticker-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.affirmation-ticker-slide.exit {
  opacity: 0;
  transform: translateY(-10px);
}

.affirmation-ticker-author {
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.affirmation-ticker-text {
  font-size: 0.82rem;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 95%;
  line-height: 1.35;
}

/* ─── Affirmation FAB ─────────────────────────────────────────────────── */

.affirmation-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,158,11,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 200;
}

.affirmation-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(245,158,11,0.6);
}

/* ─── Affirmation Modal ───────────────────────────────────────────────── */

.affirmation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.affirmation-modal-box {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 420px;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affirmation-modal-box h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #92400e;
}

.affirmation-modal-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #b45309;
}

.affirmation-modal-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  font-size: 0.9rem;
  background: #fff;
}

.affirmation-modal-textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  font-size: 0.9rem;
  resize: vertical;
  font-family: inherit;
  background: #fff;
}

.affirmation-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.affirmation-modal-error {
  margin: 0;
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1.1em;
}

/* ─── Day Wrap Affirmation CTA ────────────────────────────────────────── */

.affirmation-cta-btn {
  margin-top: 6px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #f59e0b;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}

.affirmation-cta-btn:hover {
  background: #fde68a;
}

/* ─── Parent affirmation section ─────────────────────────────────────── */

.parent-affirmation-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.parent-affirmation-section h2 { margin: 0; }
.parent-affirmation-section p  { margin: 0; flex: 1; color: #555; font-size: 0.9rem; }

/* ── Easter Egg Challenge System ──────────────────────────────────────────── */
.egg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
}

.floating-egg {
  position: absolute;
  pointer-events: all;
  font-size: 42px;
  opacity: 0.18;
  cursor: pointer;
  user-select: none;
  animation: egg-shimmer 3s ease-in-out infinite;
  transition: opacity 0.3s;
}

.floating-egg.egg-tv { opacity: 0.28; }

.egg-color-warm { filter: sepia(0.4) hue-rotate(10deg); }
.egg-color-sage { filter: sepia(0.4) hue-rotate(80deg); }
.egg-color-sky  { filter: sepia(0.4) hue-rotate(180deg); }

@keyframes egg-shimmer {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%       { opacity: 0.27; transform: scale(1.07); }
}

.egg-challenge-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.egg-challenge-card.expired {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.egg-challenge-timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: #d97706;
  font-weight: 600;
}

.egg-multiplier-badge {
  background: #fde68a;
  color: #92400e;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.3rem;
}

.egg-pool-status {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.egg-pool-stat {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.egg-pool-stat.warning {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.egg-last-activated {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0.2rem 0 0.6rem;
}

.egg-pending-idea {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.egg-idea-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.egg-submit-form {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 0.9rem;
  margin-top: 0.75rem;
}

.egg-submit-form input,
.egg-submit-form textarea {
  width: 100%;
  margin: 0.3rem 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.88rem;
  box-sizing: border-box;
  font-family: inherit;
}

.egg-section-header {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.6rem 0 0.2rem;
  color: #374151;
}
.parent-affirmation-section button { width: auto; }
