/* ============================================
   BODY RESET NOW — TREATMENT PLAN STYLES
   Modern dashboard design with sidebar navigation.
   Palette: Slate/Amber/Indigo — inspired by reference.
   ============================================ */

/* ===== LAYOUT: Sidebar + Main Content ===== */
.treatment-plan-view {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    background: #ffffff;
    /* Break out of .main-content max-width, with ~1.5cm margin each side */
    width: calc(100vw - 80px);
    margin-left: calc(-50vw + 50% + 40px);
    max-width: calc(100vw - 80px);
}

/* ===== SIDEBAR ===== */
.treat-sidebar {
    width: 20%;
    min-width: 200px;
    max-width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    flex-shrink: 0;
    z-index: 10;
    align-self: flex-start;
}

.treat-sidebar-brand {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* Brand logo — leaf icon + text, matching app header */
.treat-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.treat-brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.treat-brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.treat-sidebar-brand p {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Patient info box removed — patient name is in the main app banner */

.treat-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* "New Plan" footer button at the bottom of the sidebar */
.treat-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.treat-new-plan-btn {
    width: 100%;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.treat-new-plan-btn:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.07);
}

.treat-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treat-sidebar-nav li {
    margin: 0;
}

.treat-nav-btn {
    width: 100%;
    text-align: left;
    padding: 7px 20px;
    font-size: 0.99rem;
    font-family: inherit;
    color: #475569;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.treat-nav-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.treat-nav-btn.active {
    background: linear-gradient(90deg, #e8f0e8, #f1f5f9);
    border-left-color: var(--color-primary);
    font-weight: 600;
    color: #1e293b;
}

.treat-nav-btn .nav-emoji {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.treat-nav-divider {
    margin: 4px 0;
    border-top: 1px solid #e2e8f0;
}

.treat-nav-btn.tracker-btn {
    font-weight: 700;
    color: #b45309;
}

/* ===== MOBILE NAV ===== */
.treat-mobile-header {
    display: none;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 20;
}

.treat-mobile-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.treat-mobile-header h1 span {
    color: #d97706;
}

.treat-mobile-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    color: #334155;
}

/* ===== MAIN CONTENT ===== */
.treat-main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: #ffffff;
    position: relative;
}

/* ===== SECTION PANEL ===== */
.treat-section {
    display: none;
    animation: treatFadeIn 0.3s ease-in-out;
    padding: 24px 48px;
}

.treat-section.active {
    display: block;
}

@keyframes treatFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.treat-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* ===== SECTION HEADER ===== */
.treat-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.treat-section-header .section-emoji {
    font-size: 2.5rem;
}

.treat-section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.treat-section-header p {
    font-size: 0.95rem;
    color: #475569;
    margin: 4px 0 0;
}

/* ===== HEADER TEXT (takes remaining space, pushes buttons right) ===== */
.treat-header-text {
    flex: 1;
    min-width: 0;
}

/* ===== HEADER ACTIONS (Edit + Improve AI inline with title) ===== */
.treat-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.treat-header-actions .treat-section-edit-btn.active {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.treat-section-improve-slot {
    display: inline-flex;
    align-items: center;
}

/* Improve AI button — match btn-sm sizing */
.treat-header-actions .btn.improve-ai-btn {
    background: #7c3aed;
    color: white;
    border: 1px solid #7c3aed;
    transform: none;
    box-shadow: none;
    padding: 6px 14px;
    font-size: 0.8125rem;
}
.treat-header-actions .btn.improve-ai-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transform: none;
}

/* Editing state for content blocks and all editable tiles */
.treat-content-block.editing,
.report-body.editing,
.treat-card > ul.editing,
.treat-card > .treat-tag-list.editing {
    outline: 2px dashed #d97706;
    outline-offset: 4px;
    background: rgba(217, 119, 6, 0.03);
    border-radius: 6px;
    padding: 8px;
}


.treat-edit-status {
    font-size: 0.75rem;
    color: #d97706;
    font-style: italic;
    margin-right: auto;
}

/* ===== COACH NOTE (amber callout) ===== */
.treat-overview-intro {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 720px;
}

.treat-coach-note {
    background: #f4f6f4;
    border-left: 3px solid var(--color-primary);
    padding: 18px 20px;
    margin-bottom: 32px;
    border-radius: 0 6px 6px 0;
}

.treat-coach-note p {
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
    line-height: 1.7;
}

.treat-coach-note strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.treat-coach-note .coach-note-text {
    display: block;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.7;
}

.treat-coach-note .coach-note-text.editing {
    outline: 2px dashed var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
    min-height: 1.2em;
}

.treat-coach-note .coach-note-text p {
    display: block;
    margin: 0;
}

/* ===== INFO NOTE (blue callout) ===== */
.treat-info-note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    margin-bottom: 32px;
    border-radius: 0 8px 8px 0;
}

.treat-info-note p {
    font-size: 0.88rem;
    color: #1e40af;
    margin: 0;
}

/* ===== CONTENT CARDS ===== */
.treat-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
}

.treat-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.treat-card h3 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.treat-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.treat-card ul li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.treat-card ul li strong {
    color: #1e293b;
}

/* Cards grid */
.treat-cards-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.treat-cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.treat-cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.treat-cards-grid .full-width {
    grid-column: 1 / -1;
}

/* Card with colored top border */
.treat-card.border-top-blue { border-top: 4px solid var(--color-blue-soft); }
.treat-card.border-top-amber { border-top: 4px solid var(--color-accent); }
.treat-card.border-top-green { border-top: 4px solid var(--color-optimal); }
.treat-card.border-top-indigo { border-top: 4px solid var(--color-primary); }

/* Non-Negotiables red border tile */
.treat-card.treat-card-red-border {
    border: 2px solid var(--color-red-soft);
    border-radius: var(--radius-md);
}

/* AI content inside card — match reference structure */
.treat-card .report-body h3 {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.treat-card .report-body h3:first-child {
    margin-top: 0;
}

.treat-card .report-body h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    margin: 16px 0 8px;
}

.treat-card .report-body ul,
.treat-card .report-body ol {
    padding-left: 0;
    list-style: none;
    margin: 0 0 12px;
}

.treat-card .report-body ul li,
.treat-card .report-body ol li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

.treat-card .report-body ul li strong,
.treat-card .report-body ol li strong {
    color: #1e293b;
}

.treat-card .report-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ===== OVERVIEW HERO — Soft feminine header ===== */
.overview-hero {
    text-align: center;
    padding: 56px 24px 40px;
    position: relative;
    background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
    border-radius: 0 0 24px 24px;
    margin: -24px -48px 40px;
    padding-left: 48px;
    padding-right: 48px;
}

.overview-hero-actions {
    position: absolute;
    top: 16px;
    right: 24px;
}

.overview-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.overview-pill-badge .pill-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.overview-serif-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.overview-subtitle {
    font-size: 1.05rem;
    color: #7a8a7c;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== SYSTEM CASCADE — Horizontal 5-card flow ===== */
.cascade-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 0 -20px 48px;
    padding: 16px 0 8px;
    overflow-x: auto;
}

.cascade-card {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 24px;
    background: #ffffff;
    border: 1px solid #ece8e1;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.02);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cascade-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.cascade-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f7f5f0;
    border: 1.5px solid #e4dfd6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #6b7c6e;
    transition: background 0.2s, border-color 0.2s;
}

.cascade-card:hover .cascade-icon-circle {
    background: #eff2ed;
    border-color: #c5cfc7;
}

.cascade-icon-circle svg {
    width: 24px;
    height: 24px;
}

.cascade-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a9a8c;
    margin-bottom: 6px;
}

.cascade-system-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.3;
}

.cascade-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.cascade-status.good {
    background: #edf5ef;
    color: #4a7c5a;
    border-color: #d4e6d8;
}

.cascade-status.attention {
    background: #fdf6ec;
    color: #8a6d3b;
    border-color: #eddcc0;
}

.cascade-status.concern {
    background: #fdf0ef;
    color: #9b4a4a;
    border-color: #ebd0ce;
}

.cascade-desc {
    font-size: 0.82rem;
    color: #7a8a7c;
    line-height: 1.55;
    margin: 0;
}

/* Arrow connector between cascade cards */
.cascade-arrow {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px; /* align with icon center */
    color: #c8c0b4;
}

.cascade-arrow svg {
    width: 20px;
    height: 20px;
}

/* ===== OVERVIEW PAGE — Charts & Focus ===== */
.treat-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

.treat-chart-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 350px;
    max-height: 400px;
}

.treat-chart-wrapper {
    background: var(--color-bg);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #ece8e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.treat-chart-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: var(--color-text);
}

.treat-chart-wrapper > p {
    font-size: 0.82rem;
    color: #8a9a8c;
    margin-bottom: 16px;
    text-align: center;
}

.treat-focus-areas {
    background: var(--color-bg) !important;
    border: 1px solid #ece8e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}

.treat-focus-areas h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

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

.treat-focus-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0ece6;
}

.treat-focus-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* SVG icon circle in focus list (replaces emoji) */
.focus-icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #eff2ed;
    border: 1px solid #dde5dd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: #6b7c6e;
}

.focus-icon-circle svg {
    width: 16px;
    height: 16px;
}

