/* ===== MBT_RECIPES_CSS_MOVE_V0_9_57B_START ===== */
/* Moved from index.html. Scope remains under #mbt-user-shell-v090e. */

/* ===== MBT_RECIPES_UI_V0_9_18E_CSS_START ===== */

#mbt-user-shell-v090e .mbt-recipes-v0918e {
  display: grid;
  gap: 16px;
}

#mbt-user-shell-v090e .mbt-recipes-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

#mbt-user-shell-v090e .mbt-recipes-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 270px;
  height: 270px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(34,197,94,.24), transparent 22%),
    radial-gradient(circle, rgba(34,211,238,.16), transparent 68%);
  pointer-events: none;
}

#mbt-user-shell-v090e .mbt-recipes-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  color: #86efac;
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 999px;
  background: rgba(22,163,74,.12);
  font-size: 12px;
  font-weight: 900;
}

#mbt-user-shell-v090e .mbt-recipes-kicker::before {
  content: "●";
  margin-right: 7px;
  color: #22c55e;
  font-size: 10px;
}

#mbt-user-shell-v090e .mbt-recipes-hero h2,
#mbt-user-shell-v090e .mbt-recipes-card-head h3,
#mbt-user-shell-v090e .mbt-recipe-card h3,
#mbt-user-shell-v090e .mbt-recipes-detail h3,
#mbt-user-shell-v090e .mbt-recipes-bottom h3 {
  margin: 0;
}

#mbt-user-shell-v090e .mbt-recipes-hero p,
#mbt-user-shell-v090e .mbt-recipes-card-head p,
#mbt-user-shell-v090e .mbt-recipe-card p,
#mbt-user-shell-v090e .mbt-recipes-detail p,
#mbt-user-shell-v090e .mbt-recipes-bottom p {
  margin: 8px 0 0;
  color: #8ea3bb;
  line-height: 1.55;
}

#mbt-user-shell-v090e .mbt-recipes-hero-actions,
#mbt-user-shell-v090e .mbt-recipes-card-head,
#mbt-user-shell-v090e .mbt-recipes-detail-actions,
#mbt-user-shell-v090e .mbt-recipe-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#mbt-user-shell-v090e .mbt-recipes-hero-actions button,
#mbt-user-shell-v090e .mbt-recipes-modebar button,
#mbt-user-shell-v090e .mbt-recipes-chat button,
#mbt-user-shell-v090e .mbt-recipe-actions button,
#mbt-user-shell-v090e .mbt-recipes-detail-actions button,
#mbt-user-shell-v090e .mbt-recipes-shop-btn {
  min-height: 40px;
  padding: 0 14px;
  color: #03131f;
  border: 1px solid rgba(34,211,238,.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  font-weight: 900;
}

#mbt-user-shell-v090e .mbt-recipes-hero-actions button.secondary,
#mbt-user-shell-v090e .mbt-recipe-actions button:nth-child(2),
#mbt-user-shell-v090e .mbt-recipes-detail-actions button:nth-child(2) {
  color: #dff7ff;
  background: rgba(2,10,22,.42);
}

#mbt-user-shell-v090e .mbt-recipes-disabled,
#mbt-user-shell-v090e .mbt-recipes-v0918e button:disabled,
#mbt-user-shell-v090e .mbt-recipes-v0918e input:disabled {
  cursor: not-allowed !important;
  opacity: .72;
}

#mbt-user-shell-v090e .mbt-recipes-topgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 16px;
}

#mbt-user-shell-v090e .mbt-recipes-chat,
#mbt-user-shell-v090e .mbt-recipes-ingredients,
#mbt-user-shell-v090e .mbt-recipes-suggestions,
#mbt-user-shell-v090e .mbt-recipes-detail,
#mbt-user-shell-v090e .mbt-recipes-missing,
#mbt-user-shell-v090e .mbt-recipes-fit {
  padding: 20px;
}

#mbt-user-shell-v090e .mbt-recipes-chatbox {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#mbt-user-shell-v090e .mbt-recipes-chatbox div {
  max-width: 88%;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(2,10,22,.32);
}

#mbt-user-shell-v090e .mbt-recipes-chatbox .is-user {
  justify-self: end;
  border: 1px solid rgba(34,211,238,.18);
  background: rgba(14,165,233,.12);
}

#mbt-user-shell-v090e .mbt-recipes-chatbox .is-ai {
  justify-self: start;
  border: 1px solid rgba(168,85,247,.18);
  background: rgba(88,28,135,.12);
}

