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

:root {
  --blue: #378ADD; --blue-light: #E6F1FB; --blue-dark: #0C447C;
  --teal: #1D9E75; --teal-light: #E1F5EE; --teal-dark: #085041;
  --amber: #EF9F27; --amber-light: #FAEEDA; --amber-dark: #633806;
  --coral: #D85A30; --coral-light: #FAECE7; --coral-dark: #4A1B0C;
  --purple: #7F77DD; --purple-light: #EEEDFE; --purple-dark: #26215C;
  --pink: #D4537E; --pink-light: #FBEAF0; --pink-dark: #4B1528;
  --gray-100: #F5F5F3; --gray-200: #E8E8E4; --gray-400: #888780; --gray-700: #444441;
  --text: #1a1a18; --text-secondary: #666662; --text-tertiary: #99998F;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
  --border: 0.5px solid rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue-light: #0c2a4a; --blue-dark: #B5D4F4;
    --teal-light: #042820; --teal-dark: #9FE1CB;
    --amber-light: #2a1800; --amber-dark: #FAC775;
    --coral-light: #2a0e06; --coral-dark: #F0997B;
    --purple-light: #17153a; --purple-dark: #CECBF6;
    --pink-light: #2a0f1c; --pink-dark: #F4C0D1;
    --gray-100: #1e1e1c; --gray-200: #2a2a27;
    --text: #F0EFE8; --text-secondary: #999890; --text-tertiary: #66665e;
    --border: 0.5px solid rgba(255,255,255,0.1);
    background: #141412;
  }
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--gray-100); color: var(--text); min-height: 100vh; font-size: 16px; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.hidden { display: none !important; }

/* ONBOARDING */
.onboarding-wrap { max-width: 400px; margin: 0 auto; padding: 4rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.onboarding-icon { font-size: 64px; }
.onboarding-wrap h2 { font-size: 24px; font-weight: 600; }
.onboarding-wrap p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* LOGIN */
.login-wrap { max-width: 400px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.login-logo { text-align: center; }
.logo-jar { font-size: 64px; display: block; margin-bottom: 0.5rem; }
.login-logo h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.login-sub { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }
.profile-select { display: flex; gap: 12px; width: 100%; flex-wrap: wrap; }
.profile-card { flex: 1; min-width: 120px; padding: 1.25rem 1rem; background: white; border: var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; font-weight: 500; transition: transform 0.12s; color: var(--text); }
@media (prefers-color-scheme: dark) { .profile-card { background: var(--gray-200); } }
.profile-card:active { transform: scale(0.97); }
.blue-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,138,221,0.15); }
.pink-card:hover { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.15); }
.teal-card:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,158,117,0.15); }
.amber-card:hover { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(239,159,39,0.15); }
.profile-age { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.profile-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.av-blue { background: var(--blue-light); color: var(--blue-dark); }
.av-pink { background: var(--pink-light); color: var(--pink-dark); }
.av-teal { background: var(--teal-light); color: var(--teal-dark); }
.av-amber { background: var(--amber-light); color: var(--amber-dark); }
.admin-login-wrap { width: 100%; text-align: center; }
.btn-admin-toggle { background: none; border: var(--border); border-radius: var(--radius-sm); padding: 10px 20px; font-size: 14px; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.admin-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.admin-form input[type="password"] { width: 100%; padding: 12px 14px; border: var(--border); border-radius: var(--radius-sm); font-size: 15px; background: white; color: var(--text); font-family: inherit; }
@media (prefers-color-scheme: dark) { .admin-form input[type="password"] { background: var(--gray-200); } }
.admin-error { font-size: 13px; color: var(--coral); margin-top: 4px; }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--blue-light); border-bottom: var(--border); }
.pink-bar { background: var(--pink-light); }
.teal-bar { background: var(--teal-light); }
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { font-size: 13px; color: var(--text-secondary); }
.btn-back { background: none; border: none; font-size: 14px; color: var(--text-secondary); cursor: pointer; font-family: inherit; padding: 4px 0; }

/* CONTENT */
.content { max-width: 480px; margin: 0 auto; padding: 1rem 1rem 3rem; }

/* MARBLE HERO */
.marble-hero { border-radius: var(--radius-xl); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; border: var(--border); }
.blue-hero { background: var(--blue-light); }
.pink-hero { background: var(--pink-light); }
.teal-hero { background: var(--teal-light); }
.amber-hero { background: var(--amber-light); }
.marble-big { font-size: 52px; font-weight: 700; line-height: 1; color: var(--blue-dark); }
.pink-big { color: var(--pink-dark); }
.marble-info { flex: 1; }
.marble-label { font-size: 13px; color: var(--text-secondary); }
.marble-sublabel { font-size: 13px; color: var(--blue-dark); margin-top: 2px; }
.pink-sub { color: var(--pink-dark); }

