body.wotel-aiagent-active {
  overflow: hidden !important;
}

#gemini-app,
#gemini-app *,
#gemini-app *::before,
#gemini-app *::after {
  box-sizing: border-box !important;
}

#gemini-app {
  position: relative !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: 100% !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: row !important;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  color: #1f1f1f !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

#gemini-app img,
#gemini-app svg,
#gemini-app table,
#gemini-app pre,
#gemini-app code {
  max-width: 100% !important;
}

#sidebar-overlay {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sidebar-overlay.open {
  visibility: visible;
  opacity: 1;
}

#gemini-sidebar {
  width: 280px;
  background: #f0f4f9;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-right: 1px solid #e3e3e3;
  transition: transform 0.3s ease;
  z-index: 2000;
  flex: 0 0 280px;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-chat-btn {
  background: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.new-chat-btn:hover {
  background: #e8eaed;
}

.close-sidebar-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #5f6368;
  line-height: 1;
}

#history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px;
}

.history-item {
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  font-size: 14px;
  color: #1f1f1f;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item.active {
  background: #d3e3fd;
  font-weight: 500;
  color: #0b57d0;
}

.history-item:hover:not(.active) {
  background: #e8eaed;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid #e3e3e3;
}

.sidebar-contact-block {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 12px;
  line-height: 1.65;
  color: #5f6368;
}

.sidebar-copyright {
  margin-bottom: 6px;
}

.sidebar-contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sidebar-contact-links a {
  color: #0b57d0 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.sidebar-contact-links a:hover {
  text-decoration: underline !important;
}

.clear-all-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #d93025;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.clear-all-btn:hover {
  background: #fce8e6;
}

#gemini-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

#gemini-header {
  flex: 0 0 auto;
  padding: 14px 24px;
  font-size: 20px;
  font-weight: 500;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
  z-index: 10;
  background: #ffffff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  padding: 0;
  margin-right: 12px;
}

#chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#chat-inner {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 40px;
  gap: 32px;
  min-width: 0;
}

#welcome-splash {
  text-align: center;
  margin-top: 10vh;
  animation: fadeIn 1s ease-out;
}

#welcome-splash .splash-image {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 10px;
}

#welcome-splash h1 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
  margin: 20px 0 10px;
  background: -webkit-linear-gradient(45deg, #0b57d0, #b13bb9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#welcome-splash .welcome-subtitle {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 22px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #5f6368 !important;
  text-align: center !important;
}

.quick-action-grid {
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-card {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  border: 1px solid #e0e5e9;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: #a8c7fa;
  background: #f8fbff;
  box-shadow: 0 6px 18px rgba(60, 64, 67, 0.13);
}

.quick-action-card:active {
  transform: translateY(0);
}

.quick-action-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #1f1f1f;
}

.quick-action-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #5f6368;
}

.quick-action-card-wide {
  grid-column: 1 / -1;
}

.quick-action-style-primary {
  background: #f8fbff;
  border-color: #d2e3fc;
}

.quick-action-style-primary .quick-action-title {
  color: #0b57d0;
}

.quick-action-style-soft {
  background: #f8fbff;
  border-color: #e0e5e9;
  box-shadow: none;
}

.quick-action-style-outline {
  background: #ffffff;
  border-color: #a8c7fa;
  box-shadow: none;
}

.quick-action-style-outline .quick-action-title {
  color: #0b57d0;
}

.quick-action-card:hover .quick-action-title {
  text-decoration: none !important;
}

.msg-row {
  display: flex;
  width: 100%;
  animation: slideUp 0.3s ease-out;
  min-width: 0;
}

.msg-user {
  justify-content: flex-end;
}