#mbt-user-shell-v090e .mbt-recipes-chatbox b {
  color: #86efac;
}

#mbt-user-shell-v090e .mbt-recipes-chatbox p {
  margin: 6px 0 0;
  color: #dbe7f4;
}

#mbt-user-shell-v090e .mbt-recipes-quick,
#mbt-user-shell-v090e .mbt-recipes-pills,
#mbt-user-shell-v090e .mbt-recipes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

#mbt-user-shell-v090e .mbt-recipes-quick button,
#mbt-user-shell-v090e .mbt-recipes-pills button,
#mbt-user-shell-v090e .mbt-recipes-tags span,
#mbt-user-shell-v090e .mbt-recipes-modebar button {
  padding: 8px 11px;
  color: #dbe7f4;
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 999px;
  background: rgba(2,10,22,.32);
  font-weight: 800;
}

#mbt-user-shell-v090e .mbt-recipes-modebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

#mbt-user-shell-v090e .mbt-recipes-modebar button.is-active {
  color: #86efac;
  border-color: rgba(34,197,94,.38);
  background: rgba(34,197,94,.10);
}

#mbt-user-shell-v090e .mbt-recipes-modebar button.generate {
  margin-left: auto;
  color: #03131f;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
}

#mbt-user-shell-v090e .mbt-recipes-input,
#mbt-user-shell-v090e .mbt-recipes-addline {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#mbt-user-shell-v090e .mbt-recipes-input input,
#mbt-user-shell-v090e .mbt-recipes-addline input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  color: #dbe7f4;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,10,22,.34);
}

#mbt-user-shell-v090e .mbt-recipes-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 16px;
}

#mbt-user-shell-v090e .mbt-recipes-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

#mbt-user-shell-v090e .mbt-recipe-card {
  padding: 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 18px;
  background: rgba(2,10,22,.24);
}

#mbt-user-shell-v090e .mbt-recipe-card.is-selected {
  border-color: rgba(34,197,94,.38);
  box-shadow: 0 0 0 1px rgba(34,197,94,.12);
}

#mbt-user-shell-v090e .mbt-recipe-photo {
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(34,211,238,.16);
}

#mbt-user-shell-v090e .mbt-recipe-photo span {
  font-size: 58px;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
  z-index: 1;
}

#mbt-user-shell-v090e .mbt-recipe-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 68%, rgba(255,255,255,.18) 0 3%, transparent 4%),
    radial-gradient(circle at 66% 34%, rgba(255,255,255,.14) 0 4%, transparent 5%),
    linear-gradient(135deg, rgba(34,197,94,.22), rgba(14,165,233,.18));
}

#mbt-user-shell-v090e .mbt-recipe-photo.is-chicken {
  background: radial-gradient(circle at 70% 35%, #d97706, transparent 22%), linear-gradient(135deg, #064e3b, #0f172a);
}

#mbt-user-shell-v090e .mbt-recipe-photo.is-egg {
  background: radial-gradient(circle at 65% 40%, #facc15, transparent 22%), linear-gradient(135deg, #78350f, #0f172a);
}

#mbt-user-shell-v090e .mbt-recipe-photo.is-yogurt {
  background: radial-gradient(circle at 65% 40%, #f8fafc, transparent 24%), linear-gradient(135deg, #312e81, #0f172a);
}

#mbt-user-shell-v090e .mbt-recipe-photo.is-large {
  height: 210px;
}

#mbt-user-shell-v090e .mbt-recipe-macros,
#mbt-user-shell-v090e .mbt-recipes-detail-macros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

#mbt-user-shell-v090e .mbt-recipe-macros span,
#mbt-user-shell-v090e .mbt-recipes-detail-macros span {
  padding: 9px;
  color: #dff7ff;
  text-align: center;
  border: 1px solid rgba(34,211,238,.15);
  border-radius: 12px;
  background: rgba(14,165,233,.08);
  font-size: 12px;
}

#mbt-user-shell-v090e .mbt-recipes-detail-macros b {
  display: block;
  color: #eaf6ff;
  font-size: 20px;
}

#mbt-user-shell-v090e .mbt-recipe-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #8ea3bb;
}

#mbt-user-shell-v090e .mbt-recipes-ingredient-list,
#mbt-user-shell-v090e .mbt-recipes-steps {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

#mbt-user-shell-v090e .mbt-recipes-ingredient-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(148,163,184,.10);
}

