/* ═══════════════════════════════════════════════════════════════
   THEOWELLNESS PAGE-SPECIFIC STYLES
   Additional styles for specific pages
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   CALENDAR STYLES (Nutrition Page)
   ───────────────────────────────────────────────────────────────── */
.calendar-container {
    background: var(--vf-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    margin: var(--space-4);
    max-width: 360px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-xl);
    animation: calendarSlideUp 0.3s var(--ease-out);
}

@keyframes calendarSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.calendar-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--vf-gray-900);
}

.calendar-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--vf-gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--vf-gray-600);
    transition: all var(--duration-fast);
}

.calendar-nav-btn:hover {
    background: var(--vf-green-100);
    color: var(--vf-green-600);
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: var(--space-3);
}

.calendar-weekdays span {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-gray-400);
    text-transform: uppercase;
    padding: var(--space-2) 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-1);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--vf-gray-700);
    cursor: pointer;
    transition: all var(--duration-fast);
    position: relative;
}

.calendar-day:hover:not(.calendar-day--empty):not(.calendar-day--selected) {
    background: var(--vf-gray-100);
}

.calendar-day:active:not(.calendar-day--empty) {
    transform: scale(0.9);
}

.calendar-day--empty {
    cursor: default;
}

.calendar-day--other-month {
    color: var(--vf-gray-300);
}

.calendar-day--today {
    background: var(--vf-green-100);
    color: var(--vf-green-700);
    font-weight: 700;
}

.calendar-day--selected {
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(61, 145, 71, 0.3);
}

.calendar-day--has-entries::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--vf-green-500);
    border-radius: 50%;
}

.calendar-day--selected.calendar-day--has-entries::after {
    background: white;
}

.calendar-footer {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--vf-gray-100);
}

.calendar-footer .btn {
    flex: 1;
}

.calendar-btn {
    background: var(--vf-green-100) !important;
    color: var(--vf-green-600) !important;
}

.calendar-btn:hover {
    background: var(--vf-green-200) !important;
}

/* Date header hover effect */
.date-header:hover .date-display {
    color: var(--vf-green-600);
}

.date-display {
    transition: color var(--duration-fast);
}

/* ─────────────────────────────────────────────────────────────────
   PROGRESS BAR - Compact Version
   ───────────────────────────────────────────────────────────────── */
.progress-compact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-gray-50) 50%, var(--vf-amber-50) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--vf-gray-200);
}

.progress-mini-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.progress-mini-ring svg {
    transform: rotate(-90deg);
}

.progress-mini-ring .ring-bg {
    fill: none;
    stroke: var(--vf-gray-200);
    stroke-width: 5;
}

.progress-mini-ring .ring-fill {
    fill: none;
    stroke: var(--vf-green-500);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s var(--ease-out);
}

.progress-mini-ring .ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--vf-gray-800);
}

.progress-counts {
    flex: 1;
    display: flex;
    justify-content: space-around;
    gap: var(--space-2);
}

.progress-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.progress-count-num {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1;
}

.progress-count-num.good { color: var(--vf-green-600); }
.progress-count-num.moderate { color: var(--vf-amber-500); }
.progress-count-num.problem { color: var(--vf-error); }

.progress-count-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--vf-gray-500);
}

.progress-count-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.progress-count-icon svg {
    width: 12px;
    height: 12px;
}

.progress-count-icon.good {
    background: var(--vf-green-100);
    color: var(--vf-green-600);
}

.progress-count-icon.moderate {
    background: var(--vf-amber-100);
    color: var(--vf-amber-500);
}

.progress-count-icon.problem {
    background: #FEF2F2;
    color: var(--vf-error);
}

.progress-entries-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--vf-white);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-gray-600);
    box-shadow: var(--shadow-sm);
}

.progress-entries-badge svg {
    width: 14px;
    height: 14px;
    color: var(--vf-green-500);
}

/* Dark Theme - Progress Compact */
[data-theme="dark"] .progress-compact {
    background: linear-gradient(135deg, rgba(46, 117, 55, 0.15) 0%, var(--vf-gray-100) 50%, rgba(245, 158, 11, 0.1) 100%);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .progress-mini-ring .ring-bg {
    stroke: var(--vf-gray-300);
}

[data-theme="dark"] .progress-mini-ring .ring-text {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .progress-count-label {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .progress-entries-badge {
    background: var(--vf-gray-200);
    color: var(--vf-gray-700);
}

/* ─────────────────────────────────────────────────────────────────
   DAY SUMMARY CARD - Meals Index
   ───────────────────────────────────────────────────────────────── */
.day-summary-card {
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-white) 50%, var(--vf-amber-50) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    border: 1px solid var(--vf-gray-200);
}

.day-summary-stats {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.day-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--vf-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.day-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.day-stat-icon svg {
    width: 20px;
    height: 20px;
}

.day-stat-icon.meals {
    background: var(--vf-green-100);
    color: var(--vf-green-600);
}

.day-stat-icon.calories {
    background: var(--vf-amber-100);
    color: var(--vf-amber-600);
}

.day-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.day-stat-value-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.day-stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--vf-gray-900);
    line-height: 1.2;
}

.day-stat-label {
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
    font-weight: 500;
}

/* Inline mini ratings - flex next to day-stat-value */
.day-stat-ratings {
    display: flex;
    gap: 4px;
    align-items: center;
}

.day-stat-ratings .rating-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 600;
    opacity: 0.9;
}

.day-stat-ratings .rating-dot.good {
    background: var(--vf-green-100);
    color: var(--vf-green-700);
}

