/* ── Reset & Foundation ─────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* ── Dark base (header, nav, deep bg) ── */
    --dark-900: #5C2824;    /* dark maroon */
    --dark-800: #706BA9;    /* deep purple */
    --dark-700: #8183BB;    /* blue-purple */
    --dark-600: #943736;    /* dark burgundy */
    /* ── Mid accents ── */
    --rose-400: #DC899A;    /* warm rose */
    --rose-300: #DDB2BE;    /* dusty rose */
    --rose-200: #D1A7C1;    /* soft mauve */
    --rose-100: #E3D6E3;    /* pale lavender */
    --rose-050: #E3D6E3;    /* pale lavender (cards) */
    --mauve: #AE81B4;       /* purple mauve */
    --lavender: #BAA9CB;    /* light lavender */
    --steel: #A0ABCE;       /* steel blue */
    --dusty-blue: #9099C7;  /* dusty blue */
    --gold-warm: #B29460;   /* gold amber */
    --gold-light: #C7BAA0;  /* warm tan */
    --coral: #C26167;       /* coral */
    --red-mid: #B95353;     /* medium red */
    --red-deep: #A54242;    /* deep red */
    --sienna: #906941;      /* brown sienna */
    --khaki: #B8A785;       /* warm khaki */
    /* ── Surfaces ── */
    --cream: #E7DDCE;       /* warm cream page bg */
    --cream-light: #f0ebe3; /* slightly lighter for cards */
    /* ── Text ── */
    --text-primary: #5C2824;
    --text-secondary: #906941;
    --text-muted: #B8A785;
    /* ── Borders & Shadows ── */
    --border: #D1A7C1;
    --shadow-sm: 0 1px 3px rgba(92,40,36,0.06);
    --shadow-md: 0 4px 16px rgba(92,40,36,0.08);
    --shadow-lg: 0 8px 32px rgba(92,40,36,0.12);
    --shadow-glow: 0 0 20px rgba(220,137,154,0.25);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem */
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Typography (Mobile First Scaling) ─────────────────── */
h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-family: 'DM Serif Display', serif;
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(221,178,190,0.5), 0 0 30px rgba(174,129,180,0.25), 0 1px 3px rgba(0,0,0,0.3);
}
h2 { font-size: clamp(1.1rem, 4vw, 1.25rem); font-family: 'DM Serif Display', serif; }
.hero-subtitle {
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(221,178,190,0.35), 0 1px 2px rgba(0,0,0,0.25);
}

/* ── Header ─────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--dark-900) 0%, #6b4a5a 40%, var(--dark-800) 70%, var(--dark-700) 100%);
    color: white;
    padding: calc(0.5rem + var(--safe-top)) 1.5rem 0.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    max-height: 500px;
}

.hero.hero-hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* Subtle warm shimmer overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(220,137,154,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(178,148,96,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(178,148,96,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative bottom border — soft rose fade */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #DC899A, #B29460, #AE81B4, transparent);
    opacity: 0.6;
}

.hero > * { position: relative; z-index: 1; }

.hero-img {
    width: clamp(120px, 22vw, 160px);
    height: clamp(120px, 22vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.3rem;
    display: block;
    border: 3px solid rgba(221,178,190,0.6);
    box-shadow: 0 4px 20px rgba(92,40,36,0.25), 0 0 30px rgba(220,137,154,0.2);
    position: relative;
    z-index: 2;
    /* Warm the coral toward rose-pink, subtle gold tint */
    filter: saturate(0.85) hue-rotate(-8deg) brightness(1.05);
}

.hero-emblem {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: auto;
    height: calc(100% - 20px);
    opacity: 0.9;
    z-index: 1;
    border-radius: 16px;
    /* Shift cool lavender/blue toward warm rose-pink-gold */
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25))
            sepia(0.25)
            hue-rotate(-15deg)
            saturate(1.2)
            brightness(0.95);
    -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, black 55%, transparent 78%);
}

.emblem-left { left: 100px; }
.emblem-right { right: 100px; }