/* Legacy emoji support (hidden but graceful fallback) */
.treat-focus-list .focus-emoji {
    font-size: 1.5rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.treat-focus-list strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.treat-focus-list span {
    font-size: 0.82rem;
    color: #7a8a7c;
    line-height: 1.5;
}

.treat-begin-btn {
    margin-top: 32px;
    background: #d97706;
    color: white;
    font-weight: 700;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(217,119,6,0.2);
}

.treat-begin-btn:hover {
    background: #b45309;
    box-shadow: 0 4px 16px rgba(217,119,6,0.3);
}

/* ===== SUPPLEMENT TABLE ===== */
.treat-supp-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.treat-supp-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.treat-supp-table thead tr {
    background: #f1f5f9;
    color: #475569;
}

.treat-supp-table th {
    padding: 16px;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.treat-supp-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #475569;
}

.treat-supp-table tbody tr:hover {
    background: #f8fafc;
}

.treat-supp-table .supp-name {
    font-weight: 600;
    color: #1e293b;
}

/* Timing badges */
.treat-timing-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.treat-timing-badge.morning {
    background: #fef9c3;
    color: #854d0e;
}

.treat-timing-badge.midday {
    background: #fef9c3;
    color: #854d0e;
}

.treat-timing-badge.night {
    background: #e0e7ff;
    color: #3730a3;
}

.treat-timing-badge.asneeded {
    background: #dcfce7;
    color: #166534;
}

/* ===== SLEEP: 3-2-1 PROTOCOL ===== */
.treat-wind-down {
    background: #eef2ff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid #e0e7ff;
}

.treat-wind-down h3 {
    font-weight: 700;
    color: #312e81;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.treat-wind-down-step {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.treat-wind-down-step:last-child {
    margin-bottom: 0;
}

.treat-wind-down-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.treat-wind-down-num.n3 { background: #4f46e5; }
.treat-wind-down-num.n2 { background: #6366f1; }
.treat-wind-down-num.n1 { background: #818cf8; }

.treat-wind-down-step p {
    font-size: 0.88rem;
    color: #334155;
    margin: 0;
}

/* ===== STRESS: Technique Cards ===== */
.treat-technique-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.treat-technique-card .tech-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.treat-technique-card h3 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
    color: #1e293b;
}

.treat-technique-card > p {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 16px;
}

.treat-technique-howto {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
}

.treat-technique-howto p {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.treat-technique-howto ol,
.treat-technique-howto ul {
    padding-left: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.treat-technique-howto li {
    margin-bottom: 4px;
}

.treat-technique-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #b45309;
}

.treat-technique-note strong {
    color: #92400e;
}

/* ===== ENVIRONMENT: Tags/Pills ===== */
.treat-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.treat-tag {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #475569;
}

/* ===== FOOD CLASSIFICATION (Prioritize / Eliminate) ===== */
.treat-food-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.treat-food-col h4 {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.treat-food-col h4.prioritize { color: #15803d; }
.treat-food-col h4.eliminate { color: #b91c1c; }

.treat-food-col ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.treat-food-col li {
    margin-bottom: 4px;
}

/* ===== DAILY TRACKER ===== */
.treat-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.treat-tracker-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

.treat-tracker-header p {
    font-size: 0.95rem;
    color: #475569;
    margin: 4px 0 0;
}

.treat-tracker-progress {
    text-align: right;
}

.treat-tracker-progress .progress-label {
    font-size: 0.85rem;
    color: #64748b;
}

.treat-tracker-progress .progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d97706;
}

/* Progress bar */
.treat-progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 32px;
    overflow: hidden;
}

.treat-progress-bar-fill {
    height: 100%;
    background: #d97706;
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* Tracker phase cards */
.treat-tracker-phase {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

.treat-tracker-phase-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.treat-tracker-phase-header.morning {
    background: #eff6ff;
    color: #1e3a5f;
}

.treat-tracker-phase-header.midday {
    background: #f0fdf4;
    color: #14532d;
}

.treat-tracker-phase-header.evening {
    background: #eef2ff;
    color: #312e81;
}

.treat-tracker-items {
    padding: 16px;
}

.treat-tracker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.treat-tracker-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    accent-color: #d97706;
    cursor: pointer;
    flex-shrink: 0;
}

.treat-tracker-item label {
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}

/* ===== EDITABLE CONTENT BLOCKS ===== */
.treat-content-block {
    line-height: 1.8;
    font-size: 0.92rem;
    color: #334155;
    margin-bottom: 24px;
}

.treat-content-block h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 12px;
}

.treat-content-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin: 20px 0 8px;
}

.treat-content-block p { margin-bottom: 12px; }

.treat-content-block ul, .treat-content-block ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.treat-content-block li { margin-bottom: 4px; }
.treat-content-block strong { color: #1e293b; }

/* Editable focus state */
.treat-content-block[contenteditable="true"]:focus,
.report-body.editable:focus {
    outline: 2px dashed #d97706;
    outline-offset: 4px;
    background: rgba(217,119,6,0.04);
    border-radius: 6px;
}

/* (old treat-improve-slot removed — improve buttons now in section footers) */

/* ===== METABOLISM OVERVIEW (legacy class aliases → cascade-flow used now) ===== */
.treat-metabolism-overview { display: none; /* replaced by .cascade-flow */ }

/* ===== AXIS CARDS — Softer palette ===== */
.treat-axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.treat-axis-card {
    background: var(--color-bg);
    border-radius: 16px;
    border: 1px solid #ece8e1;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.treat-axis-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.treat-axis-card.axis-stress::before { background: #c07a7a; }
.treat-axis-card.axis-blockade::before { background: #c4956a; }
.treat-axis-card.axis-oxidation::before { background: #7a9ab5; }

.treat-axis-card-header,
.treat-axis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.treat-axis-card-header h4,
.treat-axis-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.treat-axis-score {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.treat-axis-score.low { background: #edf5ef; color: #4a7c5a; border-color: #d4e6d8; }
.treat-axis-score.moderate { background: #fdf6ec; color: #8a6d3b; border-color: #eddcc0; }
.treat-axis-score.high { background: #fdf0ef; color: #9b4a4a; border-color: #ebd0ce; }

.treat-axis-criteria {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 0.82rem;
}

.treat-axis-criteria li {
    padding: 5px 0;
    color: #7a8a7c;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.treat-axis-criteria li::before {
    content: '\25CB';
    color: #b5c4b7;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.treat-axis-criteria li.active::before {
    content: '\25CF';
    color: #ef4444;
}

.treat-axis-direction,
.treat-axis-directions {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.treat-axis-direction h5,
.treat-axis-directions strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.treat-axis-direction ul,
.treat-axis-directions ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.treat-axis-direction ul li,
.treat-axis-directions ul li { padding: 2px 0; }
.treat-axis-direction ul li::before,
.treat-axis-directions ul li::before { content: '\2192 '; color: #d97706; }

/* ===== PRIORITY BOX ===== */
.treat-priority-box {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 12px;
    padding: 28px 36px;
    margin: 24px 0;
    text-align: center;
}

.treat-priority-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.treat-priority-box p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.treat-priority-box .scores-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.treat-priority-box .score-chip {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
}

/* ===== DATA TABLE ===== */
.treat-data-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.treat-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.treat-data-table thead { background: #f1f5f9; color: #475569; }
.treat-data-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.8rem; }
.treat-data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.treat-data-table tbody tr:last-child td { border-bottom: none; }
.treat-data-table tbody tr:hover { background: #f8fafc; }

/* ===== ACTION CARDS ===== */
.treat-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.treat-action-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.treat-action-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.treat-action-card p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ===== SUPPLEMENT TABLE (legacy builder) ===== */
.treat-supplement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.88rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.treat-supplement-table thead { background: #f1f5f9; color: #475569; }
.treat-supplement-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.8rem; }
.treat-supplement-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.treat-supplement-table tbody tr:last-child td { border-bottom: none; }
.treat-supplement-table tbody tr:hover { background: #f8fafc; }

/* ===== RECIPE CARDS ===== */
.treat-recipe-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.treat-recipe-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.treat-recipe-card .ingredients {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.treat-recipe-card .ingredients h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.treat-recipe-card .ingredients ul { list-style: none; padding: 0; }
.treat-recipe-card .ingredients li { padding: 3px 0; font-size: 0.9rem; color: #475569; }
.treat-recipe-card .ingredients li::before { content: '\2022 '; color: #d97706; }

.treat-recipe-card .instructions { font-size: 0.9rem; color: #64748b; }
.treat-recipe-card .instructions ol { padding-left: 20px; }
.treat-recipe-card .instructions li { padding: 4px 0; }

/* ===== MEAL PLAN BLOCKS ===== */
.treat-meal-block {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.treat-meal-block-header {
    background: #f8fafc;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.treat-meal-block-body { padding: 16px 20px; }
.treat-meal-block-body ul { list-style: none; padding: 0; }
.treat-meal-block-body li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px dashed #f1f5f9;
}
.treat-meal-block-body li:last-child { border-bottom: none; }

/* ===== TRAINING CARDS ===== */
.treat-training-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.treat-training-card-header {
    background: #1e293b;
    color: white;
    padding: 16px 20px;
}

.treat-training-card-header h4 { font-size: 1rem; font-weight: 600; }
.treat-training-card-header span { font-size: 0.8rem; opacity: 0.7; }

.treat-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

.treat-exercise-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.treat-exercise-row:last-child { border-bottom: none; }

.treat-exercise-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 600;
    color: #475569;
    margin-right: 14px;
    flex-shrink: 0;
}

.treat-exercise-info { flex: 1; }
.treat-exercise-info strong { font-weight: 600; color: #1e293b; }
.treat-exercise-info span { display: block; font-size: 0.8rem; color: #94a3b8; }
.treat-exercise-sets { font-size: 0.8rem; color: #64748b; text-align: right; white-space: nowrap; }

/* ===== FOOD CLASSIFICATION (TIERS) ===== */
.treat-food-tier {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.treat-food-tier-col {
    border-radius: 12px;
    padding: 20px;
}

.treat-food-tier-col.tier-ideal { background: #f0fdf4; border: 1px solid #bbf7d0; }
.treat-food-tier-col.tier-sensitive { background: #fffbeb; border: 1px solid #fde68a; }
.treat-food-tier-col.tier-avoid { background: #fef2f2; border: 1px solid #fecaca; }

.treat-food-tier-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.tier-ideal h5 { color: #15803d; }
.tier-sensitive h5 { color: #a16207; }
.tier-avoid h5 { color: #b91c1c; }

.treat-food-tier-col ul { list-style: none; font-size: 0.85rem; padding: 0; }
.treat-food-tier-col li { padding: 3px 0; color: #475569; }

/* ===== ACTIVATORS/BLOCKERS ===== */
.treat-ab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.treat-ab-col { border-radius: 12px; padding: 24px; }
.treat-ab-col.activators { background: #f0fdf4; border: 1px solid #bbf7d0; }
.treat-ab-col.blockers { background: #fef2f2; border: 1px solid #fecaca; }

.treat-ab-col h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.treat-ab-col.activators h4 { color: #15803d; }
.treat-ab-col.blockers h4 { color: #b91c1c; }

.treat-ab-col ul { list-style: none; font-size: 0.88rem; padding: 0; }
.treat-ab-col li { padding: 4px 0; color: #475569; }
.treat-ab-col.activators li::before { content: '\2726 '; color: #22c55e; }
.treat-ab-col.blockers li::before { content: '\2715 '; color: #ef4444; }

/* ===== INFO BOXES ===== */
.treat-info-box {
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.treat-info-box.tip { background: #f0fdf4; border-left: 4px solid #22c55e; }
.treat-info-box.warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.treat-info-box.important { background: #eff6ff; border-left: 4px solid #3b82f6; }

.treat-info-box strong { display: block; margin-bottom: 4px; font-size: 0.85rem; color: #1e293b; }

/* ===== PERSONAL NOTE ===== */
.treat-personal-note {
    background: #fffbeb;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 32px 0;
    border: 1px solid #fde68a;
}

.treat-personal-note h4 {
    font-style: italic;
    font-size: 1.1rem;
    color: #78350f;
    margin-bottom: 12px;
    font-weight: 600;
}

.treat-personal-note p {
    font-size: 0.92rem;
    color: #92400e;
}

.treat-personal-note[contenteditable="true"]:focus {
    outline: 2px dashed #d97706;
    outline-offset: 4px;
}

/* ===== CHECKLIST ===== */
.treat-checklist {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.treat-checklist li {
    padding: 10px 0 10px 32px;
    position: relative;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.treat-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
}

/* ===== GENERIC CONTENT ===== */
.treat-generic-content {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed #e2e8f0;
}

.treat-generic-content:first-of-type {
    margin-top: 32px;
}

/* ===== GENERATE PHASE ===== */
.treat-generate-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.treat-generate-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.treat-generate-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.treat-generate-card.ready {
    border-color: var(--color-optimal-border);
    background: var(--color-optimal-bg);
}

.treat-generate-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.treat-generate-card.ready .icon {
    background: var(--color-optimal);
    border-color: var(--color-optimal);
    color: var(--color-white);
}

.treat-generate-card h4 { font-size: 0.9rem; color: var(--color-text); margin-bottom: 4px; font-weight: 600; }
.treat-generate-card.ready h4 { color: var(--color-optimal); }
.treat-generate-card p { font-size: 0.8rem; color: var(--color-text-light); }
.treat-generate-card.ready p { color: var(--color-optimal); }

/* ===== GENERATE WIZARD BAR ===== */
.gen-wizard-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 48px auto 40px;
    gap: 0;
    padding: 12px 0 16px;
}

.gen-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    width: 120px;
    transition: opacity 0.15s;
}

.gen-wizard-step.ready { opacity: 0.85; }
.gen-wizard-step:not(.ready) { opacity: 0.4; }

.gen-wizard-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.gen-wizard-step.ready .gen-wizard-icon {
    background: var(--color-optimal);
    border-color: var(--color-optimal);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.gen-wizard-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gen-wizard-step.ready .gen-wizard-label { color: var(--color-optimal); }

.gen-wizard-connector {
    width: 48px;
    flex: 0 0 48px;
    height: 2px;
    background: var(--color-border);
    margin-top: 17px;
    border-radius: 1px;
}

.gen-wizard-connector.ready { background: var(--color-optimal); }

/* ===== GENERATE BUTTON ===== */
.treat-generate-btn {
    display: block;
    margin: 40px auto 0;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.treat-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.treat-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ===== SECTION TITLE ===== */
.treat-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ece8e1;
}

.treat-section-title:first-child { margin-top: 0; }

.treat-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 28px 0 12px;
}

/* ===== NEXT SECTION BUTTON ===== */
.treat-panel-next {
    text-align: center;
    padding: 48px 24px;
    margin-top: 48px;
    border-top: 1px solid #e2e8f0;
}

.treat-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #d97706;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(217,119,6,0.15);
}

.treat-next-btn:hover {
    background: #b45309;
    box-shadow: 0 6px 20px rgba(217,119,6,0.25);
    transform: translateY(-1px);
}

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

.treat-next-btn .arrow {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.treat-next-btn:hover .arrow {
    transform: translateX(4px);
}

/* ===== OTHERS EMPTY STATE ===== */
.treat-others-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== EXECUTIVE SUMMARY DASHBOARD ===== */

/* Score widgets — 4 equal columns */
.exec-scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.exec-score-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.exec-score-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.exec-score-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.exec-score-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}

.score-green .exec-score-value { color: #16a34a; }
.score-blue .exec-score-value { color: #334155; }
.score-amber .exec-score-value { color: #d97706; }
.score-red .exec-score-value { color: #dc2626; }

.exec-score-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.exec-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-green .exec-score-bar-fill { background: #16a34a; }
.score-blue .exec-score-bar-fill { background: #475569; }
.score-amber .exec-score-bar-fill { background: #d97706; }
.score-red .exec-score-bar-fill { background: #dc2626; }

/* Start / Stop Doing cards */
.exec-do-stop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.exec-do-card {
    border-radius: 16px;
    padding: 28px;
}

.exec-start-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.exec-stop-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.exec-do-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exec-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.exec-dot.green { background: #22c55e; }
.exec-dot.red { background: #f87171; }

.exec-do-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exec-do-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
}

.exec-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.exec-cross {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Timeline card */
.exec-timeline-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 20px;
    margin-bottom: 32px;
}

.exec-timeline-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 28px;
}

.exec-timeline {
    position: relative;
    padding-left: 52px;
}

/* Vertical connecting line */
.exec-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #e2e8f0;
}

.exec-timeline-step {
    position: relative;
    padding-bottom: 32px;
}

.exec-timeline-step:last-child {
    padding-bottom: 0;
}

.exec-timeline-icon {
    position: absolute;
    left: -52px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #d97706;
    background: #fffbeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
}

.exec-timeline-content strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.exec-timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .treat-sidebar { display: none; }
    .treat-mobile-header { display: flex; }
    .treat-section { padding: 16px 20px; }
    .treat-overview-grid { grid-template-columns: 1fr; }
    .treat-cards-grid.cols-2 { grid-template-columns: 1fr; }
    .treat-cards-grid.cols-3 { grid-template-columns: 1fr; }
    .treat-food-tier { grid-template-columns: 1fr; }
    .treat-food-cols { grid-template-columns: 1fr; }
    .treat-ab-grid { grid-template-columns: 1fr; }
    .treat-axes-grid { grid-template-columns: 1fr; }
    .treat-training-grid { grid-template-columns: 1fr; }
    .treat-action-grid { grid-template-columns: 1fr; }
    .treat-tracker-header { flex-direction: column; text-align: center; gap: 12px; }
    .treat-tracker-progress { text-align: center; }
    .exec-scores-grid { grid-template-columns: repeat(2, 1fr); }
    .exec-do-stop-grid { grid-template-columns: 1fr; }

    /* Cascade flow: horizontal scroll on tablets */
    .cascade-flow {
        justify-content: flex-start;
        padding: 16px 20px;
        margin: 0 -20px 32px;
    }
    .cascade-card { flex: 0 0 160px; }

    /* Overview hero adjusts */
    .overview-hero {
        margin: -16px -20px 32px;
        padding: 40px 20px 32px;
    }
    .overview-serif-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .treat-section { padding: 12px 16px; }
    .treat-section-header { flex-wrap: wrap; }
    .treat-section-header h2 { font-size: 1.4rem; }
    .treat-section-header .section-emoji { font-size: 2rem; }
    .treat-header-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }

    /* Cascade: vertical stack on mobile */
    .cascade-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin: 0 -16px 24px;
        padding: 16px;
    }
    .cascade-card { flex: 0 0 auto; width: 100%; max-width: 280px; }
    .cascade-arrow {
        padding-top: 0;
        transform: rotate(90deg);
        margin: -4px 0;
    }
    .overview-hero {
        margin: -12px -16px 24px;
        padding: 32px 16px 24px;
    }
    .overview-serif-title { font-size: 1.6rem; }
    .overview-subtitle { font-size: 0.92rem; }
}

/* ===== PRINT ===== */
@media print {
    .treat-sidebar { display: none !important; }
    .treat-mobile-header { display: none !important; }
    .flow-action-bar { display: none !important; }
    .treat-section { display: block !important; padding: 16px 0; page-break-inside: avoid; }
    .treat-next-btn { display: none !important; }
    .treat-panel-next { display: none !important; }
    .treat-begin-btn { display: none !important; }
    .no-print { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW TREATMENT PLAN WIDGETS (2026-03-20 Redesign)
   ═══════════════════════════════════════════════════════════════ */

/* ── Glass Card System ──────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(44, 95, 75, 0.12);
    box-shadow: 0 12px 35px -10px rgba(44, 95, 75, 0.06);
    border-radius: 2rem;
    padding: 3rem;
}
.glass-card-dark {
    background: var(--color-primary);
    color: #fff;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(44, 95, 75, 0.25);
    position: relative;
    overflow: hidden;
}
.glass-card-dark .glow {
    position: absolute;
    width: 24rem; height: 24rem;
    background: rgba(196, 149, 106, 0.08);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.glass-card-accent {
    border-left: 16px solid var(--color-primary);
}

/* ── Meter Bars ─────────────────────────────────────────── */
.treat-meter-bg {
    height: 8px;
    width: 100%;
    background: rgba(226, 232, 222, 0.3);
    border-radius: 999px;
    overflow: hidden;
}
.treat-meter-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease-out;
}
.treat-meter-fill.critical { background: #ef4444; }
.treat-meter-fill.attention { background: #f59e0b; }
.treat-meter-fill.optimal { background: var(--color-primary); }

/* ── Badges ─────────────────────────────────────────────── */
.treat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.treat-badge.a-plus { background: var(--color-primary); color: #fff; }
.treat-badge.critical { background: #ef4444; color: #fff; }
.treat-badge.warning { background: #f59e0b; color: #fff; }
.treat-badge.status-tag {
    font-size: 0.6rem;
    padding: 3px 12px;
    border-radius: 999px;
}

/* ── Intensity Bar ──────────────────────────────────────── */
.treat-intensity-bar {
    height: 14px;
    border-radius: 7px;
    position: relative;
    background: linear-gradient(to right, var(--color-primary) 30%, #3b82f6 70%, #ef4444 100%);
}
.treat-intensity-marker {
    position: absolute;
    top: -7px;
    width: 28px;
    height: 28px;
    background: white;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateX(-50%);
}

/* ── Balanced Plate Widget ──────────────────────────────── */
.plate-base {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 14px solid #f1f5f9;
    position: relative;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.02), 0 20px 40px -10px rgba(44, 95, 75, 0.1);
    margin: 0 auto;
}
.plate-carb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-primary);
    opacity: 0.25;
    clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 0% 60%);
}
.plate-protein {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #94a3b8;
    clip-path: polygon(50% 60%, 100% 60%, 100% 100%, 50% 100%);
}
.plate-fat {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-accent, #C4956A);
    opacity: 0.3;
    clip-path: polygon(50% 60%, 50% 100%, 0% 100%, 0% 60%);
}
.plate-food-icon {
    position: absolute;
    font-size: 4rem;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}
.plate-food-icon:hover { transform: scale(1.1); }

/* ── Key Marker Cards ───────────────────────────────────── */
.treat-marker-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.treat-marker-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.treat-marker-value {
    font-size: 1.8rem;
    font-weight: 900;
}
.treat-marker-value.critical { color: #ef4444; }
.treat-marker-value.attention { color: #f59e0b; }
.treat-marker-value.optimal { color: var(--color-primary); }

/* ── Food Dashboard Table ───────────────────────────────── */
.food-dashboard {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.food-dashboard td { padding: 2rem 2.5rem; }
.food-dashboard tbody tr { border-bottom: 1px solid #f1f5f9; }
.food-dashboard tbody tr:hover { background: rgba(44, 95, 75, 0.03); }
.food-dashboard .cat-label {
    width: 180px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.1em;
}
.food-ideal { color: var(--color-primary); font-weight: 700; }
.food-moderate { color: #3b82f6; font-style: italic; }
.food-avoid {
    color: #ef4444;
    font-weight: 800;
    font-style: italic;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ── North Star / Hero Cards ────────────────────────────── */
.treat-north-star {
    padding: 2.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 2rem;
    box-shadow: 0 20px 40px -10px rgba(44, 95, 75, 0.3);
    position: relative;
    overflow: hidden;
}
.treat-north-star .glow {
    position: absolute;
    right: -5rem; top: -5rem;
    width: 24rem; height: 24rem;
    background: rgba(196, 149, 106, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ── Reference Links ────────────────────────────────────── */
.ref-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(44, 95, 75, 0.3);
    text-underline-offset: 2px;
    font-weight: 500;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
    cursor: pointer;
}
.ref-link:hover {
    color: var(--color-accent, #C4956A);
    text-decoration-color: var(--color-accent, #C4956A);
}

/* ── Section Label (tiny uppercase) ─────────────────────── */
.treat-section-label {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

/* ── Executive Summary Quote ────────────────────────────── */
.treat-exec-quote {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════
   DARK SIDEBAR THEME (Phase 4)
   ═══════════════════════════════════════════════════════════ */
.treat-sidebar.treat-sidebar-dark {
    background: var(--color-primary);
    border-right: none;
}

.treat-sidebar-dark .treat-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.treat-sidebar-dark .treat-brand-text {
    color: #fff;
    font-style: italic;
}

.treat-sidebar-dark .treat-brand-icon {
    filter: brightness(0) invert(1);
}

.treat-sidebar-dark .treat-sidebar-brand p {
    color: rgba(255, 255, 255, 0.5);
}

.treat-sidebar-dark .treat-nav-btn {
    color: rgba(255, 255, 255, 0.7);
    border-left-color: transparent;
}

.treat-sidebar-dark .treat-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.treat-sidebar-dark .treat-nav-btn.active {
    background: rgba(44, 95, 75, 0.3);
    border-left-color: #fff;
    color: #fff;
    font-weight: 600;
}

.treat-sidebar-dark .treat-nav-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Nav group labels */
.treat-nav-group-label {
    padding: 8px 20px 2px;
    list-style: none;
}

.treat-nav-group-label span {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM UTILITIES — Not covered by Tailwind CDN
   ═══════════════════════════════════════════════════════════ */

/* font-serif uses project CSS variable, not Tailwind's default serif */
.font-serif { font-family: var(--font-heading) !important; }

/* text-muted and text-brn-primary — custom project colors */
.text-muted { color: #94a3b8; }
.text-brn-primary { color: var(--color-primary); }


/* ═══════════════════════════════════════════════════════════
   GLASS CARDS — Modern frosted card components
   ═══════════════════════════════════════════════════════════ */

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}
.glass-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.glass-card-accent {
    border-left: 4px solid var(--color-primary);
}

.glass-card-dark {
    background: var(--color-primary);
    border: none;
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(44, 95, 75, 0.2);
}
.glass-card-dark h3,
.glass-card-dark h4 {
    color: #fff;
}

/* Glass card inside report-body readonly */
.glass-card .report-body.readonly {
    padding: 0;
}
.glass-card .report-body h3 {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 16px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    color: #1e293b;
}
.glass-card .report-body h3:first-child { margin-top: 0; }
.glass-card .report-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 12px;
}
.glass-card .report-body ul,
.glass-card .report-body ol {
    padding-left: 20px;
    margin: 0 0 12px;
}
.glass-card .report-body li {
    padding: 3px 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}
.glass-card .report-body li strong { color: #1e293b; }


/* ═══════════════════════════════════════════════════════════
   MARKER CARDS — Key biomarker value cards
   ═══════════════════════════════════════════════════════════ */

.treat-marker-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.treat-marker-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.treat-marker-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 4px;
    color: #1e293b;
}
.treat-marker-value.optimal { color: var(--color-optimal, #5A8F6E); }
.treat-marker-value.suboptimal { color: var(--color-suboptimal, #D4A843); }
.treat-marker-value.critical { color: var(--color-critical, #C0544F); }


/* ═══════════════════════════════════════════════════════════
   BADGES — Status and priority labels
   ═══════════════════════════════════════════════════════════ */

.treat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.treat-badge.optimal {
    background: rgba(90, 143, 110, 0.15);
    color: var(--color-optimal, #5A8F6E);
}
.treat-badge.attention,
.treat-badge.warning {
    background: rgba(212, 168, 67, 0.15);
    color: var(--color-suboptimal, #D4A843);
}
.treat-badge.critical {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.treat-badge.a-plus {
    background: rgba(44, 95, 75, 0.15);
    color: var(--color-primary);
}


/* ═══════════════════════════════════════════════════════════
   METER BARS — System health progress bars
   ═══════════════════════════════════════════════════════════ */

.treat-meter-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.treat-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.treat-meter-fill.optimal { background: var(--color-optimal, #5A8F6E); }
.treat-meter-fill.attention { background: var(--color-suboptimal, #D4A843); }
.treat-meter-fill.critical { background: var(--color-critical, #C0544F); }


/* ═══════════════════════════════════════════════════════════
   INTENSITY BAR — Movement section gradient bar
   ═══════════════════════════════════════════════════════════ */

.treat-intensity-bar {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, #86efac 0%, #fbbf24 50%, #ef4444 100%);
    position: relative;
}

.treat-intensity-marker {
    position: absolute;
    top: -4px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* ═══════════════════════════════════════════════════════════
   BALANCED PLATE WIDGET — Nutrition section
   ═══════════════════════════════════════════════════════════ */

.plate-base {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    background: #f8fafc;
}

.plate-carb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(44, 95, 75, 0.15);
    border-bottom: 2px solid rgba(44, 95, 75, 0.2);
}

.plate-protein {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: rgba(100, 116, 139, 0.12);
    border-left: 2px solid rgba(100, 116, 139, 0.2);
}

.plate-fat {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: rgba(196, 149, 106, 0.15);
}

.plate-food-icon {
    position: absolute;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
    z-index: 2;
}


/* ═══════════════════════════════════════════════════════════
   FOOD DASHBOARD TABLE — Nutrition section
   ═══════════════════════════════════════════════════════════ */

.food-dashboard {
    width: 100%;
    border-collapse: collapse;
}

.food-dashboard td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.6;
    color: #475569;
}

.food-dashboard tr:last-child td {
    border-bottom: none;
}

.food-dashboard .cat-label {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    width: 100px;
    min-width: 100px;
}

.food-ideal { color: var(--color-optimal, #5A8F6E); font-weight: 600; }
.food-moderate { color: var(--color-suboptimal, #D4A843); font-weight: 500; }
.food-avoid { color: var(--color-critical, #C0544F); font-weight: 500; }


/* ═══════════════════════════════════════════════════════════
   DAILY TRACKER — Checklist with progress bar
   ═══════════════════════════════════════════════════════════ */

.treat-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.treat-tracker-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.treat-tracker-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 4px 0 0;
}

.treat-tracker-progress {
    text-align: right;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    display: block;
}

.progress-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
}

.treat-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}

.treat-progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.treat-tracker-phase {
    margin-bottom: 28px;
}

.treat-tracker-phase-header {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.treat-tracker-phase-header.morning {
    background: #fef3c7;
    color: #92400e;
}
.treat-tracker-phase-header.midday {
    background: #dcfce7;
    color: #166534;
}
.treat-tracker-phase-header.evening {
    background: #e0e7ff;
    color: #3730a3;
}

.treat-tracker-items {
    padding-left: 8px;
}

.treat-tracker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.treat-tracker-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.treat-tracker-item label {
    font-size: 0.88rem;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   TRAINING GRID — Side-by-side workout cards
   ═══════════════════════════════════════════════════════════ */

.treat-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}


/* ═══════════════════════════════════════════════════════════
   CONTENT BLOCK — Editable AI content container
   ═══════════════════════════════════════════════════════════ */

.treat-content-block {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.8;
}

.treat-content-block:focus {
    outline: none;
}

.treat-content-block p { margin: 0 0 12px; }
.treat-content-block ul,
.treat-content-block ol { padding-left: 20px; margin: 0 0 12px; }
.treat-content-block li { padding: 3px 0; line-height: 1.6; }
.treat-content-block strong { color: #1e293b; }
.treat-content-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 16px 0 8px;
    color: #1e293b;
}
.treat-content-block h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 12px 0 6px;
    color: #334155;
}



/* Style toggle link (Classic ↔ New) */
.treat-style-toggle-row {
    text-align: center;
    margin-top: 16px;
}

.treat-style-toggle {
    opacity: 0.6;
    font-size: 0.78rem;
}
.treat-style-toggle:hover {
    opacity: 1;
}

/* ── Radar Chart Two-Column Layout ──────────────────────────────── */
.treat-radar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.treat-radar-chart-col {
    min-height: 360px;
    position: relative;
}
.treat-radar-chart-col canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 360px;
}
.treat-radar-info-col {
    padding-top: 4px;
}
@media (max-width: 768px) {
    .treat-radar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .treat-radar-chart-col {
        min-height: 280px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PRINT STYLES — Treatment Plan PDF
   ═══════════════════════════════════════════════════════════ */

.print-treatment-doc { display: none; }

body.printing-treatment .print-treatment-doc {
    display: block;
}

body.printing-treatment .treatment-plan-view,
body.printing-treatment .app-header,
body.printing-treatment .wizard-bar,
body.printing-treatment .patient-banner,
body.printing-treatment #flow-action-bar {
    display: none !important;
}

.print-cover {
    page-break-after: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
}

.print-cover-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.print-cover-divider {
    width: 80px;
    height: 3px;
    background: var(--color-accent, #C4956A);
    margin: 24px auto;
    border-radius: 2px;
}

.print-cover-type {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}

.print-cover-patient {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.print-cover-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 0.85rem;
    color: #64748b;
}

.print-cover-footer {
    margin-top: auto;
    padding-top: 40px;
}

.print-cover-footer-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 auto 12px;
}

.print-cover-footer-text {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.print-section {
    page-break-before: always;
    padding: 40px;
}

.print-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 24px;
}

.print-page-header-brand {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.print-page-header-patient {
    font-size: 0.8rem;
    color: #64748b;
}

.print-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.print-signature {
    page-break-before: always;
    padding: 80px 40px 40px;
}

.print-signature-content {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid var(--color-primary);
    padding-top: 24px;
}

.print-signature-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.print-signature-role {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.print-signature-url {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.print-disclaimer {
    padding: 24px 40px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

/* ─── Phase-Based Treatment Sections ───────────────────────────────────────── */

.treat-phase-header .treat-phase-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-slate, #1e293b);
    margin-bottom: 4px;
}

.treat-phase-header .treat-phase-subtitle {
    font-size: 0.9rem;
    color: var(--color-accent, #C4956A);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.treat-phase-week-badge {
    display: inline-block;
    background: rgba(196, 149, 106, 0.2);
    color: #C4956A;
    border: 1px solid rgba(196, 149, 106, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.treat-section-sublabel {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.7;
}

/* Action plan list */
.treat-action-plan-card {
    border-left: 6px solid var(--color-primary);
}

.fase-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fase-action-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.fase-action-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 1px;
}

/* Phase timeline */
.phase-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phase-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    cursor: default;
}
.phase-timeline-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-card-hover, 0 10px 28px rgba(0,0,0,0.09));
    background: #ffffff;
}
.phase-timeline > .phase-timeline-item:nth-child(1) { border-left-color: #16a34a; }
.phase-timeline > .phase-timeline-item:nth-child(2) { border-left-color: #d97706; }
.phase-timeline > .phase-timeline-item:nth-child(3) { border-left-color: #2563eb; }
.phase-timeline > .phase-timeline-item:nth-child(4) { border-left-color: #7c3aed; }

.phase-timeline-num {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.phase-timeline-weeks {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent, #C4956A);
    margin-bottom: 2px;
}

.phase-timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.phase-timeline-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

/* Sidebar fasen group label */
.treat-nav-group-label span {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}


/* ===== VOEDING TAB — Persoonlijk Voedingsplan ===== */

/* ── Coach Panel ── */
.voeding-coach-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.voeding-coach-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
}

.voeding-coach-toggle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.voeding-coach-toggle:hover { background: #f1f5f9; }

.voeding-coach-body {
    display: none;
    padding: 0 16px 16px;
    flex-direction: column;
    gap: 12px;
}

.voeding-coach-body.open { display: flex; }

.voeding-coach-hint {
    font-size: 0.8rem;
    color: #64748b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
}

.voeding-coach-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 8px 0 4px;
}

.voeding-coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

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

.voeding-coach-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.voeding-coach-input {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.83rem;
    color: #1e293b;
    background: #fff;
    width: 100%;
}

.voeding-coach-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.voeding-coach-sens-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voeding-coach-sens-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #374151;
    cursor: pointer;
}

.voeding-coach-cb { cursor: pointer; }

.voeding-coach-note {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.83rem;
    resize: vertical;
    font-family: inherit;
    color: #1e293b;
}

.voeding-coach-save {
    align-self: flex-start;
    margin-top: 4px;
}

/* ── Energie Profiel Card ── */
.voeding-profiel {
    margin-bottom: 32px;
    padding: 24px;
}

.voeding-profiel-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.voeding-profiel-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.voeding-profiel-hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

.voeding-profiel-empty {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
}

.voeding-profiel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.voeding-profiel-stat {
    min-width: 110px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
}

.voeding-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.voeding-stat-label {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.voeding-stat-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* Macro bar */
.voeding-macro-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.voeding-macro-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
    flex: 1;
}

.voeding-macro-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bar-color) var(--bar-w), #e2e8f0 var(--bar-w));
}

.voeding-macro-label {
    font-size: 0.8rem;
    color: #374151;
}

.voeding-cronometer-tip {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.voeding-coach-note-display {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f7f4;
    border-left: 3px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: #374151;
}

.voeding-coach-note-display p { margin: 0; }

/* ── Section Heading ── */
.voeding-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    padding-top: 2px;
}

/* ── Basisregels ── */
.voeding-regels-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.voeding-regels-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.voeding-regel {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.voeding-regel:last-child { border-bottom: none; }

.voeding-regel-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f7f4;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.voeding-regel-text { flex: 1; }

.voeding-regel-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.voeding-regel-body {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* ── Voedingsbouwblokken ── */
.voeding-blokken-wrap {
    margin-bottom: 28px;
}

.voeding-blokken-intro {
    font-size: 0.83rem;
    color: var(--color-primary);
    background: #f0f7f4;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 0 16px;
}

.voeding-blok-cat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.voeding-blok-cat-header {
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.voeding-blok-cat-header strong {
    font-size: 0.88rem;
    color: #1e293b;
}

.voeding-blok-cat-hint {
    font-size: 0.76rem;
    color: #64748b;
}

.voeding-blok-table { padding: 0 4px; }

.voeding-blok-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #f8fafc;
    align-items: baseline;
}

.voeding-blok-row:last-child { border-bottom: none; }

.voeding-blok-name {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 500;
}

.voeding-blok-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
    white-space: nowrap;
}

.voeding-blok-note {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ── Maaltijdtemplates ── */
.voeding-maaltijden-wrap {
    margin-bottom: 28px;
}

.voeding-maaltijden-intro {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.6;
}

.voeding-maaltijd-group {
    margin-bottom: 20px;
}

.voeding-maaltijd-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f7f4;
}

.voeding-maaltijd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    .voeding-maaltijd-cards { grid-template-columns: 1fr; }
}

.voeding-maaltijd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voeding-maaltijd-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4956A;
    background: #fdf8f3;
    border-radius: 4px;
    padding: 2px 7px;
    align-self: flex-start;
}

.voeding-maaltijd-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

.voeding-maaltijd-items {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.voeding-maaltijd-items li {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.55;
}

.voeding-maaltijd-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

/* ── Avondeten Bouwblokken ── */
.voeding-avond-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}

.voeding-avond-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 700px) {
    .voeding-avond-grid { grid-template-columns: repeat(2, 1fr); }
}

.voeding-avond-col {
    border-top: 3px solid #e2e8f0;
    padding-top: 10px;
}

.voeding-avond-col-title {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 8px;
}

.voeding-avond-item {
    font-size: 0.83rem;
    color: #374151;
    padding: 5px 0;
    border-bottom: 1px solid #f8fafc;
    line-height: 1.4;
}

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

/* ── Smaakstijlen ── */
.voeding-smaak-wrap {
    margin-bottom: 28px;
}

.voeding-smaak-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 12px;
}

@media (max-width: 800px) {
    .voeding-smaak-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .voeding-smaak-grid { grid-template-columns: 1fr; }
}

.voeding-smaak-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voeding-smaak-flag {
    font-size: 1.6rem;
    line-height: 1;
}

.voeding-smaak-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.voeding-smaak-combo {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.45;
    padding: 6px 8px;
    background: #f0f7f4;
    border-radius: 5px;
}

.voeding-smaak-makers {
    margin: 0;
    padding-left: 14px;
    list-style-type: disc;
}

.voeding-smaak-makers li {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.voeding-smaak-tip {
    font-size: 0.78rem;
    color: #C4956A;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    line-height: 1.5;
}

/* ── Snacks ── */
.voeding-snacks-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.voeding-slaap-snacks {
    background: #fdf8f5;
    border-color: #e8d8c8;
}

.voeding-snacks-header { margin-bottom: 12px; }

.voeding-snacks-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 2px 0 0;
}

.voeding-snacks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voeding-snack-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.5;
}

.voeding-snack-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 6px;
}

.voeding-snack-dot--sleep {
    background: #C4956A;
}

/* ── Pro-Metabole Superfoods ── */
.voeding-superfoods-wrap {
    margin-bottom: 28px;
}

.voeding-superfoods-header {
    margin-bottom: 14px;
}

.voeding-superfoods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 600px) {
    .voeding-superfoods-grid { grid-template-columns: 1fr; }
}

.voeding-superfood-card {
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.superfood-daily {
    background: #f0f7f4;
    border-color: #c5dfd2;
}

.superfood-weekly {
    background: #fdf8f3;
    border-color: #e8d8c8;
}

.superfood-freq {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.superfood-weekly .superfood-freq {
    color: #C4956A;
}

.superfood-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

.superfood-desc {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   MASTER SPEC MODULES (Apr 2026)
   Navy #1A2B3C / Coral #FF7F50 / Emerald #10B981
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --brn-navy:    #1A2B3C;
    --brn-coral:   #FF7F50;
    --brn-emerald: #10B981;
    --brn-sage:    #F8FAFA;
    --brn-border:  #E5E9EB;
}

/* ── Bio-Energetic View (Overview intro card) ─────────────────────────── */
.bio-energetic-view {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 44px 48px;
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.45);
    border-left: 4px solid var(--color-accent, #d97706);
}
.bio-energetic-view-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: rgba(217, 119, 6, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.bio-energetic-view-label {
    position: relative;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent, #d97706);
    margin: 0 0 14px 0;
}
.bio-energetic-view-quote {
    position: relative;
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: normal;
    font-weight: 500;
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    opacity: 1;
}

/* ── Ground Rules (10 rule cards) ─────────────────────────────────────── */
.ground-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.ground-rule-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 28px;
    padding: 28px 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02), 0 1px 4px rgba(0,0,0,0.02);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}
.ground-rule-card:hover {
    border-color: rgba(255,127,80,0.4);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -18px rgba(26,43,60,0.25);
}
.ground-rule-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.ground-rule-num {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brn-navy);
    opacity: 0.15;
}
.ground-rule-title {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--brn-navy);
    margin: 0 0 10px 0;
}
.ground-rule-text {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* ── Assembly Meals (Busy Schedule) ───────────────────────────────────── */
.assembly-meals-wrap {
    margin: 36px 0;
}
.assembly-meals-header {
    margin: 0 0 24px 8px;
}
.assembly-meals-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brn-navy);
    opacity: 0.4;
    margin: 0 0 6px 0;
}
.assembly-meals-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--brn-navy);
    margin: 0;
}
.assembly-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.assembly-meal-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 34px;
    padding: 36px 32px;
    box-shadow: 0 14px 40px -20px rgba(26,43,60,0.18);
    transition: all 0.4s ease;
    min-height: 220px;
}
.assembly-meal-card:hover {
    border-color: rgba(255,127,80,0.4);
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -20px rgba(26,43,60,0.25);
}
.assembly-meal-title {
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brn-navy);
    margin: 0 0 16px 0;
    line-height: 1.3;
}
.assembly-meal-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--brn-navy);
    opacity: 0.72;
    margin: 0;
}

/* ── Flavor Switcher Gallery ──────────────────────────────────────────── */
.flavor-switcher-wrap {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 44px;
    padding: 44px 44px;
    margin: 36px 0;
    box-shadow: 0 20px 50px -20px rgba(26,43,60,0.18);
}
.flavor-switcher-header {
    margin-bottom: 28px;
}
.flavor-switcher-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brn-navy);
    opacity: 0.4;
    margin: 0 0 6px 0;
}
.flavor-switcher-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--brn-navy);
    margin: 0;
}
.flavor-switcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.flavor-card {
    background: var(--brn-sage);
    border: 1px solid var(--brn-border);
    border-radius: 30px;
    padding: 26px 28px;
    transition: all 0.4s ease;
    border-top: 4px solid var(--flavor-accent, var(--brn-coral));
}
.flavor-card:hover {
    background: var(--brn-navy);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -18px rgba(26,43,60,0.35);
}
.flavor-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.flavor-card-title {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: inherit;
    margin: 0;
}
.flavor-card-icon {
    font-size: 1.3rem;
    opacity: 0.75;
}
.flavor-card-desc {
    font-size: 0.78rem;
    line-height: 1.65;
    font-style: italic;
    font-weight: 600;
    opacity: 0.75;
    margin: 0 0 16px 0;
}
.flavor-card-tip {
    padding-top: 14px;
    border-top: 1px solid rgba(26,43,60,0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brn-coral);
}
.flavor-card:hover .flavor-card-tip {
    border-top-color: rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════════════════════════════════════
   MASTER SPEC — 7-TAB STRUCTURE (Apr 2026)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Nutrition Plan header + Therapeutic Dossier label ───────────────── */
.nutrition-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.nutrition-header-text {
    flex: 1 1 auto;
}
.nutrition-dossier-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brn-coral);
    margin: 0 0 8px 0;
}
.nutrition-dossier-title {
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--brn-navy);
    line-height: 1;
    margin: 0;
}

/* ── Macro Stat Bar (header pill) ─────────────────────────────────────── */
.macro-stat-bar {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 20px 50px -18px rgba(26, 43, 60, 0.18);
    flex-shrink: 0;
}
.macro-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}
.macro-stat-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brn-navy);
    opacity: 0.4;
    margin-bottom: 4px;
}
.macro-stat-val {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
}
.macro-stat-unit {
    font-size: 0.65rem;
    margin-left: 2px;
    opacity: 0.5;
}
.macro-stat-sep {
    width: 1px;
    height: 32px;
    background: #e5e9eb;
}

/* ── Calibration Panel ────────────────────────────────────────────────── */
.calibration-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-bottom: 40px;
}
.calibration-main {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 36px;
    padding: 32px 36px;
    box-shadow: 0 24px 60px -28px rgba(26, 43, 60, 0.2);
}
.calibration-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brn-coral);
    margin: 0 0 22px 0;
}
.calibration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.calibration-field label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brn-navy);
    opacity: 0.4;
    margin-bottom: 10px;
}
.calibration-input {
    width: 100%;
    background: #F0F2F5;
    border: none;
    border-radius: 22px;
    padding: 16px 20px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brn-navy);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.calibration-input:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04), 0 0 0 3px rgba(255,127,80,0.3);
}
.calibration-mode-btn {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--brn-navy);
    color: #fff;
    transition: all 0.25s;
    box-shadow: 0 10px 28px -12px rgba(26, 43, 60, 0.4);
}
.calibration-mode-btn.active {
    background: var(--brn-emerald);
}
.calibration-mode-btn:hover {
    transform: translateY(-1px);
}
.calibration-aside {
    background: var(--brn-navy);
    color: #fff;
    border-radius: 36px;
    padding: 32px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 24px 60px -28px rgba(26, 43, 60, 0.35);
}
.calibration-aside-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brn-coral);
    margin: 0 0 12px 0;
}
.calibration-aside-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

/* ── Meal Blueprint (dynamic grams) ───────────────────────────────────── */
.meal-blueprint-wrap {
    margin: 44px 0;
}
.meal-blueprint-header {
    margin: 0 0 28px 8px;
}
.meal-blueprint-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brn-navy);
    opacity: 0.4;
    margin: 0 0 6px 0;
}
.meal-blueprint-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--brn-navy);
    margin: 0;
}
.meal-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.meal-column-header {
    margin: 0 0 24px 20px;
}
.meal-column-header h4 {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0;
}
.meal-column-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.option-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 22px 55px -28px rgba(26, 43, 60, 0.2);
    position: relative;
    transition: all 0.4s;
}
.option-card:hover {
    border-color: rgba(255, 127, 80, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -24px rgba(26, 43, 60, 0.25);
}
.option-card-id {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 127, 80, 0.05);
    color: var(--brn-coral);
    border: 1px solid rgba(255, 127, 80, 0.12);
    font-size: 0.82rem;
    font-weight: 900;
    transition: all 0.3s;
}
.option-card:hover .option-card-id {
    background: var(--brn-coral);
    color: #fff;
}
.option-card-title {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brn-navy);
    margin: 0 0 22px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 56px;
}
.option-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.option-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brn-navy);
    opacity: 0.85;
    line-height: 1.5;
}
.option-card-check {
    color: var(--brn-emerald);
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}
.power-snack-hint {
    background: #fff;
    border: 2px dashed #e5e9eb;
    border-radius: 32px;
    padding: 24px 28px;
    text-align: center;
}
.power-snack-hint p {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brn-navy);
    opacity: 0.6;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* ── Recovery Plan (4 phase cards on one page) ───────────────────────── */
.recovery-phase-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
}
.recovery-phase-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 32px;
    display: flex;
    overflow: hidden;
    transition: all 0.4s;
    cursor: default;
}
.recovery-phase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 60px -24px rgba(26, 43, 60, 0.22);
}
.recovery-phase-stripe {
    width: 10px;
    flex-shrink: 0;
}
.recovery-phase-body {
    padding: 36px 44px;
    display: flex;
    align-items: center;
    gap: 44px;
    flex: 1;
}
.recovery-phase-num {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--brn-navy);
    opacity: 0.06;
    line-height: 1;
    flex-shrink: 0;
}
.recovery-phase-info {
    flex: 1;
}
.recovery-phase-weeks {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}
.recovery-phase-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    color: var(--brn-navy);
    margin: 0 0 10px 0;
}
.recovery-phase-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #64748b;
    font-weight: 700;
    margin: 0;
    max-width: 620px;
}

/* ── Supplements Phase Grid ───────────────────────────────────────────── */
.supp-phase-block {
    margin-bottom: 48px;
}
.supp-phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.supp-phase-pill {
    color: #fff;
    padding: 7px 18px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.supp-phase-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--brn-navy);
    margin: 0;
}
.supp-phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.supp-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 24px;
    padding: 26px 26px;
    box-shadow: 0 14px 40px -22px rgba(26, 43, 60, 0.18);
    transition: all 0.35s;
}
.supp-card:hover {
    border-color: rgba(255, 127, 80, 0.4);
    transform: translateY(-2px);
}
.supp-card-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--brn-navy);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.supp-card-dose {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brn-coral);
    margin: 0 0 4px 0;
}
.supp-card-timing {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 14px 0;
    font-style: italic;
}
.supp-card-purpose {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brn-navy);
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* ── Sleep Secret + Sleep Snacks Grid ─────────────────────────────────── */
.sleep-secret-card {
    background: var(--brn-navy);
    color: #fff;
    padding: 40px 48px;
    border-radius: 36px;
    margin-bottom: 36px;
    box-shadow: 0 24px 60px -20px rgba(26, 43, 60, 0.35);
}
.sleep-secret-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brn-coral);
    margin: 0 0 14px 0;
}
.sleep-secret-text {
    font-size: 1.1rem;
    line-height: 1.75;
    font-style: italic;
    opacity: 0.92;
    margin: 0;
    max-width: 760px;
}
.sleep-snacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.sleep-snack-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 26px;
    padding: 26px 28px;
    box-shadow: 0 14px 40px -22px rgba(26, 43, 60, 0.15);
    transition: all 0.35s;
}
.sleep-snack-card:hover {
    border-color: rgba(255, 127, 80, 0.4);
    transform: translateY(-2px);
}
.sleep-snack-card h6 {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--brn-navy);
    margin: 0 0 10px 0;
}
.sleep-snack-card p {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* ── Training Principles Grid ─────────────────────────────────────────── */
.training-principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.training-principle-card {
    background: #fff;
    border: 1px solid var(--brn-border);
    border-radius: 30px;
    padding: 32px 34px;
    box-shadow: 0 18px 45px -22px rgba(26, 43, 60, 0.18);
    transition: all 0.4s;
    border-top: 4px solid var(--brn-coral);
}
.training-principle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px -22px rgba(26, 43, 60, 0.25);
}
.training-principle-card h6 {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--brn-navy);
    margin: 0 0 12px 0;
}
.training-principle-card p {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Voeding embedded under nutrition plan — subtle divider */
.voeding-embedded-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 900px) {
    .calibration-wrap { grid-template-columns: 1fr; }
    .calibration-grid { grid-template-columns: 1fr; }
    .nutrition-header { flex-direction: column; align-items: stretch; }
    .macro-stat-bar { overflow-x: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SPEC SIDEBAR + DASHBOARD HERO (target mockup, Apr 2026)
   ═══════════════════════════════════════════════════════════════════════ */

/* Sidebar brand: PERSONAL TREATMENT PLAN / bodyresetnow.com */
.treat-sidebar-spec .treat-sidebar-brand-spec {
    padding: 36px 30px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 26px;
}
.treat-sidebar-spec .treat-brand-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}
.treat-sidebar-spec .treat-brand-domain {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brn-coral);
    margin: 0;
}

/* Nav items with icon + label */
.treat-sidebar-spec .treat-nav-group-label {
    padding: 18px 30px 10px;
}
.treat-sidebar-spec .treat-nav-group-label span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
}
.treat-sidebar-spec .treat-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: calc(100% - 24px);
    margin: 4px 12px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    transition: all 0.25s ease;
}
.treat-sidebar-spec .treat-nav-btn:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    transform: translateX(4px);
}
.treat-sidebar-spec .treat-nav-btn.active {
    background: var(--brn-coral);
    color: #fff;
    box-shadow: 0 14px 36px -14px rgba(255,127,80,0.6);
    transform: translateX(6px);
}
.treat-sidebar-spec .treat-nav-icon {
    font-size: 1rem;
    width: 22px;
    display: inline-flex;
    justify-content: center;
    filter: grayscale(0.2);
}
.treat-sidebar-spec .treat-nav-btn.active .treat-nav-icon {
    filter: none;
}
.treat-sidebar-spec .treat-nav-label {
    flex: 1;
}

/* Lead Analyst footer */
.treat-sidebar-spec .treat-sidebar-analyst {
    margin-top: auto;
    padding: 28px 30px 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.treat-sidebar-spec .treat-analyst-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brn-coral);
    opacity: 0.85;
    margin: 0 0 6px 0;
}
.treat-sidebar-spec .treat-analyst-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.01em;
    margin: 0;
}

/* Dashboard Hero (Metabolic Story header) */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 56px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e5e9eb;
}
.dashboard-hero-text {
    flex: 1;
}
.dashboard-hero-title {
    font-family: var(--font-heading);
    font-size: 5.4rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: var(--brn-navy);
    margin: 0 0 26px 0;
}
.dashboard-hero-title-a {
    font-style: normal;
}
.dashboard-hero-title-b {
    font-style: italic;
    color: #C7CDD3;
    font-weight: 900;
}
.dashboard-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}
.dashboard-hero-bar {
    width: 3px;
    height: 18px;
    background: var(--brn-coral);
    border-radius: 2px;
}
.dashboard-hero-subtitle-text {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brn-coral);
}

@media (max-width: 900px) {
    .dashboard-hero { flex-direction: column; gap: 24px; }
    .dashboard-hero-title { font-size: 3.4rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   FASE 1 — Start Here + Foundation diet
   ───────────────────────────────────────────────────────────────────── */

.fase1-section-wrap > .glass-card,
.fase1-section-wrap > .voeding-coach-note-display {
    margin-bottom: var(--space-lg, 24px);
}

.fase-start-here p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text, #334155);
    margin: 0;
}

/* Basisregels as a tidy two-column numbered list on desktop */
.fase-basisregels-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md, 16px);
}
.fase-basisregels-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px 14px 20px;
    border-radius: var(--radius-md, 12px);
    background: var(--color-bg, #FDFBF7);
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
    border-left: 4px solid var(--color-accent, #d97706);
    transition: transform 160ms ease, box-shadow 160ms ease, border-left-color 160ms ease, background 160ms ease;
    cursor: default;
}
.fase-basisregels-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.08));
    background: var(--color-bg-elevated, #ffffff);
    border-left-color: var(--color-primary, #1e293b);
}
/* Rotate the accent colour per rule so the palette feels alive */
.fase-basisregels-list > li:nth-child(1)  .fase-basisregels-item { border-left-color: #16a34a; }
.fase-basisregels-list > li:nth-child(2)  .fase-basisregels-item { border-left-color: #d97706; }
.fase-basisregels-list > li:nth-child(3)  .fase-basisregels-item { border-left-color: #2563eb; }
.fase-basisregels-list > li:nth-child(4)  .fase-basisregels-item { border-left-color: #7c3aed; }
.fase-basisregels-list > li:nth-child(5)  .fase-basisregels-item { border-left-color: #0891b2; }
.fase-basisregels-list > li:nth-child(6)  .fase-basisregels-item { border-left-color: #ca8a04; }
.fase-basisregels-list > li:nth-child(7)  .fase-basisregels-item { border-left-color: #be185d; }
.fase-basisregels-list > li:nth-child(8)  .fase-basisregels-item { border-left-color: #059669; }
.fase-basisregels-list > li:nth-child(9)  .fase-basisregels-item { border-left-color: #ea580c; }
.fase-basisregels-list > li:nth-child(10) .fase-basisregels-item { border-left-color: #1e293b; }
.fase-basisregels-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary, #2C5F4B);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    font-family: var(--font-body, Inter, sans-serif);
}
.fase-basisregels-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text, #1e293b);
    font-size: 0.98rem;
}
.fase-basisregels-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-muted, #475569);
}

@media (max-width: 800px) {
    .fase-basisregels-list { grid-template-columns: 1fr; }
}

/* Coach targets panel */
.fase-coach-targets {
    border-left: 4px solid var(--color-accent, #C4956A);
}
.fase-coach-field {
    margin-bottom: var(--space-md, 16px);
}
.fase-coach-textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
    padding: 10px 12px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--color-border, rgba(0,0,0,0.1));
    background: #fff;
    font-size: 0.95rem;
}

/* Macro target grid */
.fase-macro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-sm, 12px);
    margin-top: var(--space-md, 16px);
}
.fase-macro-tile {
    background: var(--color-bg, #FDFBF7);
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
    border-radius: var(--radius-md, 12px);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.05));
}
.fase-macro-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary, #2C5F4B);
    margin-bottom: 4px;
    font-family: var(--font-body, Inter, sans-serif);
}
.fase-macro-label {
    font-size: 0.82rem;
    color: var(--color-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fase-macro-sublabel {
    font-size: 0.68rem;
    color: var(--color-accent, #d97706);
    margin-top: 4px;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.fase-macro-formula-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--color-text-light, #475569);
    line-height: 1.5;
    font-style: italic;
}
.fase-per-meal-heading {
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted, #475569);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 700px) {
    .fase-macro-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Meal option cards (breakfast / lunch / snacks) */
.fase-meal-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md, 16px);
    margin-top: var(--space-md, 16px);
}
.fase-snacks-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fase-meal-card {
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
    border-left: 3px solid var(--color-accent, #d97706);
    border-radius: var(--radius-md, 12px);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.05));
    transition: transform 160ms ease, box-shadow 160ms ease, border-left-color 160ms ease, background 160ms ease;
    cursor: default;
}
.fase-meal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.08));
    border-left-color: var(--color-primary, #1e293b);
    background: #ffffff;
}
.fase-meal-card-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "label title"
        "label kcal";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    min-width: 0;
}
.fase-meal-card-header .fase-meal-card-label {
    grid-area: label;
    align-self: start;
    margin-top: 2px;
}
.fase-meal-card-header .fase-meal-card-title {
    grid-area: title;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    white-space: normal;
}
.fase-meal-card-header .fase-meal-card-kcal {
    grid-area: kcal;
    margin-left: 0;
}
.fase-meal-card-items {
    flex-grow: 1;
}
.fase-meal-card-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--color-primary, #2C5F4B);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}
.fase-meal-card-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-text, #1e293b);
}
.fase-meal-card-kcal {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--color-accent, #C4956A);
    font-weight: 600;
}
.fase-meal-card-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fase-meal-card-items li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--color-text-muted, #475569);
    line-height: 1.5;
}
.fase-meal-card-items li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent, #C4956A);
}
.fase-meal-card-time {
    font-size: 0.78rem;
    color: var(--color-text-muted, #64748b);
    margin-top: 4px;
    font-style: italic;
}
.fase-snack-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text, #334155);
}
.fase-section-subtitle {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted, #64748b);
    font-style: italic;
}

@media (max-width: 900px) {
    .fase-meal-options-grid { grid-template-columns: 1fr; }
    .fase-snacks-grid { grid-template-columns: 1fr; }
}

/* Build A Plate — visual step picker */
.build-a-plate-step {
    margin-top: var(--space-md, 16px);
}
.build-a-plate-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.build-a-plate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.build-a-plate-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-bg, #FDFBF7);
    border: 1px solid var(--color-border, rgba(0,0,0,0.1));
    font-size: 0.88rem;
    color: var(--color-text, #334155);
    transition: all 0.15s ease;
}
.build-a-plate-chip:hover {
    background: var(--color-primary, #2C5F4B);
    color: #fff;
    border-color: var(--color-primary, #2C5F4B);
}

/* Dinner combos */
.dinner-combos-wrap {
    margin-top: var(--space-lg, 24px);
    padding-top: var(--space-lg, 24px);
    border-top: 1px dashed var(--color-border, rgba(0,0,0,0.08));
}
.dinner-combos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.dinner-combos-header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-text, #1e293b);
}
.dinner-combos-shuffle {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
}
.dinner-combos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md, 16px);
}
.dinner-combo-card {
    background: var(--color-bg, #FDFBF7);
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
    border-radius: var(--radius-md, 12px);
    padding: 16px 18px;
}
.dinner-combo-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 2px;
}
.dinner-combo-head h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text, #1e293b);
}
.dinner-combo-style {
    font-size: 0.78rem;
    color: var(--color-accent, #C4956A);
    font-style: italic;
}
.dinner-combo-items {
    list-style: none;
    padding-left: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dinner-combo-items li {
    position: relative;
    padding-left: 16px;
    font-size: 0.88rem;
    color: var(--color-text-muted, #475569);
    line-height: 1.45;
}
.dinner-combo-items li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary, #2C5F4B);
}
.dinner-combo-kcal {
    font-size: 0.8rem;
    color: var(--color-text-muted, #64748b);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 800px) {
    .dinner-combos-grid { grid-template-columns: 1fr; }
}

/* Superfoods grid */
.superfoods-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-md, 16px);
    margin-top: var(--space-md, 16px);
}
.superfood-card {
    background: var(--color-bg, #FDFBF7);
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
    border-radius: var(--radius-md, 12px);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.05));
}
.superfood-name {
    margin: 0;
    font-size: 1rem;
    color: var(--color-primary, #2C5F4B);
}
.superfood-why {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted, #475569);
    flex: 1;
}
.superfood-freq {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.06));
}
.superfood-freq-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #64748b);
    font-weight: 600;
}
.superfood-freq > span:last-child {
    font-size: 0.85rem;
    color: var(--color-text, #334155);
    font-weight: 500;
}

@media (max-width: 1100px) {
    .superfoods-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .superfoods-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print — hide coach panel */
body.printing-report .fase-coach-targets,
body.printing-all-tabs .fase-coach-targets {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   MOVEMENT SECTION — walking baseline + strength training for women 40+
   ═══════════════════════════════════════════════════════════ */

.movement-intro-card,
.movement-walking-card,
.movement-science-card,
.movement-myth-card,
.movement-protocol-card,
.movement-progression-card,
.movement-workout-card {
    margin-bottom: var(--space-lg);
}

.movement-why-list,
.movement-myth-list,
.movement-progression-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}
.movement-why-list li,
.movement-myth-list li,
.movement-progression-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    line-height: 1.6;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}
.movement-why-list li:last-child,
.movement-myth-list li:last-child,
.movement-progression-list li:last-child {
    border-bottom: none;
}
.movement-why-list li::before,
.movement-myth-list li::before,
.movement-progression-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.movement-how {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

.movement-science-subtitle {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.movement-science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-top: 14px;
}
.movement-science-point {
    padding: 16px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}
.movement-science-claim {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.movement-science-detail {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 0 10px 0;
}
.movement-science-source {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Mythbuster — amber accent to signal "watch out" */
.movement-myth-card {
    border-left: 4px solid var(--color-accent);
}
.movement-myth-verdict {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(217, 119, 6, 0.08);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

/* Protocol tiles */
.movement-protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.movement-protocol-tile {
    padding: 12px 14px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.movement-protocol-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.movement-protocol-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}
.movement-protocol-note {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-light);
    font-style: italic;
}

/* Workouts A/B side-by-side */
.movement-workouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.movement-workout-card {
    padding: 20px 22px;
}
.movement-workout-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px 0;
}
.movement-workout-focus {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px 0;
    font-weight: 600;
}
.movement-workout-exercises {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.movement-workout-row {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}
.movement-workout-row:last-child {
    border-bottom: none;
}
.movement-workout-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.92rem;
}
.movement-workout-sets {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9rem;
    white-space: nowrap;
}
.movement-workout-note {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Progression bottom line — highlight */
.movement-progression-bottom {
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: 500;
    line-height: 1.6;
    font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════════════
   FASE 1 ACCORDIONS — six collapsible sections with accent stripes
   ═══════════════════════════════════════════════════════════ */

.fase-accordions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.fase-acc {
    position: relative;
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Accent stripes — one colour per section */
.fase-acc::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--_acc, var(--color-primary));
    transition: width 200ms ease, background 200ms ease;
}
.fase-acc-amber   { --_acc: #d97706; }
.fase-acc-green   { --_acc: #16a34a; }
.fase-acc-indigo  { --_acc: #6366f1; }
.fase-acc-blue    { --_acc: #2563eb; }
.fase-acc-purple  { --_acc: #7c3aed; }
.fase-acc-emerald { --_acc: #059669; }
.fase-acc-rose    { --_acc: #e11d48; }

.fase-acc:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--_acc, var(--color-primary));
}
.fase-acc.is-open::before {
    width: 8px;
}
.fase-acc.is-open {
    box-shadow: var(--shadow-card-hover);
}
/* Used during programmatic close of sibling accordions — kills the height
   transition so the layout settles instantly and scroll math is accurate. */
.fase-acc.fase-acc-no-transition,
.fase-acc.fase-acc-no-transition .fase-acc-body {
    transition: none !important;
}

/* Header */
.fase-acc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 24px 18px 30px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: background 160ms ease;
}
.fase-acc-head:hover {
    background: rgba(0, 0, 0, 0.02);
}
.fase-acc-head:focus-visible {
    outline: 2px solid var(--_acc);
    outline-offset: -2px;
}

.fase-acc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--_acc) 12%, transparent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fase-acc-titles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.fase-acc-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.fase-acc-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.fase-acc-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--_acc);
    font-size: 1rem;
    font-weight: 700;
    transition: transform 220ms ease, background 160ms ease;
    flex-shrink: 0;
}
.fase-acc.is-open .fase-acc-chevron {
    transform: rotate(180deg);
    background: color-mix(in srgb, var(--_acc) 10%, transparent);
}

/* Body — collapsed by default with smooth expansion */
.fase-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1), padding 260ms ease;
    padding: 0 24px;
}
.fase-acc.is-open .fase-acc-body {
    max-height: 9000px;
    padding: 0 24px 24px;
}

/* Inside-accordion card stack */
.fase-acc-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Remove the outer glass-card chrome when inside an accordion (content cards) */
.fase-acc-body > .glass-card,
.fase-acc-body .fase-acc-stack > .glass-card {
    box-shadow: none;
    border: 1px solid var(--color-border-light, #f1f5f9);
    background: var(--color-bg, #f8fafc);
}

/* ── Build-A-Plate visual refresh ──────────────────────────────────── */
.build-a-plate-step {
    position: relative;
    padding: 16px 18px 18px;
    margin-bottom: 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.build-a-plate-step + .build-a-plate-step {
    margin-top: 4px;
}
.build-a-plate-step > h4,
.build-a-plate-step .build-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent, #d97706);
    margin: 0 0 10px 0;
}

/* Chip polish */
.build-a-plate-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin: 4px 6px 4px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: default;
    transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.build-a-plate-chip:hover {
    transform: translateY(-1px);
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.18);
}


/* Global hover — every snack/superfood/movement card */
.fase-snacks-grid .fase-meal-card {
    border-left-color: #16a34a;  /* green stripe for snacks */
}
.fase-snacks-grid .fase-meal-card:hover {
    border-left-color: #059669;
}

.superfood-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
    cursor: default;
}
.superfood-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.08));
    border-color: #059669;
}

.movement-science-point,
.movement-workout-card,
.movement-protocol-tile {
    transition: transform 160ms ease, box-shadow 160ms ease, border-left-color 160ms ease;
    cursor: default;
}
.movement-science-point:hover,
.movement-workout-card:hover,
.movement-protocol-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.08));
}

/* Smaakstijl cards — already exist in Voeding; unify hover */
.smaak-card,
.voeding-smaak-card,
.dinner-combo-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    cursor: default;
}
.smaak-card:hover,
.voeding-smaak-card:hover,
.dinner-combo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover, 0 10px 28px rgba(0,0,0,0.1));
    border-color: var(--color-primary, #1e293b);
}

/* ═══════════════════════════════════════════════════════════
   FLAVOR STYLES — click-to-reveal tiles
   ═══════════════════════════════════════════════════════════ */

.smaak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.smaak-tile {
    all: unset;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border);
    border-left: 4px solid #7c3aed;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 160ms ease;
    font-family: inherit;
    color: inherit;
    text-align: left;
}
.smaak-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: #7c3aed;
}
.smaak-tile:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.smaak-tile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}
.smaak-tile-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.smaak-tile-name {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.smaak-tile-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #7c3aed;
    font-weight: 700;
    transition: transform 220ms ease, background 160ms ease;
    flex-shrink: 0;
}
.smaak-tile.is-open .smaak-tile-chevron {
    transform: rotate(180deg);
    background: rgba(124, 58, 237, 0.1);
}