.day-stat-ratings .rating-dot.moderate {
    background: var(--vf-amber-100);
    color: var(--vf-amber-700);
}

.day-stat-ratings .rating-dot.problem {
    background: #FEE2E2;
    color: var(--vf-error);
}

.day-stat-ratings .rating-dot.pending {
    background: var(--vf-gray-100);
    color: var(--vf-gray-500);
}

/* Hide dots with 0 value */
.day-stat-ratings .rating-dot.hidden {
    display: none;
}

/* Dark Theme - Day Summary */
[data-theme="dark"] .day-summary-card {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .day-stat-item {
    background: var(--vf-gray-200);
    box-shadow: none;
}

[data-theme="dark"] .day-stat-icon.meals {
    background: rgba(46, 117, 55, 0.25);
    color: var(--vf-green-400);
}

[data-theme="dark"] .day-stat-icon.calories {
    background: rgba(217, 119, 6, 0.25);
    color: var(--vf-amber-400);
}

[data-theme="dark"] .day-stat-icon svg {
    color: inherit;
}

[data-theme="dark"] .day-stat-value {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .day-stat-label {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .day-stat-ratings .rating-dot.good {
    background: rgba(46, 117, 55, 0.3);
    color: var(--vf-green-400);
}

[data-theme="dark"] .day-stat-ratings .rating-dot.moderate {
    background: rgba(245, 158, 11, 0.3);
    color: var(--vf-amber-400);
}

[data-theme="dark"] .day-stat-ratings .rating-dot.problem {
    background: rgba(239, 68, 68, 0.3);
    color: #F87171;
}

[data-theme="dark"] .day-stat-ratings .rating-dot.pending {
    background: var(--vf-gray-300);
    color: var(--vf-gray-600);
}

/* Mobile adjustments for ratings */
@media (max-width: 640px) {
    .day-stat-ratings {
        gap: 3px;
    }
    
    .day-stat-ratings .rating-dot {
        min-width: 13px;
        height: 13px;
        padding: 0 3px;
        font-size: 8px;
    }
    
    .day-stat-item {
        gap: var(--space-2);
        padding: var(--space-2);
    }
    
    .day-stat-value-row {
        gap: var(--space-1);
    }
}

/* ─────────────────────────────────────────────────────────────────
   ADD FOOD PAGE
   ───────────────────────────────────────────────────────────────── */
.page-exit {
    animation: pageExit 0.25s ease-out forwards;
}

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

/* Image Crop Modal — matches app glass / green design system */
body.vfl-crop-open,
body.vfl-crop-open .app-container,
body.vfl-crop-open .screen {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

#crop-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(20, 22, 19, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overscroll-behavior: none;
    touch-action: none;
}

#crop-overlay .crop-footer,
#crop-overlay .crop-sheet-header {
    touch-action: manipulation;
}

.crop-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
    max-height: 100%;
    background: var(--vf-white);
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.45s var(--ease-spring);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.overlay.active .crop-sheet {
    transform: translateY(0);
}

.crop-sheet-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: var(--space-2);
    padding: calc(var(--space-3) + var(--safe-top)) var(--space-4) var(--space-3);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.crop-header-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--vf-gray-100);
    color: var(--vf-gray-600);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring),
                background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.crop-header-btn:active {
    transform: scale(0.92);
    background: var(--vf-gray-200);
}

.crop-header-text {
    text-align: center;
    min-width: 0;
}

.crop-sheet-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-900);
    margin: 0 0 2px;
    line-height: 1.25;
}

.crop-sheet-subtitle {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    line-height: 1.3;
}

.crop-header-spacer {
    width: 44px;
    height: 44px;
}

.crop-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    background: var(--vf-gray-900);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out) 0.1s;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

.crop-stage.is-ready {
    opacity: 1;
}

.crop-stage-frame {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: var(--vf-gray-900);
}

#crop-overlay .cropper-crop-box {
    overflow: visible;
}

/* Cropper.js — inset handles, no thick semi-transparent edge bands */
#crop-overlay .cropper-view-box {
    outline: 2px solid var(--vf-green-500);
    outline-offset: -1px;
    border-radius: 0;
    box-shadow: 0 0 0 9999px rgba(20, 22, 19, 0.28);
    touch-action: none;
}

#crop-overlay .cropper-face {
    touch-action: none;
    opacity: 0;
    background-color: transparent;
}

#crop-overlay .cropper-line {
    background-color: transparent;
    opacity: 0;
    touch-action: none;
}

#crop-overlay .cropper-line.line-n {
    height: 32px;
    top: 0;
}

#crop-overlay .cropper-line.line-s {
    height: 32px;
    bottom: 0;
}

#crop-overlay .cropper-line.line-e {
    width: 32px;
    right: 0;
}

#crop-overlay .cropper-line.line-w {
    width: 32px;
    left: 0;
}

#crop-overlay .cropper-point {
    background-color: var(--vf-green-500);
    width: 18px;
    height: 18px;
    opacity: 1;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    touch-action: none;
}

#crop-overlay .cropper-point::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#crop-overlay .cropper-point.point-n {
    left: 50%;
    top: 8px;
    right: auto;
    bottom: auto;
    margin-left: -9px;
    margin-top: 0;
}

#crop-overlay .cropper-point.point-s {
    left: 50%;
    bottom: 8px;
    top: auto;
    right: auto;
    margin-left: -9px;
    margin-top: 0;
}

#crop-overlay .cropper-point.point-e {
    top: 50%;
    right: 8px;
    left: auto;
    bottom: auto;
    margin-top: -9px;
    margin-left: 0;
}

