/**
 * HEALIST UTILITIES - Design 4 Prestige
 * ======================================
 * 100% Token-Based Utility Classes
 * NO HARDCODED COLORS - All use var(--*) tokens
 * 
 * Token Reference (from healist-tokens.css):
 * - Colors: var(--brand-*), var(--color-*)
 * - Spacing: var(--space-*)
 * - Radius: var(--radius-*)
 * - Shadows: var(--shadow-*)
 * - Typography: var(--font-*), var(--text-*)
 */

/* =============================================================================
   SECTION 1: SPACING - MARGINS
   ============================================================================= */
.m-0 { margin: 0; }
.m-0-0-4-0 { margin: 0 0 var(--space-1) 0; }
.m-0-0-8-0 { margin: 0 0 var(--space-2) 0; }
.m-0-0-10-0 { margin: 0 0 var(--space-3) 0; }
.m-0-0-12-0 { margin: 0 0 var(--space-3) 0; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-3); }
.mb-12 { margin-bottom: var(--space-3); }
.mb-15 { margin-bottom: var(--space-4); }
.mb-16 { margin-bottom: var(--space-4); }
.mb-20 { margin-bottom: var(--space-5); }
.mb-24 { margin-bottom: var(--space-6); }
.mb-25 { margin-bottom: var(--space-6); }
.mb-30 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-3); }
.mt-12 { margin-top: var(--space-3); }
.mt-16 { margin-top: var(--space-4); }
.mt-20 { margin-top: var(--space-5); }
.mt-24 { margin-top: var(--space-6); }

.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-8 { margin-right: var(--space-2); }
.mr-10 { margin-right: var(--space-3); }

