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

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #2a2a2a;
            color: #ffffff;
            padding: 24px 32px 15px 32px;
            line-height: 1.4;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 48px;
            row-gap: 16px;
        }

        .left-column,
        .right-column {
            display: contents;
        }

        .left-column > .section-title {
            grid-column: 1;
            grid-row: 1;
            align-self: end;
        }

        .right-column > .section-title {
            grid-column: 2;
            grid-row: 1;
            align-self: end;
        }

        .left-column > .table-container {
            grid-column: 1;
            grid-row: 2;
        }

        .right-column > .table-container {
            grid-column: 2;
            grid-row: 2;
        }

        /* MOBILE RESPONSIVE */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .left-column,
            .right-column {
                display: block;
            }
            
            .right-column {
                padding-left: 0;
                margin-left: 0;
            }
            
            .left-column, .right-column {
                padding-left: 0;
                padding-right: 0;
            }
        }

        .section-title {
            font-family: 'Georgia', serif;
            font-size: 18px;
            font-weight: bold;
            letter-spacing: 0.2px;
            margin-bottom: 16px;
            color: #ffffff;
            line-height: 1.3;
            min-height: 2.6em;
        }

        /* MOBILE: Larger title text */
        @media (max-width: 768px) {
            .section-title {
                font-size: 16px;
                margin-bottom: 20px;
                text-align: center;
            }
        }

        .table-container {
            background-color: #2a2a2a;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        /* MOBILE: Match annual table sizing */
        @media (max-width: 768px) {
            table {
                font-size: 12px;
            }
        }

        th {
            background-color: #3a3a3a;
            padding: 8px 12px;
            text-align: left;
            font-weight: bold;
            border: 1px solid #4a4a4a;
            font-size: 12px;
        }

        /* MOBILE: Match annual table header sizing */
        @media (max-width: 768px) {
            th {
                font-size: 12px;
                padding: 6px 4px;
                text-align: center;
            }
        }

        td {
            padding: 0;
            border: 1px solid #4a4a4a;
            background-color: #2a2a2a;
        }

        /* MOBILE: Match annual table cell sizing */
        @media (max-width: 768px) {
            td {
                padding: 6px 4px;
                text-align: center;
                font-size: 12px;
            }
        }

        .food-item-input {
            background: transparent;
            border: none;
            border-radius: 0;
            appearance: none;
            box-shadow: none;
            color: #ffffff;
            width: 100%;
            display: block;
            font-size: 13px;
            outline: none;
            font-family: 'Poppins', sans-serif;
            padding: 8px 12px;
        }

        tr:not(.meal-header):not(.total-row) td:focus-within {
            background-color: #333333;
        }

        tr:not(.meal-header):not(.total-row) td:focus-within .food-item-input {
            background: transparent;
            box-shadow: none;
        }

        tr:not(.meal-header):not(.total-row):hover td {
            background-color: #303030;
        }

        /* MOBILE: Match annual table input sizing */
        @media (max-width: 768px) {
            .food-item-input {
                font-size: 13px;
                padding: 4px 2px;
                min-height: 28px;
                text-align: left;
            }
        }

        .points-cell,
        .total-row td {
            padding: 8px 12px;
        }

        .points-cell {
            width: 80px;
            text-align: center;
            color: #ffffff;
        }

        /* MOBILE: Slightly wider points column */
        @media (max-width: 768px) {
            .points-cell {
                width: 90px;
            }
        }

        .meal-header {
            background-color: #2a2a2a;
            font-weight: bold;
            color: #ffffff;
            font-size: 13px;
        }

        /* MOBILE: Match table sizing */
        @media (max-width: 768px) {
            .meal-header {
                font-size: 12px;
            }
        }

        .meal-header input {
            background: transparent;
            border: none;
            color: #ffffff;
            font-weight: bold;
            width: 100%;
            display: block;
            outline: none;
            font-family: 'Poppins', sans-serif;
            font-size: 13px;
            padding: 8px 12px;
            cursor: default;
            user-select: none;
        }

        .meal-header input:read-only {
            pointer-events: none;
            opacity: 1;
        }

        /* MOBILE: Match table sizing */
        @media (max-width: 768px) {
            .meal-header input {
                font-size: 12px;
                min-height: 28px;
                padding: 4px 2px;
            }
        }

        .calculate-button {
            background-color: #660000;
            color: white;
            border: none;
            padding: 12px 22px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 16px;
            letter-spacing: 0.4px;
            border-radius: 4px;
        }

        /* MOBILE: Much larger, more touch-friendly button */
        @media (max-width: 768px) {
            .calculate-button {
                width: 100%;
                padding: 16px 20px;
                font-size: 16px;
                margin-top: 20px;
                min-height: 50px;
            }
        }

        .calculate-button:hover {
            background-color: #aa0000;
        }

        .total-row {
            background-color: #2a2a2a;
            font-weight: bold;
        }

        .annual-table {
            margin-top: 0px;
        }

        .annual-table th {
            font-size: 12px;
            padding: 8px 12px;
        }

        .annual-table td {
            padding: 8px 12px;
            font-size: 13px;
        }

        /* MOBILE: Responsive annual table */
        @media (max-width: 768px) {
            .annual-table th {
                font-size: 12px;
                padding: 6px 4px;
                text-align: center;
            }
        }

        /* MOBILE: Larger annual table text */
        @media (max-width: 768px) {
            .annual-table td {
                font-size: 12px;
                padding: 6px 4px;
                text-align: center;
            }
        }


        .summary {
            margin-top: 15px;
            font-size: 12px;
        }

        /* MOBILE: Larger summary text */
        @media (max-width: 768px) {
            .summary {
                font-size: 14px;
                margin-top: 20px;
            }
        }

        .summary ul {
            list-style: none;
            padding-left: 20px;
        }

        .summary li:before {
            content: "• ";
            margin-right: 5px;
        }

        .right-column {
            padding-left: 0;
        }

        .daily-score, .annual-total, .equivalent-time {
            text-align: center;
        }

        .empty-cell {
            color: #666;
        }

        /* MOBILE: Better spacing for annual calculations table */
        @media (max-width: 768px) {
            .annual-table {
                font-size: 11px;
            }
            
            .annual-table th:last-child {
                font-size: 10px;
            }
        }

        /* MOBILE: Consistent table container styling */
        @media (max-width: 768px) {
            .table-container {
                overflow-x: auto;
                margin: 0;
                padding: 0;
            }
            
            table {
                min-width: 100%;
                width: 100%;
            }
        }

        /* LOGO STYLING */
        .logo-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0 10px 0;
        }

        .logo {
            height: 50px;
            width: auto;
            display: block;
        }

        /* MOBILE: Logo styling */
        @media (max-width: 768px) {
            .logo-container {
                text-align: center;
                padding: 15px 10px 10px 10px;
            }

            .logo {
                height: 60px;
                width: auto;
                display: block;
                margin: 0 auto;
            }
        }