/* MESSAGE */
.message-card { background: var(--purple-light); border: var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 1rem; font-size: 14px; color: var(--purple-dark); font-style: italic; line-height: 1.6; }
.scarlett-msg { background: var(--pink-light); color: var(--pink-dark); }

/* STREAK */
.streak-bar { background: white; border: var(--border); border-radius: var(--radius-md); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .streak-bar { background: var(--gray-200); } }
.streak-title { font-size: 14px; font-weight: 500; }
.streak-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.streak-dots { display: flex; gap: 5px; }
.streak-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-200); }
.streak-dot.filled { background: var(--amber); }

/* SECTION */
.section-title { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; margin: 1rem 0 8px; }

/* CATEGORIES */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-card { background: white; border: var(--border); border-radius: var(--radius-md); padding: 12px 8px; text-align: center; }
@media (prefers-color-scheme: dark) { .cat-card { background: var(--gray-200); } }
.cat-val { font-size: 22px; font-weight: 600; }
.cat-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
.blue-val { color: var(--blue-dark); }
.teal-val { color: var(--teal-dark); }
.amber-val { color: var(--amber-dark); }
.pink-val { color: var(--pink-dark); }
.coral-val { color: var(--coral-dark); }

/* TASKS */
.resp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.task-item { background: white; border: var(--border); border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (prefers-color-scheme: dark) { .task-item { background: var(--gray-200); } }
.task-name { font-size: 13px; font-weight: 500; }
.task-freq { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.task-actions { flex-shrink: 0; }
.task-btn { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; border: var(--border); background: var(--teal-light); color: var(--teal-dark); }
.teal-btn { background: var(--teal); color: white; border: none; padding: 6px 12px; border-radius: var(--radius-sm); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.task-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); }
.task-badge.done { background: var(--teal-light); color: var(--teal-dark); }
.task-badge.pending { background: var(--amber-light); color: var(--amber-dark); }
.task-badge-hist { display: inline-block; background: var(--teal-light); color: var(--teal-dark); font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }

/* STARS */
.stars-wrap { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.star-icon { font-size: 30px; filter: grayscale(1) opacity(0.25); transition: filter 0.3s; }
.star-icon.earned { filter: none; }
.stars-hint { font-size: 12px; color: var(--text-secondary); margin-bottom: 1rem; }

/* REWARDS */
.rewards-list { display: flex; flex-direction: column; gap: 8px; }
.reward-item { background: white; border: var(--border); border-radius: var(--radius-md); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
@media (prefers-color-scheme: dark) { .reward-item { background: var(--gray-200); } }
.reward-item.locked { opacity: 0.5; }
.reward-name { font-size: 14px; font-weight: 500; }
.reward-tier { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.reward-cost { font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--amber-light); color: var(--amber-dark); border-radius: var(--radius-sm); padding: 4px 10px; }
.reward-cost.unlocked { background: var(--teal-light); color: var(--teal-dark); }
.progress-wrap { height: 4px; background: var(--gray-200); border-radius: 99px; margin: 6px 0 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--blue); }
.progress-fill.pink { background: var(--pink); }
.progress-sub { font-size: 11px; color: var(--text-tertiary); }

/* HISTORY */
.history-card { background: white; border: var(--border); border-radius: var(--radius-lg); padding: 10px 14px; }
@media (prefers-color-scheme: dark) { .history-card { background: var(--gray-200); } }
.history-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-bottom: var(--border); }
.history-item:last-child { border-bottom: none; }
.history-text { font-size: 13px; }
.history-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.history-delta { font-size: 14px; font-weight: 600; min-width: 44px; text-align: right; }
.delta-plus { color: var(--teal); }
.delta-minus { color: var(--coral); }
.rule-badge { display: inline-block; background: #FCEBEB; color: #A32D2D; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }

/* ADMIN */
.tab-bar { display: flex; overflow-x: auto; border-bottom: var(--border); margin-bottom: 1rem; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { flex-shrink: 0; padding: 10px 12px; font-size: 12px; font-family: inherit; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; color: var(--text-secondary); margin-bottom: -0.5px; transition: all 0.15s; position: relative; }
.tab-btn.active { color: var(--teal-dark); border-bottom-color: var(--teal); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.admin-card { background: white; border: var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .admin-card { background: var(--gray-200); } }
.purple-card { background: var(--purple-light) !important; }
.admin-card-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.form-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.form-row select, .form-row input[type="number"], .form-row input[type="text"] { font-family: inherit; font-size: 13px; border: var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--gray-100); color: var(--text); }
.form-row select { flex: 1; }
.form-row input[type="number"] { width: 72px; }
.form-row input[type="text"] { flex: 1; }
.form-row textarea { flex: 1; font-family: inherit; font-size: 13px; border: var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--gray-100); color: var(--text); resize: none; height: 60px; }
.btn-primary { width: 100%; padding: 12px; background: var(--teal); color: white; border: none; border-radius: var(--radius-md); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.88; }
.balance-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: var(--border); }
.balance-row:last-child { border-bottom: none; }
.balance-val { font-size: 22px; font-weight: 600; }
.privilege-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: var(--border); }
.privilege-item:last-child { border-bottom: none; }
.priv-name { font-size: 13px; font-weight: 500; }
.priv-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.toggle-btn { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; border: var(--border); transition: all 0.15s; white-space: nowrap; }
.toggle-active { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); }
.toggle-suspended { background: var(--coral-light); color: var(--coral-dark); border-color: var(--coral); }
.premio-admin-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: var(--border); font-size: 13px; }
.premio-admin-item:last-child { border-bottom: none; }
.btn-remove { background: none; border: none; color: var(--coral); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; font-family: inherit; }