.ml-8 { margin-left: var(--space-2); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* =============================================================================
   SECTION 2: SPACING - PADDING
   ============================================================================= */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-8 { padding: var(--space-2); }
.p-10 { padding: var(--space-3); }
.p-12 { padding: var(--space-3); }
.p-15 { padding: var(--space-4); }
.p-16 { padding: var(--space-4); }
.p-20 { padding: var(--space-5); }
.p-24 { padding: var(--space-6); }
.p-30 { padding: var(--space-8); }
.p-40 { padding: var(--space-10); }

.p-8-0 { padding: var(--space-2) 0; }
.p-10-20 { padding: var(--space-3) var(--space-5); }
.p-16-24 { padding: var(--space-4) var(--space-6); }
.p-20-24 { padding: var(--space-5) var(--space-6); }
.p-20-30 { padding: var(--space-5) var(--space-8); }
.p-60-20 { padding: 60px var(--space-5); }

.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-20 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-24 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-8 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-20 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

.pt-16 { padding-top: var(--space-4); }
.pl-20 { padding-left: var(--space-5); }

/* =============================================================================
   SECTION 3: FLEXBOX
   ============================================================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-0-0-140 { flex: 0 0 140px; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-2); }
.gap-8 { gap: var(--space-2); }
.gap-10 { gap: var(--space-3); }
.gap-12 { gap: var(--space-3); }
.gap-15 { gap: var(--space-4); }
.gap-16 { gap: var(--space-4); }
.gap-20 { gap: var(--space-5); }
.gap-30 { gap: var(--space-8); }

/* Common Flex Patterns */
.flex-between {
    display: flex;
    justify-content: space-between;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-between-start {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-col-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* =============================================================================
   SECTION 4: GRID
   ============================================================================= */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-1fr-1fr { grid-template-columns: 1fr 1fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.col-span-full { grid-column: 1 / -1; }
.grid-col-span-full { grid-column: 1 / -1; }

/* =============================================================================
   SECTION 5: TYPOGRAPHY - FONT SIZES
   ============================================================================= */
.text-9 { font-size: 9px; }
.text-11 { font-size: var(--text-xs); }
.text-12 { font-size: var(--text-sm); }
.text-13 { font-size: 13px; }
.text-14 { font-size: var(--text-base); }
.text-16 { font-size: var(--text-lg); }
.text-18 { font-size: var(--text-xl); }
.text-20 { font-size: var(--text-2xl); }
.text-22 { font-size: 22px; }
.text-24 { font-size: var(--text-3xl); }
.text-32 { font-size: var(--text-5xl); }
.text-48 { font-size: var(--text-6xl); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* =============================================================================
   SECTION 6: TYPOGRAPHY - FONT WEIGHTS
   ============================================================================= */
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* =============================================================================
   SECTION 7: TYPOGRAPHY - TEXT COLORS (Design 4 Tokens)
   ============================================================================= */
/* Primary Brand Colors */
.text-primary { color: var(--brand-primary); }
.text-navy { color: var(--brand-primary); }

/* Neutral/Gray Colors */
.text-muted { color: var(--brand-text-muted); }
.text-gray-400 { color: var(--brand-text-placeholder); }
.text-gray-500 { color: var(--brand-text-muted); }
.text-gray-600 { color: var(--brand-text-muted); }
.text-gray-700 { color: var(--brand-text); }
.text-gray-800 { color: var(--brand-text); }
.text-gray-900 { color: var(--brand-text); }

/* Semantic Colors */
.text-success { color: var(--color-success); }
.text-green { color: var(--color-success); }
.text-green-dark { color: var(--color-success); }
.text-green-forest { color: var(--color-success); }
.text-green-success { color: var(--color-success); }

.text-error { color: var(--color-error); }
.text-red { color: var(--color-error); }
.text-red-dark { color: var(--color-error); }
.text-red-error { color: var(--color-error); }

.text-warning { color: var(--color-warning); }
.text-amber { color: var(--color-warning); }

.text-info { color: var(--color-info); }
.text-blue { color: var(--color-info); }

/* Accent Colors */
/* .text-purple - Legacy, now uses gold accent */
.text-purple { color: var(--brand-secondary); }

/* Light/Dark Text */
.text-white { color: var(--brand-text-light); }
.text-placeholder { color: var(--brand-text-placeholder); }

/* Slate (Dark Theme) */
.text-slate-100 { color: #F1F5F9; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-400 { color: #94A3B8; }

/* Cream (Dark Theme Accent) */
.text-cream { color: var(--brand-secondary-light); }
.text-cream-90 { color: var(--brand-secondary-light); opacity: 0.9; }

/* =============================================================================
   SECTION 8: TYPOGRAPHY - TEXT ALIGNMENT & STYLES
   ============================================================================= */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-italic { font-style: italic; }
.italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.letter-spacing-1 { letter-spacing: 1px; }

.line-height-14 { line-height: 1.4; }
.line-height-15 { line-height: var(--leading-normal); }
.line-height-16 { line-height: var(--leading-relaxed); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* =============================================================================
   SECTION 9: BACKGROUNDS (Design 4 Tokens)
   ============================================================================= */
.bg-white { background-color: var(--brand-surface); }
.bg-surface { background-color: var(--brand-surface); }
.bg-elevated { background-color: var(--brand-surface-elevated); }
.bg-muted { background-color: var(--brand-surface-elevated); }
.bg-gray-50 { background-color: var(--brand-surface-elevated); }
.bg-gray-100 { background-color: var(--brand-surface-elevated); }

/* Semantic Backgrounds */
.bg-success-light { background-color: var(--color-success-light); }
.bg-green-50 { background-color: var(--color-success-light); }
.bg-error { background-color: var(--color-error); }
.bg-error-light { background-color: var(--color-error-light); }
.bg-warning-light { background-color: var(--color-warning-light); }
.bg-info-light { background-color: var(--color-info-light); }

/* Gradient Backgrounds */
.bg-navy-gradient { 
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%); 
}
.bg-green-gradient {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success) 100%);
}
/* .bg-purple-gradient - Legacy, now uses navy gradient */
.bg-purple-gradient { 
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%); 
}
/* .bg-green-instacart removed — D4S does not use green */

/* Dark Theme Backgrounds */
.bg-slate-800 { background-color: #1E293B; }
.bg-slate-900 { background-color: #0F172A; }
.bg-white-15 { background-color: rgba(255, 255, 255, 0.15); }

/* =============================================================================
   SECTION 10: BORDERS (Design 4 Tokens)
   ============================================================================= */
.border { border: 1px solid var(--brand-border); }
.border-2 { border-width: 2px; }
.border-none { border: none; }

.border-t { border-top: 1px solid var(--brand-border); }
.border-b { border-bottom: 1px solid var(--brand-border); }
.border-t-slate { border-top: 1px solid #334155; }
.border-b-slate { border-bottom: 1px solid #334155; }

.border-gray { border-color: var(--brand-border); }
.border-slate { border-color: #334155; }
.border-error { border-color: var(--color-error); }
.border-error-light { border-color: var(--color-error-light); }

/* =============================================================================
   SECTION 11: BORDER RADIUS (Design 4 Tokens)
   ============================================================================= */
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-6 { border-radius: var(--radius); }
.rounded-8 { border-radius: var(--radius-md); }
.rounded-12 { border-radius: var(--radius-lg); }
.rounded-16 { border-radius: var(--radius-xl); }

/* =============================================================================
   SECTION 12: SHADOWS (Design 4 Tokens)
   ============================================================================= */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* =============================================================================
   SECTION 13: SIZING
   ============================================================================= */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-10 { width: 10px; }
.w-16 { width: var(--space-4); }
.w-18 { width: 18px; }
.w-64 { width: 64px; }
.w-80 { width: 80px; }
.w-90 { width: 90px; }

.h-auto { height: auto; }
.h-10 { height: 10px; }
.h-16 { height: var(--space-4); }
.h-18 { height: 18px; }
.h-64 { height: 64px; }

.min-w-0 { min-width: 0; }
.min-w-60 { min-width: 60px; }
.min-h-100vh { min-height: 100vh; }

.max-w-200 { max-width: 200px; }
.max-w-300 { max-width: 300px; }
.max-w-400 { max-width: 400px; }
.max-w-420 { max-width: 420px; }
.max-w-480 { max-width: 480px; }
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }

.max-h-80vh { max-height: 80vh; }
.max-h-90vh { max-height: 90vh; }

/* =============================================================================
   SECTION 14: OVERFLOW & SCROLL
   ============================================================================= */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.scroll-area {
    overflow-y: auto;
    flex: 1;
}

/* =============================================================================
   SECTION 15: POSITION
   ============================================================================= */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.inset-0 { inset: 0; }

/* =============================================================================
   SECTION 16: DISPLAY & VISIBILITY
   ============================================================================= */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.visible { visibility: visible; }

/* =============================================================================
   SECTION 17: Z-INDEX
   ============================================================================= */
.z-1000 { z-index: 1000; }
.z-1001 { z-index: 1001; }
.z-1002 { z-index: 1002; }

/* =============================================================================
   SECTION 18: CURSOR & INTERACTION
   ============================================================================= */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.resize-vertical { resize: vertical; }

/* =============================================================================
   SECTION 19: OPACITY
   ============================================================================= */
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* =============================================================================
   SECTION 20: INSTACART MODAL — D4S compliant (uses standard modal-content)
   ============================================================================= */

.ic-infoCard {
    background: var(--brand-surface-elevated);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.ic-infoRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
}

.ic-infoRow + .ic-infoRow {
    border-top: 1px solid var(--brand-border);
}

.ic-infoLabel {
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
}

.ic-infoValue {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--brand-text);
}

.ic-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ic-ctaBtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.ic-cancelBtn {
    width: 100%;
}

.ic-successCard {
    text-align: center;
    padding: var(--space-4) 0 var(--space-5);
}

.ic-successTitle {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--brand-text);
    margin: 0 0 var(--space-3) 0;
}

.ic-successDesc {
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
    line-height: 1.5;
    margin: 0;
}

.ic-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.ic-footerLabel {
    font-size: var(--text-xs);
    color: var(--brand-text-muted);
}

.ic-footerBrand {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--brand-text);
}

.ic-footerExpiry {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--brand-text-muted);
    margin: var(--space-2) 0 0;
}

.ic-footerTrademark {
    text-align: center;
    font-size: 9px;
    color: var(--brand-text-muted);
    margin: var(--space-2) 0 0;
}

/* Dead System B modal classes removed — see healist-modals.css for all modal styling */

/* =============================================================================
   SECTION 21: BUTTONS (Design 4)
   NOTE: Base .btn defined in healist-components.css — DO NOT duplicate here
   ============================================================================= */

.btn-row {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.button-row {
    display: flex;
    gap: var(--space-3);
}

.button-row-end {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Primary Buttons */
.btn-primary-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all var(--transition);
}

.btn-primary-sm:hover {
    box-shadow: var(--shadow-btn-primary);
    transform: translateY(-1px);
}

.btn-primary-md {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all var(--transition);
}

.btn-primary-md:hover {
    box-shadow: var(--shadow-btn-primary);
    transform: translateY(-1px);
}

.btn-primary-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-semibold);
    transition: all var(--transition);
}

.btn-primary-lg:hover {
    box-shadow: var(--shadow-btn-primary);
    transform: translateY(-1px);
}

/* Secondary Buttons */
.btn-secondary-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    background: var(--brand-surface);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all var(--transition);
}

.btn-secondary-sm:hover {
    background: var(--brand-surface-elevated);
    border-color: var(--brand-primary);
}

.btn-secondary-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    background: var(--brand-surface);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all var(--transition);
}