/* LEGAL DISCLOSURES STYLING */
    .legal-disclosures-section {
        margin-top: 60px;
        padding: 40px 0;
        background-color: #1a1a1a;
        border-top: 1px solid #3a3a3a;
        text-align: center;
    }

    .disclosures-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    .disclaimer-title {
        font-family: 'Georgia', serif;
        font-size: 18px;
        font-weight: bold;
        color: #ffffff;
        margin-bottom: 15px;
        text-align: center;
        letter-spacing: 0.3px;
    }

    .section-subtitle {
        font-family: 'Georgia', serif;
        font-size: 14px;
        font-weight: bold;
        color: #cccccc;
        margin: 25px 0 10px 0;
        letter-spacing: 0.2px;
        text-align: left;
    }

    .disclaimer-text {
        font-size: 12px;
        color: #aaaaaa;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: left;
    }

    .disclaimer-text strong {
        color: #cccccc;
        font-weight: 600;
    }

    .primary-disclaimer {
        background-color: #2a2a2a;
        padding: 20px;
        border: 1px solid #4a4a4a;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .primary-disclaimer .disclaimer-text {
        color: #ffffff;
        font-size: 13px;
        text-align: center;
    }

    /* Toggle Button Styling */
    .toggle-button-container {
        text-align: center;
        margin: 20px 0;
    }

    .disclosure-toggle {
        background-color: #3a3a3a;
        color: #ffffff;
        border: 1px solid #4a4a4a;
        padding: 12px 20px;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 4px;
        font-family: 'Poppins', sans-serif;
        transition: background-color 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .disclosure-toggle:hover {
        background-color: #4a4a4a;
    }

    .toggle-arrow {
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .toggle-arrow.expanded {
        transform: rotate(180deg);
    }

    /* Collapsible Content */
    .disclosure-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        text-align: left;
    }

    .disclosure-content.expanded {
        max-height: 3000px;
        transition: max-height 0.6s ease-in;
    }

    .medical-disclaimer,
    .methodology-disclaimer,
    .affiliate-disclaimer,
    .privacy-disclaimer,
    .limitations-disclaimer,
    .terms-summary,
    .contact-disclaimer {
        margin-bottom: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #2a2a2a;
    }

    /* Footer Section */
    .footer-section {
        border-top: 1px solid #3a3a3a;
        padding-top: 20px;
        margin-top: 30px;
        text-align: center;
    }

    .footer-section a {
        text-decoration: none;
    }

    .footer-section a:hover {
        text-decoration: underline;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .legal-disclosures-section {
            margin-top: 40px;
            padding: 30px 0;
        }
        
        .disclosures-content {
            padding: 0 15px;
        }
        
        .disclaimer-title {
            font-size: 16px;
        }
        
        .section-subtitle {
            font-size: 13px;
        }
        
        .disclaimer-text {
            font-size: 11px;
        }
        
        .primary-disclaimer .disclaimer-text {
            font-size: 12px;
        }
        
        .disclosure-toggle {
            padding: 14px 18px;
            font-size: 12px;
            width: 100%;
            max-width: 300px;
        }
        
        .toggle-arrow {
            font-size: 10px;
        }
    }

    /* Print Styles */
    @media print {
        .legal-disclosures-section {
            background-color: white !important;
            color: black !important;
        }
        
        .disclaimer-text,
        .section-subtitle,
        .disclaimer-title {
            color: black !important;
        }
        
        .disclosure-content {
            max-height: none !important;
            overflow: visible !important;
        }
        
        .disclosure-toggle {
            display: none;
        }
    }

/* Modal Base Styles */
    .info-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(3px);
    }

    .modal-content {
        position: relative;
        background-color: #2a2a2a;
        border: 1px solid #4a4a4a;
        border-radius: 8px;
        padding: 35px;
        max-width: 600px;
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 10001;
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
    }

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

    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #888888;
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 35px;
        height: 35px;
        transition: color 0.2s;
        z-index: 10002;
    }

    .modal-close:hover {
        color: #ffffff;
    }

    .modal-section-title {
        font-family: 'Georgia', serif;
        font-size: 16px;
        margin-top: 25px;
        margin-bottom: 12px;
        color: #ffffff;
        border-bottom: 1px solid #4a4a4a;
        padding-bottom: 8px;
    }

    .modal-text {
        font-size: 12px;
        line-height: 1.6;
        color: #cccccc;
        margin-bottom: 15px;
    }

    .modal-text strong {
        color: #ffffff;
        font-weight: 600;
    }

    /* Custom Scrollbar for Modals */
    .modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .modal-content::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background: #4a4a4a;
        border-radius: 4px;
    }

    .modal-content::-webkit-scrollbar-thumb:hover {
        background: #666666;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .info-modal {
            padding: 10px;
        }
        
        .modal-content {
            padding: 25px 20px;
            max-width: 100%;
            max-height: 90vh;
        }
        
        .modal-close {
            top: 10px;
            right: 10px;
            font-size: 28px;
        }
        
        .modal-section-title {
            font-size: 15px;
        }
        
        .modal-text {
            font-size: 11px;
        }
    }

    /* Prevent body scroll when modal open */
    body.modal-open {
        overflow: hidden;
    }

    /* AUTOCOMPLETE SUGGESTIONS STYLING */
    .autocomplete-suggestions {
        position: absolute;
        background-color: #1a1a1a;
        border: 1px solid #4a4a4a;
        border-top: none;
        border-radius: 0 0 4px 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .autocomplete-suggestion {
        padding: 8px 12px;
        cursor: pointer;
        font-size: 13px;
        color: #cccccc;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .autocomplete-suggestion:last-child {
        border-bottom: none;
    }
    
    .autocomplete-suggestion:hover,
    .autocomplete-suggestion.selected {
        background-color: #3a3a3a;
        color: #ffffff;
    }
    
    .autocomplete-match {
        font-weight: 600;
        color: #88cc88;
    }
    
    .autocomplete-suggestions::-webkit-scrollbar {
        width: 6px;
    }
    
    .autocomplete-suggestions::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    .autocomplete-suggestions::-webkit-scrollbar-thumb {
        background: #4a4a4a;
        border-radius: 3px;
    }

.tagline {
    max-width: 1200px;
    margin: 0 auto 28px auto;
    font-size: 14px;
    color: #aaaaaa;
}

.helper-text {
    margin-top: 10px;
    font-size: 12px;
    color: #888888;
    line-height: 1.5;
}

.empty-result {
    color: #666666;
    text-align: center;
}

.empty-summary {
    color: #888888;
}


.status-message {
    margin-top: 10px;
    font-size: 12px;
    color: #aaaaaa;
    min-height: 1.2em;
}

.status-message.error {
    color: #cc8888;
}

.calculate-button:disabled {
    background-color: #444444;
    cursor: not-allowed;
    opacity: 0.7;
}

.calculate-button:disabled:hover {
    background-color: #444444;
}

.unrecognized-score {
    color: #888888;
}

.footer-links {
    text-align: center;
    font-size: 11px;
    color: #888888;
}

@media (max-width: 768px) {
    .tagline {
        text-align: center;
        padding: 0 10px;
    }
}