
.application-demo-interface.nice-ft-original-hidden {
    display: none !important;
}

.nice-foodtruth-runtime {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: inherit;
    color: #12352b;
}

.nice-ft-upload-card {
    border: 1px solid #d7e5df;
    border-radius: 24px;
    padding: 18px;
    background: #fff;
}

.nice-ft-uploader {
    width: 100%;
    min-height: 310px;
    border: 2px dashed #9ee4cf;
    border-radius: 24px;
    background: #f8fcfa;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.nice-ft-uploader img {
    width: 100%;
    height: 430px;
    display: block;
    object-fit: cover;
}

.nice-ft-upload-empty {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #17694f;
}

.nice-ft-upload-empty strong {
    font-size: 20px;
}

.nice-ft-upload-empty small {
    color: #71857e;
}

.nice-ft-replace {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 16px;
    padding: 12px 18px;
    color: #fff;
    background: rgba(4, 37, 29, .88);
    font-weight: 700;
}

.nice-ft-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.nice-ft-analyze {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 16px;
    background: #d2f477;
    color: #113c2f;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.nice-ft-analyze:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.nice-ft-status {
    margin-top: 10px;
    min-height: 22px;
    font-size: 13px;
    color: #687d75;
}

.nice-ft-status.working {
    color: #187756;
    font-weight: 700;
}

.nice-ft-status.error {
    color: #a63f3f;
    font-weight: 700;
}

.nice-ft-result {
    display: none;
    overflow: hidden;
    border: 1px solid #d5e2dd;
    border-radius: 26px;
    background: #fff;
}

.nice-ft-result.visible {
    display: block;
}

.nice-ft-result-hero {
    padding: 30px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    background: #215d46;
    color: #fff;
}

.nice-ft-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #d8fa7d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nice-ft-result-hero h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    color: #fff;
}

.nice-ft-description {
    margin: 12px 0 0;
    max-width: 760px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.5;
}

.nice-ft-confidence {
    min-width: 160px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 17px;
    background: rgba(255,255,255,.09);
    text-align: center;
}

.nice-ft-confidence small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.75);
}

.nice-ft-confidence strong {
    display: block;
    color: #d8fa7d;
    font-size: 17px;
}

.nice-ft-result-body {
    padding: 30px 34px 34px;
}

.nice-ft-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 12px;
}

.nice-ft-stat {
    min-height: 118px;
    padding: 18px;
    border-radius: 18px;
    background: #f2f6f3;
}

.nice-ft-stat small {
    display: block;
    margin-bottom: 9px;
    color: #6d8279;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nice-ft-stat strong {
    display: block;
    color: #123b2f;
    font-size: 25px;
    line-height: 1.15;
}

.nice-ft-stat span {
    display: block;
    margin-top: 7px;
    color: #72877f;
    font-size: 12px;
}

.nice-ft-top-details {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 16px;
}

.nice-ft-detail-card {
    padding: 18px;
    border-radius: 18px;
    background: #edf3ef;
}

.nice-ft-detail-card small {
    display: block;
    margin-bottom: 7px;
    color: #6a8177;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nice-ft-detail-card strong {
    color: #123b2f;
    font-size: 16px;
}

.nice-ft-two-column {
    display: grid;
    grid-template-columns: 1.55fr .9fr;
    gap: 18px;
    margin-top: 22px;
}

.nice-ft-panel {
    border: 1px solid #d8e5df;
    border-radius: 22px;
    padding: 26px;
    background: #fffefa;
}

.nice-ft-panel h3 {
    margin: 0 0 18px;
    color: #143c30;
    font-size: 22px;
}

.nice-ft-component {
    padding: 14px 0;
    border-bottom: 1px solid #dfe8e4;
}

.nice-ft-component:last-child {
    border-bottom: none;
}

.nice-ft-component-main {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #163d31;
    font-weight: 800;
}

.nice-ft-component-meta {
    margin-top: 4px;
    color: #73877f;
    font-size: 13px;
}

.nice-ft-health-note {
    margin-bottom: 11px;
    padding: 14px 16px;
    border-radius: 15px;
    background: #e7f1ed;
    color: #244a3e;
    line-height: 1.45;
}