.btn-secondary-lg:hover {
    background: var(--brand-surface-elevated);
    border-color: var(--brand-primary);
}

/* Danger Buttons */
.btn-danger-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    background: var(--color-error);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
}

.btn-danger-md {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    background: var(--color-error);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
}

.btn-cancel-red {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    background: var(--brand-surface);
    color: var(--color-error);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
}

/* Outline Buttons — restyled to match D4S btn-secondary/btn-danger */
.btn-outline-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    min-height: 36px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-outline-blue:hover {
    background: var(--bg-subtle);
    border-color: var(--brand-primary);
}

.btn-outline-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    min-height: 36px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: var(--color-error);
    border: 1px solid var(--color-error);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-outline-red:hover {
    background: var(--color-error-light);
}

/* Special Buttons */
/* .btn-purple - Legacy, now uses navy gradient */
.btn-purple {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: var(--brand-text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-medium);
}

.btn-close-white-lg {
    background: none;
    border: none;
    color: var(--brand-text-light);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: var(--space-1);
    opacity: 0.8;
}

.btn-close-white-lg:hover {
    opacity: 1;
}

/* Instacart button classes removed — modal now uses standard D4S .btn .btn-primary */

/* =============================================================================
   SECTION 22: FORM ELEMENTS
   ============================================================================= */
.input-full {
    width: 100%;
}

.input-constrained {
    max-width: 200px;
}

.input-filter {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background: var(--brand-surface);
    color: var(--brand-text);
}

.select-country-code {
    width: 100px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    font-size: var(--text-base);
}

/* Labels */
.label-block {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
    color: var(--brand-text);
}

.label-flex {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.label-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.label-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-base);
}

/* Checkboxes */
.checkbox-sm {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-lg {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* =============================================================================
   SECTION 23: ALERTS & MESSAGES
   ============================================================================= */
.alert-error-box {
    background: var(--color-error-light);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.alert-error-inline {
    color: var(--color-error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* =============================================================================
   SECTION 24: TEXT HELPERS
   ============================================================================= */
.text-helper-block {
    display: block;
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
    margin-top: var(--space-1);
}

/* =============================================================================
   SECTION 25: DIVIDERS
   ============================================================================= */
.divider {
    height: 1px;
    background: var(--brand-border);
    margin: var(--space-4) 0;
}

.divider-slate {
    height: 1px;
    background: #334155;
    margin: var(--space-4) 0;
}

.divider-slate-dark {
    height: 1px;
    background: #1E293B;
    margin: var(--space-4) 0;
}

/* =============================================================================
   SECTION 26: ICONS
   ============================================================================= */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.icon-emoji-md {
    font-size: var(--text-3xl);
}

.icon-emoji-lg {
    font-size: var(--text-6xl);
}

/* =============================================================================
   SECTION 27: EMPTY STATES
   ============================================================================= */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--brand-text-muted);
}

.empty-state-lg {
    text-align: center;
    padding: 60px var(--space-5);
    color: var(--brand-text-muted);
}

/* =============================================================================
   SECTION 28: SECTION HEADERS
   ============================================================================= */
.section-header {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
}

.section-header-sm {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--brand-text);
    margin-bottom: var(--space-3);
}

/* =============================================================================
   SECTION 29: COMING SOON
   ============================================================================= */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-5);
    text-align: center;
}

.coming-soon-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 400px;
    color: var(--brand-text-light);
}

.coming-soon-icon {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-4);
}

.coming-soon-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.coming-soon-description {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* =============================================================================
   SECTION 30: PROGRESS MODALS
   ============================================================================= */
.progress-modal-box {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.progress-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--brand-text);
    margin: 0 0 var(--space-5) 0;
}

.progress-bar-container {
    background: var(--brand-surface-elevated);
    border-radius: var(--radius-full);
    height: 24px;
    overflow: hidden;
    margin-bottom: var(--space-4);
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--brand-text-light);
}

