/*! 泡泡AI 2.0 · 正常简洁版 (mobile)
 *  轻量、可读、大触控；只换配色/字体/阴影/圆角。不改 display/position/overflow/grid（手机 @media 除外）。
 */
html[data-theme="mobile"] {
  --ink: #111827;
  --soft: #4b5563;
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(17, 24, 39, 0.07);
  --font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --display: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --danger: #dc2626;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --line: rgba(17, 24, 39, 0.1);
  --radius: 16px;
  --tap: 44px;
  color-scheme: light;
}
html[data-theme="mobile"],
html[data-theme="mobile"] body {
  color: var(--ink);
  background: #f7f8fa;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
}
html[data-theme="mobile"] body {
  background: #f7f8fa;
}
html[data-theme="mobile"] .bg {
  opacity: 0.22;
  background:
    radial-gradient(circle at 10% 6%, rgba(37, 99, 235, 0.07) 0 12%, transparent 13%),
    radial-gradient(circle at 92% 88%, rgba(16, 185, 129, 0.05) 0 14%, transparent 15%);
}

html[data-theme="mobile"] .auth-card,
html[data-theme="mobile"] .sidebar,
html[data-theme="mobile"] .top,
html[data-theme="mobile"] .composer,
html[data-theme="mobile"] dialog,
html[data-theme="mobile"] .chats li,
html[data-theme="mobile"] .welcome-chip,
html[data-theme="mobile"] .feature-sheet,
html[data-theme="mobile"] .assist-island,
html[data-theme="mobile"] .glass-bubble,
html[data-theme="mobile"] .quick-bubbles-wrap,
html[data-theme="mobile"] .cloud-item,
html[data-theme="mobile"] .mode-seg,
html[data-theme="mobile"] .feature-head,
html[data-theme="mobile"] .pay-box {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-color: var(--line);
  border-radius: var(--radius);
}

html[data-theme="mobile"] .layout,
html[data-theme="mobile"] .main {
  background: #f7f8fa;
}

html[data-theme="mobile"] .auth-card h1,
html[data-theme="mobile"] .brand,
html[data-theme="mobile"] .top-title strong,
html[data-theme="mobile"] .welcome-empty h2 {
  color: var(--ink);
  font-weight: 800;
}

html[data-theme="mobile"] .sub,
html[data-theme="mobile"] .who,
html[data-theme="mobile"] .mini,
html[data-theme="mobile"] .hint,
html[data-theme="mobile"] label,
html[data-theme="mobile"] .top-title small,
html[data-theme="mobile"] .welcome-kicker {
  color: var(--soft);
}

html[data-theme="mobile"] .bubble.user {
  background: var(--accent-soft);
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.18);
}
html[data-theme="mobile"] .bubble.assistant {
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
  border: 1px solid var(--line);
}
html[data-theme="mobile"] .bubble {
  animation: popo-mobile-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="mobile"] .primary,