#crop-overlay .cropper-point.point-w {
    top: 50%;
    left: 8px;
    right: auto;
    bottom: auto;
    margin-top: -9px;
    margin-left: 0;
}

#crop-overlay .cropper-point.point-ne {
    right: 8px;
    top: 8px;
    left: auto;
    bottom: auto;
}

#crop-overlay .cropper-point.point-nw {
    left: 8px;
    top: 8px;
    right: auto;
    bottom: auto;
}

#crop-overlay .cropper-point.point-sw {
    left: 8px;
    bottom: 8px;
    top: auto;
    right: auto;
}

#crop-overlay .cropper-point.point-se {
    width: 18px;
    height: 18px;
    right: 8px;
    bottom: 8px;
    top: auto;
    left: auto;
    opacity: 1;
}

#crop-overlay .cropper-point.point-se::before {
    width: 44px;
    height: 44px;
    background-color: transparent;
}

@media (min-width: 768px) {
    #crop-overlay .cropper-point.point-se {
        width: 18px;
        height: 18px;
        opacity: 1;
    }
}

@media (min-width: 992px) {
    #crop-overlay .cropper-point.point-se {
        width: 18px;
        height: 18px;
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    #crop-overlay .cropper-point.point-se {
        width: 18px;
        height: 18px;
        opacity: 1;
    }
}

#crop-overlay .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.65);
    opacity: 0.7;
}

#crop-overlay .cropper-center::before,
#crop-overlay .cropper-center::after {
    background-color: rgba(255, 255, 255, 0.85);
}

#crop-overlay .cropper-modal {
    background-color: transparent;
    opacity: 1;
}

.crop-stage:not(.is-ready)::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(
        110deg,
        var(--vf-gray-800) 8%,
        var(--vf-gray-700) 18%,
        var(--vf-gray-800) 33%
    );
    background-size: 200% 100%;
    animation: cropStageShimmer 1.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cropStageShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.crop-stage-frame > img,
.crop-stage-frame .cropper-container {
    width: 100%;
    height: 100%;
}

#crop-image {
    display: block;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.crop-stage.is-ready #crop-image,
.crop-stage.is-ready .cropper-container {
    opacity: 1;
}

.crop-stage .cropper-container {
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.crop-footer {
    flex-shrink: 0;
    padding: var(--space-4) var(--space-4) calc(var(--space-5) + var(--safe-bottom));
    background: var(--vf-white);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.4s var(--ease-spring) 0.08s,
                opacity 0.35s var(--ease-out) 0.08s;
}

.overlay.active .crop-footer {
    transform: translateY(0);
    opacity: 1;
}

.crop-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
}

.crop-mode-switch {
    display: flex;
    width: 100%;
    padding: 3px;
    border-radius: var(--radius-full);
    background: var(--vf-gray-100);
    border: 1px solid var(--glass-border);
}

.crop-mode-btn {
    flex: 1;
    min-height: 44px;
    padding: 0 var(--space-3);
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--vf-gray-600);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.crop-mode-btn.is-active {
    background: var(--vf-white);
    color: var(--vf-green-700);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.crop-mode-btn:active {
    transform: scale(0.98);
}

.crop-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.crop-tool-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--vf-gray-200);
    border-radius: var(--radius-full, 999px);
    background: var(--vf-white);
    color: var(--vf-gray-700);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform var(--duration-fast) var(--ease-spring),
                border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.crop-tool-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vf-green-50);
    color: var(--vf-green-600);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.crop-tool-chip:active {
    transform: scale(0.96);
    border-color: var(--vf-green-300);
    background: var(--vf-green-50);
    box-shadow: var(--shadow-sm);
}

.crop-tool-chip:active .crop-tool-chip-icon {
    background: var(--vf-green-100);
    color: var(--vf-green-700);
}

.crop-tool-chip-label {
    padding-right: var(--space-1);
}

.crop-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: transform var(--duration-fast) var(--ease-spring),
                box-shadow var(--duration-normal) var(--ease-out);
}

.crop-apply-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.crop-apply-btn.is-working {
    pointer-events: none;
    opacity: 0.85;
}

.crop-apply-btn.is-working svg {
    animation: cropApplySpin 0.8s linear infinite;
}