.progress-status {
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
    margin-bottom: var(--space-2);
}

.progress-complete {
    font-size: var(--text-base);
    color: var(--color-success);
    font-weight: var(--font-medium);
}

/* =============================================================================
   SECTION 31: REPORT CARDS
   ============================================================================= */
.report-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(30, 58, 95, 0.06);
    transition: box-shadow 0.2s ease;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.10);
}

/* Prevent button text wrapping inside report cards */
.report-card .flex {
    flex-shrink: 0;
}

/* TRM — Trainer Report modal gradient header (replaces legacy report-header-purple) */
.trm-gradientHeader {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.trm-gradientHeader h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin: 0;
}

.report-list-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.report-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

/* =============================================================================
   SECTION 32: RESPONSE CARDS
   ============================================================================= */
.response-panel {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.response-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition);
}

.response-card:hover {
    border-color: var(--color-info);
    box-shadow: var(--shadow-md);
}

.response-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.response-header {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.response-header h2,
.response-header p {
    color: inherit;
}

.response-header-urgent {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: var(--brand-text-light);
}

.response-header-normal {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: var(--brand-text-light);
}

.response-actions {
    display: flex;
    gap: var(--space-2);
}

.response-badge-new {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background: var(--color-info);
    color: var(--brand-text-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.response-badge-urgent {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background: var(--color-error);
    color: var(--brand-text-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.response-timestamp {
    font-size: var(--text-xs);
    color: var(--brand-text-muted);
    padding: var(--space-1) var(--space-2);
    background: var(--brand-surface-elevated);
    border-radius: var(--radius-sm);
}

.response-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--brand-border);
}

.response-text-box {
    background: var(--brand-surface-elevated);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
}

.response-actions-footer {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.response-detail-panel {
    flex: 2;
    border-left: 1px solid var(--brand-border);
    padding-left: var(--space-6);
}

.response-detail-header {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: var(--space-4);
}

.response-detail-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.response-detail-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--brand-border);
}

/* =============================================================================
   SECTION 33: CATEGORY BADGES
   ============================================================================= */
.category-badge-urgent {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-error);
    color: var(--brand-text-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.category-badge-normal {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-info);
    color: var(--brand-text-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

/* =============================================================================
   SECTION 34: HEALTH SCORE
   ============================================================================= */
.health-score-box {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: var(--brand-text-light);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
}

.health-score-circle {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-light);
    box-shadow: var(--shadow-lg);
}

.health-tag {
    display: inline-block;
    background: rgba(201, 169, 98, 0.15);
    color: var(--brand-secondary-dark);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    margin: 2px;
}

/* =============================================================================
   SECTION 35: STATS BAR & FILTER BAR
   ============================================================================= */
.stats-bar {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: var(--space-4);
}

.filter-bar {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding: 0 var(--space-5);
    margin-bottom: var(--space-4);
}

.filter-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background: var(--brand-surface);
    color: var(--brand-text);
    min-width: 150px;
}

/* =============================================================================
   SECTION 36: DATA ELEMENTS
   ============================================================================= */
.data-element-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.data-element-label {
    padding: var(--space-2);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    cursor: pointer;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
    text-align: center;
}

.data-element-label-active {
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

.data-label-sm {
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
    margin-bottom: var(--space-1);
}

/* =============================================================================
   SECTION 37: DEVICE TAGS
   ============================================================================= */
.device-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--brand-surface-elevated);
    color: var(--brand-text-muted);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
}

/* =============================================================================
   SECTION 38: INFO BOXES
   ============================================================================= */
.info-box-dark {
    background: #334155;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    color: #E2E8F0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--brand-border);
}

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

/* =============================================================================
   SECTION 39: BADGES
   ============================================================================= */
.badge-pending {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--color-warning-light);
    color: var(--color-warning);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.badge-sent {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--color-info-light);
    color: var(--brand-primary);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.badge-responded {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

/* =============================================================================
   SECTION 40: TRAINER SELECT
   ============================================================================= */
.trainer-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.trainer-label {
    padding: var(--space-3);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
}

.trainer-label:hover {
    border-color: var(--brand-primary);
}

.trainer-label-active {
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

.trainer-report-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

/* =============================================================================
   SECTION 41: RECOMMENDATIONS
   ============================================================================= */
.recommendations-box {
    background: var(--color-success-light);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-success);
    margin-top: var(--space-4);
}

.recommendations-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* =============================================================================
   SECTION 42: FILE UPLOAD
   ============================================================================= */
.file-upload-zone {
    border: 2px dashed var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-10);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.file-upload-zone:hover {
    border-color: var(--color-info);
    background: var(--color-info-light);
}

.file-upload-zone-active {
    border-color: var(--color-info);
    background: var(--color-info-light);
}

.file-upload-content {
    border: 2px dashed var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.file-upload-content:hover {
    border-color: var(--color-info);
}

.file-upload-active {
    border-color: var(--color-info);
    background: var(--color-info-light);
}

/* =============================================================================
   SECTION 43: BC VIEWER (Body Characteristics)
   ============================================================================= */
.bc-viewer-content {
    display: flex;
    height: calc(90vh - 60px);
    overflow: hidden;
}

.bc-viewer-sidebar {
    width: 200px;
    background: var(--brand-surface-elevated);
    border-right: 1px solid var(--brand-border);
    overflow-y: auto;
    padding: var(--space-4);
}

.bc-viewer-nav-group {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-2);
    padding: 0 var(--space-2);
}

.bc-viewer-nav-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--text-sm);
    margin-bottom: 2px;
    transition: all var(--transition-fast);
}

.bc-viewer-nav-item:hover {
    background: var(--brand-border);
}

.bc-viewer-nav-item-active {
    background: var(--brand-primary);
    color: var(--brand-text-light);
}