#mbt-user-shell-v090e .mbt-recipes-ingredient-list li::before {
  content: "✓";
  margin-right: 8px;
  color: #22c55e;
}

#mbt-user-shell-v090e .mbt-recipes-ingredient-list li.is-missing::before {
  content: "!";
  color: #f97316;
}

#mbt-user-shell-v090e .mbt-recipes-steps {
  counter-reset: step;
}

#mbt-user-shell-v090e .mbt-recipes-steps li {
  counter-increment: step;
  color: #b8c7d8;
}

#mbt-user-shell-v090e .mbt-recipes-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: #dff7ff;
  border-radius: 999px;
  background: rgba(14,165,233,.16);
}

#mbt-user-shell-v090e .mbt-recipes-bottom {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

#mbt-user-shell-v090e .mbt-recipes-missing div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

#mbt-user-shell-v090e .mbt-recipes-missing div span {
  padding: 10px 12px;
  border: 1px solid rgba(34,211,238,.16);
  border-radius: 12px;
  background: rgba(2,10,22,.28);
}

@media (max-width: 1280px) {
  #mbt-user-shell-v090e .mbt-recipes-topgrid,
  #mbt-user-shell-v090e .mbt-recipes-main,
  #mbt-user-shell-v090e .mbt-recipes-bottom,
  #mbt-user-shell-v090e .mbt-recipes-hero {
    grid-template-columns: 1fr;
  }

  #mbt-user-shell-v090e .mbt-recipes-cards {
    grid-template-columns: 1fr;
  }

  #mbt-user-shell-v090e .mbt-recipes-modebar button.generate {
    margin-left: 0;
  }
}

/* ===== MBT_RECIPES_UI_V0_9_18E_CSS_END ===== */

/* ===== MBT_RECIPES_CSS_MOVE_V0_9_57B_END ===== */


/* MBT_RECIPES_HIDE_EMPTY_TOPBAR_V0_9_59B_START */
#mbt-user-shell-v090e.mbt-recipes-page-active-v0959b .mbt-user-topbar {
  display: none !important;
}
/* MBT_RECIPES_HIDE_EMPTY_TOPBAR_V0_9_59B_END */

/* MBT_RECIPES_ASSISTANT_SAFE_CSS_CLEANUP_V0_9_59D1_START */

/* Hide only the three assistant route choice buttons. Keep "Surprise me" visible. */
#mbt-user-shell-v090e .mbt-recipes-chat .mbt-recipes-pills button:nth-child(1),
#mbt-user-shell-v090e .mbt-recipes-chat .mbt-recipes-pills button:nth-child(2),
#mbt-user-shell-v090e .mbt-recipes-chat .mbt-recipes-pills button:nth-child(3) {
  display: none !important;
}

/* Make the AI input row cleaner and aligned. */
#mbt-user-shell-v090e .mbt-recipes-input {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

#mbt-user-shell-v090e .mbt-recipes-input input {
  height: 52px !important;
  min-height: 52px !important;
  border-color: rgba(38, 198, 218, 0.50) !important;
  box-shadow:
    inset 0 0 0 1px rgba(38, 198, 218, 0.18),
    0 0 0 1px rgba(38, 198, 218, 0.08) !important;
}

#mbt-user-shell-v090e .mbt-recipes-input input:focus {
  border-color: rgba(38, 198, 218, 0.78) !important;
  box-shadow:
    inset 0 0 0 1px rgba(38, 198, 218, 0.24),
    0 0 0 4px rgba(38, 198, 218, 0.10) !important;
}

#mbt-user-shell-v090e .mbt-recipes-input button {
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 15px !important;
  line-height: 1 !important;
}

/* MBT_RECIPES_ASSISTANT_SAFE_CSS_CLEANUP_V0_9_59D1_END */

/* MBT_RECIPES_CHAT_SCROLL_AREA_V0_9_60B_START */

/* Keep the whole assistant block structured vertically */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Chat message area gets its own internal scroll */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* Slight spacing between messages if needed */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > * + * {
  margin-top: 14px;
}

/* Subtle scrollbar styling */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox::-webkit-scrollbar {
  width: 10px;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox::-webkit-scrollbar-track {
  background: rgba(9, 20, 40, 0.55);
  border-radius: 999px;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox::-webkit-scrollbar-thumb {
  background: rgba(38, 198, 218, 0.45);
  border-radius: 999px;
  border: 2px solid rgba(9, 20, 40, 0.55);
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox::-webkit-scrollbar-thumb:hover {
  background: rgba(38, 198, 218, 0.65);
}

/* Firefox */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 198, 218, 0.45) rgba(9, 20, 40, 0.55);
}

@media (max-width: 1100px) {
  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
    max-height: 360px;
  }
}

