/* Extracted from index.html. Banana Chat workspace panel, composer, thread, lightbox, and single-generate task styles. */

html:has(#ai-banana-chat.active) {
  scroll-padding-top: 72px;
  scroll-padding-bottom: var(--banana-chat-page-scroll-padding-bottom, 280px);
}

#ai-banana-chat.banana-chat-workspace-panel {
  padding: 0;
  min-height: calc(100vh - 50px);
  overflow: visible;
  color: #202124;
  background: #f6f7f2;
  letter-spacing: 0;
}

.banana-chat-page {
  min-height: calc(100vh - 50px);
  display: grid;
  grid-template-rows: 1fr;
}

.banana-chat-workspace {
  position: relative;
  min-height: calc(100vh - 50px);
  padding: 34px 34px calc(var(--banana-chat-composer-safe-area, 280px) + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.banana-chat-stage {
  width: min(760px, calc(100vw - 68px));
  aspect-ratio: 1.35;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
}

#ai-banana-chat.has-chat-thread .banana-chat-stage {
  width: min(1120px, calc(100vw - 68px));
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  place-items: stretch;
  align-content: start;
  overflow: visible;
}

#ai-banana-chat.has-chat-thread .banana-chat-workspace,
#ai-banana-chat.has-single-tasks .banana-chat-workspace {
  place-items: start center;
  align-content: start;
}

.banana-chat-brand-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #5f646c;
  user-select: none;
  animation: bananaChatBrandIntro .88s cubic-bezier(.2, .9, .18, 1) both;
  transform: translateX(0);
  opacity: 1;
}

.banana-chat-brand-placeholder.is-switching {
  animation: bananaChatBrandSwitch .56s cubic-bezier(.2, .9, .18, 1) both;
}

.banana-chat-brand-placeholder.has-played {
  animation: none;
}

.banana-chat-brand-placeholder.has-played.is-switching {
  animation: bananaChatBrandSwitch .56s cubic-bezier(.2, .9, .18, 1) both;
}

.banana-chat-banana-word {
  display: block;
  font-size: clamp(54px, 8vw, 104px);
  line-height: .86;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: bananaChatWordSlide .78s cubic-bezier(.2, .9, .18, 1) both;
  transform: translateX(0);
  opacity: 1;
}

.banana-chat-mode-word {
  display: inline-block;
  margin-top: 14px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: #858b80;
  animation: bananaChatModeWordSlide .78s .08s cubic-bezier(.2, .9, .18, 1) both;
  transform: translateX(34px);
  opacity: 1;
}

html.theme-dark .banana-chat-brand-placeholder {
  color: #202124;
}

html.theme-dark .banana-chat-mode-word {
  color: #5e665c;
}

.banana-chat-brand-placeholder.has-played .banana-chat-banana-word,
.banana-chat-brand-placeholder.has-played .banana-chat-mode-word,
.banana-chat-brand-placeholder.is-switching .banana-chat-banana-word,
.banana-chat-brand-placeholder.is-switching .banana-chat-mode-word {
  animation: none;
}

.banana-chat-mode-word::after { content: "Create"; }
#ai-banana-chat.is-chat-mode .banana-chat-mode-word::after { content: "Chat"; }

#ai-banana-chat.has-chat-thread .banana-chat-brand-placeholder {
  display: none;
}

#ai-banana-chat.has-single-tasks .banana-chat-brand-placeholder {
  display: none;
}