.bc-viewer-main {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.bc-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.bc-data-card {
    background: var(--brand-surface-elevated);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.bc-table-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
}

.bc-table-divider {
    border-top: 1px solid var(--brand-border);
    margin: var(--space-2) 0;
}

/* =============================================================================
   SECTION 44: CONSENT BOX
   ============================================================================= */
.consent-box {
    background: var(--brand-surface-elevated);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.consent-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

.consent-text {
    font-size: var(--text-sm);
    color: var(--brand-text-muted);
    line-height: var(--leading-relaxed);
}

/* =============================================================================
   SECTION 45: POWERED BY
   ============================================================================= */
.powered-by {
    font-size: var(--text-xs);
    color: var(--brand-text-muted);
    text-align: center;
    margin-top: var(--space-4);
}

/* =============================================================================
   SECTION 46: PRINT AREA (iframe-based — see printHelper.js)
   ============================================================================= */
.print-area {
    background: var(--brand-surface);
    padding: var(--space-5);
}

/* =============================================================================
   SECTION 47: CARD ITEMS
   ============================================================================= */
.card-item {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

/* =============================================================================
   SECTION 48: BUTTON COLUMNS
   ============================================================================= */
.button-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* =============================================================================
   END OF FILE
   ============================================================================= */
/* ============================================================================
   EXTRACTED INLINE STYLES - Auto-generated from App.jsx
   Added to healist-utilities.css
   ============================================================================ */

/* ============================================================================
   PRP — Provider Responses Portal
   ============================================================================ */

.prp-viewBtn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: white;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all var(--transition);
  box-shadow: var(--shadow-btn-primary);
}

.prp-viewBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.prp-deleteBtn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--color-error);
  background-color: transparent;
  color: var(--color-error);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition);
}

.prp-deleteBtn:hover {
  background-color: var(--color-error-light);
}