/* MBT_RECIPES_CHAT_SCROLL_AREA_V0_9_60B_END */


/* MBT_RECIPES_CHAT_POLISH_MENU_V0_9_60C_START */

/* Make the chat area subtly lighter than the surrounding card. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  background:
    linear-gradient(180deg, rgba(7, 31, 54, 0.72), rgba(5, 23, 42, 0.48)) !important;
  border: 1px solid rgba(38, 198, 218, 0.16) !important;
  border-radius: 18px !important;
  padding: 14px !important;
}

/* Assistant header menu. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(38, 198, 218, 0.28);
  background: rgba(7, 31, 54, 0.72);
  color: rgba(226, 232, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-toggle:hover {
  border-color: rgba(38, 198, 218, 0.55);
  background: rgba(10, 45, 75, 0.86);
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(38, 198, 218, 0.22);
  background: rgba(5, 18, 32, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-panel[hidden] {
  display: none !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-panel button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.92);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-menu-panel button:hover {
  background: rgba(38, 198, 218, 0.16);
  color: #ffffff;
}

/* MBT_RECIPES_CHAT_POLISH_MENU_V0_9_60C_END */


/* MBT_RECIPES_CHAT_COMPACT_MESSAGES_V0_9_60D_START */

/* Slightly more readable / lighter chat surface. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  background:
    linear-gradient(180deg, rgba(8, 37, 62, 0.78), rgba(6, 26, 46, 0.58)) !important;
}

/* Compact message layout: label/avatar on the side, text on the side. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  display: grid !important;
  gap: 8px !important;
  align-items: start !important;
  max-width: 88% !important;
  padding: 11px 13px !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user {
  grid-template-columns: minmax(0, 1fr) 34px !important;
  margin-left: auto !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user b,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai b {
  margin: 0 !important;
  line-height: 1.2 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), transparent 0 18%),
    linear-gradient(135deg, rgba(38, 198, 218, 0.95), rgba(34, 197, 94, 0.72)) !important;
  border: 1px solid rgba(38, 198, 218, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.08) !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user b::after {
  content: "TD";
  color: #061826;
  font-size: 11px;
  font-weight: 950;
  line-height: 34px;
  display: block;
  text-align: center;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user p {
  grid-column: 1 !important;
  grid-row: 1 !important;
  text-align: left !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai p {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user p,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}

/* MBT_RECIPES_CHAT_COMPACT_MESSAGES_V0_9_60D_END */

/* MBT_RECIPES_CHAT_STABLE_HEIGHT_V0_9_60E_START */

/* Keep the chat conversation area visually stable even with only a few messages. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  min-height: 300px !important;
  max-height: 420px !important;
}

/* Keep the assistant card balanced when chat has little content. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
  min-height: 520px !important;
}

/* On smaller screens keep it slightly more compact. */
@media (max-width: 1100px) {
  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
    min-height: 260px !important;
    max-height: 360px !important;
  }

  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
    min-height: 470px !important;
  }
}

/* MBT_RECIPES_CHAT_STABLE_HEIGHT_V0_9_60E_END */


/* MBT_RECIPES_CLEAN_CHAT_START_V0_9_60F_START */

/* Larger, stable conversation area after removing Surprise me. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  min-height: 390px !important;
  max-height: 560px !important;
}

/* Let the full assistant card breathe more. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
  min-height: 620px !important;
}

/* Remove individual message bubble framing. The chatbox itself is the frame. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}

/* Keep compact readable chat text. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user p,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Make MBT Chef label compact on the side. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  grid-template-columns: 78px minmax(0, 1fr) !important;
}

/* No empty gap where Surprise me used to sit. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-input {
  margin-top: 18px !important;
}

@media (max-width: 1100px) {
  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
    min-height: 330px !important;
    max-height: 460px !important;
  }

  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
    min-height: 540px !important;
  }
}

/* MBT_RECIPES_CLEAN_CHAT_START_V0_9_60F_END */

/* MBT_RECIPES_CHAT_SPACE_OPTIMIZATION_V0_9_60G_START */