.msg-user .bubble {
  background-color: #f0f4f9;
  color: #1f1f1f;
  padding: 12px 20px;
  border-radius: 24px;
  border-bottom-right-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 80%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg-ai {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.msg-ai .avatar-svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #0b57d0;
  margin-top: 2px;
}

.msg-ai .bubble {
  font-size: 16px;
  line-height: 1.7;
  color: #1f1f1f;
  max-width: 85%;
  min-width: 0;
  padding-top: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg-ai .bubble,
.msg-user .bubble,
.msg-ai .bubble *,
.msg-user .bubble * {
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.msg-ai .bubble > *:first-child {
  margin-top: 0 !important;
}

.msg-ai .bubble > *:last-child {
  margin-bottom: 0 !important;
}

.msg-ai .bubble a {
  color: #0b57d0 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.msg-ai .bubble a:hover {
  text-decoration: underline !important;
}

.msg-ai .bubble h1,
.msg-ai .bubble h2,
.msg-ai .bubble h3 {
  color: #002147;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.msg-ai .bubble h1 {
  font-size: 1.25em;
  border-bottom: 2px solid #e3e3e3;
  padding-bottom: 6px;
}

.msg-ai .bubble h2 {
  font-size: 1.15em;
}

.msg-ai .bubble h3 {
  font-size: 1.05em;
}

.msg-ai .bubble ul,
.msg-ai .bubble ol {
  padding-left: 1.4em;
  margin-top: 0.6em;
  margin-bottom: 1em;
}

.msg-ai .bubble li {
  margin-bottom: 0.45em;
  line-height: 1.65;
}

.msg-ai .bubble pre,
.msg-ai .bubble code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.msg-ai .bubble table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  table-layout: fixed;
}

.msg-ai .bubble th,
.msg-ai .bubble td {
  border: 1px solid #e0e5e9;
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.msg-ai .bubble th {
  background-color: #f0f4f9;
  color: #0b57d0;
  font-weight: 700;
  border-bottom: 2px solid #d2e3fc;
}

.msg-ai .bubble tr:nth-child(even) {
  background-color: #fafbfc;
}

.msg-ai .bubble tr:hover {
  background-color: #f4f7fb;
}

.ai-recommend-box {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e5e9;
}

.ai-recommend-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.ai-confirm-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid #d2e3fc;
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ai-confirm-box,
.ai-confirm-box * {
  white-space: normal !important;
}

.ai-confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: #0b57d0;
  margin: 0 0 12px 0 !important;
}

.ai-confirm-list {
  margin: 0 !important;
  padding-left: 20px !important;
  color: #1f1f1f;
}

.ai-confirm-list li {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  line-height: 1.65 !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ai-confirm-list li:last-child {
  margin-bottom: 0 !important;
}

.ai-confirm-list li br {
  display: none !important;
}

.ai-confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-cta-btn {
  background: linear-gradient(135deg, #0b57d0, #1a73e8);
  color: #ffffff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(11, 87, 208, 0.2);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.ai-cta-btn:hover {
  background: linear-gradient(135deg, #0842a0, #1557b0);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 87, 208, 0.3);
}

.ai-cta-btn:active {
  transform: translateY(0);
}

#composer-wrap {
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 20px 18px;
  background: linear-gradient(to top, #ffffff 88%, rgba(255, 255, 255, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
}

#composer {
  width: 100%;
  max-width: 740px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 32px;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px 12px 24px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 3px 12px rgba(60, 64, 67, 0.12);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

#composer:focus-within {
  background: #ffffff;
  border-color: #dfe3ea;
  box-shadow: 0 2px 5px rgba(60, 64, 67, 0.10), 0 8px 22px rgba(60, 64, 67, 0.16);
}

#composer-disclaimer {
  width: 100%;
  max-width: 740px;
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.45;
  color: #5f6368;
  text-align: center;
}

#user-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  max-height: 150px;
  resize: none;
  padding: 6px 0;
  color: #1f1f1f;
  font-family: inherit;
  overflow-y: auto;
}

#user-input::placeholder {
  color: #5f6368;
}

#send-btn {
  flex: 0 0 auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b57d0 !important;
  transition: background 0.2s;
  margin-left: 8px;
  padding: 0 !important;
  outline: none !important;
}

#send-btn:hover:not(:disabled) {
  background: #e0e5e9 !important;
}

#send-btn:disabled {
  color: #c4c7c5 !important;
  cursor: not-allowed;
}

#send-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor !important;
}

.ai-status-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 16px;
  animation: slideUp 0.3s ease-out;
}

.ai-status-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #0b57d0;
  margin-top: 2px;
}

.ai-status-bubble {
  font-size: 15px;
  line-height: 1.6;
  color: #5f6368;
  padding-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.loading-sparkle {
  animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ai-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa0a6;
  animation: aiDotsBounce 1.2s infinite ease-in-out;
}

.ai-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.typing-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.typing-cursor::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.08em;
  background: #0b57d0;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blinkCursor 0.9s steps(1) infinite;
}

.msg-ai .bubble .ai-vendor-table {
  margin-top: 10px !important;
}

.msg-ai .bubble .ai-vendor-table th {
  white-space: nowrap;
}

.msg-ai .bubble .ai-vendor-table td {
  vertical-align: top;
}

.msg-ai .bubble .ai-vendor-name-cell strong {
  color: #1f1f1f;
  font-weight: 800;
}

.msg-ai .bubble .ai-vendor-action-wrap {
  margin-top: 12px;
}

