.app-shell.bl-app-layout {
  width: min(100%, 1040px); max-width: 1040px; height: 100dvh; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0 auto; padding: 0; overflow: hidden; border: 0;
}
.bl-app-header {
  position: relative; z-index: 40; grid-row: 1; display: flex; align-items: center;
  min-height: calc(72px + env(safe-area-inset-top));
  padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: #fff; border-bottom: 1px solid #e6ece7;
}
.bl-app-content { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.bl-app-content-levelup { grid-template-rows: auto minmax(0, 1fr); }
.bl-app-content-levelup > .app-topbar { position: relative; z-index: 1; margin: 0; padding: 12px 16px; }
.bl-app-content-levelup > .app-topbar::before, .bl-app-content-levelup > .app-topbar::after { display: none; }
.bl-app-content-levelup > .screen.active { grid-row: 2; min-height: 0; height: 100%; overflow-y: auto; padding: 12px 16px; }
.bl-app-content-levelup > .screen.chat-screen.active { overflow: hidden; }
.app-shell.bl-app-layout > .footer-nav { position: relative; grid-row: 3; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; margin: 0; transform: none; -webkit-transform: none; }
.bl-app-content > .screen.chat-screen.active { padding-top: 16px; }
.bl-app-content > .empty-screen, .bl-app-content > .settings-screen { padding-top: 24px; }
.bl-app-content .ingredients-header { padding-top: 20px; }
.bl-app-switcher-trigger {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; width: 184px; height: 48px;
  padding: 5px 10px 5px 5px; margin: 0; border: 1px solid #e0e9e2;
  border-radius: 16px; background: #f7faf7; color: #182d25; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em;
  cursor: pointer; touch-action: manipulation; transition: background .16s, border-color .16s;
}
.bl-app-switcher-trigger-icon { position: relative; flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #e0ebe5; }
.bl-app-switcher-trigger-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bl-app-mark { display: block; width: 100%; height: 100%; }
.bl-app-switcher-chevron { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: #7b8b83; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .12s; }
.bl-app-switcher-trigger[aria-expanded="true"] { background: #eef4f0; border-color: #dce7df; }
.bl-app-switcher-trigger[aria-expanded="true"] > .bl-app-switcher-chevron { transform: rotate(180deg); }
.bl-app-switcher-trigger:disabled { cursor: default; }
.bl-app-switcher-heading { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bl-app-switcher-panel {
  position: fixed; z-index: 100; box-sizing: border-box; display: flex; flex-direction: column;
  margin: 0; padding: 0; overflow: hidden; border: 1px solid #e0e8e2; border-radius: 24px;
  color: #20362b; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.4;
  box-shadow: 0 24px 70px -18px #173d2c40, 0 5px 18px #173d2c12, inset 0 1px 0 #fff;
}
.bl-app-switcher-panel[hidden] { display: none; }
.bl-app-switcher-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 18px; }
.bl-app-switcher-header strong { font-size: 17px; letter-spacing: -.025em; }
.bl-app-switcher-header p { margin: 5px 0 0; color: #758279; font-size: 12px; line-height: 1.4; }
.bl-app-switcher-count { font-size: 12px; color: #758279; font-variant-numeric: tabular-nums; }
.bl-app-switcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bl-app-switcher-grid-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-app-switcher-app {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 0; padding: 18px 8px 16px; border: 1px solid transparent; border-radius: 17px;
  background: #f7f9f7; color: #263b2f; text-decoration: none; text-align: center;
  touch-action: manipulation; transition: background .16s, border-color .16s, transform .16s;
}
.bl-app-switcher-app[aria-current] { background: #edf6ef; border-color: #d4e7da; }
.bl-app-switcher-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 3px; border-radius: 16px; background: #e0ebe5; color: #456750; font-size: 22px; font-weight: 700; }
.bl-app-switcher-icon img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; background: #fff; }
.bl-app-switcher-app strong { max-width: 100%; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.bl-app-switcher-description { font-size: 10px; line-height: 1.4; color: #738176; }
.bl-app-switcher-grid-many .bl-app-switcher-app { padding: 12px 6px; }
.bl-app-switcher-grid-many .bl-app-switcher-icon { width: 40px; height: 40px; margin-bottom: 0; border-radius: 12px; }
.bl-app-switcher-grid-many .bl-app-switcher-app strong { display: -webkit-box; min-height: 30px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; }
.bl-app-switcher-grid-many .bl-app-switcher-description { display: none; }
.bl-app-switcher-current { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #357b51; color: #fff; font-size: 11px; }
.bl-app-switcher-footer { flex: 0 0 auto; padding: 13px 20px; border-top: 1px solid #edf1ed; background: #fafcf9; color: #7d8a80; font-size: 11px; text-align: center; }
.bl-app-switcher-status { grid-column: 1 / -1; padding: 18px 10px; margin: 0; color: #758279; font-size: 13px; line-height: 1.5; text-align: center; }
.bl-app-switcher-retry { grid-column: 1 / -1; min-height: 44px; border: 1px solid #d4e7da; border-radius: 12px; background: #edf6ef; color: #263b2f; font: inherit; font-size: 13px; cursor: pointer; }
.bl-app-switcher-trigger:focus-visible, .bl-app-switcher-app:focus-visible, .bl-app-switcher-retry:focus-visible { outline: 3px solid #598e70; outline-offset: 2px; }
@media (hover: hover) {
  .bl-app-switcher-trigger:not(:disabled):hover { background: #eef4f0; }
  .bl-app-switcher-app:hover { background: #e6f0e9; border-color: #c9dece; transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .bl-app-switcher-panel { animation: none; }
  .bl-app-switcher-trigger, .bl-app-switcher-trigger > svg, .bl-app-switcher-app { transition: none; }
}