/* Use more of the assistant card height for the actual conversation. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
  min-height: 700px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Larger conversation window. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  flex: 1 1 auto !important;
  min-height: 500px !important;
  max-height: 640px !important;
  padding: 10px 12px !important;
}

/* Pull the input area lower, closer to the card bottom. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-input {
  margin-top: auto !important;
  padding-top: 12px !important;
}

/* Reduce message spacing so more conversation fits. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > * + * {
  margin-top: 6px !important;
}

/* Reduce vertical padding inside each message row. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Slightly tighter text. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user p,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai p {
  font-size: 12.5px !important;
  line-height: 1.34 !important;
}

/* Keep side labels compact. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai b {
  font-size: 11.5px !important;
}

@media (max-width: 1100px) {
  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chat {
    min-height: 610px !important;
  }

  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
    min-height: 420px !important;
    max-height: 520px !important;
  }
}

/* MBT_RECIPES_CHAT_SPACE_OPTIMIZATION_V0_9_60G_END */

/* MBT_RECIPES_CHAT_BOTTOM_ANCHORING_V0_9_60H_START */

/* Bottom anchored chat: first/short conversation stays near the input, then grows upward. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 10px !important;

  min-height: 500px !important;
  max-height: 640px !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Remove old vertical margin stacking between messages. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > * + * {
  margin-top: 0 !important;
}

/* Keep message rows compact. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  flex: 0 0 auto !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  min-height: auto !important;
}

/* User messages stay on the right, MBT Chef on the left. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user {
  align-self: flex-end !important;
}

#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai {
  align-self: flex-start !important;
}

/* Slightly tighter text for more messages in the same space. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-user p,
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox > .is-ai p {
  font-size: 12.5px !important;
  line-height: 1.32 !important;
}

/* Keep input close to the bottom of the assistant card. */
#mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-input {
  margin-top: 12px !important;
}

@media (max-width: 1100px) {
  #mbt-user-shell-v090e [data-mbt-recipes-root] .mbt-recipes-chatbox {
    min-height: 420px !important;
    max-height: 520px !important;
  }
}

/* MBT_RECIPES_CHAT_BOTTOM_ANCHORING_V0_9_60H_END */


/* MBT_RECIPES_CHAT_TEXTAREA_INPUT_V0_9_63G_START */
[data-mbt-recipes-root] textarea[data-mbt-recipes-chat-input],
[data-mbt-recipes-root] textarea[placeholder*="MBT Chef"] {
  width: 100%;
  min-height: 52px;
  max-height: 96px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.35;
  padding: 15px 18px;
  box-shadow: none;
  overflow: hidden;
}

[data-mbt-recipes-root] textarea[data-mbt-recipes-chat-input]::placeholder,
[data-mbt-recipes-root] textarea[placeholder*="MBT Chef"]::placeholder {
  color: rgba(220, 235, 245, 0.52);
}
/* MBT_RECIPES_CHAT_TEXTAREA_INPUT_V0_9_63G_END */

/* MBT_RECIPES_TEXTAREA_FRAME_RESTORE_V0_9_63G2_START */
[data-mbt-recipes-root] textarea[data-mbt-recipes-chat-input],
[data-mbt-recipes-root] textarea[placeholder*="MBT Chef"] {
  display: block !important;
  width: 100% !important;
  min-height: 52px !important;
  max-height: 96px !important;
  resize: none !important;
  box-sizing: border-box !important;

  border: 1px solid rgba(34, 214, 222, 0.72) !important;
  border-radius: 14px !important;
  background: rgba(2, 20, 34, 0.92) !important;
  color: rgba(238, 248, 255, 0.96) !important;

  padding: 15px 18px !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(34, 214, 222, 0.08), inset 0 0 18px rgba(0, 212, 255, 0.035) !important;

  font: inherit !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
}

[data-mbt-recipes-root] textarea[data-mbt-recipes-chat-input]:focus,
[data-mbt-recipes-root] textarea[placeholder*="MBT Chef"]:focus {
  border-color: rgba(36, 231, 238, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(36, 231, 238, 0.28), 0 0 18px rgba(36, 231, 238, 0.16) !important;
}

[data-mbt-recipes-root] textarea[data-mbt-recipes-chat-input]::placeholder,
[data-mbt-recipes-root] textarea[placeholder*="MBT Chef"]::placeholder {
  color: rgba(220, 235, 245, 0.48) !important;
}
/* MBT_RECIPES_TEXTAREA_FRAME_RESTORE_V0_9_63G2_END */