/* INSIGHTS */
.insight-card { background: var(--gray-100); border-radius: var(--radius-md); padding: 10px; text-align: center; }
.insight-val { font-size: 20px; font-weight: 600; }
.insight-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* BADGE */
.badge-dot { display: inline-flex; align-items: center; justify-content: center; background: var(--coral); color: white; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; margin-left: 4px; vertical-align: middle; }

/* OVERLAYS */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 999; }
.overlay-content { background: white; border-radius: var(--radius-xl); padding: 2rem 1.5rem; text-align: center; max-width: 320px; width: 90%; }
@media (prefers-color-scheme: dark) { .overlay-content { background: var(--gray-200); } }
.celebration h2 { font-size: 24px; font-weight: 700; margin: 12px 0 4px; }
.celebration p { color: var(--text-secondary); font-size: 15px; }
.leveldown p { color: var(--text-secondary); }

/* TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--gray-700); color: white; padding: 10px 20px; border-radius: 99px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.25s; pointer-events: none; z-index: 999; white-space: nowrap; }
.toast.show { opacity: 1; }

/* Emoji feedback */
.emoji-feedback { display: flex; gap: 16px; justify-content: center; }
.emoji-btn { font-size: 40px; background: none; border: 2px solid transparent; border-radius: var(--radius-lg); padding: 8px 12px; cursor: pointer; transition: all 0.15s; }
.emoji-btn:hover { border-color: var(--gray-200); background: var(--gray-100); }
.emoji-btn.selected { border-color: var(--teal); background: var(--teal-light); }

/* v2.2 additions */
.amber-bar { background: var(--amber-light); }
.amber-big { color: var(--amber-dark); }
.young-msg { background: var(--pink-light); color: var(--pink-dark); }
.av-amber { background: var(--amber-light); color: var(--amber-dark); }

/* v2.3 — Schedule & Calendar */
.schedule-day-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.schedule-day-name { font-size:14px; font-weight:600; }
.schedule-pct { font-size:12px; font-weight:600; padding:3px 8px; border-radius:var(--radius-sm); }
.pct-pass { background:var(--teal-light); color:var(--teal-dark); }
.pct-warn { background:var(--amber-light); color:var(--amber-dark); }
.schedule-progress-wrap { height:5px; background:var(--gray-200); border-radius:99px; margin-bottom:6px; overflow:hidden; }
.schedule-progress-fill { height:100%; border-radius:99px; transition:width 0.4s; }
.schedule-item { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:var(--border); }
.schedule-item:last-child { border-bottom:none; }
.schedule-item.schedule-done { opacity:0.5; }
.schedule-time { font-size:12px; font-weight:600; color:var(--text-secondary); min-width:42px; }
.schedule-task { flex:1; font-size:13px; }