/* ── Progress Bar ───────────────────────────────────────── */
.progress-wrap {
    background: linear-gradient(180deg, var(--dark-900) 0%, #4a2220 100%);
    padding: 0.3rem 1.25rem;
    border-bottom: 1px solid rgba(220,137,154,0.1);
}

/* ── Page Nav Bar (outside swipe, all pages) ───────────── */
.page-nav-bar {
    background: var(--dark-900);
    padding: 0.35rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-nav-bar::-webkit-scrollbar {
    display: none;
}

.page-nav-buttons {
    display: flex;
    gap: 0.35rem;
    min-width: min-content;
}

.page-nav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(221,178,190,0.15);
    border-radius: 6px;
    color: var(--steel);
    font-size: 0.6rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 28px;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-nav-btn:hover {
    background: rgba(221,178,190,0.15);
    color: #DDB2BE;
}

.page-nav-btn.active {
    background: rgba(221,178,190,0.2);
    border-color: rgba(221,178,190,0.35);
    color: #DDB2BE;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.progress-count {
    font-size: 0.75rem;
    color: var(--rose-300);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.progress-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC899A, #DDB2BE, #B29460);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 8px rgba(220,137,154,0.3);
}

/* ── Section Headers ────────────────────────────────────── */
.section {
    margin-bottom: 1.5rem;
    animation: fade-up 0.4s ease both;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3D6E3, #f0ebe3);
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.header-text { flex: 1; }

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.section-title {
    font-weight: 400;
    color: var(--dark-900);
    margin: 0;
}

.section-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── Task Cards ─────────────────────────────────────────── */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--lavender);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 54px;
    position: relative;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.task-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--rose-200);
}

.task-item:active { transform: scale(0.98); }

.task-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--lavender);
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.task-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #DC899A, #D1A7C1);
    border-color: #DC899A;
}