@keyframes cropApplySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark theme */
[data-theme="dark"] .crop-sheet {
    background: var(--vf-white);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .crop-sheet-header {
    background: rgba(22, 24, 22, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .crop-sheet-title {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .crop-header-btn {
    background: var(--vf-gray-200);
    color: var(--vf-gray-700);
}

[data-theme="dark"] .crop-stage {
    background: var(--vf-gray-900);
}

[data-theme="dark"] .crop-stage-frame {
    background: var(--vf-gray-900);
}

[data-theme="dark"] .crop-footer {
    background: var(--vf-white);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .crop-tool-chip {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
    color: var(--vf-gray-800);
}

[data-theme="dark"] .crop-mode-switch {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .crop-mode-btn {
    color: var(--vf-gray-700);
}

[data-theme="dark"] .crop-mode-btn.is-active {
    background: var(--vf-gray-100);
    color: var(--vf-green-600);
}

[data-theme="dark"] #crop-overlay .cropper-view-box {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .crop-sheet,
    .crop-stage,
    .crop-footer,
    .crop-header-btn,
    .crop-tool-chip,
    .crop-apply-btn,
    .crop-stage:not(.is-ready)::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Photo Source Selection */
.photo-source-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: var(--container-max);
    background: var(--vf-white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-4) var(--space-4) calc(var(--space-6) + var(--safe-bottom));
    z-index: 201;
    transition: transform var(--duration-slow) var(--ease-out);
}

.overlay.active .photo-source-sheet {
    transform: translateX(-50%) translateY(0);
}

.photo-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5);
    background: var(--vf-gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-fast);
    margin-bottom: var(--space-3);
}

.photo-option:hover {
    background: var(--vf-green-50);
    border-color: var(--vf-green-200);
}

.photo-option:active {
    transform: scale(0.98);
}

.photo-option-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--vf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-green-600);
    box-shadow: var(--shadow-sm);
}

.photo-option-content {
    flex: 1;
}

.photo-option-title {
    font-weight: 600;
    color: var(--vf-gray-900);
    margin-bottom: var(--space-1);
}

.photo-option-desc {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

/* Photo Section */
.photo-section {
    margin-bottom: var(--space-6);
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.form-row-golden {
    display: grid;
    grid-template-columns: 61.8% 38.2%;
    gap: var(--space-4);
}

/* Meal Type Pills */
.meal-pills {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.meal-pill {
    flex: 1;
    min-width: 80px;
    height: 48px;
    border: 2px solid var(--vf-gray-200);
    background: var(--vf-white);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-gray-600);
    cursor: pointer;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.meal-pill:hover {
    border-color: var(--vf-green-300);
    color: var(--vf-green-600);
}

.meal-pill.active {
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    border-color: var(--vf-green-500);
    color: white;
    box-shadow: 0 4px 12px rgba(61, 145, 71, 0.3);
}

.meal-pill svg {
    width: 18px;
    height: 18px;
}

/* Time input */
.time-input-group {
    display: flex;
    align-items: center;
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-fast);
}

.time-input-group:focus-within {
    border-color: var(--vf-green-500);
    box-shadow: 0 0 0 4px var(--vf-green-100);
}

.time-input-group input {
    flex: 1;
    border: none;
    height: 52px;
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    outline: none;
}

.time-input-group .time-now-btn {
    height: 52px;
    padding: 0 var(--space-4);
    border: none;
    background: var(--vf-gray-50);
    color: var(--vf-green-600);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--duration-fast);
}

.time-input-group .time-now-btn:hover {
    background: var(--vf-green-50);
}

/* Dark theme - time input */
[data-theme="dark"] .time-input-group {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .time-input-group input {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .time-input-group .time-now-btn {
    background: var(--vf-gray-300);
}

[data-theme="dark"] .time-input-group .time-now-btn:hover {
    background: rgba(61, 145, 71, 0.2);
}

/* Form Row - Side by Side */
.form-row {
    display: flex;
    gap: var(--space-3);
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

/* Compact Time Input */
.time-input-group.compact {
    height: 44px;
}

.time-input-group.compact input {
    height: 44px;
    padding: 0 var(--space-3);
}

.time-input-group.compact .time-now-btn {
    height: 44px;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
}

/* Date Input Group */
.date-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    height: 44px;
    padding: 0 var(--space-3);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.date-input-group:hover {
    border-color: var(--vf-green-400);
}

.date-input-group svg {
    width: 18px;
    height: 18px;
    color: var(--vf-green-500);
    flex-shrink: 0;
}

.date-input-group span {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--vf-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .date-input-group {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .date-input-group span {
    color: var(--vf-gray-900);
}

/* Calendar Compact */
.calendar-compact {
    max-width: 320px;
}

.calendar-compact .calendar-days {
    gap: 4px;
}

.calendar-compact .calendar-day {
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
}

/* Calories Input */
.calories-input-group {
    display: flex;
    align-items: center;
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-fast);
}

.calories-input-group:focus-within {
    border-color: var(--vf-green-500);
    box-shadow: 0 0 0 4px var(--vf-green-100);
}

.calories-input-group input {
    flex: 1;
    border: none;
    height: 52px;
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

.calories-input-group input::-webkit-outer-spin-button,
.calories-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calories-unit {
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-gray-500);
    background: var(--vf-gray-50);
    height: 52px;
    display: flex;
    align-items: center;
}

.form-hint {
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--vf-gray-400);
}

[data-theme="dark"] .calories-input-group {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .calories-input-group input {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .calories-unit {
    background: var(--vf-gray-300);
    color: var(--vf-gray-600);
}

/* Tags Input System */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    min-height: 56px;
    align-items: center;
    transition: all var(--duration-fast);
}

.tags-input-container:focus-within {
    border-color: var(--vf-green-500);
    box-shadow: 0 0 0 4px var(--vf-green-100);
}

[data-theme="dark"] .tags-input-container {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .tags-input-container:focus-within {
    box-shadow: 0 0 0 4px rgba(61, 145, 71, 0.15);
}

.ingredient-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--vf-green-100);
    color: var(--vf-green-700);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    animation: tagPop 0.2s var(--ease-spring);
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

[data-theme="dark"] .ingredient-tag {
    background: rgba(61, 145, 71, 0.2);
    color: var(--vf-green-400);
}

.ingredient-tag-remove {
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: inherit;
    transition: all var(--duration-fast);
}

.ingredient-tag-remove:hover {
    background: rgba(0, 0, 0, 0.2);
}

.ingredient-tag-remove svg {
    width: 12px;
    height: 12px;
}

.tags-input {
    flex: 1;
    min-width: 100px;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    outline: none;
    color: var(--vf-gray-800);
}

[data-theme="dark"] .tags-input {
    color: var(--vf-gray-900);
}

.tags-input::placeholder {
    color: var(--vf-gray-400);
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.suggested-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--vf-gray-100);
    border: 1px dashed var(--vf-gray-300);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--vf-gray-600);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.suggested-tag:hover {
    background: var(--vf-green-50);
    border-color: var(--vf-green-300);
    color: var(--vf-green-600);
}

[data-theme="dark"] .suggested-tag {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-400);
    color: var(--vf-gray-600);
}

[data-theme="dark"] .suggested-tag:hover {
    background: rgba(61, 145, 71, 0.15);
    border-color: var(--vf-green-500);
    color: var(--vf-green-400);
}

/* Ingredients Autocomplete Dropdown */
.tags-input-container {
    position: relative;
}

.tags-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--vf-white);
    border: 1px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: 4px;
}

[data-theme="dark"] .tags-autocomplete {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}

.tags-autocomplete-item {
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--vf-gray-700);
    cursor: pointer;
    transition: background var(--duration-fast);
    border-bottom: 1px solid var(--vf-gray-100);
}

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

.tags-autocomplete-item:hover,
.tags-autocomplete-item.highlighted {
    background: var(--vf-green-50);
    color: var(--vf-green-700);
}

[data-theme="dark"] .tags-autocomplete-item {
    color: var(--vf-gray-800);
    border-color: var(--vf-gray-200);
}

[data-theme="dark"] .tags-autocomplete-item:hover,
[data-theme="dark"] .tags-autocomplete-item.highlighted {
    background: rgba(61, 145, 71, 0.15);
    color: var(--vf-green-400);
}

.tags-autocomplete-item.new-item {
    color: var(--vf-green-600);
    font-weight: 500;
    border-top: 1px solid var(--vf-gray-200);
}

[data-theme="dark"] .tags-autocomplete-item.new-item {
    color: var(--vf-green-400);
    border-color: var(--vf-gray-300);
}

/* ─────────────────────────────────────────────────────────────────
   DASHBOARD / STATISTICS PAGE
   ───────────────────────────────────────────────────────────────── */
.stat-card {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--vf-gray-200);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--stat-color, var(--vf-green-500));
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--vf-gray-900);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    margin-bottom: var(--space-3);
}