.nice-ft-allergen {
    margin-bottom: 11px;
    padding: 14px 16px;
    border-radius: 15px;
    background: #f6dddd;
    color: #893c3c;
}

.nice-ft-safe-note {
    padding: 14px 16px;
    border-radius: 15px;
    background: #edf3ef;
    color: #567067;
}

.nice-ft-source-text {
    padding: 16px;
    border-radius: 16px;
    background: #e8f1ed;
    color: #294d41;
    line-height: 1.5;
}

.nice-ft-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}

.nice-ft-chip {
    padding: 8px 11px;
    border-radius: 11px;
    background: #edf3ef;
    color: #184333;
    font-size: 12px;
    font-weight: 800;
}

.nice-ft-save-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.nice-ft-secondary-btn,
.nice-ft-save-btn {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.nice-ft-secondary-btn {
    border: 1px solid #cadbd4;
    color: #184333;
    background: #fff;
}

.nice-ft-save-btn {
    border: 1px solid #d2f477;
    background: #d2f477;
    color: #153b30;
}

.nice-ft-fda {
    margin-top: 26px;
    border: 1px solid #d5e2dd;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
}

.nice-ft-fda-header {
    padding: 25px 28px 17px;
}

.nice-ft-fda-header small {
    color: #607a70;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.nice-ft-fda-header h3 {
    margin: 7px 0 0;
    font-size: 27px;
    color: #113a2e;
}

.nice-ft-table-wrap {
    overflow-x: auto;
}

.nice-ft-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.nice-ft-table th {
    padding: 15px 18px;
    background: #edf3ef;
    color: #536f64;
    text-align: left;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nice-ft-table td {
    padding: 16px 18px;
    border-top: 1px solid #dbe6e1;
    color: #183b31;
}

.nice-ft-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.nice-ft-low {
    background: #dff1e6;
    color: #23704e;
}

.nice-ft-moderate {
    background: #f6ecd5;
    color: #7d5b27;
}

.nice-ft-high {
    background: #f5dada;
    color: #9a4444;
}

.nice-ft-neutral {
    background: #edf1ef;
    color: #466057;
}

.nice-ft-fda-note {
    padding: 17px 28px 23px;
    color: #698078;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .nice-ft-result-hero {
        grid-template-columns: 1fr;
    }

    .nice-ft-confidence {
        max-width: 220px;
    }

    .nice-ft-overview-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .nice-ft-top-details {
        grid-template-columns: 1fr;
    }

    .nice-ft-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .nice-ft-result-body,
    .nice-ft-result-hero {
        padding: 22px 18px;
    }

    .nice-ft-overview-grid {
        grid-template-columns: 1fr;
    }

    .nice-ft-uploader img {
        height: 300px;
    }

    .nice-ft-save-row {
        flex-direction: column;
    }

    .nice-ft-secondary-btn,
    .nice-ft-save-btn {
        width: 100%;
    }
}


/* ================================================================
   FOODTRUTH_DELAY_UX_V3
   ================================================================ */

.nice-ft-upload-card {
    position: relative;
}

.nice-ft-working-layer {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 24px;
    background:
        rgba(247, 252, 249, .94);
    backdrop-filter:
        blur(10px);
    -webkit-backdrop-filter:
        blur(10px);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .22s ease;
}

.nice-ft-working-layer.visible {
    opacity: 1;
    pointer-events: auto;
}

.nice-ft-working-inner {
    width: min(440px, 100%);
    text-align: center;
}

.nice-ft-spinner-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
}

.nice-ft-spinner {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    border:
        5px solid
        rgba(31, 111, 82, .12);

    border-top-color:
        #2d9a72;

    border-right-color:
        #9be35f;

    animation:
        niceFtSpin .85s linear infinite;
}

.nice-ft-ai-pulse {
    position: absolute;
    inset: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #164d3b;

    color:
        #d9fa79;

    font-size:
        17px;

    font-weight:
        900;

    box-shadow:
        0 0 0 0
        rgba(70, 172, 125, .25);

    animation:
        niceFtPulse 1.6s ease-out infinite;
}