/* DASH — Dashboard Health Summary grids */
.dash-dataGrid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-dataGrid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ddv-regionLabel {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* uheading-13212 → moved to slc-header h2 */

/* uheading-14225, uheading-14298 → moved to trm- block above */

.prp-providerName {
  margin: 0;
  color: var(--brand-text);
}

/* HYD — Hydration Modal */
.hyd-successTitle {
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* DASH — Dashboard Health Summary */
.dash-userName {
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.slv-title { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: var(--font-semibold); color: white; }
.spl-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; color: var(--brand-text); }
.slf-title { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: var(--font-semibold); color: white; }
.rv-title { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: var(--font-semibold); color: white; }

.rf-visionLabel {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}
.rf-mealPlanLabel {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.prp-filterLabel {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin-right: 8px;
}

.slf-itemsLabel {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--brand-text);
}

.mfm-modal { max-width: 600px; }
.mtr-modal { max-width: 800px; max-height: 90vh; overflow-y: auto; }
.wim-modal { max-width: 400px; }
.hsm-modal { max-width: 800px; max-height: 90vh; }
.hsm-body { overflow-y: auto; max-height: calc(90vh - 140px); }
.hsm-headerActions { display: flex; align-items: center; gap: 10px; }
.hsm-emailSent { color: #C9A962; font-size: 13px; font-weight: 600; }
.hsm-emailBtn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
.hsm-emailBtn:hover { background: rgba(255, 255, 255, 0.25); }
.hsm-emailBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.hsm-closeBtn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  transition: background var(--transition);
}
.hsm-closeBtn:hover { background: rgba(255, 255, 255, 0.35); }

.ddv-modal {
  max-width: 1200px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.adm-modal {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.ddv-header {
  padding: 20px 30px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
}
.ddv-header h3 {
  color: white;
}
.adm-header {
  padding: 20px 30px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
}
.adm-header h3 {
  color: white;
}

.rf-mealPlanText {
  font-weight: 600;
  color: var(--brand-text);
}

/* uspan-13388, uspan-13389, uspan-13459 → moved to slc- block */

/* uspan-14029, uspan-14080, uspan-14238 → moved to trm- block */

.prp-urgentBadge {
  background-color: var(--color-error);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.prp-newBadge {
  background-color: var(--brand-primary);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.prp-providerType {
  font-size: 13px;
  color: var(--brand-text-muted);
  padding: 2px 8px;
  background-color: var(--brand-surface-elevated);
  border-radius: var(--radius-sm);
}

.prp-categoryBadge {
  font-size: var(--text-sm);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text-muted);
}

.prp-reportRef {
  font-size: var(--text-sm);
  color: var(--brand-text-placeholder);
}

/* DASH — email sent indicator */
.dash-emailSent {
  color: var(--color-success);
  font-size: var(--text-base);
}

/* DASH — food preference tag (dynamic bg stays inline) */
.dash-prefTag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

/* DASH — connected device tag */
.dash-deviceTag {
  padding: 8px 16px;
  background: var(--color-info-light);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.rcl-mealPlanBadge {
  margin-left: 8px;
  padding: 2px 8px;
  background-color: var(--brand-secondary-light);
  color: var(--brand-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.shl-mealPlanBadge {
  margin-left: 8px;
  padding: 2px 8px;
  background-color: var(--brand-secondary-light);
  color: var(--brand-primary);
  border-radius: 12px;
  font-size: 10px;
}

.slv-itemQty {
  color: var(--brand-text-muted);
  margin-left: 8px;
}
.slv-itemCategory {
  margin-left: 8px;
  padding: 2px 6px;
  background-color: var(--brand-surface-elevated);
  border-radius: 4px;
  font-size: 11px;
  color: var(--brand-text-muted);
}
.slv-itemMealCount {
  margin-left: 8px;
  padding: 2px 6px;
  background-color: var(--brand-secondary-light);
  border-radius: 4px;
  font-size: 11px;
  color: var(--brand-primary);
}
.spl-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand-border);
  border-radius: 4px;
  flex-shrink: 0;
}
.spl-itemName {
  font-weight: 500;
  color: var(--brand-text);
}
.spl-itemQty {
  color: var(--brand-text-muted);
  margin-left: 8px;
}
.slf-addedBadge {
  padding: 4px 8px;
  background-color: var(--color-success);
  color: white;
  border-radius: 12px;
  font-size: 11px;
}

/* ===== Add Device Setup (adv-) ===== */
.adv-setupInfo {
  padding: 12px;
  background-color: var(--brand-secondary-light);
  border: 1px solid var(--brand-secondary);
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.6;
}
.adv-setupSteps {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.adv-connectWrapper {
  text-align: center;
  margin-top: 20px;
}

/* ===== Recipe Form (rf-) ===== */
.rf-dropZone {
  border: 2px dashed var(--brand-border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 15px;
}
.rf-visionGroup { margin-bottom: 15px; }
.rf-shoppingListSelect {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
}
.rf-mealPlanCheckbox {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
}

/* ===== Account Settings (acc-) ===== */
.acc-actionGroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}
.acc-pwdToggleBtn {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  color: white;
  border: 1px solid transparent;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}
.acc-pwdToggleBtn:hover {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-primary);
}
.acc-logoutBtn {
  background-color: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error);
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}
.acc-logoutBtn:hover {
  background-color: var(--color-error-light);
}
.acc-deleteBtn {
  background-color: transparent;
  color: var(--color-error);
  padding: 12px 24px;
  border: 1px solid var(--color-error);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-semibold);
  margin-top: 8px;
  transition: all 0.2s ease;
}
.acc-deleteBtn:hover { background-color: var(--color-error-light); }
.acc-logoutNote {
  margin-top: 16px;
  padding: 12px;
  background-color: var(--brand-surface-elevated);
  border-radius: 6px;
  font-size: 14px;
  color: var(--brand-text-muted);
}
.acc-pwdError {
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  color: var(--color-error);
}
.acc-pwdRequirement {
  color: var(--brand-text-muted);
  font-size: 12px;
}
.acc-pwdButtonGroup {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.acc-pwdChangeBtn {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
}
.acc-pwdCancelBtn {
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}
.acc-pwdCancelBtn:hover { background-color: var(--brand-border); }
.acc-pwdInputWrap {
  position: relative;
  display: flex;
  align-items: center;
}
.acc-pwdInputWrap .form-input {
  flex: 1;
  padding-right: 40px;
}
.acc-pwdEye {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
}
.acc-pwdEye:hover { opacity: 1; }

/* ===== Medical File Modal (mfm-) ===== */
.mfm-dropZone {
  border: 2px dashed var(--brand-border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 15px;
}

.tpf-errorMessage {
  padding: 12px;
  margin-bottom: 15px;
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error);
  border-radius: 4px;
  color: var(--color-error);
}
.tpf-tooltipHint {
  margin-top: 8px;
  padding: 8px;
  background-color: var(--brand-surface-elevated);
  border-radius: 4px;
  font-size: 13px;
  color: var(--brand-text-muted);
}
.tpf-phoneCountryCode {
  flex: 0 0 140px;
}

/* ============================================================================
   SLC — ShoppingListForm (Shopping Cart Create/Edit Modal)
   ============================================================================ */

/* Modal Container */
.slc-modal {
  background: var(--brand-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header — navy gradient */
.slc-header {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slc-header h2 {
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slc-closeBtn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slc-closeBtn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Form Layout */
.slc-form {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slc-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.slc-errorMessage {
  padding: 12px;
  margin-bottom: 16px;
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: var(--text-base);
}

/* Field Rows */
.slc-fieldRow {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.slc-input {
  width: 100%;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--brand-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.slc-input:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.slc-select {
  width: 100%;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--brand-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.slc-statusRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

/* Quick Action Buttons */
.slc-quickActions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.slc-actionBtn {
  flex: 1;
  padding: 12px 8px;
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  color: var(--brand-text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.slc-actionBtn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(30, 58, 95, 0.04);
}

/* Divider */
.slc-divider {
  height: 1px;
  background: var(--brand-border);
  margin: 16px 0;
}

/* Items Section */
.slc-itemsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slc-sectionLabel {
  color: var(--brand-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slc-itemCount {
  color: var(--brand-text-muted);
  font-size: var(--text-sm);
}

/* Items List */
.slc-itemsList {
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.slc-itemRow {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
}

.slc-itemName {
  color: var(--brand-text);
  font-size: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.slc-itemCategory {
  color: var(--brand-text-muted);
  font-size: var(--text-xs);
}

/* Quantity Controls */
.slc-qtyControls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.slc-qtyBtn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  border: none;
  background: var(--brand-primary);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.slc-qtyBtn:hover {
  background: var(--brand-primary-light);
}

.slc-qtyValue {
  color: var(--brand-text);
  font-size: var(--text-base);
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.slc-removeBtn {
  color: var(--brand-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-size: 18px;
  border-radius: var(--radius);
  line-height: 1;
  transition: color var(--transition);
}

.slc-removeBtn:hover {
  color: var(--color-error);
}

/* Empty State */
.slc-emptyState {
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  color: var(--brand-text-muted);
}

/* Footer */
.slc-footer {
  padding: 16px 20px;
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.slc-cancelBtn {
  background: var(--brand-surface);
  color: var(--brand-text-muted);
  border: 1px solid var(--brand-border);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition);
}

.slc-cancelBtn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.slc-submitBtn {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-btn-primary);
  transition: all var(--transition);
}

.slc-submitBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.3);
}

/* ============================================================================
   TPF — TrainerProviderForm
   ============================================================================ */

.tpf-errorMessage {
  padding: 12px;
  margin-bottom: 15px;
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  color: var(--color-error);
}

.tpf-hintText {
  margin-top: 8px;
  padding: 8px;
  background-color: var(--brand-surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--brand-text-muted);
}

.tpf-countryCode {
  flex: 0 0 140px;
}

/* ============================================================================
   TRM — ManageTrainerReportsModal
   ============================================================================ */

/* Tab Bar */
.trm-tabBar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-border);
}

/* Tab Buttons — D4S underline style */
.trm-tab {
  padding: 10px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  transition: all var(--transition);
  background: transparent;
  color: var(--brand-text);
}

.trm-tab:hover {
  color: var(--brand-primary);
}

.trm-tab--active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 600;
}

.trm-tab--withBadge {
  position: relative;
}

.trm-unreadBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--color-error);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Report Cards */
.trm-emptyState {
  color: var(--brand-text-muted);
  text-align: center;
  padding: 40px;
}

.trm-reportCard {
  padding: 16px 20px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.06);
  transition: box-shadow 0.2s ease;
}
.trm-reportCard:hover {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.10);
}

.trm-metaText {
  margin: 0;
  font-size: 13px;
  color: var(--brand-text-muted);
}

.trm-dateText {
  margin: 4px 0 0 0;
  font-size: var(--text-sm);
  color: var(--brand-text-placeholder);
}

.trm-cardSidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.trm-statusBadge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.trm-actionButtons {
  display: flex;
  gap: 6px;
}

.trm-viewBtn {
  padding: 4px 10px;
  background-color: rgba(30, 58, 95, 0.08);
  color: var(--brand-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.trm-viewBtn:hover {
  background-color: rgba(30, 58, 95, 0.15);
}

.trm-deleteBtn {
  padding: 4px 10px;
  background-color: var(--color-error-light);
  color: var(--color-error);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.trm-deleteBtn:hover {
  background-color: var(--color-error);
  color: white;
}

/* Expanded Detail */
.trm-expandedDetail {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  font-size: 13px;
}

.trm-hipaaNote {
  margin: 8px 0 0 0;
  font-size: var(--text-xs);
  color: var(--brand-text-muted);
  font-style: italic;
}

/* Delete Confirmation */
.trm-deleteConfirm {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--color-error-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-error);
}

.trm-deleteWarning {
  margin: 0 0 10px 0;
  color: var(--color-error);
  font-weight: 500;
}

.trm-confirmDeleteBtn {
  padding: 6px 16px;
  background-color: var(--color-error);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.trm-cancelBtn {
  padding: 6px 16px;
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

/* Response Cards */
.trm-responseCard {
  padding: 16px 20px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-secondary);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.06);
  transition: box-shadow 0.2s ease;
}
.trm-responseCard:hover {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.10);
}

.trm-responseHeading {
  margin: 0 0 4px 0;
}

.trm-responsePreview {
  margin: 8px 0 0 0;
  font-size: var(--text-base);
}

.trm-newBadge {
  padding: 4px 8px;
  background-color: var(--brand-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Response Detail Modal */
.trm-detailHeader {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trm-detailHeader h3 {
  color: white;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
}

.trm-detailMeta {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.trm-detailCloseBtn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trm-detailCloseBtn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.trm-detailContent {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.trm-recsContainer {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--color-success-light);
  border-radius: var(--radius-md);
}

.trm-recsHeading {
  margin: 0 0 12px 0;
  color: var(--color-success);
}

.trm-recsText {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
}

.trm-detailFooter {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-border);
}

.trm-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: flex-end;
}

/* PRP — Provider Response cards */
.prp-emptyState {
  text-align: center;
  padding: 60px 20px;
  color: var(--brand-text-muted);
}

.prp-noResults {
  text-align: center;
  padding: 40px;
  color: var(--brand-text-muted);
}

.prp-responseCard {
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
}

.prp-responseCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prp-responseCard--urgent {
  border: 2px solid var(--color-error);
}

.prp-responseCard--unread {
  background-color: var(--sidebar-hover-bg);
}

.prp-cardActions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.prp-badgeGroup {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.prp-providerInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.prp-date {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.prp-preview {
  font-size: var(--text-base);
  color: var(--brand-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prp-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* HYD — Hydration Modal */
.hyd-progressCard {
  margin-top: 16px;
  padding: 12px;
  background: var(--color-info-light);
  border-radius: var(--radius-md);
}

.hyd-progressValue {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--brand-primary);
}

.hyd-progressLabel {
  color: var(--brand-text-muted);
  font-size: var(--text-base);
}

.hyd-quickButtons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hyd-quickBtn {
  flex: 1;
  min-width: 60px;
}

.hyd-amountInput {
  flex: 2;
}

/* DASH — Health Summary */
.dash-headerActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-summaryHeader {
  text-align: center;
  padding: 20px;
  background: var(--brand-surface-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.dash-scoreCard {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: 20px;
}

.dash-scoreLabel {
  font-size: var(--text-base);
  opacity: 0.8;
}

.dash-scoreValue {
  font-size: var(--text-6xl);
  font-weight: 600;
}

.dash-scoreChange {
  font-size: var(--text-base);
  opacity: 0.8;
}

/* ===== Nutrition Quick Access (nut-) ===== */
.nut-quickAccessRow {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nut-quickBtn {
  padding: 10px 20px;
  background: var(--brand-primary);
  color: white;
  border: 1.5px solid var(--brand-primary);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nut-quickBtn:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

/* ===== Shopping List Cards (shl-) ===== */
.shl-dateInfo {
  font-size: 11px;
  color: var(--brand-text-muted);
  margin-top: 6px;
}
.shl-actionGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.shl-instacartBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background-color: #FFFFFF;
  color: #000000;
  border: 0.5px solid #B4B5B7;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shl-instacartBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.shl-instacartBtn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

/* ===== Shopping List Viewer Modal (slv-) ===== */
.slv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.slv-modal {
  background-color: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.slv-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}
.slv-closeBtn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slv-closeBtn:hover { background: rgba(255, 255, 255, 0.3); }
.slv-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.slv-itemRow {
  padding: 12px;
  border-bottom: 1px solid var(--brand-surface-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slv-summary {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--brand-surface-elevated);
  border-radius: 8px;
}
.slv-summaryRow {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.slv-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.slv-closeFooterBtn {
  padding: 10px 20px;
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.slv-closeFooterBtn:hover { background-color: var(--brand-border); }
.slv-printBtn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slv-printBtn:hover { opacity: 0.9; }
.slv-fulfillBtn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slv-fulfillBtn:hover { opacity: 0.9; }

/* ===== Shopping List Print Preview (spl-) ===== */
.spl-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.spl-itemsList {
  border-top: 1px solid var(--brand-border);
}
.spl-itemRow {
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-surface-elevated);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spl-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.spl-dismissBtn {
  padding: 10px 20px;
  background: transparent;
  color: var(--brand-text-muted);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.spl-dismissBtn:hover { background-color: var(--brand-surface-elevated); }
.spl-printBtn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spl-printBtn:hover { opacity: 0.9; }

/* ===== Shopping List Fulfill Modal (slf-) ===== */
.slf-modal {
  background-color: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.slf-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--brand-border);
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}
.slf-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.slf-pantryInfo {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--color-success-light);
  border-radius: 8px;
}
.slf-itemsList {
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
}
.slf-itemRow {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slf-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.slf-itemName {
  font-weight: 500;
  font-size: 14px;
}
.slf-itemQty {
  font-size: 12px;
  color: var(--brand-text-muted);
}
.slf-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 12px;
}
.slf-cancelBtn {
  flex: 1;
  padding: 12px 20px;
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.slf-cancelBtn:hover { background-color: var(--brand-border); }
.slf-confirmBtn {
  flex: 1;
  padding: 12px 20px;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== Recipe Viewer Modal (rv-) ===== */
.rv-modal {
  background-color: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.rv-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}
.rv-closeBtn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-closeBtn:hover { background: rgba(255, 255, 255, 0.3); }
.rv-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}
.rv-iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: 8px;
}
.rv-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.rv-closeFooterBtn {
  padding: 10px 20px;
  background-color: var(--brand-surface-elevated);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.rv-closeFooterBtn:hover { background-color: var(--brand-border); }
.rv-makeBtn {
  padding: 10px 20px;
  background-color: var(--brand-secondary);
  color: var(--brand-primary-dark);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.rv-makeBtn:hover { opacity: 0.9; }

/* exf-tabNav/exf-tab removed — Fitness now uses standard .tab-bar/.tab-item from healist-components.css */

.exf-buttonRow {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ===== Device Data Viewer (ddv-) ===== */
.ddv-mainContent {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ddv-sidebar {
  width: 250px;
  border-right: 1px solid var(--brand-border);
  overflow-y: auto;
  background-color: var(--brand-surface-elevated);
  flex-shrink: 0;
}
.ddv-groupLabel {
  padding: 12px 20px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ddv-navItem {
  width: 100%;
  padding: 10px 20px;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}

.ddv-navItem:hover {
  background-color: rgba(30, 58, 95, 0.05);
}

.ddv-navItem--active {
  background: rgba(30, 58, 95, 0.08);
  border-left: 3px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 600;
}

.ddv-contentArea {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  min-height: 0;
}
.ddv-statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.ddv-recordCard {
  padding: 16px 20px;
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--brand-surface);
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.06);
}
.ddv-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--brand-border);
  text-align: right;
  background-color: var(--brand-surface-elevated);
}

.rf-fileSelected {
  color: var(--color-success);
  font-weight: bold;
}
.rf-fileSize {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
}
.rf-dragText {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.rf-browseText {
  color: var(--brand-text-muted);
  margin-bottom: 10px;
}
.rf-mealPlanDesc {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--brand-text-muted);
}

/* Edit Recipe — Status Toggle */
.rf-statusToggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}
.rf-statusBtn {
  flex: 1;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  background: var(--brand-surface);
  color: var(--brand-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rf-statusBtn--active {
  background: var(--brand-primary);
  color: white;
}
.rf-statusBtn--inactive {
  background: var(--brand-text-muted);
  color: white;
}

/* Edit Recipe — Image Generation */
.rf-imageHint {
  font-size: var(--text-xs);
  color: var(--brand-text-muted);
  margin-bottom: 12px;
}
.rf-currentImage {
  margin-bottom: 12px;
}
.rf-imagePreview {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--brand-border);
}
.rf-imageSuccess {
  font-size: var(--text-sm);
  color: var(--brand-primary);
  font-weight: 500;
  margin-top: 6px;
}
.rf-imageError {
  font-size: var(--text-sm);
  color: var(--brand-error, #DC2626);
  margin-bottom: 8px;
}
.mfm-fileSelected {
  color: var(--color-success);
  font-weight: bold;
}
.mfm-fileSize {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
}
.mfm-dragText {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.mfm-browseText {
  color: var(--brand-text-muted);
  margin-bottom: 10px;
}

/* utext-14053 through utext-14299 → moved to trm- block */

.dash-generatedDate {
  color: var(--brand-text-muted);
  font-size: var(--text-base);
}

.slv-emptyText {
  color: var(--brand-text-muted);
  text-align: center;
}
.spl-storeText {
  color: var(--brand-text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}
.spl-countText {
  color: var(--brand-text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}
.slf-description {
  margin: 8px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
}
.slf-instruction {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin-bottom: 12px;
}

.exf-description {
  color: var(--brand-text-muted);
  margin-bottom: 20px;
}