.stat-progress {
    height: 8px;
    background: var(--vf-gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-out);
}

.stat-goal {
    font-size: var(--text-xs);
    color: var(--vf-gray-400);
    margin-top: var(--space-2);
    text-align: right;
}

.chart-card {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--vf-gray-200);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.chart-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: var(--space-3);
    gap: var(--space-2);
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.chart-bar {
    width: 100%;
    max-width: 32px;
    background: var(--vf-green-500);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.8s var(--ease-out);
    min-height: 4px;
}

.chart-bar.today {
    background: linear-gradient(180deg, var(--vf-green-400) 0%, var(--vf-green-600) 100%);
    box-shadow: 0 4px 12px rgba(61, 145, 71, 0.3);
}

.chart-day {
    font-size: var(--text-xs);
    color: var(--vf-gray-400);
    font-weight: 500;
}

.chart-day.today {
    color: var(--vf-green-600);
    font-weight: 600;
}

.summary-card {
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-green-100) 100%);
    border: 1px solid var(--vf-green-200);
}

.rating-bar {
    display: flex;
    height: 24px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--vf-gray-100);
}

.rating-segment {
    transition: width 0.8s var(--ease-out);
}

.rating-segment.good { background: var(--vf-green-500); }
.rating-segment.moderate { background: var(--vf-amber-400); }
.rating-segment.problem { background: var(--vf-error); }

/* Calories Summary Card */
.calories-summary-card {
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-amber-50) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--vf-green-200);
}

.calories-summary-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calories-summary-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.calories-summary-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.calories-summary-week,
.calories-summary-daily {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.calories-summary-daily {
    align-items: flex-end;
}

.calories-label {
    font-size: 10px;
    color: var(--vf-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.calories-value-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.calories-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--vf-green-700);
    line-height: 1;
}

.calories-avg {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-700);
    line-height: 1;
}

.calories-unit {
    font-size: 10px;
    color: var(--vf-gray-400);
    font-weight: 500;
}

/* Mobile adjustments for calories card */
@media (max-width: 360px) {
    .calories-summary-card {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }
    .calories-summary-icon {
        width: 36px;
        height: 36px;
    }
    .calories-summary-icon svg {
        width: 18px;
        height: 18px;
    }
    .calories-value {
        font-size: var(--text-lg);
    }
    .calories-avg {
        font-size: var(--text-base);
    }
}

/* Chart V2 - Color Coded */
.chart-card-v2 {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--vf-gray-200);
}

.chart-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.chart-header-v2 .chart-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    line-height: 1.3;
}

.chart-header-v2 .badge {
    flex-shrink: 0;
    margin-top: 2px;
}

.chart-bars-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding-top: var(--space-3);
    gap: var(--space-2);
}

.chart-bar-group-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* Meal count on top of bar */
.chart-meal-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--vf-gray-600);
    line-height: 1;
    margin-bottom: 2px;
}

.chart-bar-group-v2.today .chart-meal-count {
    color: var(--vf-green-600);
}

.chart-stacked-bar {
    width: 100%;
    max-width: 32px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: visible;
    min-height: 4px;
    transition: all 0.6s var(--ease-out);
}

