.inspection-page { min-height: 100vh; background: #f7f8f9; }
.mobile-detail-header, .mobile-info-grid, .mobile-ingredient-list, .mobile-conclusion-actions, .mobile-bottom-nav { display: none; }
.desktop-detail-header {
    min-height: 108px;
    padding: 18px clamp(20px, 2vw, 30px) 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--bb-border);
}
.desktop-detail-header > *:first-child { min-width: 0; }
.detail-heading > p { margin: 0 0 10px; color: #636b75; font-size: 13px; }
.detail-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title-row h1 { margin: 0 8px 0 0; font-size: clamp(22px, 1.75vw, 27px); line-height: 1.2; font-weight: 700; }
.step-chip { padding: 6px 13px; border: 1px solid #97ceb0; border-radius: 5px; color: #086d35; background: #f7fdf9; font-size: 12px; font-weight: 700; }
.checking-chip, .mobile-checking-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--bb-primary-soft); color: #075f30; font-size: 12px; font-weight: 600; }
.checking-chip i, .mobile-checking-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.desktop-detail-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 12px; }
.desktop-detail-actions .bb-btn { min-height: 42px; padding-inline: 18px; }

.inspection-layout {
    width: 100%;
    padding: 16px clamp(18px, 2vw, 28px) 18px;
}
.inspection-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 25vw, 370px);
    gap: 16px;
    align-items: start;
}
.inspection-main-column { min-width: 0; display: grid; gap: 14px; }
.inspection-card { border: 1px solid var(--bb-border); border-radius: var(--bb-radius); background: #fff; box-shadow: var(--bb-shadow); }
.inspection-card h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.inspection-info-card { padding: 14px 16px 15px; }
.inspection-info-card h2 { margin-bottom: 12px; }
.desktop-info-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 14px; }
.desktop-info-grid label { min-width: 0; margin: 0; }
.desktop-info-grid label > span:first-child { display: block; margin-bottom: 5px; color: #333943; font-size: 12px; }
.desktop-info-grid input, .desktop-info-grid select, .assessment-field input, .assessment-field select, .assessment-field textarea, .conclusion-note textarea {
    width: 100%; border: 1px solid #cfd4da; border-radius: 5px; background: #fff; color: var(--bb-text); outline: 0;
}
.desktop-info-grid input, .desktop-info-grid select { height: 34px; padding: 6px 9px; }
.desktop-info-grid input[readonly] { background: #fafbfc; }
.desktop-info-grid input:focus, .desktop-info-grid select:focus, .assessment-field input:focus, .assessment-field select:focus, .assessment-field textarea:focus, .conclusion-note textarea:focus { border-color: var(--bb-primary); box-shadow: 0 0 0 3px rgba(8,117,56,.09); }
.desktop-info-grid .field-provider { grid-column: span 2; }
.control-with-icon { position: relative; display: block; }
.control-with-icon svg { position: absolute; top: 9px; left: 9px; width: 16px; height: 16px; color: #68717b; }
.control-with-icon input { padding-left: 31px; }

.inspection-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.inspection-summary article { min-height: 76px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--bb-border); border-radius: 7px; background: #fff; box-shadow: var(--bb-shadow); }
.inspection-summary article > span:last-child { order: -1; display: flex; flex-direction: column; }
.inspection-summary strong { color: #0b6131; font-size: 27px; line-height: 1.1; }
.inspection-summary small { color: #414750; font-size: 12px; }
.inspection-summary article:nth-child(3) strong { color: var(--bb-red); }
.inspection-summary article:nth-child(4) strong { color: var(--bb-orange); }
.summary-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.summary-icon svg { width: 24px; height: 24px; }
.summary-icon.total { color: var(--bb-blue); background: var(--bb-blue-soft); }
.summary-icon.passed { color: var(--bb-primary); background: var(--bb-primary-soft); }
.summary-icon.failed { color: var(--bb-red); background: #ffe6e7; }
.summary-icon.waiting { color: var(--bb-orange); background: var(--bb-orange-soft); }

.ingredient-list-card { min-width: 0; overflow: hidden; }
.ingredient-heading { min-height: 50px; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--bb-border); }
.ingredient-heading > div { display: flex; gap: 10px; }
.ingredient-heading .bb-btn { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.desktop-ingredient-table { overflow-x: auto; }
.desktop-ingredient-table table { width: 100%; min-width: 930px; table-layout: fixed; border-collapse: collapse; }
.desktop-ingredient-table th { padding: 8px 6px; background: #f7f8fa; border-bottom: 1px solid var(--bb-border); color: #282e36; font-size: 11px; line-height: 1.25; font-weight: 600; text-align: center; }
.desktop-ingredient-table th small { font-weight: 400; }
.desktop-ingredient-table td { height: 51px; padding: 5px 7px; border-right: 1px solid #e6e9ed; border-bottom: 1px solid #e6e9ed; font-size: 12px; line-height: 1.25; vertical-align: middle; }
.desktop-ingredient-table td:last-child { border-right: 0; }
.desktop-ingredient-table tbody tr:last-child td { border-bottom: 0; }
.desktop-ingredient-table th:nth-child(1) { width: 44px; }
.desktop-ingredient-table th:nth-child(2) { width: 165px; text-align: left; }
.desktop-ingredient-table th:nth-child(3) { width: 95px; }
.desktop-ingredient-table th:nth-child(4) { width: 65px; }
.desktop-ingredient-table th:nth-child(5) { width: 55px; }
.desktop-ingredient-table th:nth-child(6) { width: 145px; }
.desktop-ingredient-table th:nth-child(7) { width: 92px; }
.desktop-ingredient-table th:nth-child(8) { width: 88px; }
.desktop-ingredient-table th:nth-child(9) { width: 63px; }
.desktop-ingredient-table th:nth-child(10) { width: 72px; }
.desktop-ingredient-table td:nth-child(1), .desktop-ingredient-table td:nth-child(4), .desktop-ingredient-table td:nth-child(5), .desktop-ingredient-table td:nth-child(7), .desktop-ingredient-table td:nth-child(8), .desktop-ingredient-table td:nth-child(9), .desktop-ingredient-table td:nth-child(10) { text-align: center; }
.ingredient-row { cursor: pointer; transition: background .15s; }
.ingredient-row:hover { background: #f8fbf9; }
.ingredient-row.is-selected { background: #fff0f0; }
.food-thumbnail { width: 56px; height: 42px; border-radius: 6px; display: block; object-fit: cover; overflow: hidden; }
.food-thumbnail, .evidence-photo > svg { stroke: none; }
.assessment-badge { min-width: 70px; padding: 5px 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.assessment-badge.pass { color: #076f35; background: #e8f6ed; }
.assessment-badge.fail { color: var(--bb-red); background: #ffe9ea; border: 1px solid #ff9ba0; }
.row-actions { display: inline-flex; gap: 2px; }
.row-actions button { width: 28px; height: 28px; padding: 0; border: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #20252b; cursor: pointer; }
.row-actions button:hover { color: var(--bb-red); background: #fff; border-radius: 4px; }
.row-actions svg { width: 16px; height: 16px; }

.desktop-assessment-panel { position: sticky; top: 16px; padding: 15px 14px; }
.desktop-assessment-panel h2 { margin-bottom: 15px; }
.assessment-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assessment-identity > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.assessment-identity small, .evidence-section > small { color: #4f5660; font-size: 11px; }
.assessment-identity strong { color: var(--bb-red); }
.assessment-identity b { font-weight: 500; }
.desktop-assessment-panel hr { margin: 13px 0; border: 0; border-top: 1px solid var(--bb-border); }
.sensory-field, .conclusion-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.sensory-field legend { margin: 0 0 9px; border: 0; color: #22272d; font-size: 13px; font-weight: 700; }
.sensory-checks { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.sensory-checks label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; cursor: pointer; }
.sensory-checks input { position: absolute; opacity: 0; pointer-events: none; }
.sensory-checks label > span { width: 16px; height: 16px; border: 1px solid #b6bdc5; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: transparent; background: #fff; }
.sensory-checks label > span svg { width: 12px; height: 12px; stroke-width: 2.6; }
.sensory-checks input:checked + span { border-color: var(--bb-primary); background: var(--bb-primary); color: #fff; }
.sensory-checks input:focus-visible + span { outline: 3px solid rgba(8,117,56,.16); }
.result-toggle { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; }
.result-toggle button { height: 40px; border: 1px solid #cfd4da; background: #fff; cursor: pointer; }
.result-toggle button:first-child { border-radius: 5px 0 0 5px; }
.result-toggle button:last-child { margin-left: -1px; border-radius: 0 5px 5px 0; }
.result-toggle button.is-active { position: relative; z-index: 1; border-color: var(--bb-red); background: #fff4f4; color: var(--bb-red); font-weight: 700; }
.assessment-field { display: block; margin: 0 0 13px; }
.assessment-field > span:first-child, .conclusion-note > span:first-child { display: block; margin-bottom: 6px; color: #252a30; font-size: 12px; }
.assessment-field textarea, .conclusion-note textarea { min-height: 66px; padding: 8px 10px; resize: vertical; }
.assessment-field select, .assessment-field input { height: 36px; padding: 6px 9px; }
.quantity-control { display: grid !important; grid-template-columns: 1fr auto; }
.quantity-control input { border-radius: 5px 0 0 5px; }
.quantity-control i { min-width: 70px; margin-left: -1px; border: 1px solid #cfd4da; border-radius: 0 5px 5px 0; display: inline-flex; align-items: center; justify-content: center; background: #f7f8f9; color: #31373e; font-style: normal; }
.evidence-section { margin-top: 3px; }
.evidence-section > strong, .evidence-section > small { display: block; }
.evidence-section > strong { margin-bottom: 3px; font-size: 12px; }
.evidence-grid { margin-top: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.evidence-photo, .evidence-action { position: relative; min-width: 0; aspect-ratio: 1 / 1.12; border-radius: 6px; overflow: hidden; }
.evidence-photo { background: #c4c8c3; }
.evidence-photo > svg { width: 130%; height: 130%; transform: translate(-12%, -9%) rotate(-4deg); }
.evidence-tofu-two > svg { transform: translate(-7%, -12%) rotate(7deg) scale(1.05); }
.evidence-photo > button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #252a30; font-size: 17px; line-height: 18px; cursor: pointer; }
.evidence-photo.is-removed { display: none; }
.evidence-action { border: 1px solid #cbd1d8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; color: #1b2025; cursor: pointer; text-align: center; }
.evidence-action:first-of-type { border-style: dashed; }
.evidence-action > svg { width: 23px; height: 23px; margin-bottom: 3px; }
.evidence-action b { font-size: 10px; }
.evidence-action small, .evidence-action em { font-size: 8px; font-style: normal; }
.evidence-action em { color: var(--bb-red); }
.update-result-button { width: 100%; height: 40px; margin-top: 15px; border: 0; border-radius: 5px; background: linear-gradient(90deg, #ed2027, #e61018); color: #fff; font-weight: 700; cursor: pointer; }
.update-result-button:hover { background: linear-gradient(90deg, #d80d16, #be0710); }

.conclusion-card { margin-top: 14px; padding: 13px 16px; }
.conclusion-card h2 { margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.conclusion-card h2 svg { display: none; width: 21px; height: 21px; color: var(--bb-red); }
.conclusion-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(330px, 1.6fr) minmax(190px, .65fr) minmax(190px, .65fr); gap: 14px 28px; align-items: center; }
.conclusion-options { display: grid; gap: 10px; }
.conclusion-options label { margin: 0; display: flex; align-items: center; gap: 9px; font-weight: 400; cursor: pointer; }
.conclusion-options input { position: absolute; opacity: 0; }
.conclusion-options label > span { width: 17px; height: 17px; border: 1.5px solid #aeb5be; border-radius: 50%; }
.conclusion-options input:checked + span { border: 5px solid var(--bb-primary); }
.conclusion-note { margin: 0; }
.conclusion-note textarea { min-height: 50px; }
.conclusion-note small { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 400; }
.conclusion-note small input { accent-color: var(--bb-primary); }
.signatory { display: grid; gap: 6px; }
.signatory > small { color: #434a53; font-size: 11px; }
.signatory > strong { display: flex; align-items: center; gap: 6px; }
.signatory > strong svg { display: none; width: 19px; height: 19px; }
.signatory > span { width: max-content; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: var(--bb-primary-soft); color: #087139; font-size: 11px; }
.signatory > span svg { width: 14px; height: 14px; }
.inspection-note { min-height: 35px; margin-top: 14px; padding: 8px 15px; border: 1px solid #d5e9da; border-radius: 6px; display: flex; align-items: center; gap: 10px; background: #f5fbf7; color: #176a38; font-size: 11px; }
.inspection-note svg { width: 17px; height: 17px; flex: 0 0 auto; }

@media (max-width: 1180px) and (min-width: 768px) {
    .inspection-content { grid-template-columns: minmax(0, 1fr) 320px; }
    .desktop-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .desktop-info-grid .field-provider { grid-column: span 1; }
    .detail-title-row h1 { flex-basis: 100%; }
    .conclusion-grid { grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 14px; }
}

@media (max-width: 767px) {
    .inspection-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); background: #f6f7f8; }
    .desktop-detail-header, .desktop-detail-actions, .desktop-info-grid, .desktop-ingredient-table, .desktop-assessment-panel { display: none; }
    .mobile-detail-header, .mobile-info-grid, .mobile-ingredient-list, .mobile-conclusion-actions, .mobile-bottom-nav { display: flex; }
    .mobile-detail-header {
        min-height: 116px;
        padding: calc(18px + env(safe-area-inset-top)) 16px 27px;
        align-items: flex-start;
        gap: 12px;
        background: linear-gradient(135deg, #c90009 0%, #ef0a13 68%, #c40008 100%);
        color: #fff;
    }
    .mobile-detail-header::after { content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 116px; background: linear-gradient(130deg, transparent 15%, rgba(255,255,255,.05) 15% 34%, transparent 34% 53%, rgba(255,255,255,.04) 53% 72%, transparent 72%); pointer-events: none; }
    .mobile-back-button { position: relative; z-index: 1; width: 34px; height: 34px; margin-top: 1px; padding: 0; border: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; }
    .mobile-back-button svg { width: 31px; height: 31px; stroke-width: 2.2; }
    .mobile-detail-header > div { position: relative; z-index: 1; min-width: 0; flex: 1; }
    .mobile-detail-header h1 { margin: 0; font-size: clamp(19px, 5.3vw, 24px); line-height: 1.25; font-weight: 700; }
    .mobile-detail-header p { margin: 5px 0 0; font-size: 14px; }
    .mobile-checking-chip { position: relative; z-index: 1; margin-top: 4px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(130,0,5,.18); color: #fff; white-space: nowrap; }
    .inspection-layout { width: 100%; margin-top: -10px; padding: 0 12px 18px; display: block; }
    .inspection-content { display: block; }
    .inspection-main-column { display: block; }
    .inspection-card { border-radius: 13px; }
    .inspection-info-card { position: relative; z-index: 2; padding: 17px 18px; border: 0; box-shadow: 0 3px 11px rgba(34,40,46,.13); }
    .inspection-info-card h2 { display: none; }
    .mobile-info-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 13px 18px; }
    .mobile-info-grid > span { min-width: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; }
    .mobile-info-grid svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--bb-red); }
    .mobile-info-grid .mobile-provider { grid-column: 1 / -1; }
    .inspection-summary { margin: 12px 0 24px; gap: 8px; }
    .inspection-summary article { min-height: 78px; padding: 10px 7px; flex-direction: row; justify-content: center; gap: 8px; border: 0; border-radius: 10px; box-shadow: 0 2px 9px rgba(32,40,48,.11); }
    .inspection-summary article > span:last-child { order: initial; }
    .summary-icon { width: 39px; height: 39px; }
    .summary-icon svg { width: 23px; height: 23px; }
    .inspection-summary strong { color: #11161b; font-size: 25px; font-weight: 500; }
    .inspection-summary article:nth-child(3) strong, .inspection-summary article:nth-child(4) strong { color: #11161b; }
    .inspection-summary small { font-size: 10px; white-space: nowrap; }
    .ingredient-list-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .ingredient-heading { min-height: 45px; padding: 0 4px 9px; border: 0; }
    .ingredient-heading h2 { font-size: 20px; }
    .ingredient-heading > div .bb-btn { min-height: 40px; padding: 7px 13px; border-color: var(--bb-red); color: var(--bb-red); background: transparent; font-size: 13px; }
    .ingredient-heading > div .action-import-delivery { display: none; }
    .mobile-ingredient-list { display: grid; gap: 9px; }
    .mobile-ingredient-card { border: 1px solid #dfe3e8; border-radius: 11px; background: #fff; box-shadow: 0 2px 7px rgba(20,30,40,.08); overflow: hidden; }
    .mobile-ingredient-card.is-failed { border-color: #ff7c82; background: linear-gradient(135deg, #fff 35%, #fff6f6 100%); }
    .mobile-ingredient-summary { width: 100%; min-height: 92px; padding: 10px; border: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 19px; align-items: center; gap: 10px; background: transparent; color: var(--bb-text); text-align: left; cursor: pointer; }
    .mobile-ingredient-summary .food-thumbnail { width: 84px; height: 65px; }
    .mobile-ingredient-copy { min-width: 0; display: grid; gap: 10px; }
    .mobile-ingredient-copy > strong { font-size: 16px; line-height: 1.2; }
    .mobile-ingredient-copy > small { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #414852; font-size: 11px; }
    .mobile-ingredient-copy > small > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
    .mobile-ingredient-copy > small svg { width: 16px; height: 16px; }
    .mobile-ingredient-summary .assessment-badge { min-width: 72px; font-size: 13px; }
    .card-chevron { width: 19px; height: 19px; }
    .mobile-inline-assessment { padding: 3px 12px 12px; }
    .mobile-ingredient-card:not(.is-expanded) .mobile-inline-assessment { display: none; }
    .mobile-inline-assessment .sensory-field { margin-bottom: 15px; }
    .mobile-inline-assessment .sensory-field legend { font-size: 13px; }
    .mobile-inline-assessment .sensory-checks { justify-content: space-between; gap: 9px; }
    .mobile-inline-assessment .sensory-checks label { font-size: 11px; }
    .mobile-inline-assessment .sensory-checks label > span { width: 19px; height: 19px; border-color: var(--bb-red); }
    .mobile-inline-assessment .sensory-checks input:checked + span { border-color: var(--bb-red); background: var(--bb-red); }
    .mobile-treatment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .mobile-inline-assessment .assessment-field { margin-bottom: 13px; }
    .mobile-inline-assessment .assessment-field > span:first-child { font-size: 12px; font-weight: 600; }
    .mobile-inline-assessment textarea { min-height: 49px; }
    .mobile-inline-assessment .evidence-section > strong { font-size: 12px; }
    .mobile-inline-assessment .evidence-photo, .mobile-inline-assessment .evidence-action { aspect-ratio: 1 / 1.05; }
    .mobile-inline-assessment .evidence-action b { font-size: 10px; }
    .mobile-inline-assessment .update-result-button { height: 42px; margin-top: 12px; }
    .conclusion-card { margin-top: 13px; padding: 15px 14px 13px; }
    .conclusion-card h2 { margin-bottom: 13px; font-size: 18px; }
    .conclusion-card h2 svg { display: inline; }
    .conclusion-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 12px; align-items: start; }
    .conclusion-options { gap: 9px; }
    .conclusion-options input:checked + span { border-color: var(--bb-red); }
    .conclusion-note { display: block; }
    .conclusion-note > span:first-child { display: none; }
    .conclusion-note textarea { min-height: 64px; }
    .conclusion-note small { display: none; }
    .signatory { padding: 10px; border: 1px solid #e2e5e8; border-radius: 8px; background: #fbfcfc; }
    .signatory > small { display: none; }
    .signatory > strong { font-size: 12px; font-weight: 500; }
    .signatory > strong svg { display: inline; }
    .signatory > span { font-size: 10px; }
    .mobile-conclusion-actions { margin-top: 13px; gap: 9px; }
    .mobile-conclusion-actions .bb-btn { min-width: 0; flex: 1; min-height: 43px; padding-inline: 8px; }
    .mobile-conclusion-actions .bb-btn-outline { border-color: var(--bb-red); color: var(--bb-red); }
    .mobile-conclusion-actions .bb-btn-primary { border-color: var(--bb-red); background: var(--bb-red); }
    .inspection-note { margin-top: 11px; font-size: 10px; }
    .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; height: calc(64px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); justify-content: space-around; background: rgba(255,255,255,.97); border-top: 1px solid #dfe3e8; box-shadow: 0 -3px 12px rgba(20,30,40,.08); }
    .mobile-bottom-nav a { min-width: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #555c65; font-size: 10px; text-decoration: none; }
    .mobile-bottom-nav svg { width: 23px; height: 23px; }
    .mobile-bottom-nav a.active { color: var(--bb-red); }
}

@media (max-width: 520px) {
    .mobile-checking-chip { font-size: 10px; }
    .inspection-summary article { flex-direction: column; gap: 4px; }
    .inspection-summary article > span:last-child { align-items: center; }
    .summary-icon { width: 34px; height: 34px; }
    .summary-icon svg { width: 20px; height: 20px; }
    .mobile-ingredient-summary { grid-template-columns: 72px minmax(0, 1fr) auto 16px; gap: 8px; }
    .mobile-ingredient-summary .food-thumbnail { width: 72px; height: 58px; }
    .mobile-ingredient-copy > small { gap: 5px 10px; }
    .mobile-ingredient-summary .assessment-badge { min-width: 64px; padding-inline: 5px; font-size: 11px; }
}

@media (max-width: 410px) {
    .mobile-detail-header { padding-inline: 11px; gap: 7px; }
    .mobile-detail-header h1 { font-size: 18px; }
    .mobile-checking-chip { padding-inline: 7px; }
    .inspection-layout { padding-inline: 8px; }
    .mobile-info-grid { grid-template-columns: 1fr; gap: 10px; }
    .mobile-info-grid .mobile-provider { grid-column: auto; }
    .inspection-summary { gap: 5px; }
    .inspection-summary article { padding-inline: 3px; }
    .inspection-summary strong { font-size: 21px; }
    .inspection-summary small { font-size: 9px; }
    .mobile-ingredient-summary { grid-template-columns: 62px minmax(0, 1fr) auto 14px; padding: 8px; gap: 6px; }
    .mobile-ingredient-summary .food-thumbnail { width: 62px; height: 52px; }
    .mobile-ingredient-copy > strong { font-size: 14px; }
    .mobile-ingredient-copy > small { display: grid; gap: 4px; }
    .mobile-inline-assessment .sensory-checks { display: grid; grid-template-columns: 1fr 1fr; }
    .mobile-treatment-grid { grid-template-columns: 1fr; gap: 0; }
    .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .conclusion-note { display: block; }
    .conclusion-options, .conclusion-note { grid-column: 1 / -1; }
    .conclusion-note textarea { width: 100%; }
    .conclusion-note small { display: none; }
    .mobile-conclusion-actions { flex-direction: column; }
    .signatory > span { padding-inline: 5px; }
}