.nice-ft-working-inner > strong {
    display: block;

    margin-bottom: 7px;

    color:
        #133f32;

    font-size:
        20px;

    line-height:
        1.25;
}

.nice-ft-working-detail {
    color:
        #668078;
}

#nice-ft-working-detail {
    display: block;

    min-height:
        42px;

    color:
        #667e76;

    font-size:
        13px;

    line-height:
        1.5;
}

.nice-ft-progress-track {
    width: 100%;
    height: 8px;

    margin-top:
        19px;

    overflow:
        hidden;

    border-radius:
        999px;

    background:
        #dfeae5;
}

.nice-ft-progress-bar {
    width: 4%;
    height: 100%;

    border-radius:
        inherit;

    background:
        linear-gradient(
            90deg,
            #287d60,
            #79c86a,
            #cef376
        );

    transition:
        width .4s ease;
}

.nice-ft-working-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-top:
        9px;

    color:
        #71877e;

    font-size:
        11px;

    font-weight:
        700;
}

.nice-ft-working-layer.success
.nice-ft-spinner {
    animation:
        none;

    border-color:
        #7bcf74;
}

.nice-ft-working-layer.success
.nice-ft-ai-pulse {
    background:
        #2b835f;
}

@keyframes niceFtSpin {

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes niceFtPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(70,172,125,.28);
    }

    70% {
        box-shadow:
            0 0 0 14px
            rgba(70,172,125,0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(70,172,125,0);
    }
}


/*
 * Small runtime marker.
 * It confirms visually that the NEW demo runtime has mounted.
 */

.nice-foodtruth-runtime::before {
    content:
        "LIVE AI DEMO";

    align-self:
        flex-start;

    margin-bottom:
        -8px;

    padding:
        6px 10px;

    border-radius:
        999px;

    background:
        #e6f7ef;

    color:
        #17704f;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        .09em;
}

@media (prefers-reduced-motion: reduce) {

    .nice-ft-spinner,
    .nice-ft-ai-pulse {
        animation:
            none !important;
    }
}



/* FOODTRUTH_HTTP_ERROR_GUARD_CSS_V1 */

.nice-ft-http-error {
    width: 100%;
    box-sizing: border-box;
    padding: 38px 30px;
    border: 1px solid #dce8e3;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    color: #123f32;
}

.nice-ft-http-error-icon {
    display: flex;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0df;
    color: #ae5d22;
    font-size: 32px;
    font-weight: 900;
}

.nice-ft-http-error h3 {
    margin: 0 0 12px;
    color: #123f32;
    font-size: 26px;
    line-height: 1.2;
}

.nice-ft-http-error p {
    max-width: 580px;
    margin: 0 auto 16px;
    color: #687f76;
    font-size: 15px;
    line-height: 1.6;
}

.nice-ft-http-error-info {
    max-width: 520px;
    margin: 15px auto 0;
    padding: 13px 16px;
    border-radius: 13px;
    background: #fff4df;
    color: #8a6225;
    font-weight: 800;
}

.nice-ft-http-error-meta {
    margin-top: 12px;
    color: #667d74;
    font-size: 13px;
    font-weight: 700;
}

.nice-ft-http-error-code {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #edf3f0;
    color: #71847d;
    font-size: 11px;
    font-weight: 800;
}

.nice-ft-http-error-reset {
    display: block;
    min-height: 48px;
    margin: 22px auto 0;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: #cef279;
    color: #123e31;
    font-weight: 900;
    cursor: pointer;
}

#nice-ft-http-error-toast {
    position: fixed;
    z-index: 2147483647;
    right: 24px;
    bottom: 24px;
    width: min(440px, calc(100vw - 48px));
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border-radius: 24px;
}


/* FOODTRUTH_SUCCESS_RENDER_BRIDGE_CSS_V1 */

.ft-success-result {
    width: 100%;
    box-sizing: border-box;
    padding: 26px;
    color: #123f32;
    background: #fff;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.ft-success-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ft-success-live {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e0f8ec;
    color: #127351;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ft-success-engine {
    color: #7b8f88;
    font-size: 11px;
    font-weight: 800;
}