@keyframes bananaChatBrandIntro {
  0% { opacity: 0; transform: translateX(-44px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes bananaChatBrandSwitch {
  0% { opacity: 1; transform: translateX(0); }
  42% { opacity: 0; transform: translateX(28px); }
  43% { opacity: 0; transform: translateX(-44px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes bananaChatWordSlide {
  0% { opacity: 0; transform: translateX(-28px); }
  70% { opacity: 1; transform: translateX(2px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes bananaChatModeWordSlide {
  0% { opacity: 0; transform: translateX(6px); }
  70% { opacity: 1; transform: translateX(36px); }
  100% { opacity: 1; transform: translateX(34px); }
}

.banana-chat-composer-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(984px, calc(100vw - 36px));
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 920px) 46px;
  justify-content: center;
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
  pointer-events: none;
}

.banana-chat-history-btn {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  align-self: start;
  justify-self: start;
  width: 46px;
  height: 46px;
  margin-left: -4px;
  margin-top: 22px;
  border: 1px solid rgba(32,33,36,.06);
  border-radius: 14px;
  background: rgba(238,239,235,.96);
  color: #65707d;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 12px 28px rgba(47,55,67,.10);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.banana-chat-history-btn:active {
  transform: scale(.94);
}

.banana-chat-history-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ai-banana-chat:not(.active) .banana-chat-composer-wrap {
  display: none;
}

.banana-chat-composer-wrap > * {
  pointer-events: auto;
}

.banana-chat-mode-switch {
  grid-column: 1;
  justify-self: center;
  position: relative;
  width: 214px;
  height: 40px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  border: 1px solid rgba(32,33,36,.08);
  background: rgba(255,255,255,.92);
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
}

.banana-chat-mode-switch.is-pressing {
  animation: bananaChatSwitchPress .34s cubic-bezier(.2, .9, .18, 1);
}

.banana-chat-mode-switch::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #ffd451;
  box-shadow: inset 0 -1px 0 rgba(139, 94, 0, .12), 0 6px 14px rgba(205, 145, 0, .12);
  transition: transform .38s cubic-bezier(.16, 1.35, .32, 1);
  z-index: -1;
}

.banana-chat-mode-switch.is-pressing::before {
  animation: bananaChatThumbSquish .38s cubic-bezier(.2, .9, .18, 1);
}

#ai-banana-chat.is-chat-mode .banana-chat-mode-switch::before {
  transform: translateX(100%);
}

.banana-chat-mode-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #68707c;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

#ai-banana-chat:not(.is-chat-mode) .banana-chat-mode-switch button:first-child,
#ai-banana-chat.is-chat-mode .banana-chat-mode-switch button:last-child {
  color: #16130a;
}

@keyframes bananaChatSwitchPress {
  0% { transform: scale(1); }
  38% { transform: scaleX(.985) scaleY(.94); }
  68% { transform: scaleX(1.018) scaleY(1.04); }
  100% { transform: scale(1); }
}

@keyframes bananaChatThumbSquish {
  0% { border-radius: 999px; }
  35% { border-radius: 16px; }
  72% { border-radius: 999px; }
  100% { border-radius: 999px; }
}

.banana-chat-composer {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(205, 145, 0, .24);
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 28px rgba(47,55,67,.08);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.banana-chat-composer-top {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
}

.banana-chat-reference-stack {
  position: relative;
  width: 72px;
  min-height: 76px;
  overflow: visible;
}

.banana-chat-reference-stack.has-previews::before {
  content: "";
  position: absolute;
  left: var(--banana-chat-reference-hit-left, 0px);
  top: var(--banana-chat-reference-hit-top, 0px);
  width: var(--banana-chat-reference-hit-width, 0px);
  height: var(--banana-chat-reference-hit-height, 0px);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

.banana-chat-reference-stack.has-previews.is-expanded::before {
  pointer-events: auto;
}

.banana-chat-add {
  width: 56px;
  height: 68px;
  border: 1px solid rgba(32,33,36,.08);
  border-radius: 12px;
  background: #eef0e9;
  color: #8a9286;
  font-size: 28px;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.banana-chat-add:hover {
  transform: rotate(-5deg) translateY(-1px);
}

.banana-chat-reference-stack.has-previews .banana-chat-add {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.banana-chat-ref-previews {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 76px;
  pointer-events: none;
}

.banana-chat-reference-stack.has-previews .banana-chat-ref-previews {
  pointer-events: auto;
  cursor: pointer;
}

.banana-chat-ref-thumb {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66px;
  height: 78px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 12px;
  overflow: visible;
  background: #f5f2e7;
  box-shadow: 0 8px 18px rgba(31,35,41,.16);
  transform: translateY(calc(var(--i, 0) * -5px)) rotate(calc((var(--i, 0) - 1) * -4deg)) scale(.92);
  transition: transform .3s cubic-bezier(.2,.9,.18,1), box-shadow .24s ease, opacity .18s ease;
  z-index: calc(16 + var(--i, 0));
}

.banana-chat-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.banana-chat-ref-preview-button {
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

.banana-chat-ref-preview-button:focus-visible {
  outline: 3px solid rgba(255,202,47,.58);
  outline-offset: 3px;
}

.banana-chat-reference-stack.has-previews.is-expanded {
  width: 72px;
  z-index: 8;
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb {
  transform:
    translateX(calc(var(--fan-x, 0) * 1px))
    translateY(calc(var(--fan-y, 0) * -1px))
    rotate(calc(var(--fan-r, 0) * 1deg))
    scale(var(--fan-s, 1));
  box-shadow: 0 10px 22px rgba(31,35,41,.18);
}

.banana-chat-ref-thumb.is-add {
  display: grid;
  place-items: center;
  color: #8a9286;
  font-size: 28px;
  font-weight: 700;
  background: #eef0e9;
  opacity: 0;
  transform: translateY(0) rotate(-4deg) scale(.92);
  cursor: pointer;
  z-index: 8;
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb.is-add {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.banana-chat-ref-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: rgba(255,93,97,.96);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  opacity: 0;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(255,93,97,.24);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2;
}

.banana-chat-ref-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  background: #ffca2f;
  color: #2b230a;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  opacity: 0;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(255,184,0,.26);
  overflow: hidden;
  transition: opacity .16s ease, transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  z-index: 6;
}

.banana-chat-ref-thumb.is-front .banana-chat-ref-badge {
  opacity: 1;
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-badge {
  opacity: 1;
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb:hover .banana-chat-ref-badge {
  background: rgba(255,93,97,.96);
  color: #fff;
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 8px 18px rgba(255,93,97,.28);
}

.banana-chat-ref-badge span {
  grid-area: 1 / 1;
  transition: opacity .16s ease, transform .18s ease;
}

.banana-chat-ref-badge .badge-index {
  opacity: 0;
  transform: translateY(8px) scale(.86);
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-badge .badge-total {
  opacity: 0;
  transform: translateY(-8px) scale(.86);
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-badge .badge-index {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.banana-chat-ref-badge .badge-x {
  opacity: 0;
  transform: rotate(-45deg) scale(.72);
  font-size: 17px;
  color: #fff;
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb:hover .banana-chat-ref-badge .badge-index,
.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb:hover .banana-chat-ref-badge .badge-total {
  opacity: 0;
  transform: translateY(-8px) scale(.72);
}

.banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb:hover .banana-chat-ref-badge .badge-x {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.banana-chat-ref-badge:active {
  transform: scale(.9);
}

.banana-chat-ref-count {
  position: absolute;
  left: 48px;
  top: -10px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: #ffca2f;
  color: #2b230a;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(255,184,0,.25);
  z-index: 80;
  pointer-events: none;
}

.banana-chat-clear-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,93,97,.10);
  color: #FF5D61;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

.banana-chat-clear-btn:hover {
  background: rgba(255,93,97,.16);
}

.banana-chat-clear-btn:active {
  transform: scale(.92);
}

.banana-chat-clear-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banana-chat-prompt-input {
  width: 100%;
  min-height: 76px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #1f2329;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 750;
  padding: 5px 0;
}

.banana-chat-prompt-input::placeholder {
  color: #8e949e;
  font-weight: 300;
}

.banana-chat-send {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd84a 0%, #ffbd16 58%, #f5a900 100%);
  color: #16130a;
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-top: 22px;
  box-shadow: inset 0 -3px 0 rgba(157, 104, 0, .2), 0 10px 22px rgba(255, 184, 0, .34);
}

#ai-banana-chat .banana-chat-send {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd84a 0%, #ffbd16 58%, #f5a900 100%);
  color: #16130a;
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-top: 22px;
  box-shadow: inset 0 -3px 0 rgba(157, 104, 0, .2), 0 10px 22px rgba(255, 184, 0, .34);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

#ai-banana-chat .banana-chat-send svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(1px);
}

#ai-banana-chat .banana-chat-send:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffdf63 0%, #ffc323 58%, #f5a900 100%);
  box-shadow: inset 0 -3px 0 rgba(157, 104, 0, .2), 0 14px 28px rgba(255, 184, 0, .38);
}

#ai-banana-chat .banana-chat-send:active {
  transform: scale(.95);
}

#ai-banana-chat .banana-chat-send:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

#ai-banana-chat .banana-chat-send.is-limit-disabled {
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(1);
  transform: none;
  box-shadow: inset 0 -3px 0 rgba(80,80,80,.12), 0 8px 18px rgba(47,55,67,.12);
}

.banana-chat-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.banana-chat-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 0;
  position: relative;
}

.banana-chat-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.banana-chat-chip {
  position: relative;
  height: 34px;
  max-width: 220px;
  border: 1px solid rgba(32,33,36,.08);
  border-radius: 999px;
  background: #f7f8f4;
  color: #4b5563;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  user-select: none;
}

.banana-chat-model-trigger {
  overflow: hidden;
  white-space: nowrap;
}

.banana-chat-model-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banana-chat-model-trigger-note {
  display: none;
  flex: 0 0 auto;
  color: #a76400;
  font-size: 10px;
  font-weight: 850;
}

.banana-chat-model-trigger.is-disabled-model {
  border-color: rgba(168, 100, 0, .18);
  background: #fff7df;
  color: #7e6637;
}

.banana-chat-model-trigger.is-disabled-model .banana-chat-model-trigger-note {
  display: inline;
}

.banana-chat-model-trigger.is-model-loading {
  cursor: wait;
  opacity: .7;
}

.banana-chat-chip:active,
.banana-chat-chip.is-pressing {
  transform: scale(.94);
}

.banana-chat-chip[aria-expanded="true"] {
  background: #fff;
  border-color: rgba(205,145,0,.18);
  color: #1f2329;
}

.banana-chat-model-menu {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 10px);
  min-width: 184px;
  max-width: min(300px, calc(100vw - 40px));
  max-height: min(420px, calc(100vh - 180px));
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(32,33,36,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(47,55,67,.16);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 4px;
  z-index: 4;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: bananaChatMenuIn .18s cubic-bezier(.2, .9, .18, 1) both;
}

.banana-chat-model-group {
  display: grid;
  gap: 3px;
}

.banana-chat-model-group + .banana-chat-model-group {
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid rgba(32,33,36,.06);
}

.banana-chat-model-group-title {
  padding: 5px 10px 2px;
  color: #8b919b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.banana-chat-ratio-menu {
  left: 50%;
  right: auto;
  min-width: 196px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.banana-chat-model-menu[hidden] {
  display: none;
}

.banana-chat-model-option,
.banana-chat-ratio-option {
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #4b5563;
  padding: 0 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .16s ease, background .16s ease, color .16s ease;
  cursor: pointer;
}

.banana-chat-model-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banana-chat-model-option-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banana-chat-model-option-note {
  flex: 0 0 auto;
  color: #a76400;
  font-size: 10px;
  font-weight: 850;
}

.banana-chat-ratio-trigger {
  min-width: 76px;
}

.banana-chat-ratio-option {
  height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  padding: 0 9px;
}

.banana-chat-ratio-frame {
  width: var(--banana-chat-ratio-width, 22px);
  height: var(--banana-chat-ratio-height, 22px);
  max-width: 26px;
  max-height: 22px;
  justify-self: center;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
  opacity: .72;
}

.banana-chat-ratio-label {
  line-height: 1;
}

.banana-chat-model-option:hover,
.banana-chat-model-option.is-active,
.banana-chat-ratio-option:hover,
.banana-chat-ratio-option.is-active {
  background: #f7f8f4;
  color: #16130a;
}

.banana-chat-model-option:disabled,
.banana-chat-model-option.is-disabled,
.banana-chat-model-option:disabled:hover,
.banana-chat-model-option:disabled.is-active {
  cursor: not-allowed;
  color: #9aa0aa;
  background: transparent;
  opacity: .72;
}

.banana-chat-model-option:active,
.banana-chat-model-option.is-pressing,
.banana-chat-ratio-option:active,
.banana-chat-ratio-option.is-pressing {
  transform: scale(.96);
}

@keyframes bananaChatMenuIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.98); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.banana-chat-result-stream {
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #737985;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.banana-chat-result-stream:empty {
  display: none;
}

#ai-banana-chat:not(.is-chat-mode) .banana-chat-result-stream {
  display: none;
}

#ai-banana-chat.has-chat-thread .banana-chat-result-stream {
  width: 100%;
  min-height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-items: stretch;
  align-items: stretch;
  gap: 14px;
  text-align: left;
  padding: 24px 0 36px;
}

.banana-chat-task-board {
  width: min(1080px, 100%);
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 18px;
  align-self: stretch;
  justify-content: center;
  padding: 24px 0 36px;
}

#ai-banana-chat:not(.is-chat-mode).has-single-tasks .banana-chat-task-board {
  display: grid;
}

#ai-banana-chat.has-single-tasks .banana-chat-stage {
  width: min(1120px, calc(100vw - 68px));
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  place-items: stretch;
  align-content: start;
  overflow: visible;
  padding-top: 0;
}

.banana-chat-task-card {
  min-height: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}

.banana-chat-task-card.is-entering {
  animation: bananaChatTaskEnter .46s cubic-bezier(.2, .9, .18, 1) both;
}

.banana-chat-task-card.is-removing {
  pointer-events: none;
  transform-origin: calc(100% - 18px) 18px;
  will-change: transform, opacity;
  animation: bananaChatTaskRemove .24s cubic-bezier(.4, 0, 1, 1) both;
}

.banana-chat-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 900;
}

.banana-chat-task-state {
  color: #8a9286;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.banana-chat-task-refs {
  display: flex;
  gap: 6px;
  min-height: 38px;
  align-items: center;
  flex-wrap: wrap;
}

.banana-chat-task-ref {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: #eef0e9;
  border: 1px solid rgba(32,33,36,.07);
}

.banana-chat-task-ref-empty {
  color: #a1a8b2;
  font-size: 12px;
  font-weight: 750;
}

.banana-chat-task-result {
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,241,238,.76));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  box-shadow: 0 12px 28px rgba(47,55,67,.09);
  border: 1px solid rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  position: relative;
}

.banana-chat-task-result.is-error {
  color: rgba(57,65,80,.68);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,244,244,.78));
}

.banana-chat-task-error-text {
  max-width: 210px;
}

.banana-chat-task-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 50%;
  color: rgba(57,65,80,.52);
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 20px rgba(47,55,67,.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(.86);
  transition: opacity .16s ease, transform .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.banana-chat-task-dismiss svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.banana-chat-task-dismiss:hover {
  color: rgba(57,65,80,.72);
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(47,55,67,.1);
}

.banana-chat-task-result:hover .banana-chat-task-dismiss,
.banana-chat-task-result:focus-within .banana-chat-task-dismiss {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.banana-chat-task-dismiss:focus-visible {
  outline: 3px solid rgba(239, 184, 0, .38);
  outline-offset: 2px;
}

.banana-chat-task-result.is-pending::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,210,58,.42), transparent 30%),
    radial-gradient(circle at 78% 74%, rgba(134,170,255,.26), transparent 32%),
    linear-gradient(145deg, rgba(248,249,245,.96), rgba(223,226,222,.88));
  background-size: 130% 130%, 140% 140%, 100% 100%;
  box-shadow: none;
  animation: bananaChatPhotoDevelop 4.8s ease-in-out infinite;
}

.banana-chat-task-timer {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 12px;
  z-index: 3;
  min-width: 44px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.72);
  color: rgba(57,65,80,.62);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(47,55,67,.08);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  pointer-events: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.banana-chat-task-timer.is-ticking {
  animation: bananaChatTimerTick 1s ease-in-out infinite;
}

.banana-chat-task-timer.is-done {
  left: 14px;
  right: auto;
  color: rgba(57,65,80,.52);
  background: rgba(255,255,255,.58);
  animation: none;
}

.banana-chat-task-result .banana-chat-image-frame,
.banana-chat-task-result .banana-chat-image-frame > a:not(.banana-chat-image-download),
.banana-chat-task-result img {
  width: 100%;
  height: 100%;
}

.banana-chat-task-result img {
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #f7f8f4;
}

.banana-chat-task-result .banana-chat-image-frame {
  cursor: zoom-in;
}

html.theme-dark .banana-chat-task-result.has-image {
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.banana-chat-task-result.has-image .banana-chat-image-frame,
.banana-chat-task-result.has-image .banana-chat-image-frame > a:not(.banana-chat-image-download),
.banana-chat-task-result.has-image img {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.banana-chat-task-result.has-image {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html.theme-dark .banana-chat-task-result.is-pending::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255,193,18,.22), transparent 31%),
    radial-gradient(circle at 78% 74%, rgba(91,126,220,.18), transparent 34%),
    linear-gradient(145deg, #181a1d, #23262a);
  background-size: 130% 130%, 140% 140%, 100% 100%;
  box-shadow: none;
}

html.theme-dark .banana-chat-task-result.is-pending {
  border: 0;
  box-shadow: none;
}

.banana-chat-task-result.is-pending {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@keyframes bananaChatTaskEnter {
  0% { opacity: 0; transform: translateY(14px) scale(.965); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bananaChatTaskRemove {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(8px) scale(.88); }
}

@keyframes bananaChatFramePulse {
  0%, 100% { transform: scale(.92); opacity: .58; }
  50% { transform: scale(1); opacity: .98; }
}

@keyframes bananaChatPhotoDevelop {
  0%, 100% { background-position: 12% 10%, 88% 88%, 0 0; filter: saturate(.9); }
  50% { background-position: 17% 15%, 78% 76%, 0 0; filter: saturate(1); }
}

@keyframes bananaChatTimerTick {
  0%, 100% { transform: translateY(0); opacity: .76; }
  50% { transform: translateY(-1px); opacity: 1; }
}

.banana-chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 16px;
  padding: 58px 44px 34px;
  background: rgba(12,13,15,.72);
  backdrop-filter: blur(18px);
}

.banana-chat-lightbox[hidden] {
  display: none;
}

.banana-chat-lightbox-image {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.banana-chat-lightbox-media {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}

.banana-chat-lightbox-image img {
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.32);
  background: #f7f8f4;
}

.banana-chat-lightbox-side {
  width: min(860px, calc(100vw - 88px));
  max-height: 128px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  color: #394150;
  padding: 12px;
  box-shadow: 0 18px 58px rgba(0,0,0,.20);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.banana-chat-lightbox-prompt {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 520;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
}

.banana-chat-lightbox-refs {
  display: flex;
  align-items: center;
  gap: 7px;
}

.banana-chat-lightbox-ref {
  width: 58px;
  height: 58px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.banana-chat-lightbox-ref:hover,
.banana-chat-lightbox-ref:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(205,145,0,.44);
  outline: none;
}

.banana-chat-lightbox-ref.is-active {
  border-color: #e5ad16;
  background: rgba(255,212,81,.22);
  cursor: zoom-out;
}

.banana-chat-lightbox-ref img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #eef0e9;
}

.banana-chat-lightbox-download {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #ffd451;
  color: #17130a;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(205,145,0,.22);
  cursor: pointer;
  flex: 0 0 auto;
}

.banana-chat-lightbox-download svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banana-chat-lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #394150;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.banana-chat-lightbox-close svg,
.banana-chat-image-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.banana-chat-result-text {
  max-width: 100%;
  white-space: pre-wrap;
  font-weight: 420;
}

.banana-chat-thread-row {
  display: flex;
  width: 100%;
  animation: bananaChatMessageIn .22s ease both;
}

.banana-chat-thread-row.is-user {
  justify-content: flex-end;
}

.banana-chat-thread-row.is-assistant {
  justify-content: flex-start;
}

.banana-chat-thread-bubble {
  max-width: min(78%, 780px);
  border-radius: 22px;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 430;
  white-space: pre-wrap;
  word-break: break-word;
}

.banana-chat-thread-row.is-user .banana-chat-thread-bubble {
  background: #ffd451;
  color: #17130a;
  border-bottom-right-radius: 8px;
  box-shadow: 0 12px 28px rgba(205,145,0,.16);
}

.banana-chat-user-refs {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.banana-chat-user-refs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(23,19,10,.08);
  background: rgba(255,255,255,.42);
}

.banana-chat-thread-row.is-assistant .banana-chat-thread-bubble {
  background: rgba(255,255,255,.88);
  color: #4b5563;
  border: 1px solid rgba(32,33,36,.07);
  border-bottom-left-radius: 8px;
  box-shadow: 0 14px 34px rgba(47,55,67,.08);
}

#ai-banana-chat.has-chat-thread .banana-chat-thread-row.is-assistant .banana-chat-thread-bubble {
  max-width: min(82%, 860px);
}

.banana-chat-thread-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 10px;
}

.banana-chat-image-frame {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #eef0e9;
}

.banana-chat-image-frame > a:not(.banana-chat-image-download) {
  display: block;
}

.banana-chat-thread-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #eef0e9;
  box-shadow: 0 14px 32px rgba(47,55,67,.14);
}