.task-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.task-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.task-item.completed {
    opacity: 0.55;
    background: #E3D6E3;
    box-shadow: none;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-low { background: #C7BAA0; color: #906941; }
.badge-med { background: #DDB2BE; color: #943736; }
.badge-high { background: #B95353; color: white; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s;
    font-size: 0.9rem;
}

.btn-primary { background: var(--dark-800); color: white; box-shadow: var(--shadow-sm); }
.btn-secondary { background: #DDB2BE; color: var(--dark-900); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--red-deep); color: white; }
.btn:active { filter: brightness(0.92); transform: translateY(1px); }

.btn-icon {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-icon:hover { opacity: 1; }

.delete-task-btn {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Fixed Audio Toggle (all pages) ────────────────────── */
.audio-btn-fixed {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: var(--dark-900);
    border: 1px solid rgba(221,178,190,0.3);
    border-radius: 50%;
    color: #DDB2BE;
    cursor: pointer;
    opacity: 0.9;
    box-shadow: 0 2px 12px rgba(92,40,36,0.3);
    transition: all 0.25s ease;
}

.audio-btn-fixed:active { transform: scale(0.9); }

.audio-btn-fixed.muted {
    opacity: 0.5;
    background: rgba(92,40,36,0.7);
    filter: grayscale(1);
}

/* ── Admin Controls ─────────────────────────────────────── */
.admin-controls {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(199,186,160,0.2);
    border-radius: var(--radius-lg);
}

.admin-hint {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.admin-hint code {
    background: rgba(199,186,160,0.25);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ── Modal ──────────────────────────────────────────────── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92,40,36,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.visible { display: flex; }

.modal-content {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(220,137,154,0.1);
    border: 1px solid #D1A7C1;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; font-weight: 600; }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
}

.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.hidden { display: none; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Completion Banner ──────────────────────────────────── */
.completion-banner {
    display: none;
    text-align: center;
    padding: 2rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
    border-radius: var(--radius-lg);
    color: white;
    border: 1px solid rgba(220,137,154,0.2);
    box-shadow: var(--shadow-glow);
}

.completion-banner.visible { display: block; animation: fade-up 0.5s ease; }
.big-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

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

/* ── Dot Navigation ────────────────────────────────────── */
.dot-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    background: var(--dark-900);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--dark-600);
    cursor: pointer;
    padding: 0;
    transition: background-color 200ms ease, transform 200ms ease;
}

.dot.active {
    background: #DDB2BE;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(221,178,190,0.5);
}

/* ── Swipe Container ───────────────────────────────────── */
.swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    height: calc(100dvh - 160px); /* header + dots height */
    transition: height 0.4s ease;
}

/* When hero is hidden on non-summary pages, reclaim that space */
body.hero-collapsed .swipe-container {
    height: calc(100dvh - 60px);
}

.swipe-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.page {
    min-width: 100vw;
    width: 100vw;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    flex-shrink: 0;
}

.page-content {
    padding: 5rem 1rem calc(2.5rem + var(--safe-bottom));
    max-width: 600px;
    margin: 0 auto;
}

/* ── Summary Page ─────────────────────────────────────── */
.summary-page {
    padding-top: 2rem;
    text-align: center;
}

.summary-welcome {
    margin-bottom: 2rem;
}

.summary-greeting {
    font-size: clamp(0.85rem, 3vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.summary-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    color: var(--dark-900);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.summary-tagline {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.summary-progress {
    max-width: 440px;
    margin: 0 auto;
}

.summary-overall {
    background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.summary-overall-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.summary-overall-pct {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.summary-overall-detail {
    font-size: 0.85rem;
    opacity: 0.7;
}

.summary-overall-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.summary-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-400), var(--mauve));
    border-radius: 3px;
    transition: width 0.6s ease;
}

.summary-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-cat-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    min-height: 44px;
}

.summary-cat-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

.summary-cat-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-cat-bar {
    width: 50px;
    height: 4px;
    background: rgba(92,40,36,0.1);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.summary-cat-fill {
    height: 100%;
    background: var(--rose-400);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.summary-cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
}

/* ── Growth Page ───────────────────────────────────────── */
.growth-current-indicator {
    text-align: center;
    margin-bottom: 16px;
    color: var(--rose-400);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.growth-stage {
    margin-bottom: 12px;
}

.growth-stage-header {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 200ms ease;
    min-height: 54px;
}

.growth-stage-header:active {
    transform: scale(0.98);
}

.growth-stage-header.current {
    background: var(--rose-100);
    border: 2px solid var(--rose-400);
}

.growth-stage-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.growth-stage-info {
    flex: 1;
}

.growth-stage-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    font-family: 'DM Serif Display', serif;
}

.growth-stage-header.current .growth-stage-title {
    color: var(--dark-900);
}

.growth-stage-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.growth-arrow {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.growth-stage-header.current .growth-arrow {
    color: var(--dark-900);
}

.growth-stage-body {
    background: var(--rose-050);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 12px 16px;
    margin-top: -4px;
    border: 1px solid var(--border);
    border-top: none;
}

.growth-sub-header {
    color: var(--dark-900);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 12px 0 6px;
    text-transform: uppercase;
}

.growth-sub-header:first-child {
    margin-top: 8px;
}

/* ── Growth Items (Purchasable) ────────────────────────── */
.growth-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: opacity 200ms ease;
    min-height: 48px;
}

.growth-item:active {
    transform: scale(0.98);
}

.growth-item.purchased {
    opacity: 0.6;
}

.growth-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--lavender);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.growth-checkbox.checked {
    background: linear-gradient(135deg, #DC899A, #D1A7C1);
    border-color: #DC899A;
}

.growth-check-mark {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.growth-item-content {
    flex: 1;
}

.growth-item-text {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 3px;
}

.growth-item-text.strikethrough {
    text-decoration: line-through;
}

.growth-item-desc {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
}

.growth-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.badge-tobuy {
    background: #C7BAA0;
    color: #906941;
}

.badge-purchased {
    background: #DDB2BE;
    color: #5C2824;
}

/* ── Growth Items (Activity/Guidance) ──────────────────── */
.growth-item-activity {
    background: var(--rose-050);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--rose-400);
}

.growth-item-activity-title {
    color: var(--text-secondary);
    font-size: 13px;
}

.growth-item-activity-title strong {
    color: var(--text-primary);
}

/* ── Growth Add Button ─────────────────────────────────── */
.growth-add-btn {
    margin-top: 12px;
    text-align: center;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.growth-add-btn:active {
    background: var(--rose-050);
}

/* ── Philosophy Page ───────────────────────────────────── */
.philosophy-page-header {
    text-align: center;
    margin-bottom: 24px;
}

.philosophy-page-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 4px;
}

.philosophy-page-title {
    color: var(--dark-900);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-family: 'DM Serif Display', serif;
    margin: 8px 0 4px;
}

.philosophy-page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Principles ────────────────────────────────────────── */
.philosophy-principle {
    margin-bottom: 16px;
}

.philosophy-principle-header {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--rose-400);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
}

.philosophy-principle-header:active {
    transform: scale(0.98);
}

.philosophy-principle-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.philosophy-principle-info {
    flex: 1;
}

.philosophy-principle-title {
    color: var(--dark-900);
    font-weight: 600;
    font-size: 15px;
}

.philosophy-principle-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.philosophy-arrow {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.philosophy-principle-body {
    background: var(--rose-050);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 14px 16px;
    margin-top: -2px;
    border-left: 3px solid var(--rose-300);
}

.philosophy-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.philosophy-highlight {
    color: var(--dark-900);
}

.philosophy-sources {
    background: var(--rose-100);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 11px;
}

/* ── Divider ───────────────────────────────────────────── */
.philosophy-divider {
    border-top: 1px solid var(--border);
    margin: 24px 0;
    padding-top: 20px;
}

/* ── Domain Grid ───────────────────────────────────────── */
.philosophy-domain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.philosophy-domain-wrapper {
    /* When expanded, span full grid width */
}

.philosophy-domain-wrapper:has(.expanded) {
    grid-column: 1 / -1;
}

.philosophy-domain-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: background 200ms ease;
    min-height: 80px;
}

.philosophy-domain-card:active {
    transform: scale(0.97);
}

.philosophy-domain-card.expanded {
    background: var(--rose-050);
}

.philosophy-domain-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.philosophy-domain-title {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.philosophy-domain-subtitle {
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 3px;
}

.philosophy-domain-detail {
    background: var(--rose-050);
    border-radius: 0 0 10px 10px;
    padding: 12px;
    margin-top: -4px;
}

/* ── Source Hierarchy ──────────────────────────────────── */
.philosophy-source-hierarchy {
    margin-top: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.philosophy-source-title {
    color: var(--dark-900);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.philosophy-source-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.philosophy-source-row:last-child {
    margin-bottom: 0;
}

.philosophy-source-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.philosophy-source-label {
    color: var(--text-secondary);
    font-size: 11px;
}

/* ── Deep Dive Trigger Button ──────────────────────────── */
.dd-trigger-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--dark-800), var(--dark-700));
    color: white;
    border: 1px solid rgba(221,178,190,0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.dd-trigger-btn:hover {
    background: linear-gradient(135deg, var(--dark-700), var(--mauve));
    border-color: rgba(221,178,190,0.4);
}

.dd-trigger-btn:active {
    transform: scale(0.98);
}

/* ── Deep Dive Overlay ─────────────────────────────────── */
.deep-dive-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(92,40,36,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
}

.deep-dive-overlay.dd-visible {
    opacity: 1;
}

.dd-content {
    background: var(--cream);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(92,40,36,0.2);
}

.dd-visible .dd-content {
    transform: translateY(0);
}

.dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.dd-header-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dd-header-text {
    flex: 1;
}

.dd-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    margin: 0;
    color: white;
    text-shadow: none;
}

.dd-subtitle {
    font-size: 0.72rem;
    color: var(--rose-300);
    margin: 2px 0 0;
    opacity: 0.85;
}

.dd-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dd-close:hover {
    background: rgba(255,255,255,0.2);
}

.dd-body {
    padding: 20px;
}

.dd-section {
    margin-bottom: 24px;
}

.dd-section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--dark-900);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--rose-200);
}

.dd-overview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.dd-stage {
    background: white;
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

.dd-stage-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-800);
    margin-bottom: 6px;
}

.dd-stage-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.dd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dd-list li {
    position: relative;
    padding: 10px 12px 10px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: white;
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.dd-list li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
}

.dd-ref {
    background: white;
    border-left: 3px solid var(--gold-warm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.dd-ref-source {
    font-weight: 600;
    font-size: 12px;
    color: var(--dark-900);
    margin-bottom: 4px;
}

.dd-ref-detail {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ── Milestones Page ──────────────────────────────────── */
.milestone-page-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.milestone-page-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

.milestone-page-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--dark-900);
    margin: 0;
}

.milestone-page-subtitle {
    font-size: clamp(0.7rem, 2.5vw, 0.82rem);
    color: var(--text-muted);
    margin-top: 4px;
}

.milestone-age-indicator {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rose-400);
    padding: 8px 0 4px;
}

.milestone-scroll-hint {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 0 10px;
    letter-spacing: 0.04em;
}

.milestone-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: white;
    scrollbar-width: thin;
    scrollbar-color: var(--rose-300) transparent;
}

.milestone-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.milestone-table-wrap::-webkit-scrollbar-thumb {
    background: var(--rose-300);
    border-radius: 3px;
}

.milestone-table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}

.milestone-corner {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--dark-900);
    color: white;
    font-family: 'DM Serif Display', serif;
    font-size: 12px;
    font-weight: 400;
    padding: 10px 12px;
    text-align: left;
    min-width: 110px;
    white-space: nowrap;
    border-right: 2px solid var(--dark-800);
}

.milestone-col-header {
    background: var(--dark-800);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    min-width: 70px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.milestone-col-header.milestone-active-col {
    background: var(--rose-400);
    color: white;
    box-shadow: inset 0 -3px 0 rgba(255,255,255,0.3);
}

.milestone-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
    border-left: 4px solid var(--rose-300);
    border-right: 2px solid var(--lavender);
    border-bottom: 1px solid var(--lavender);
    padding: 10px 10px;
    min-width: 110px;
    vertical-align: middle;
}

.milestone-row-icon {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.milestone-row-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.milestone-cell {
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid var(--lavender);
    border-bottom: 1px solid var(--lavender);
    line-height: 1.4;
    min-width: 70px;
}

.milestone-cell-small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.5;
    padding: 10px 12px;
}

.milestone-cell-active {
    outline: 3px solid var(--rose-400);
    outline-offset: -3px;
    position: relative;
}

.milestone-cell-emoji {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.milestone-note {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    padding: 16px 1rem 24px;
    font-style: italic;
}

/* ── Mobile Responsive (S24 = 360px, general mobile <480px) ── */
@media (max-width: 480px) {
    .hero-img {
        width: 80px;
        height: 80px;
    }

    .hero-emblem {
        height: calc(100% - 10px);
        top: 5px;
        bottom: 5px;
    }

    .emblem-left { left: 8px; }
    .emblem-right { right: 8px; }
}

@media (max-width: 380px) {
    /* S24 and similar narrow phones */
    .hero {
        padding: calc(0.3rem + var(--safe-top)) 0.75rem 0.3rem;
    }

    .hero-img {
        width: 64px;
        height: 64px;
        margin-bottom: 0.2rem;
    }

    .hero-emblem {
        height: calc(100% - 16px);
        top: 8px;
        bottom: 8px;
    }

    .emblem-left { left: 4px; }
    .emblem-right { right: 4px; }

    h1 { font-size: 1.2rem; }
    .hero-subtitle { font-size: 0.7rem; }
}

/* ══════════════════════════════════════════════════════════
   HEALTH PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Emergency Banner (sticky) ─────────────────────────── */
.health-emergency-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #5C2824 0%, #6b3a3a 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-md);
}
.health-emergency-label {
    color: #DC899A;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-align: center;
}
.health-emergency-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}
.health-emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: var(--btn-color, #B95353);
    color: white;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.5rem 0.4rem;
    border-radius: var(--radius-sm);
    min-height: 44px;
    text-align: center;
    transition: opacity 0.2s;
    line-height: 1.2;
}
.health-emergency-btn:active { opacity: 0.8; transform: scale(0.97); }
.health-emg-icon { font-size: 0.85rem; }