/* Calendar */
.cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-month { font-size:14px; font-weight:600; }
.cal-nav-btn { background:none; border:var(--border); border-radius:var(--radius-sm); width:28px; height:28px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:var(--text); }
.cal-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.cal-dow { font-size:10px; font-weight:600; color:var(--text-secondary); text-align:center; padding:2px 0; }
.cal-day { font-size:11px; text-align:center; padding:5px 2px; border-radius:var(--radius-sm); position:relative; min-height:28px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.cal-today { border:2px solid var(--teal); font-weight:700; }
.cal-future { color:var(--text-tertiary); }
.cal-pass { background:var(--teal-light); color:var(--teal-dark); }
.cal-partial { background:var(--amber-light); color:var(--amber-dark); }
.cal-miss { background:var(--coral-light); color:var(--coral-dark); }
.cal-empty { background:none; }
.cal-dot { font-size:9px; display:block; }

/* Level message colours */
.level-msg-amber { background:var(--amber-light); color:var(--amber-dark); }
.level-msg-teal { background:var(--teal-light); color:var(--teal-dark); }
.level-msg-blue { background:var(--blue-light); color:var(--blue-dark); }
.level-msg-coral { background:var(--coral-light); color:var(--coral-dark); }
.level-msg-purple { background:var(--purple-light); color:var(--purple-dark); }

/* Fitness category */
.coral-val { color:var(--coral-dark); }

/* ─── LEVEL UP ANIMATION ──────────────────────────────────────────────────── */
.levelup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.levelup-overlay.show { opacity: 1; pointer-events: all; }

.levelup-card {
  text-align: center; padding: 2.5rem 2rem;
  max-width: 320px; width: 90%;
  border-radius: var(--radius-xl);
  transform: scale(0.6); transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.levelup-overlay.show .levelup-card { transform: scale(1); }

.levelup-card.spark  { background: linear-gradient(135deg,#FAEEDA,#FAC775); }
.levelup-card.rise   { background: linear-gradient(135deg,#E1F5EE,#9FE1CB); }
.levelup-card.soar   { background: linear-gradient(135deg,#E6F1FB,#85B7EB); }
.levelup-card.blaze  { background: linear-gradient(135deg,#FAECE7,#F0997B); }
.levelup-card.legend { background: linear-gradient(135deg,#EEEDFE,#AFA9EC); }

.levelup-emoji {
  font-size: 72px; display: block; margin-bottom: 0.5rem;
  animation: levelup-bounce 0.6s ease 0.3s both;
}
@keyframes levelup-bounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.levelup-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 4px;
}
.levelup-level {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 12px;
  animation: levelup-slide 0.5s ease 0.5s both;
}
@keyframes levelup-slide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.levelup-msg {
  font-size: 15px; line-height: 1.6; font-style: italic;
  animation: levelup-slide 0.5s ease 0.7s both;
  margin-bottom: 1.5rem;
}
.levelup-tap {
  font-size: 12px; opacity: 0.6;
  animation: levelup-pulse 1.5s ease-in-out infinite 1.2s;
}
@keyframes levelup-pulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* Particles */
.levelup-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: particle-fly 1.2s ease-out forwards;
}
@keyframes particle-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx),var(--ty)) scale(0); opacity: 0; }
}

/* About & Footer */
.login-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; color: var(--text-tertiary); margin-top: 1rem;
  width: 100%;
}
.about-btn {
  background: none; border: none; font-size: 14px; color: var(--text-tertiary);
  cursor: pointer; padding: 0; line-height: 1;
}
.about-btn:hover { color: var(--text-secondary); }
.about-card {
  max-width: 300px; text-align: center;
}
.about-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: var(--border); font-size: 13px;
}
.about-row:last-of-type { border-bottom: none; }
.about-row span:last-child { font-weight: 500; color: var(--text-secondary); }

/* Onboarding step counter */
.onboarding-step-counter {
  font-size: 11px; color: var(--text-tertiary);
  margin-bottom: 1rem; letter-spacing: 0.05em;
}

/* About pillars */
.about-pillar {
  text-align: left; padding: 10px 0;
  border-bottom: var(--border);
}
.about-pillar:last-of-type { border-bottom: none; }
.about-pillar-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 3px;
}
.about-pillar-desc {
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}

/* Clickable calendar days */
.cal-clickable { cursor: pointer; transition: opacity 0.15s; }
.cal-clickable:hover { opacity: 0.75; }
.cal-selected { outline: 2px solid var(--teal); outline-offset: -2px; font-weight: 700; }

/* Scarlett visual tasks */
.scarlett-task-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
.scarlett-task-item {
  background: white; border: var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  transition: opacity 0.2s;
}
@media (prefers-color-scheme: dark) { .scarlett-task-item { background: var(--gray-200); } }
.scarlett-task-item.scarlett-done { opacity: 0.5; }
.scarlett-task-icon { font-size: 28px; flex-shrink: 0; }
.scarlett-task-name { flex: 1; font-size: 15px; font-weight: 500; }
.scarlett-task-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  border: 2px solid var(--teal); font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.scarlett-task-btn:active { transform: scale(0.9); background: var(--teal); color: white; }
.scarlett-task-done-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

/* Marble micro-animation */
@keyframes marble-float-up {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-60px) scale(1.2); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-120px) scale(0.8); }
}