.banana-chat-image-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  color: rgba(57,65,80,.52);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(47,55,67,.08);
  backdrop-filter: blur(10px);
}

.banana-chat-image-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  color: rgba(57,65,80,.52);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(47,55,67,.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.banana-chat-image-download,
.banana-chat-image-close {
  opacity: 0;
  pointer-events: none;
  transform: scale(.86);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.banana-chat-image-frame:hover .banana-chat-image-download,
.banana-chat-image-frame:hover .banana-chat-image-close,
.banana-chat-image-frame:focus-within .banana-chat-image-download,
.banana-chat-image-frame:focus-within .banana-chat-image-close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.banana-chat-image-download:hover,
.banana-chat-image-close:hover {
  color: rgba(57,65,80,.72);
  background: rgba(255,255,255,.76);
}

.banana-chat-image-frame:hover .banana-chat-image-close:active,
.banana-chat-image-frame:focus-within .banana-chat-image-close:active,
.banana-chat-task-result:hover .banana-chat-task-dismiss:active,
.banana-chat-task-result:focus-within .banana-chat-task-dismiss:active {
  transform: scale(.9);
  transition-duration: .08s;
}

@media (hover: none) {
  .banana-chat-image-download,
  .banana-chat-image-close,
  .banana-chat-task-dismiss {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}

.banana-chat-image-download svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banana-chat-thread-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}

.banana-chat-thread-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .42;
  animation: bananaChatThreadDot .86s ease-in-out infinite;
}

.banana-chat-thread-typing span:nth-child(2) { animation-delay: .12s; }
.banana-chat-thread-typing span:nth-child(3) { animation-delay: .24s; }

@keyframes bananaChatMessageIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bananaChatThreadDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .36; }
  40% { transform: translateY(-5px); opacity: .9; }
}