/* ── Sub-Tab Bar ───────────────────────────────────────── */
.health-tab-bar {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem 0.75rem;
    scrollbar-width: none;
}
.health-tab-bar::-webkit-scrollbar { display: none; }
.health-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: var(--cream-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.7rem;
    min-width: 64px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
    color: var(--text-secondary);
}
.health-tab:active { transform: scale(0.95); }
.health-tab.active {
    background: white;
    border-color: var(--rose-400);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm), 0 0 8px rgba(220,137,154,0.2);
}
.health-tab-icon { font-size: 1.1rem; }
.health-tab-label { font-size: 0.65rem; font-weight: 600; white-space: nowrap; }

/* ── Content Area ──────────────────────────────────────── */
.health-content { padding: 0 0.5rem 2rem; }
.health-tab-content { animation: fade-up 0.3s ease; }

/* ── Cards (base) ──────────────────────────────────────── */
.health-card {
    background: white;
    border: 1px solid var(--rose-100);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}
.health-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.health-card-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Stat Grid ─────────────────────────────────────────── */
.health-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.health-stat {
    background: var(--cream-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    text-align: center;
}
.health-stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    color: var(--dark-900);
}
.health-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
.health-stat-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ── Action Items ──────────────────────────────────────── */
.health-action-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rose-100);
    align-items: flex-start;
}
.health-action-item:last-child { border-bottom: none; }
.health-action-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-light);
    margin-top: 0.3rem;
    flex-shrink: 0;
}
.health-action-dot.urgent { background: var(--red-mid); animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185,83,83,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(185,83,83,0); }
}
.health-action-text { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.health-action-detail { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.15rem; }
.health-phone-link {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--dark-800);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--rose-100);
    border-radius: var(--radius-sm);
}

