.food-heading, .food-profile-heading, .food-save-bar, .food-module-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.food-heading h2 { font-size: 21px; margin: 0; }
body:has(#food-safety.active) .help-chat-launcher, .support-mode #food-inline-help { display: none; }
#food-inline-help { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; font-size: 20px; font-weight: 700; }
.nav-item.food-nav-entry { font-size: 16px; font-weight: 700; line-height: 1.4; white-space: normal; overflow-wrap: break-word; padding-block: 14px; }
.food-workspace-picker { display: grid; gap: 6px; font-size: 13px; font-weight: 600; width: 300px; max-width: 100%; min-width: 0; }
.food-workspace-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid #cbdcde; margin-bottom: 22px; }
.food-workspace-nav > button, .food-workspace-nav summary { appearance: none; background: transparent; color: #536970; border: 0; border-radius: 0; padding: 12px 2px; font: inherit; font-size: 14px; cursor: pointer; }
.food-workspace-nav > button[aria-current="page"] { color: #125d60; border-bottom: 3px solid #169c97; font-weight: 700; }
.food-workspace-nav details { position: relative; margin-left: auto; }
.food-workspace-nav details > div { position: absolute; z-index: 3; right: 0; min-width: 220px; padding: 8px; border: 1px solid #cbdcde; background: #fff; box-shadow: 0 6px 14px #16303318; }
.food-workspace-nav details button { display: block; width: 100%; border: 0; text-align: left; background: transparent; padding: 10px; color: #182e35; font: inherit; font-size: 14px; }
.food-workspace-nav details button:hover { background: #edf7f6; }
.food-home-heading, .food-home-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.food-home-heading h3 { margin: 0; font-size: 20px; }
.food-home-heading p { color: #536970; margin: 8px 0 0; font-size: 13px; }
.food-home-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid #cbdcde; margin: 24px 0; background: #f8fbfb; }
.food-home-metric { padding: 20px; border-right: 1px solid #cbdcde; }
.food-home-metric:last-child { border-right: 0; }
.food-home-metric strong { display: block; font-size: 28px; color: #173238; }
.food-home-metric span { display: block; margin-top: 5px; font-size: 13px; color: #536970; }
.food-home-alert strong { color: #a43b30; }
.food-home-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: start; }
.food-home-section { min-width: 0; margin-bottom: 28px; }
.food-home-section-title { padding-bottom: 12px; border-bottom: 1px solid #cbdcde; }
.food-home-section h3 { font-size: 18px; margin: 0; }
.food-home-section h4 { font-size: 15px; margin: 8px 0; overflow-wrap: anywhere; }
.food-home-section p { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.food-home-section p.food-review-note { font-size: 12px; }
.food-home-row { padding: 18px 0; border-bottom: 1px solid #dce6e7; }
.food-home-empty { color: #536970; padding: 8px 0; }
.food-home-date { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid #dce6e7; }
.food-home-date time { font-weight: 700; font-size: 14px; color: #174d63; padding-top: 8px; }
.food-home-date h4 { margin-top: 6px; }
.food-home-subtitle { margin-top: 22px !important; color: #765818; }
.food-home-document { display: flex; flex-direction: column; align-items: start; gap: 6px; padding: 16px 0; border-bottom: 1px solid #dce6e7; }
.food-home-document > div { min-width: 0; }
.food-home-document button { flex: 0 0 auto; }
.food-text-action { border: 0; background: transparent; padding: 4px 0; color: #125d60; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.food-next-action { border-left: 3px solid #169c97; padding: 10px 16px; background: #f0f8f6; margin: 16px 0; }
.food-next-action h3 { font-size: 16px; margin: 0 0 8px; }
.food-next-action p { font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .food-home-columns { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (max-width: 600px) {
  .food-home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .food-home-metric { padding: 16px; }
  .food-home-metric:nth-child(2) { border-right: 0; }
  .food-home-metric:nth-child(-n+2) { border-bottom: 1px solid #cbdcde; }
  .food-home-document { align-items: start; flex-direction: column; gap: 6px; }
  .food-workspace-nav { gap: 4px 16px; }
  .food-workspace-nav details { margin-left: 0; }
  .food-workspace-nav details > div { left: 0; right: auto; }
}
.food-workspace-picker select:focus-visible { outline: 2px solid #147477; outline-offset: 2px; }
.food-access-notice { padding: 12px 0; color: #795211; border-bottom: 1px solid #dfc78f; }
#food-checkout-form { justify-content: flex-start; margin-top: 14px; }
#food-checkout-form select { padding: 10px; max-width: 100%; font: inherit; border: 1px solid #c1d2d6; border-radius: 6px; }
@media (max-width: 640px) {
  .food-workspace-picker { width: 100%; }
  #food-checkout-form > * { min-width: 0; max-width: 100%; flex-wrap: wrap; }
}
.food-heading { margin-bottom: 18px; }
.food-module-band { border-top: 1px solid #d9e3e6; padding: 24px 0; margin-top: 24px; }
.food-module-controls label { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.food-module-controls input { width: 18px; height: 18px; accent-color: #14676a; }
.food-site-picker { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid #cfdde0; }
.food-site-picker label, .food-grid label { display: grid; gap: 7px; min-width: 0; font-size: 14px; font-weight: 600; }
.food-site-choice { flex: 1; min-width: 220px !important; }
.food-site-picker input, .food-site-picker select, .food-grid input, .food-grid select, .food-grid textarea {
  width: 100%; min-width: 0; max-width: 100%; border: 1px solid #c1d2d6; border-radius: 6px;
  padding: 10px 12px; background: #fff; color: #182e35; font: inherit; font-weight: 400; min-height: 42px;
}
.food-grid textarea { resize: vertical; }
.food-ops-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0; }
.food-ops-toolbar label, .food-lookup label { display: grid; gap: 7px; min-width: 0; font-size: 14px; }
.food-ops-toolbar input:not([type=checkbox]), .food-ops-toolbar select, .food-lookup-search input { border: 1px solid #c1d2d6; border-radius: 6px; padding: 10px 12px; min-height: 42px; font: inherit; max-width: 100%; min-width: 0; background: #fff; color: #182e35; }
.food-ops-toolbar .food-inline-check { display: flex; align-items: center; gap: 7px; min-height: 42px; }
.food-inline-check input { width: 18px; height: 18px; accent-color: #14676a; }
.food-ops-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 18px 0; border-top: 1px solid #cfdde0; }
.food-row-title { border: 0; background: none; padding: 0; color: #125f64; font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.food-row-title:hover { text-decoration: underline; }
.food-row-actions { display: grid; gap: 10px; justify-items: start; max-width: 210px; }
.food-row-actions button { min-height: 40px; white-space: normal; }
.food-ops-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.food-analysis-section { border-top: 1px solid #cfdde0; margin-top: 20px; padding-top: 14px; }
.food-analysis-section h3 { font-size: 17px; margin: 0 0 14px; }
.food-analysis-section details { font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; }
.food-date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 18px; padding: 12px 0; border-bottom: 1px solid #e1e8ea; }
.food-date-row details { grid-column: 1 / -1; }
.food-date-row p { margin: 0; overflow-wrap: anywhere; }
.food-analysis-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.food-row-meta { font-size: 13px; color: #536970; margin: 7px 0; overflow-wrap: anywhere; }
.food-row-detail { font-size: 14px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.food-state { display: inline-block; font-size: 12px; color: #536970; background: #e7edef; border-radius: 4px; padding: 6px 9px; max-width: 160px; overflow-wrap: anywhere; }
.food-state-pending { color: #745011; background: #fff3d7; }
.food-state-closed { color: #216046; background: #e7f3eb; }
.food-list-pagination { justify-content: flex-end; border-top: 1px solid #cfdde0; padding-top: 15px; }
.food-ops-dialog { box-sizing: border-box; width: min(700px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 1px solid #c1d2d6; border-radius: 8px; padding: 24px; color: #182e35; background: #fff; overflow: auto; }
.food-ops-dialog::backdrop { background: rgb(12 28 35 / 45%); }
.food-ops-dialog h2 { font-size: 19px; overflow-wrap: anywhere; }
.food-ops-dialog .food-heading { flex-wrap: nowrap; align-items: start; position: sticky; top: -24px; padding: 12px 0; background: white; z-index: 1; border-bottom: 1px solid #cfdde0; }
body:has(#food-safety.active) .toast { bottom: 90px; }
body:has(#food-safety.active) .topbar .export-control,
body:has(#food-safety.active) #simulate-upload { display: none; }
#food-dialog-close { flex: 0 0 36px; height: 36px; padding: 0; font-size: 25px; }
.food-ops-dialog fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.food-ops-dialog button { white-space: normal; }
.food-lookup-search { display: flex; gap: 6px; margin-top: 8px; }
.food-lookup-search input { flex: 1; width: 100%; }
.food-lookup-search button { padding: 8px 10px; flex-shrink: 0; }
.food-lookup-search [data-lookup-prev], .food-lookup-search [data-lookup-next] { width: 34px; padding: 0; font-size: 23px; }
.food-lookup-status { display: block; min-height: 19px; margin-top: 4px; color: #536970; font-size: 12px; }
.food-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.food-detail-grid dt { font-size: 13px; color: #536970; margin-bottom: 6px; }
.food-detail-grid dd { font-size: 14px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.food-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 0; border-top: 1px solid #cfdde0; }
.food-document-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.food-document-actions > button { min-width: 0; }
.food-delete-reason { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
#food-evidence-delete { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
.food-delete-icon { flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; mask: url('/static/icons/trash-2.svg') center / contain no-repeat; }
#food-delete-confirm { background: #a12e26; border-color: #a12e26; color: #fff; }
#food-dialog-error { color: #a12e26; overflow-wrap: anywhere; }
.food-history-row { border-top: 1px solid #cfdde0; padding: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.food-history-row p { margin: 6px 0; }
#food-finding-history summary { cursor: pointer; padding: 12px 0; }
@media (max-width: 640px) {
  .food-ops-toolbar label:not(.food-inline-check) { flex: 1 1 100%; }
  .food-ops-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .food-state { justify-self: start; }
  .food-row-actions { max-width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .food-date-row { grid-template-columns: minmax(0, 1fr); }
  .food-ops-actions { width: 100%; }
  .food-ops-actions button { flex: 1; min-width: 0; white-space: normal; }
  .food-ops-dialog { padding: 16px; }
  .food-ops-dialog .food-heading { top: -16px; }
  .food-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .food-dialog-actions button { flex: 1 1 100%; }
}
.food-site-picker :focus-visible, #food-profile-form :focus-visible, .food-module-band :focus-visible { outline: 2px solid #147477; outline-offset: 2px; }
.food-pagination { display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 13px; }
.food-pagination button { width: 38px; height: 38px; padding: 0; font-size: 23px; }
.food-pagination span { min-width: 58px; text-align: center; }
.food-profile-heading { margin-top: 20px; }
.food-profile-heading h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.food-profile-heading span, #food-module-status { font-size: 13px; color: #536970; }
.food-tabs { display: flex; gap: 6px; border-bottom: 1px solid #cfdde0; margin: 18px 0; }
.food-tabs button { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #536970; font: inherit; font-size: 14px; font-weight: 600; padding: 12px 14px; cursor: pointer; }
.food-tabs button[aria-selected="true"] { color: #125f64; border-bottom-color: #1cbab3; }
#food-profile-form fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
#food-profile-form legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.food-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.food-checks label { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; font-size: 14px; overflow-wrap: anywhere; }
.food-checks input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #14676a; }
.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.food-wide { grid-column: 1 / -1; }
.food-certificate { border-bottom: 1px solid #cfdde0; padding: 0 0 20px; margin-bottom: 18px; }
.food-certificate summary { cursor: pointer; padding: 10px 0; font-weight: 700; overflow-wrap: anywhere; }
.food-certificate .food-grid { margin: 12px 0; }
.food-certificate-status { display: block; font-size: 13px; color: #725117; font-weight: 400; margin: 7px 0; }
.food-save-bar { justify-content: flex-end; border-top: 1px solid #cfdde0; padding-top: 18px; }
#food-form-error, #food-settings-error { color: #a12e26; overflow-wrap: anywhere; }
#food-message { overflow-wrap: anywhere; }
#food-profile-fields:disabled { opacity: .8; }
#food-profile-fields:disabled input, #food-profile-fields:disabled textarea, #food-profile-fields:disabled select { color: #344b54; }
@media (max-width: 640px) {
  .food-site-picker label { flex: 1 1 100%; }
  .food-site-choice { min-width: 0 !important; }
  .food-grid { grid-template-columns: minmax(0, 1fr); }
  .food-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
  .food-tabs { gap: 0; }
  .food-tabs button { flex: 1; padding: 12px 5px; font-size: 13px; }
  .food-save-bar { gap: 10px; }
  .food-save-bar button { flex: 1; min-width: 0; white-space: normal; }
}
.food-proposal { padding: 18px 0; border-top: 1px solid #dce3e6; }
.food-proposal h4 { margin: 0 0 8px; font-size: 16px; }
.food-ops-dialog:has(#food-audit-overview) { width: min(1060px, calc(100vw - 24px)); }
#food-audit-overview h3 { font-size: 18px; margin: 20px 0 6px; }
.food-review-note, .food-task-reference, .food-task-deadline { color: #536970; font-size: 13px; line-height: 1.5; }
.food-audit-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.food-audit-facts dt, .food-task-action dt { color: #536970; font-size: 13px; margin-bottom: 6px; }
.food-audit-facts dd { margin: 0; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.food-audit-facts details, .food-audit-dates details { margin-top: 8px; font-size: 12px; font-weight: 400; }
.food-audit-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f0f7f6; border-block: 1px solid #d1e4e0; padding: 12px 16px; gap: 16px; }
.food-preview-note { background: #fff7e6; border-left: 3px solid #bb8b2d; padding: 8px 12px; font-size: 13px; }
.food-audit-dates span, .food-audit-dates strong { display: block; overflow-wrap: anywhere; }
.food-audit-dates span { font-size: 13px; margin-bottom: 6px; }
.food-audit-dates strong { font-size: 18px; }
.food-audit-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 0 4px; }
.food-audit-counts strong { display: block; font-size: 24px; color: #182e35; }
.food-audit-counts span { display: block; font-size: 13px; color: #536970; margin-top: 4px; }
.food-review-toolbar label { display: grid; gap: 6px; font-size: 13px; max-width: 320px; }
.food-review-toolbar select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #c1d2d6; border-radius: 6px; padding: 8px 12px; font: inherit; color: inherit; background: #fff; }
.food-task-heading { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.food-task-heading h4 { overflow-wrap: anywhere; }
.food-task-heading .food-state { flex: 0 0 auto; }
.food-task-correct .food-state { color: #873b24; background: #fff0e7; }
.food-task-verify .food-state { color: #245c70; background: #eaf4f8; }
.food-task-history .food-state { color: #216046; background: #e7f3eb; }
.food-task-action { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; margin: 16px 0; }
.food-task-action dd { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.food-task-evidence > div, .food-task-evidence > details { margin-top: 12px; }
.food-review-refresh { margin-top: 20px; }
@media (max-width: 640px) {
  .food-audit-facts, .food-audit-dates, .food-task-action { grid-template-columns: minmax(0, 1fr); }
  .food-task-heading { flex-wrap: wrap; }
  .food-audit-counts { gap: 10px; }
  .food-audit-counts span { font-size: 12px; }
  .food-audit-counts strong { font-size: 21px; }
}
.food-proposal blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #167579; background: #f3f7f7; white-space: pre-wrap; overflow-wrap: anywhere; }
.food-source-row { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid #dce3e6; overflow-wrap: anywhere; }
.food-source-row span, .food-coverage-note { font-size: 13px; color: #4b6170; }
.food-coverage-note { max-width: 90ch; line-height: 1.5; }
.food-radar-entry { margin-bottom: 16px; }
#food-radar-sources { padding-bottom: 16px; }