body.banana-chat-history-open {
  overflow: hidden;
}

.banana-chat-history-layer {
  position: fixed;
  inset: 0;
  z-index: 10010;
}

.banana-chat-history-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(29, 31, 28, .28);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}

.banana-chat-history-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(520px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(251, 250, 246, .96);
  box-shadow: 0 28px 90px rgba(43, 40, 28, .22);
  transform: translateX(calc(100% + 28px));
  transition: transform .32s cubic-bezier(.2, .78, .2, 1);
}

.banana-chat-history-layer.is-open .banana-chat-history-backdrop { opacity: 1; }
.banana-chat-history-layer.is-open .banana-chat-history-panel { transform: translateX(0); }

.banana-chat-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(97, 87, 46, .1);
}

.banana-chat-history-kicker {
  display: block;
  margin-bottom: 7px;
  color: #a36f00;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
}

.banana-chat-history-header h2 {
  margin: 0;
  color: #22231f;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.banana-chat-history-header p {
  margin: 7px 0 0;
  color: #77766f;
  font-size: 13px;
}

.banana-chat-history-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #4d4d47;
  background: #eeede7;
  cursor: pointer;
}

.banana-chat-history-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.banana-chat-history-close:hover { background: #e2dfd3; transform: scale(1.04); }
.banana-chat-history-close:focus-visible,
.banana-chat-history-more:focus-visible,
.banana-chat-history-media:focus-visible,
.banana-chat-history-refs button:focus-visible { outline: 3px solid rgba(239, 184, 0, .4); outline-offset: 2px; }

.banana-chat-history-list {
  overflow: auto;
  padding: 20px 24px 28px 42px;
}

.banana-chat-history-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(72, 67, 43, .09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(54, 49, 28, .06);
}

.banana-chat-history-card::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 27px;
  width: 9px;
  height: 9px;
  border: 3px solid #f3c323;
  border-radius: 50%;
  background: #fbfaf6;
  box-shadow: 0 0 0 5px #fbfaf6;
}