/* ── Medication List ───────────────────────────────────── */
.health-med-group { margin-bottom: 0.75rem; }
.health-med-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
}
.health-med-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--rose-050);
    gap: 0.5rem;
}
.health-med-item:last-child { border-bottom: none; }
.health-med-name { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); flex-shrink: 0; }
.health-med-dose { font-size: 0.72rem; color: var(--text-muted); text-align: right; }

/* ── Quick Contacts ────────────────────────────────────── */
.health-contacts-quick { display: flex; flex-direction: column; gap: 0.35rem; }
.health-contact-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    background: var(--cream-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    min-height: 44px;
    transition: background 0.2s;
}
.health-contact-chip:active { background: var(--rose-100); }
.health-contact-name { font-size: 0.8rem; font-weight: 500; }
.health-contact-num { font-size: 0.72rem; color: var(--dark-800); font-weight: 600; }

/* ── Vaccine Table ─────────────────────────────────────── */
.health-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.health-vaccine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.health-vaccine-table th {
    background: var(--cream-light);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    padding: 0.5rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}
.health-vaccine-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--rose-050);
}
.health-vax-name { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.health-vax-done { color: var(--dark-800); font-weight: 600; }
.health-vax-empty { color: var(--text-muted); }

/* ── Collapsible Cards ─────────────────────────────────── */
.health-collapsible {
    background: white;
    border: 1px solid var(--rose-100);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.health-collapsible-urgent { border-left: 3px solid var(--red-mid); }
.health-collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    min-height: 48px;
    text-align: left;
}
.health-collapsible-header:active { background: var(--cream-light); }
.health-collapsible-icon { font-size: 1.1rem; flex-shrink: 0; }
.health-collapsible-title { flex: 1; font-size: 0.85rem; font-weight: 600; }
.health-collapsible-chevron {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.health-collapsible.expanded .health-collapsible-chevron { transform: rotate(90deg); }
.health-collapsible-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.health-collapsible.expanded .health-collapsible-body { max-height: 1200px; }
.health-collapsible-list {
    padding: 0 0.85rem 0.75rem 2.4rem;
    list-style: disc;
}
.health-collapsible-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.15rem 0;
}

/* ── Warning Box ───────────────────────────────────────── */
.health-warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    border: 2px solid var(--red-mid);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}
.health-warning-title {
    font-family: 'DM Serif Display', serif;
    font-size: 0.95rem;
    color: var(--red-mid);
    margin-bottom: 0.4rem;
}
.health-warning-box ul {
    padding-left: 1.2rem;
    list-style: disc;
}
.health-warning-box li {
    font-size: 0.8rem;
    color: var(--dark-600);
    line-height: 1.6;
    font-weight: 500;
}