.chart-segment {
    width: 100%;
    transition: height 0.6s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Segment labels inside bars */
.segment-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.chart-segment.unrated .segment-label {
    color: var(--vf-gray-600);
    text-shadow: none;
}

.chart-segment.good { background: var(--vf-green-500); }
.chart-segment.moderate { background: var(--vf-amber-400); }
.chart-segment.problem { background: var(--vf-error); }
.chart-segment.unrated { background: var(--vf-gray-300); }

.chart-bar-group-v2.today .chart-stacked-bar {
    box-shadow: 0 4px 12px rgba(61, 145, 71, 0.3);
}

.chart-day-v2 {
    font-size: 11px;
    color: var(--vf-gray-500);
    font-weight: 600;
    margin-top: 4px;
}

.chart-day-v2.today {
    color: var(--vf-green-600);
    font-weight: 700;
}

.chart-calories-v2 {
    font-size: 10px;
    color: var(--vf-gray-400);
    font-weight: 500;
    line-height: 1;
}

.chart-bar-group-v2.today .chart-calories-v2 {
    color: var(--vf-green-500);
    font-weight: 600;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--vf-gray-100);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.legend-dot.good { background: var(--vf-green-500); }
.legend-dot.moderate { background: var(--vf-amber-400); }
.legend-dot.problem { background: var(--vf-error); }

/* Dark Theme - Dashboard */
[data-theme="dark"] .summary-card {
    background: linear-gradient(135deg, rgba(46, 117, 55, 0.2) 0%, rgba(46, 117, 55, 0.1) 100%);
    border-color: var(--vf-green-700);
}

[data-theme="dark"] .summary-card .font-semibold,
[data-theme="dark"] #summary-title {
    color: var(--vf-gray-900) !important;
}

[data-theme="dark"] #summary-tip {
    color: var(--vf-green-400) !important;
}