.ft-success-heading {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
}

.ft-success-eyebrow,
.ft-success-section-head span {
    display: block;
    margin-bottom: 7px;
    color: #76958b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
}

.ft-success-heading h2 {
    margin: 0;
    color: #103f33;
    font-size: 28px;
    line-height: 1.15;
}

.ft-success-heading p {
    max-width: 640px;
    margin: 10px 0 0;
    color: #698078;
    font-size: 14px;
    line-height: 1.55;
}

.ft-success-confidence {
    flex: 0 0 auto;
    min-width: 125px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f2f7f5;
    text-align: right;
}

.ft-success-confidence span {
    display: block;
    color: #80928c;
    font-size: 10px;
    font-weight: 700;
}

.ft-success-confidence strong {
    display: block;
    margin-top: 4px;
    color: #173f34;
    font-size: 14px;
}

.ft-success-metrics {
    display: grid;
    grid-template-columns:
        1.35fr repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.ft-success-metric {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e0ebe7;
    border-radius: 15px;
    background: #f8fbfa;
}

.ft-success-calories {
    background: #eff9e3;
    border-color: #d5e9b0;
}

.ft-success-metric span {
    display: block;
    color: #748981;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ft-success-metric strong {
    display: block;
    margin-top: 6px;
    color: #123f32;
    font-size: 18px;
    line-height: 1.2;
}

.ft-success-calories strong {
    font-size: 21px;
}

.ft-success-metric small {
    display: block;
    margin-top: 3px;
    color: #80928c;
    font-size: 9px;
}

.ft-success-section {
    margin-top: 17px;
    padding: 19px;
    border: 1px solid #e0eae7;
    border-radius: 17px;
    background: #fff;
}

.ft-success-section-head h3 {
    margin: 0;
    color: #163f34;
    font-size: 17px;
}

.ft-success-components {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.ft-success-component {
    padding: 13px;
    border-radius: 13px;
    background: #f6f9f8;
}

.ft-success-component strong {
    display: block;
    color: #174537;
    font-size: 13px;
}

.ft-success-component span {
    display: block;
    margin-top: 4px;
    color: #71867e;
    font-size: 11px;
}

.ft-success-component small {
    display: block;
    margin-top: 5px;
    color: #476c60;
    font-size: 10px;
    font-weight: 800;
}

.ft-success-two-col {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ft-success-list {
    margin: 13px 0 0;
    padding-left: 18px;
    color: #5f766e;
    font-size: 12px;
    line-height: 1.6;
}

.ft-success-list li + li {
    margin-top: 6px;
}

.ft-success-empty {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f9f8;
    color: #80918c;
    font-size: 11px;
}

.ft-success-fda-note {
    margin: 11px 0 0;
    color: #71867e;
    font-size: 11px;
    line-height: 1.55;
}

.ft-success-table-wrap {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid #e0eae7;
    border-radius: 13px;
}

.ft-success-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 10px;
}

.ft-success-table th,
.ft-success-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #e8efec;
    text-align: left;
    vertical-align: top;
}

.ft-success-table th {
    background: #f3f8f6;
    color: #59736a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ft-success-table td {
    color: #526c63;
}

.ft-success-table tr:last-child td {
    border-bottom: 0;
}

.ft-success-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.ft-success-sources a,
.ft-success-sources span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6f2;
    color: #2e6653;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.ft-success-disclaimer {
    margin: 13px 0 0;
    color: #788b84;
    font-size: 10px;
    line-height: 1.55;
}

.ft-success-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.ft-success-another {
    min-height: 45px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: #c9f36b;
    color: #123f32;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {

    .ft-success-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ft-success-two-col,
    .ft-success-components {
        grid-template-columns: 1fr;
    }

    .ft-success-heading {
        display: block;
    }

    .ft-success-confidence {
        margin-top: 14px;
        text-align: left;
    }
}

@media (max-width: 560px) {

    .ft-success-result {
        padding: 18px;
    }

    .ft-success-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .ft-success-calories {
        grid-column: 1 / -1;
    }
}