.smaak-tile-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1), padding 260ms ease;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.04), transparent);
}
.smaak-tile.is-open .smaak-tile-body {
    max-height: 800px;
    padding: 4px 18px 18px;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    padding-top: 14px;
}

.smaak-tile-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.smaak-tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
}
.smaak-tile-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.smaak-tile-list li {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text);
}
.smaak-tile-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-light);
}
.smaak-tile-tip .smaak-tile-text {
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 8px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SUPERFOOD CARDS — with photos
   ═══════════════════════════════════════════════════════════ */

.superfoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Legacy card rules removed — new flip-card rules at the bottom of this file
   own .superfood-card-photo styling. */

.superfood-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8fafc;
    transition: transform 400ms ease;
}
.superfood-card-photo:hover .superfood-image {
    transform: scale(1.04);
}

.superfood-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.superfood-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}
.superfood-why {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-light);
    flex-grow: 1;
}
.superfood-freq {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-light, #f1f5f9);
}
.superfood-freq-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* Build-A-Plate: when flavor tiles are nested inside the step, no extra margin */
.build-a-plate-step .voeding-smaak-wrap {
    margin-top: 6px;
}
.build-a-plate-step .voeding-maaltijden-intro {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Illustrated superfood image (gradient + emoji instead of photo) */
.superfood-image-illustrated {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.superfood-image-illustrated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
    pointer-events: none;
}
.superfood-emoji {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    position: relative;
    z-index: 1;
    transition: transform 400ms ease;
}
.superfood-card-photo:hover .superfood-emoji {
    transform: scale(1.1) rotate(-3deg);
}

/* Dinner combo cards — equal height, clean typography */
.dinner-combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.dinner-combo-card {
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border);
    border-left: 4px solid #2563eb;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-shadow: var(--shadow-card);
}
.dinner-combo-head h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}
.dinner-combo-style {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    font-style: italic;
}
.dinner-combo-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}
.dinner-combo-items li {
    position: relative;
    padding-left: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-light);
}
.dinner-combo-items li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
}
.dinner-combo-kcal {
    padding-top: 10px;
    border-top: 1px solid var(--color-border-light, #f1f5f9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-top: auto;
}

.fase-snack-intro {
    margin: 0 0 16px 0;
    padding: 12px 16px;
    background: var(--color-bg-alt, #f1f5f9);
    border-left: 3px solid var(--color-accent, #d97706);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light, #475569);
}

/* ═══════════════════════════════════════════════════════════
   SUPERFOOD FLIP CARDS — recipe reveal on click
   ═══════════════════════════════════════════════════════════ */

.superfood-card-photo {
    perspective: 1400px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    position: relative;
    display: flex;
    height: 100%;
    cursor: default;
}
.superfood-card-photo.has-recipe {
    cursor: pointer;
}

.superfood-inner {
    position: relative;
    width: 100%;
    flex: 1;
    transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.superfood-card-photo.is-flipped .superfood-inner {
    transform: rotateY(180deg);
}

.superfood-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Front fills the inner; back overlays it. */
.superfood-front {
    position: relative;
    height: 100%;
    transition: box-shadow 180ms ease;
}
.superfood-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}
.superfood-body {
    flex: 1;
}
.superfood-card-photo.has-recipe:hover .superfood-front {
    box-shadow: var(--shadow-card-hover);
}

/* Recipe badge — corner pill on cards that flip */
.superfood-recipe-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--color-primary, #1e293b);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Back side — recipe */
.superfood-back {
    transform: rotateY(180deg);
    padding: 20px 22px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid var(--color-accent, #d97706);
}
.superfood-recipe-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.superfood-recipe-note {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background: rgba(217, 119, 6, 0.08);
    border-left: 3px solid var(--color-accent);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 500;
}
.superfood-recipe-section {
    margin-bottom: 12px;
}
.superfood-recipe-heading {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.superfood-recipe-section ul,
.superfood-recipe-section ol {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.superfood-recipe-section li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-light, #475569);
}
.superfood-back-hint {
    display: block;
    margin-top: 12px;
    text-align: right;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ── "Jouw 4-fasen plan" — clickable stepper showing AI strategy ── */
.fase-phase-plan { margin-bottom: 1rem; }
.fase-phase-plan-hint {
    font-size: 0.9rem;
    color: var(--color-text-muted, #666);
    margin: 0.25rem 0 1rem;
}
.fase-phase-stepper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.fase-phase-step {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border, #e2e2e2);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font: inherit;
    color: inherit;
}
.fase-phase-step:hover { border-color: var(--color-primary, #2C5F4B); transform: translateY(-1px); }
.fase-phase-step.active {
    background: var(--color-primary, #2C5F4B);
    border-color: var(--color-primary, #2C5F4B);
    color: #fff;
}
.fase-phase-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fase-phase-step.active .fase-phase-step-num {
    background: rgba(255,255,255,0.25);
}
.fase-phase-step-name {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
}
.fase-phase-rationale {
    padding: 0.85rem 1rem;
    background: rgba(196, 149, 106, 0.08);
    border-left: 3px solid var(--color-accent, #C4956A);
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text, #333);
}

/* ── "Jouw voedingsplan" — compact personal card ── */
.fase-personal-plan { margin-bottom: 1rem; }
.fase-personal-plan-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.fase-personal-plan-block {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.fase-personal-plan-label {
    font-size: 0.85rem;
    color: var(--color-text-muted, #666);
    font-weight: 500;
}
.fase-personal-plan-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
}
.fase-personal-plan-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.fase-personal-plan-input {
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--color-border, #e2e2e2);
    border-radius: 6px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    background: #fff;
    width: 90px;
}
.fase-personal-plan-input-wide { width: 100%; }
.fase-personal-plan-input:focus {
    outline: none;
    border-color: var(--color-primary, #2C5F4B);
}
.fase-personal-plan-unit {
    font-size: 0.95rem;
    color: var(--color-text-muted, #666);
}

/* ── Supplementen section (case-driven) ─────────────────────────────── */
.supplements-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 0;
}
.supplements-section .treat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.supplements-ai-btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #C4956A 0%, #a87a4f 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.supplements-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196, 149, 106, 0.3); }

.supplement-phase-card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-left: 4px solid var(--color-primary, #2C5F4B);
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1rem;
}
.supplement-phase-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.supplement-phase-num {
    background: var(--color-primary, #2C5F4B);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.supplement-phase-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.supplement-phase-title {
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    font-size: 1rem;
}
.supplement-phase-meta {
    font-size: 0.75rem;
    color: #888;
}
.supplement-phase-rationale {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.85rem;
    background: rgba(196, 149, 106, 0.06);
    border-left: 2px solid var(--color-accent, #C4956A);
    border-radius: 4px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
    font-style: italic;
}
.supplement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}
/* Column widths so dose/when don't wrap onto 4 lines */
.supplement-table th:nth-child(1), .supplement-table td:nth-child(1) { width: 28%; }
.supplement-table th:nth-child(2), .supplement-table td:nth-child(2) { width: 16%; }
.supplement-table th:nth-child(3), .supplement-table td:nth-child(3) { width: 22%; }
.supplement-table th:nth-child(4), .supplement-table td:nth-child(4) { width: 34%; }
.supplement-name-cell { white-space: normal !important; }
.supplement-table thead th {
    text-align: left;
    padding: 0.45rem 0.65rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 600;
    border-bottom: 2px solid #f0ece4;
}
.supplement-table tbody td {
    padding: 0.6rem 0.65rem;
    border-bottom: 1px solid #f5f1ea;
    vertical-align: top;
}
.supplement-table tbody tr:last-child td { border-bottom: none; }
.supplement-name-cell {
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    white-space: nowrap;
}
.supplement-dose-cell { font-weight: 500; color: #333; }
.supplement-when-cell { font-size: 0.85rem; color: #777; }
.supplement-why-cell { font-size: 0.85rem; color: #666; font-style: italic; }

.supplement-badge {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.6rem;
    padding: 0.12rem 0.45rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    vertical-align: middle;
}
.supplement-badge-new { background: #5A8F6E; }
.supplement-badge-adjusted { background: #C4956A; }

/* ── Supplements: empty-state + modal styling ─────────────────────── */
.supplements-empty-state {
    background: #fdfbf7;
    border: 1px dashed #d0c8b8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}
.supplements-empty-state p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
}
.supplements-modal-body { max-width: 800px; }
.supplements-modal-intro {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(196, 149, 106, 0.08);
    border-left: 3px solid var(--color-accent, #C4956A);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.supplements-modal-body .supplement-phase-card { margin-bottom: 0.85rem; }

/* ── Supplement modal — AI chat area ─────────────────────────────── */
.supplements-modal-plan-view {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0ece4;
    padding-bottom: 1rem;
}
.supplements-chat-wrap {
    margin-top: 1rem;
}
.supplements-chat-heading {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-primary, #2C5F4B);
}
.supplements-chat-log {
    max-height: 25vh;
    overflow-y: auto;
    background: #fdfbf7;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
}
.supplements-chat-empty {
    margin: 0;
    color: #999;
    font-style: italic;
    text-align: center;
}
.supplements-chat-turn { margin-bottom: 0.5rem; }
.supplements-chat-turn-coach { color: #555; }
.supplements-chat-turn-ai { color: var(--color-primary, #2C5F4B); padding-left: 0.5rem; }
.supplements-chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.supplements-chat-input {
    flex: 1;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d0c8b8;
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 50px;
}
.supplements-chat-input:focus {
    outline: none;
    border-color: var(--color-primary, #2C5F4B);
}
.supplements-chat-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.supplements-chat-send,
.supplements-chat-undo {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* ── Shopping tab — supplement product cards ─────────────────────── */
.shopping-section { max-width: 920px; margin: 0 auto; padding: 1rem 0; }
.shopping-intro {
    margin: 0 0 1.25rem;
    color: #555;
    line-height: 1.55;
    font-size: 0.95rem;
}
.shopping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.shopping-card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.shopping-card-header { border-bottom: 1px solid #f0ece4; padding-bottom: 0.6rem; }
.shopping-substance {
    font-weight: 700;
    color: var(--color-primary, #2C5F4B);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.shopping-dose-line {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.shopping-dose { font-weight: 600; color: #333; }
.shopping-timing { color: #888; }

.shopping-product {
    background: #fdfbf7;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    line-height: 1.4;
}
.shopping-product-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent, #C4956A);
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.shopping-product-name {
    font-weight: 600;
    color: var(--color-text, #333);
    font-size: 0.92rem;
}
.shopping-product-form { font-size: 0.82rem; color: #777; margin-top: 0.2rem; }
.shopping-product-price {
    font-size: 0.85rem;
    color: var(--color-primary, #2C5F4B);
    font-weight: 600;
    margin-top: 0.3rem;
}

.shopping-no-product {
    background: #fef5e0;
    border-left: 3px solid #D4A843;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #8a6d28;
    line-height: 1.45;
}

.shopping-order-btn {
    text-align: center;
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #C4956A 0%, #a87a4f 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.shopping-order-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196, 149, 106, 0.3); }
.shopping-phases {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    margin-top: auto;
}

.shopping-coach-hint {
    margin-top: 2rem;
    padding: 0.85rem 1rem;
    background: #f0f4f1;
    border-left: 3px solid #5A8F6E;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #2c5f4b;
}
.shopping-coach-hint p { margin: 0; line-height: 1.5; }

/* ── Topic tabs (Beweging / Slaap / Stress / Zon) — consistent style ── */
.topic-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 0;
}
.topic-empty-state {
    background: #fdfbf7;
    border: 1px dashed #d0c8b8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}
.topic-empty-state p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
}
.topic-phase-card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-left: 4px solid var(--color-primary, #2C5F4B);
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1rem;
}
.topic-phase-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.topic-phase-num {
    background: var(--color-primary, #2C5F4B);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.topic-phase-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.topic-phase-title {
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    font-size: 1rem;
}
.topic-phase-meta { font-size: 0.75rem; color: #888; }
.topic-phase-rationale {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.85rem;
    background: rgba(196, 149, 106, 0.06);
    border-left: 2px solid var(--color-accent, #C4956A);
    border-radius: 4px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #555;
    font-style: italic;
}
.topic-actions-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    font-weight: 700;
    margin: 0.5rem 0 0.4rem;
}
.topic-actions-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.65;
    font-size: 0.9rem;
    color: #444;
}
.topic-actions-list li {
    margin-bottom: 0.2rem;
}

/* ── Topic 3-layer structure: Universal + Personal ─────────────────── */
.topic-universal-section {
    margin-bottom: 2rem;
}
.topic-universal-heading {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--color-primary, #2C5F4B);
}
.topic-universal-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #777;
    line-height: 1.55;
}
.topic-universal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}
.topic-universal-card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.topic-universal-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 95, 75, 0.12);
    border-color: #C4956A;
}
.topic-universal-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.2;
}
.topic-universal-text { flex: 1; }
.topic-universal-title {
    font-weight: 600;
    color: var(--color-primary, #2C5F4B);
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}
.topic-universal-body {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.topic-personal-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e4dd;
}
.topic-personal-heading {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--color-accent, #C4956A);
}
.topic-personal-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #777;
    line-height: 1.55;
}

.topic-no-issue-note {
    background: #f0f4f1;
    border-left: 3px solid #5A8F6E;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-top: 1.5rem;
}
.topic-no-issue-note p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #2c5f4b;
}

.topic-supplement-card {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-left: 4px solid var(--color-accent, #C4956A);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.topic-supplement-heading {
    font-weight: 700;
    color: var(--color-primary, #2C5F4B);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.topic-supplement-hint {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
}
.topic-supplement-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.6;
}
.topic-supplement-list li {
    margin-bottom: 0.4rem;
}
.topic-supplement-meta {
    color: #888;
    font-size: 0.85rem;
}
.topic-supplement-purpose {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: #666;
    font-style: italic;
    line-height: 1.45;
}

.topic-snack-card {
    border-left-color: #5A8F6E;
}