.banana-chat-history-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -19px;
  top: 39px;
  bottom: -31px;
  width: 1px;
  background: linear-gradient(#e8c84f, rgba(232, 200, 79, .12));
}

.banana-chat-history-media {
  min-height: 128px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #ecebe5;
  cursor: zoom-in;
}

.banana-chat-history-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.banana-chat-history-media:hover img { transform: scale(1.035); }
.banana-chat-history-media:disabled { cursor: default; }
.banana-chat-history-processing { color: #8a887e; font-size: 12px; }

.banana-chat-history-card-body { min-width: 0; display: flex; flex-direction: column; }
.banana-chat-history-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #99968b; font-size: 11px; }
.banana-chat-history-meta time { color: #a36f00; font-weight: 750; }
.banana-chat-history-prompt { margin: 11px 0 14px; color: #34342f; font-size: 14px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.banana-chat-history-refs { display: flex; gap: 6px; margin-top: auto; }
.banana-chat-history-refs button { width: 30px; height: 30px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 9px; background: #eee; box-shadow: 0 2px 7px rgba(0,0,0,.12); cursor: zoom-in; }
.banana-chat-history-refs img { width: 100%; height: 100%; object-fit: cover; }

.banana-chat-history-more {
  justify-self: center;
  margin: 0 0 20px;
  padding: 9px 16px;
  border: 1px solid rgba(134, 104, 0, .16);
  border-radius: 999px;
  color: #765600;
  background: #fff5c8;
  cursor: pointer;
}

.banana-chat-history-empty { display: grid; place-items: center; min-height: 300px; color: #77766f; text-align: center; }
.banana-chat-history-empty-mark { color: #e3b400; font-size: 52px; line-height: 1; }
.banana-chat-history-empty strong { margin-top: 10px; color: #3b3a35; }
.banana-chat-history-empty p { margin: 6px 0 0; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .banana-chat-history-panel,
  .banana-chat-history-backdrop,
  .banana-chat-history-media img { transition: none; }
  .banana-chat-task-card.is-entering,
  .banana-chat-task-card.is-removing,
  .banana-chat-task-result.is-pending::before,
  .banana-chat-task-result.is-pending::after,
  .banana-chat-task-timer.is-ticking { animation: none; }
}

.banana-chat-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: min(520px, 100%);
}

.banana-chat-result-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(47,55,67,.16);
  background: #eef0e9;
}

.banana-chat-add.has-files {
  background: #fff7d8;
  color: #8a5d00;
  border-color: rgba(205,145,0,.2);
  font-size: 15px;
  font-weight: 900;
  transform: rotate(-4deg);
}

@media (max-width: 720px) {
  html:has(#ai-banana-chat.active) {
    scroll-padding-top: 62px;
    scroll-padding-bottom: var(--banana-chat-page-scroll-padding-bottom, 310px);
  }
  #ai-banana-chat.banana-chat-workspace-panel {
    overflow: visible;
  }
  .banana-chat-workspace {
    padding: 22px 16px calc(var(--banana-chat-composer-safe-area, 310px) + env(safe-area-inset-bottom));
  }
  .banana-chat-stage {
    width: 100%;
    aspect-ratio: 1;
  }
  .banana-chat-task-board {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .banana-chat-lightbox {
    grid-template-columns: 1fr;
    padding: 60px 16px 20px;
  }
  .banana-chat-lightbox-side {
    width: calc(100vw - 32px);
    max-height: 220px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .banana-chat-lightbox-refs {
    grid-column: 1 / -1;
    overflow-x: auto;
  }
  .banana-chat-brand-placeholder .banana-chat-mode-word {
    animation-name: bananaChatWordSlide;
  }
  .banana-chat-composer-wrap {
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: minmax(0, 1fr) 46px;
    column-gap: 8px;
  }
  .banana-chat-history-btn {
    width: 52px;
    height: 42px;
    margin-left: -12px;
    margin-top: 20px;
    padding-right: 11px;
  }
  .banana-chat-composer {
    border-radius: 22px;
  }
  .banana-chat-composer-bottom {
    justify-content: center;
  }
  .banana-chat-chips {
    justify-content: center;
  }
  .banana-chat-model-menu {
    left: 50%;
    right: auto;
    bottom: calc(100% + 9px);
  }
  .banana-chat-ratio-menu {
    left: 50%;
    right: auto;
  }
  .banana-chat-composer-top {
    grid-template-columns: 60px 1fr;
  }
  .banana-chat-reference-stack {
    width: 60px;
  }
  .banana-chat-ref-previews {
    width: 60px;
  }
  .banana-chat-ref-thumb {
    width: 58px;
    height: 68px;
  }
  .banana-chat-reference-stack.has-previews.is-expanded .banana-chat-ref-thumb {
    transform:
      translateX(calc(var(--fan-x, 0) * .72px))
      translateY(calc(var(--fan-y, 0) * -.82px))
      rotate(calc(var(--fan-r, 0) * 1deg))
      scale(var(--fan-s, 1));
  }
  .banana-chat-send {
    grid-column: 2;
    justify-self: end;
    margin-top: 0;
  }
  #ai-banana-chat .banana-chat-send {
    margin-top: 0;
  }
  .banana-chat-history-panel { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); border-radius: 24px; }
  .banana-chat-history-header { padding: 22px 20px 18px; }
  .banana-chat-history-list { padding: 16px 18px 24px 34px; }
  .banana-chat-history-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px; border-radius: 18px; }
  .banana-chat-history-media { min-height: 104px; }
}