[data-theme="dark"] .summary-card .text-muted {
    color: var(--vf-gray-600) !important;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .chart-card-v2,
[data-theme="dark"] .card {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .calories-summary-card {
    background: linear-gradient(135deg, rgba(46, 117, 55, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: var(--vf-green-700);
}

[data-theme="dark"] .calories-value {
    color: var(--vf-green-400);
}

[data-theme="dark"] .calories-avg {
    color: var(--vf-gray-300);
}

[data-theme="dark"] .chart-segment.unrated {
    background: var(--vf-gray-500);
}

[data-theme="dark"] .chart-legend {
    border-top-color: var(--vf-gray-300);
}

/* ─────────────────────────────────────────────────────────────────
   ADMIN PAGE
   ───────────────────────────────────────────────────────────────── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.admin-stat {
    background: var(--vf-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    border: 1px solid var(--vf-gray-200);
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.admin-stat-label {
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
}

.filter-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.filter-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    background: var(--vf-gray-100);
    color: var(--vf-gray-600);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration-fast);
}

.filter-tab:hover {
    background: var(--vf-gray-200);
}

.filter-tab.active {
    background: var(--vf-green-600);
    color: white;
}

.admin-card {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--vf-gray-200);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--vf-gray-100);
}

.admin-card-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.admin-card-time {
    font-size: var(--text-xs);
    color: var(--vf-gray-400);
}

.admin-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.admin-card-no-image {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--vf-gray-100);
    color: var(--vf-gray-400);
}

.admin-card-no-image svg {
    opacity: 0.5;
}

.admin-card-no-image span {
    font-size: var(--text-sm);
}

.admin-card-content {
    padding: var(--space-4);
}

.admin-card-description {
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.rating-buttons {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.rating-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    background: var(--vf-white);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.rating-btn:hover {
    border-color: var(--vf-gray-300);
}

.rating-btn.selected.good {
    border-color: var(--vf-green-500);
    background: var(--vf-green-50);
}

.rating-btn.selected.moderate {
    border-color: var(--vf-amber-500);
    background: var(--vf-amber-50);
}

.rating-btn.selected.problem {
    border-color: var(--vf-error);
    background: #FEF2F2;
}

.rating-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn.good .rating-icon {
    background: var(--vf-green-100);
    color: var(--vf-green-600);
}

.rating-btn.moderate .rating-icon {
    background: var(--vf-amber-100);
    color: var(--vf-amber-500);
}

.rating-btn.problem .rating-icon {
    background: #FDECEC;
    color: var(--vf-error);
}

.rating-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-gray-600);
}

.admin-comment-input {
    margin-top: var(--space-4);
}

.rated-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-top: var(--space-3);
}

.rated-status.good {
    background: var(--vf-green-50);
}

.rated-status.moderate {
    background: var(--vf-amber-50);
}

.rated-status.problem {
    background: #FEF2F2;
}

/* Dark Theme - Admin */
[data-theme="dark"] .admin-stat,
[data-theme="dark"] .admin-card {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .filter-tab {
    background: var(--vf-gray-200);
    color: var(--vf-gray-700);
}

[data-theme="dark"] .filter-tab:hover {
    background: var(--vf-gray-300);
}

[data-theme="dark"] .rating-btn {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
}

/* ─────────────────────────────────────────────────────────────────
   ADDITIONAL UTILITY STYLES
   ───────────────────────────────────────────────────────────────── */
.topbar-spacer {
    width: 70px;
}

.pt-0 {
    padding-top: 0 !important;
}

.text-success {
    color: var(--vf-green-600);
}

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

.rating-dot-good {
    width: 12px;
    height: 12px;
    background: var(--vf-green-500);
    border-radius: 3px;
}

.rating-dot-moderate {
    width: 12px;
    height: 12px;
    background: var(--vf-amber-400);
    border-radius: 3px;
}

.rating-dot-problem {
    width: 12px;
    height: 12px;
    background: var(--vf-error);
    border-radius: 3px;
}

.summary-icon {
    width: 44px;
    height: 44px;
    background: var(--vf-green-200);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo upload preview */
.photo-upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload icon circle for dark theme */
.upload-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--vf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal);
}

.photo-upload-enhanced:hover .upload-icon-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.upload-icon-circle svg {
    width: 36px;
    height: 36px;
    color: var(--vf-green-600);
}

.upload-text-main {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-700);
    margin-bottom: var(--space-1);
}

.upload-text-hint {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

/* Dark Theme - Photo Upload */
[data-theme="dark"] .photo-upload-enhanced {
    background: linear-gradient(135deg, rgba(30, 35, 30, 0.95) 0%, rgba(25, 30, 28, 0.9) 50%, rgba(20, 25, 22, 0.95) 100%);
    border: 2px dashed rgba(61, 145, 71, 0.4);
}

[data-theme="dark"] .photo-upload-enhanced:hover {
    border-color: var(--vf-green-500);
    background: linear-gradient(135deg, rgba(35, 45, 38, 0.95) 0%, rgba(30, 40, 35, 0.9) 50%, rgba(25, 35, 30, 0.95) 100%);
}

[data-theme="dark"] .upload-icon-circle {
    background: linear-gradient(145deg, rgba(61, 145, 71, 0.25) 0%, rgba(46, 117, 55, 0.35) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(61, 145, 71, 0.3);
}

[data-theme="dark"] .upload-icon-circle svg {
    color: var(--vf-green-400);
}

[data-theme="dark"] .upload-text-main {
    color: var(--vf-gray-800);
}

[data-theme="dark"] .upload-text-hint {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .photo-source-sheet {
    background: var(--vf-gray-100);
}

[data-theme="dark"] .photo-option {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .photo-option:hover {
    background: rgba(61, 145, 71, 0.15);
    border-color: rgba(61, 145, 71, 0.3);
}

[data-theme="dark"] .photo-option-icon {
    background: linear-gradient(145deg, rgba(61, 145, 71, 0.2) 0%, rgba(46, 117, 55, 0.3) 100%);
    color: var(--vf-green-400);
}

/* Photo upload placeholder */
.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    z-index: 1;
}

.upload-text {
    text-align: center;
}

/* Settings item icon colors */
.settings-item-icon.red {
    background: #FEF2F2;
    color: var(--vf-error);
}

/* ============================================================================
   MEALS: PHOTO FILENAME, BULK IMPORT, QUICK PROCESSING, INGREDIENT SETS
   ============================================================================ */

/* Original filename label under the photo preview */
.photo-filename {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--vf-gray-100);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--vf-gray-600);
    overflow: hidden;
}
.photo-filename svg { flex-shrink: 0; opacity: 0.7; }
.photo-filename-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-theme="dark"] .photo-filename {
    background: var(--vf-gray-200);
    color: var(--vf-gray-600);
}

/* Meal FAB speed dial — single vs group add */
.meal-fab-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
}
.meal-fab-menu.is-open {
    pointer-events: auto;
}
.meal-fab-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out);
}
.meal-fab-menu.is-open .meal-fab-backdrop {
    opacity: 1;
    visibility: visible;
}
.meal-fab-stack {
    position: absolute;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
    right: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
    pointer-events: none;
}
.meal-fab-trigger {
    pointer-events: auto;
}
.meal-fab-menu.is-open .meal-fab-actions {
    pointer-events: auto;
}
.meal-fab-stack .fab {
    position: static;
    bottom: auto;
    right: auto;
    z-index: auto;
    flex-shrink: 0;
}
.meal-fab-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
}
.meal-fab-action {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.88);
    pointer-events: none;
    transition:
        opacity 0.28s var(--ease-out),
        transform 0.38s var(--ease-spring);
}
.meal-fab-menu.is-open .meal-fab-action {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.meal-fab-menu.is-open .meal-fab-action:nth-child(1) {
    transition-delay: 0.06s;
}
.meal-fab-menu.is-open .meal-fab-action:nth-child(2) {
    transition-delay: 0.12s;
}
.meal-fab-action:active .meal-fab-action-icon {
    transform: scale(0.94);
}
.meal-fab-action-label {
    padding: 0.45rem 0.9rem;
    background: var(--vf-white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-gray-800);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    line-height: 1.2;
}
.meal-fab-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transition: transform var(--duration-fast) var(--ease-spring);
}
.meal-fab-action-icon--single {
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    color: #fff;
}
.meal-fab-action-icon--bulk {
    background: var(--vf-white);
    color: var(--vf-green-600);
    border: 2px solid var(--vf-green-200, #b7e0bd);
}
.meal-fab-plus-icon {
    display: block;
    transition: transform 0.32s var(--ease-spring);
}
.meal-fab-menu.is-open .meal-fab-plus-icon {
    transform: rotate(45deg);
}
.meal-fab-menu.is-open .meal-fab-trigger {
    box-shadow: 0 8px 28px rgba(61, 145, 71, 0.55);
}
.meal-fab-menu.is-open .meal-fab-trigger:hover {
    transform: scale(1.05);
}
[data-theme="dark"] .meal-fab-action-label {
    background: var(--vf-gray-100);
    color: var(--vf-gray-800);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .meal-fab-action-icon--bulk {
    background: var(--vf-gray-100);
    border-color: var(--vf-green-700, #2f6b38);
    color: var(--vf-green-400);
}
[data-theme="dark"] .meal-fab-backdrop {
    background: rgba(0, 0, 0, 0.55);
}
@media (prefers-reduced-motion: reduce) {
    .meal-fab-action,
    .meal-fab-plus-icon,
    .meal-fab-backdrop {
        transition: none;
    }
    .meal-fab-menu.is-open .meal-fab-action:nth-child(1),
    .meal-fab-menu.is-open .meal-fab-action:nth-child(2) {
        transition-delay: 0s;
    }
}

/* Bulk import button in the day list section header */
.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.bulk-import-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--vf-white);
    border: 1.5px solid var(--vf-green-200, #b7e0bd);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-green-600);
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}
.bulk-import-btn:hover {
    background: var(--vf-green-50);
    border-color: var(--vf-green-400, #5cb567);
}
.bulk-import-btn svg { flex-shrink: 0; }
[data-theme="dark"] .bulk-import-btn {
    background: var(--vf-gray-100);
    border-color: var(--vf-green-700, #2f6b38);
    color: var(--vf-green-400);
}

/* Bulk import progress sheet */
.bulk-import-sheet {
    background: var(--vf-white);
    border-radius: var(--radius-2xl, 24px);
    padding: var(--space-6);
    width: min(92vw, 380px);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.bulk-import-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--vf-green-50);
    color: var(--vf-green-600);
}
.bulk-import-title { font-size: var(--text-lg); font-weight: 700; color: var(--vf-gray-900); margin-bottom: var(--space-1); }
.bulk-import-subtitle { font-size: var(--text-sm); color: var(--vf-gray-500); margin-bottom: var(--space-4); }
.bulk-import-progress {
    width: 100%;
    height: 8px;
    background: var(--vf-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.bulk-import-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
.bulk-import-progress-bar.error { background: var(--vf-error, #ef4444); }
.bulk-import-result { margin-top: var(--space-3); font-size: var(--text-sm); }
.bulk-import-failed { color: var(--vf-amber-700, #b45309); font-weight: 600; }
[data-theme="dark"] .bulk-import-sheet { background: var(--vf-gray-100); }
[data-theme="dark"] .bulk-import-icon { background: rgba(61,145,71,0.15); }

.bulk-pick-sheet {
    background: var(--vf-white);
    border-radius: var(--radius-2xl, 24px);
    padding: var(--space-5) var(--space-5) var(--space-4);
    width: min(92vw, 400px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.bulk-pick-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--vf-gray-900);
    margin: 0 0 var(--space-1);
    text-align: center;
}
.bulk-pick-subtitle {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    margin: 0 0 var(--space-4);
    text-align: center;
    line-height: 1.4;
}
.bulk-pick-list {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    background: var(--vf-gray-50);
}
.bulk-pick-list:not(.hidden) { display: block; }
.bulk-pick-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--vf-gray-200);
    font-size: var(--text-xs);
    color: var(--vf-gray-700);
}
.bulk-pick-list-item:last-child { border-bottom: none; }
.bulk-pick-list-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.bulk-pick-list-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--vf-gray-200);
    color: var(--vf-gray-600);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.bulk-pick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.bulk-pick-cancel {
    border: none;
    background: transparent;
    color: var(--vf-gray-500);
    font-size: var(--text-sm);
    padding: var(--space-2);
    cursor: pointer;
}
[data-theme="dark"] .bulk-pick-sheet { background: var(--vf-gray-100); }
[data-theme="dark"] .bulk-pick-list { background: var(--vf-gray-200); border-color: var(--vf-gray-300); }
[data-theme="dark"] .bulk-pick-list-item { border-bottom-color: var(--vf-gray-300); }

/* Quick-processing header (after bulk import) */
.quick-process-bar {
    background: var(--vf-green-50);
    border: 1px solid var(--vf-green-200, #b7e0bd);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}
.quick-process-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.quick-process-step { font-size: var(--text-sm); font-weight: 700; color: var(--vf-green-700, #2f6b38); }
.quick-process-file {
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
}
.quick-process-progress {
    height: 6px;
    background: rgba(61,145,71,0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.quick-process-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
[data-theme="dark"] .quick-process-bar {
    background: rgba(61,145,71,0.12);
    border-color: var(--vf-green-700, #2f6b38);
}

/* "Needs details" badge on day-list cards */
.needs-details-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
    background: var(--vf-amber-100, #fef3c7);
    color: var(--vf-amber-700, #b45309);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.food-card-needs-details {
    position: relative;
    border: 1px dashed var(--vf-amber-300, #fcd34d);
}
.food-card-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--vf-gray-600);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.food-card-delete:hover {
    background: #fff;
    color: var(--vf-error, #ef4444);
    transform: scale(1.05);
}
.food-card-delete:active { transform: scale(0.95); }
[data-theme="dark"] .food-card-delete {
    background: rgba(30, 30, 30, 0.88);
    color: var(--vf-gray-300);
}
[data-theme="dark"] .food-card-delete:hover {
    background: rgba(40, 40, 40, 0.95);
    color: #f87171;
}
[data-theme="dark"] .needs-details-badge {
    background: rgba(180,83,9,0.2);
    color: var(--vf-amber-400, #fbbf24);
}

/* Ingredient set suggestions */
.ingredient-sets {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.ingredient-sets-heading {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vf-green-600);
    margin-bottom: calc(var(--space-1) * -1);
}
.ingredient-set-card {
    border: 1px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    background: var(--vf-gray-50, #f9fafb);
}
.ingredient-set-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.ingredient-set-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--vf-gray-800, #1f2937);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ingredient-set-add {
    flex-shrink: 0;
    padding: var(--space-1) var(--space-3);
    background: var(--vf-green-500);
    border: none;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast);
}
.ingredient-set-add:hover { background: var(--vf-green-600); }
.ingredient-set-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.ingredient-set-chip {
    padding: 0.2rem 0.6rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--vf-gray-600);
}
.ingredient-set-chip.is-added {
    background: var(--vf-green-50);
    border-color: var(--vf-green-300, #86c98f);
    color: var(--vf-green-600);
    opacity: 0.7;
}
[data-theme="dark"] .ingredient-set-card {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}
[data-theme="dark"] .ingredient-set-chip {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-400);
}