html[data-theme="mobile"] .send-btn.primary,
html[data-theme="mobile"] .auth-card .badge,
html[data-theme="mobile"] .ver-chip {
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

html[data-theme="mobile"] .ghost,
html[data-theme="mobile"] .tab,
html[data-theme="mobile"] .mode-chip,
html[data-theme="mobile"] .auth-lang-btn {
  border-color: var(--line);
  color: #374151;
  background: #fff;
  min-height: 40px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
html[data-theme="mobile"] .ghost:active,
html[data-theme="mobile"] .tab:active,
html[data-theme="mobile"] .mode-chip:active {
  transform: scale(0.97);
  opacity: 0.92;
}

html[data-theme="mobile"] .mode-chip.on,
html[data-theme="mobile"] .tab.on,
html[data-theme="mobile"] .browser-tab.on {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme="mobile"] .chats li {
  border-radius: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
html[data-theme="mobile"] .chats li.on {
  border-color: rgba(37, 99, 235, 0.45);
  background: var(--accent-soft);
}
html[data-theme="mobile"] .chats li:active {
  transform: scale(0.985);
}

html[data-theme="mobile"] input,
html[data-theme="mobile"] textarea,
html[data-theme="mobile"] select,
html[data-theme="mobile"] .input-slot textarea,
html[data-theme="mobile"] .sys textarea,
html[data-theme="mobile"] .browser-bar input,
html[data-theme="mobile"] .browser-ai-row input {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
}
html[data-theme="mobile"] input::placeholder,
html[data-theme="mobile"] textarea::placeholder {
  color: #9ca3af;
}

html[data-theme="mobile"] .composer-dock,
html[data-theme="mobile"] .input-slot textarea {
  background: #fff;
}
html[data-theme="mobile"] .composer {
  padding: 12px 14px;
}

html[data-theme="mobile"] .welcome-chip {
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html[data-theme="mobile"] .welcome-chip:active {
  transform: scale(0.98);
}

html[data-theme="mobile"] .feature-sheet,
html[data-theme="mobile"] .apps-sheet {
  border-radius: 18px;
}

html[data-theme="mobile"] .assist-scrim {
  background: rgba(17, 24, 39, 0.28);
}
html[data-theme="mobile"] .assist-island {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
}
html[data-theme="mobile"] .assist-tab {
  background: #f3f4f6;
  color: #374151;
  border-color: var(--line);
  min-height: 40px;
}
html[data-theme="mobile"] .assist-tab.on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
html[data-theme="mobile"] .assist-ico {
  background: #f3f4f6 !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
html[data-theme="mobile"] .assist-office-empty,
html[data-theme="mobile"] .assist-office-hint {
  color: var(--soft);
}
html[data-theme="mobile"] .assist-office-files,
html[data-theme="mobile"] .assist-office-stage {
  background: #f9fafb;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="mobile"] .assist-office-file {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="mobile"] .assist-office-file.on {
  background: var(--accent-soft);
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.4);
}

html[data-theme="mobile"] .side-new {
  min-height: var(--tap);
}

html[data-theme="mobile"] .apps-chip,
html[data-theme="mobile"] .mode-chip,
html[data-theme="mobile"] button.ghost,
html[data-theme="mobile"] .send-btn {
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
html[data-theme="mobile"] .apps-chip {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.86rem;
  border-color: var(--line);
  background: #f3f4f6;
  color: var(--ink);
}
html[data-theme="mobile"] .apps-chip.on {
  background: var(--accent);
  color: #fff;
  border-color: #1d4ed8;
}
html[data-theme="mobile"] .apps-toolbar input[type="text"],
html[data-theme="mobile"] .apps-toolbar input[type="search"],
html[data-theme="mobile"] .apps-toolbar input[type="number"],
html[data-theme="mobile"] .apps-toolbar input[type="time"] {
  min-height: 42px;
  border-color: var(--line);
  background: #fff;
}

@keyframes popo-mobile-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  html[data-theme="mobile"] {
    font-size: 16.5px;
  }
  html[data-theme="mobile"] .apps-sheet,
  html[data-theme="mobile"] .feature-sheet,
  html[data-theme="mobile"] .note-sheet,
  html[data-theme="mobile"] .remind-sheet,
  html[data-theme="mobile"] .travel-sheet,
  html[data-theme="mobile"] .photo-sheet,
  html[data-theme="mobile"] .ocr-sheet,
  html[data-theme="mobile"] .book-read-sheet {
    width: 100% !important;
    height: var(--app-h, 100dvh) !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none;
  }
  html[data-theme="mobile"] .ghost,
  html[data-theme="mobile"] .tab,
  html[data-theme="mobile"] .mode-chip,
  html[data-theme="mobile"] .apps-chip,
  html[data-theme="mobile"] .primary,
  html[data-theme="mobile"] .send-btn,
  html[data-theme="mobile"] .welcome-chip,
  html[data-theme="mobile"] .assist-tab {
    min-height: var(--tap);
  }
  html[data-theme="mobile"] .top,
  html[data-theme="mobile"] .composer,
  html[data-theme="mobile"] .feature-head {
    padding: 10px 12px;
  }
  html[data-theme="mobile"] .apps-toolbar {
    padding: 10px 12px;
    gap: 10px;
  }
  html[data-theme="mobile"] .apps-chips {
    padding: 0 12px 10px;
    gap: 8px;
  }
  html[data-theme="mobile"] .travel-sheet .trv-tabs button,
  html[data-theme="mobile"] .photo-pane button,
  html[data-theme="mobile"] .ocr-sheet button {
    min-height: var(--tap);
  }
  html[data-theme="mobile"] .photo-stage,
  html[data-theme="mobile"] .ocr-stage {
    margin: 8px 10px;
  }
  html[data-theme="mobile"] .composer {
    gap: 8px;
  }
}
/* === MOBILE_FUSED_SIDEBAR_V20261015b === */
/* Port neo fused 4-row island with light mobile tokens */
html[data-theme="mobile"] .layout {
  gap: 14px;
  padding: 12px;
  max-width: min(1320px, 100%);
  box-sizing: border-box;
}
html[data-theme="mobile"] .sidebar {
  background: transparent !important;
  border: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}
html[data-theme="mobile"] .side-island {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 14px 12px;
  border-radius: 24px;
  background: #ffffff !important;
  color: var(--ink);
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.10) !important;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
html[data-theme="mobile"] .side-island:hover {
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.14) !important;
  background: #ffffff !important;
}
html[data-theme="mobile"] .side-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html[data-theme="mobile"] .side-new {
  width: 100%;
  min-height: var(--tap);
  border-radius: 14px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
html[data-theme="mobile"] .side-new:hover {
  transform: translateY(-1px);
  background: #1d4ed8 !important;
}
html[data-theme="mobile"] .side-actions-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px !important;
  flex-direction: unset !important;
}
html[data-theme="mobile"] .side-actions-row .side-extra { margin-top: 0 !important; }
html[data-theme="mobile"] .side-chip {
  width: 100% !important;
  min-width: 0;
  padding: 8px 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f3f4f6 !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
html[data-theme="mobile"] .side-chip:hover {
  transform: translateY(-1px);
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}
html[data-theme="mobile"] .side-upgrade,
html[data-theme="mobile"] .side-foot-half,
html[data-theme="mobile"] .side-foot #logoutBtn {
  border-radius: 12px !important;
  background: #f3f4f6 !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
html[data-theme="mobile"] .side-upgrade:hover,
html[data-theme="mobile"] .side-foot-half:hover,
html[data-theme="mobile"] .side-foot #logoutBtn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}
html[data-theme="mobile"] .side-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
html[data-theme="mobile"] .side-foot-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-direction: unset !important;
}
html[data-theme="mobile"] .side-foot #logoutBtn {
  width: 100%;
}

/* attach +: black bg, white plus (must override .icon-round white) */
html[data-theme="mobile"] #attachBtn.icon-round {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1.5px solid rgba(37, 99, 235, 0.32) !important;
  font-weight: 900 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06) !important;
}
html[data-theme="mobile"] #attachBtn.icon-round:hover,
html[data-theme="mobile"] #attachBtn.icon-round:focus-visible {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
}
html[data-theme="mobile"] #attachBtn.icon-round:active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

@media (max-width: 860px) {
  html[data-theme="mobile"] .layout { padding: 0; gap: 0; }
  html[data-theme="mobile"] .sidebar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px !important;
  }
  html[data-theme="mobile"] .side-island { height: calc(100% - 0px); }
  html[data-theme="mobile"] .sidebar.open .side-island {
    height: calc(100% - 24px);
    margin: 12px;
    width: calc(100% - 24px);
  }
}


/* kmute-android-theme */
html[data-theme="mobile"] .bubble,
html[data-theme="mobile"] .bubble .answer {
  overflow-wrap: anywhere;
  word-break: break-word;
}
html[data-theme="mobile"] .bubble-actions {
  border-top-color: rgba(17, 24, 39, 0.12);
}
html[data-theme="mobile"] .bubble.user .bubble-act {
  background: rgba(255,255,255,0.9);
  color: #1e3a8a;
  border-color: rgba(37,99,235,0.25);
}
@media (max-width: 860px) {
  html[data-theme="mobile"] .composer-tools {
    max-width: 100%;
  }
  html[data-theme="mobile"] pre,
  html[data-theme="mobile"] code {
    white-space: pre-wrap;
    word-break: break-word;
  }
}