/* ── Zone Cards (Mental Health) ────────────────────────── */
.health-zone-card {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
}
.health-zone-green {
    background: #f0f9f4;
    border-left-color: #4a9e6e;
}
.health-zone-yellow {
    background: #fdf8ed;
    border-left-color: #c9a227;
}
.health-zone-red {
    background: #fdf0f0;
    border-left-color: var(--red-mid);
}
.health-zone-header { margin-bottom: 0.5rem; }
.health-zone-title {
    font-family: 'DM Serif Display', serif;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.health-zone-subtitle { font-size: 0.72rem; color: var(--text-muted); }
.health-zone-list {
    padding-left: 1.2rem;
    list-style: disc;
    margin-bottom: 0.6rem;
}
.health-zone-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.1rem 0;
}
.health-zone-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    line-height: 1.5;
}

/* ── Directory ─────────────────────────────────────────── */
.health-directory { display: flex; flex-direction: column; gap: 0.35rem; }
.health-directory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--rose-050);
    gap: 0.5rem;
}
.health-directory-item:last-child { border-bottom: none; }
.health-dir-name { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); }
.health-dir-detail { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }
.health-dir-call {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background: var(--dark-800);
    color: white;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    min-height: 32px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.health-dir-call:active { opacity: 0.8; }

/* ── Health Responsive ─────────────────────────────────── */
@media (min-width: 481px) {
    .health-emergency-buttons { grid-template-columns: repeat(4, 1fr); }
    .health-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
    .health-tab { min-width: 56px; padding: 0.4rem 0.5rem; }
    .health-tab-icon { font-size: 1rem; }
    .health-tab-label { font-size: 0.6rem; }
    .health-emergency-btn { font-size: 0.65rem; padding: 0.4rem 0.3rem; }
    .health-card { padding: 0.75rem; }
    .health-med-item { flex-direction: column; gap: 0.1rem; }
    .health-med-dose { text-align: left; }
}

/* ── Completed Section (shared: Tasks & Growth) ───────── */
.completed-collapsible {
    background: white;
    border: 1px solid var(--rose-100);
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.completed-collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: var(--cream-light);
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    min-height: 48px;
    text-align: left;
}
.completed-collapsible-header:active { background: var(--rose-050); }
.completed-collapsible-icon { font-size: 1.1rem; flex-shrink: 0; }
.completed-collapsible-title { flex: 1; font-size: 0.85rem; font-weight: 600; }
.completed-collapsible-chevron {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.completed-collapsible.expanded .completed-collapsible-chevron {
    transform: rotate(90deg);
}
.completed-collapsible-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.completed-collapsible.expanded .completed-collapsible-body {
    max-height: 4000px;
}
.completed-group {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--rose-100);
}
.completed-group:first-child { border-top: none; }
.completed-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.completed-group-icon { font-size: 1rem; }
.completed-group-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.completed-collapsible .task-item.completed,
.completed-collapsible .growth-item.purchased { opacity: 0.75; }
.completed-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    font-style: italic;
}
