.meal-explorer { margin: 24px 0 32px; color: #172e29; }
.explorer-signin-link { display: inline-flex; align-items: center; min-height: 44px; color: #08735f; font-weight: 650; }
body.signed-out { background: #fff; }
.signed-out #tabbar, .signed-out #quick-add-fab, .signed-out .top-actions { display: none; }
.signed-out .brand > div { display: block; }
.signed-out .topbar { padding-left: 24px; padding-right: 24px; background: #fff; box-shadow: none; backdrop-filter: none; }
.signed-out .view { max-width: 960px; margin: 0 auto; padding: 24px 24px 48px; }
.signed-out #account-signin { scroll-margin-top: 90px; }
.meal-explorer * { box-sizing: border-box; letter-spacing: 0; }
.explorer-controls { display: grid; grid-template-columns: minmax(120px, 180px) minmax(160px, 1fr); gap: 16px; max-width: 680px; }
.explorer-controls label { display: grid; gap: 8px; font-size: 13px; font-weight: 650; color: #3d5148; }
.explorer-controls select, .explorer-controls input[type=text] { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #b9ccc0; border-radius: 6px; background: #fff; color: #172e29; font: inherit; font-size: 16px; }
.explorer-controls .explorer-quick, .explorer-controls .explorer-listed { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 46px; cursor: pointer; }
.explorer-quick input, .explorer-listed input { width: 20px; height: 20px; margin: 0; accent-color: #08735f; flex: 0 0 20px; }
.explorer-listed { grid-column: 1 / -1; }
.explorer-listed:has(input:disabled) { color: #68766e; cursor: default; }
.explorer-ingredients { grid-column: 1 / -1; }
.explorer-exclusions { grid-column: 1 / -1; border-top: 1px solid #d5e2da; border-bottom: 1px solid #d5e2da; padding: 0 0 4px; }
.explorer-exclusions summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: #3d5148; font-size: 13px; font-weight: 650; }
.explorer-exclusions[open] { padding-bottom: 12px; }
.explorer-exclusions .explorer-note { margin: 10px 0; }
.explorer-exclusions button { min-height: 44px; padding: 8px 12px; border: 1px solid #afc5b7; border-radius: 6px; background: #fff; color: #264e3c; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.explorer-exclusions button:disabled { cursor: default; opacity: .5; }
.explorer-status { min-height: 20px; margin: 18px 0 10px; color: #52675e; font-size: 13px; }
.explorer-pick { border-top: 1px solid #cbdcd2; padding: 20px 0 0; }
.explorer-pick-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.explorer-pick-heading h3 { font-size: 24px; line-height: 1.3; margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.explorer-pick-heading > span { font-size: 13px; font-weight: 650; white-space: nowrap; padding-top: 5px; }
.explorer-foods { color: #53635a; font-size: 15px; line-height: 1.6; margin: 12px 0; }
.explorer-matched { color: #075d47; font-size: 14px; margin: 12px 0; }
.explorer-coverage { border-left: 3px solid #a6b8ad; padding-left: 12px; }
.explorer-missing { color: #614a2c; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; margin: 8px 0; }
.explorer-empty button { margin: 0 8px 8px 0; max-width: 100%; }
.explorer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.explorer-actions a, .explorer-actions button, .explorer-result > button, .explorer-empty button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 130px; padding: 10px 18px; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
.explorer-actions a { background: #08735f; color: #fff; border: 1px solid #08735f; }
.explorer-actions button, .explorer-result > button, .explorer-empty button { background: #fff; color: #264e3c; border: 1px solid #afc5b7; }
.explorer-actions button:disabled { cursor: default; opacity: .5; }
.explorer-actions a:hover { background: #095844; }
.explorer-actions button:hover:not(:disabled) { background: #edf5ef; }
.explorer-image { display: block; width: 100%; height: auto; max-height: 270px; object-fit: contain; background: #edf2ef; margin: 20px 0 0; }
.explorer-note { font-size: 12px; color: #637369; line-height: 1.6; margin: 16px 0; }
.explorer-fallback { list-style: none; padding: 0; }
.explorer-fallback li { padding: 14px 0; border-bottom: 1px solid #d5e2da; }
.explorer-fallback span { display: block; color: #5d7166; font-size: 13px; margin-top: 6px; }
.meal-explorer :focus-visible { outline: 3px solid #0b8069; outline-offset: 3px; }
@media (max-width: 420px) {
  .signed-out .topbar { padding-left: 16px; padding-right: 16px; }
  .signed-out .view { padding: 24px 16px 32px; }
  .explorer-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .explorer-actions { gap: 8px; }
  .explorer-actions a, .explorer-actions button { min-width: 0; flex: 1 1 110px; padding: 10px 12px; }
  .explorer-pick-heading h3 { font-size: 22px; }
}