.msg-ai .bubble .ai-vendor-link-btn,
.msg-ai .bubble .ai-recommend-box .ai-vendor-link-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 132px;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #d2e3fc !important;
  background: #f8fbff !important;
  color: #0b57d0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.18s ease;
}

.msg-ai .bubble .ai-vendor-link-btn:hover,
.msg-ai .bubble .ai-recommend-box .ai-vendor-link-btn:hover {
  background: #e8f0fe !important;
  border-color: #a8c7fa !important;
  color: #0842a0 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.msg-ai .bubble .ai-vendor-link-btn::after {
  content: "→";
  font-size: 13px;
  line-height: 1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes aiDotsBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (max-width: 782px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  #gemini-app {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
  }

  .hamburger {
    display: inline-flex !important;
  }

  .close-sidebar-btn {
    display: block;
  }

  #gemini-main {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #gemini-header {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  #gemini-header .hamburger,
  .hamburger {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #gemini-header .hamburger svg,
  .hamburger svg {
    width: 24px !important;
    height: 24px !important;
  }

  #gemini-header img {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 28px !important;
    max-height: 28px !important;
    max-width: calc(100vw - 86px) !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  #gemini-header span {
    display: none !important;
  }

  #chat-scroll {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #chat-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 22px 14px 26px !important;
    gap: 22px !important;
    overflow-x: hidden !important;
  }

  #welcome-splash {
    margin-top: 6vh !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #welcome-splash .splash-image {
    width: 64px !important;
    height: 64px !important;
  }

  #welcome-splash h1 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin: 16px 0 10px !important;
  }

  #welcome-splash .welcome-subtitle {
    font-size: 14px !important;
    text-align: center !important;
    margin-bottom: 18px !important;
  }

  .quick-action-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .quick-action-card,
  .quick-action-card-wide {
    grid-column: auto;
    border-radius: 16px;
    padding: 14px 16px;
  }

  .quick-action-title {
    font-size: 15px;
  }

  .quick-action-desc {
    font-size: 13px;
  }

  .msg-row,
  .msg-ai,
  .msg-user {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .msg-user .bubble {
    max-width: 92% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .msg-ai {
    gap: 10px !important;
  }

  .msg-ai .avatar-svg {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
  }

  .msg-ai .bubble {
    flex: 1 1 auto !important;
    max-width: calc(100% - 34px) !important;
    min-width: 0 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  #composer-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    flex: 0 0 auto !important;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom)) !important;
    background: linear-gradient(to top, #ffffff 90%, rgba(255, 255, 255, 0)) !important;
    overflow: hidden !important;
  }

  #composer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 28px !important;
    padding: 10px 10px 10px 18px !important;
    align-items: flex-end !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 3px 12px rgba(60, 64, 67, 0.14) !important;
  }

  #composer-disclaimer {
    max-width: 100% !important;
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #5f6368 !important;
    text-align: center !important;
  }

  #user-input {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-height: 120px !important;
  }

  #send-btn {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    margin-left: 8px !important;
  }

  #gemini-sidebar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(82vw, 320px) !important;
    max-width: 320px !important;
    min-height: 100% !important;
    transform: translateX(-100%) !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2) !important;
    z-index: 2000 !important;
  }

  #gemini-sidebar.open {
    transform: translateX(0) !important;
  }

  #sidebar-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1999 !important;
  }

  .msg-ai .bubble table,
  .msg-ai .bubble tbody,
  .msg-ai .bubble tr,
  .msg-ai .bubble th,
  .msg-ai .bubble td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .msg-ai .bubble table {
    table-layout: fixed !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    border: 1px solid #e0e5e9 !important;
    overflow: hidden !important;
  }

  .msg-ai .bubble thead {
    display: none !important;
  }

  .msg-ai .bubble tr {
    border-bottom: 1px solid #e0e5e9 !important;
    background: #ffffff !important;
  }

  .msg-ai .bubble tr:last-child {
    border-bottom: none !important;
  }

  .msg-ai .bubble td,
  .msg-ai .bubble th {
    border: none !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
  }

  .ai-confirm-box {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .ai-confirm-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .ai-cta-btn,
  .msg-ai .bubble .ai-vendor-link-btn,
  .msg-ai .bubble .ai-recommend-box .ai-vendor-link-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
  }
}

@media (max-width: 390px) {
  #gemini-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  #gemini-header .hamburger,
  .hamburger {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  #gemini-header img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: calc(100vw - 76px) !important;
  }

  #chat-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #welcome-splash h1 {
    font-size: 22px !important;
  }

  .msg-ai .bubble,
  .msg-user .bubble {
    font-size: 15px !important;
  }

  #composer-wrap {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
