@media (min-width: 769px) {
  #mobileRoot,
  body.recall-mobile-mode #mobileRoot,
  body:not(.recall-mobile-mode) #mobileRoot {
    display: none !important;
  }
}

body.recall-mobile-mode .mobile-transfer-text-form {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  background: #ffffff;
  padding: 14px;
}

body.recall-mobile-mode .mobile-transfer-text-form textarea {
  width: 100%;
  min-height: 86px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  color: #171717;
  font-size: 16px;
  line-height: 1.5;
}

body.recall-mobile-mode .mobile-pending-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.recall-mobile-mode .mobile-pending-actions button {
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
}

body.recall-mobile-mode .mobile-transfer-list {
  display: grid;
  gap: 9px;
}

body.recall-mobile-mode .mobile-transfer-list > h3 {
  margin: 14px 0 2px;
  color: #7a7f87;
  font-size: 13px;
}

body.recall-mobile-mode .mobile-transfer-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 15px;
  background: #ffffff;
  padding: 12px;
}

body.recall-mobile-mode .mobile-transfer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f2f4;
  color: #555b64;
}

body.recall-mobile-mode .mobile-transfer-item > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.recall-mobile-mode .mobile-transfer-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #171717;
  font-size: 14px;
}

body.recall-mobile-mode .mobile-transfer-item small {
  color: #858991;
  font-size: 11px;
}

body.recall-mobile-mode .mobile-transfer-actions {
  grid-column: 2;
  display: flex;
  gap: 8px;
}

body.recall-mobile-mode .mobile-transfer-actions a,
body.recall-mobile-mode .mobile-transfer-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: #f1f2f4;
  color: #33363b;
  padding: 0 11px;
  font-size: 12px;
  text-decoration: none;
}

body.recall-mobile-mode .mobile-transfer-actions .danger {
  color: #d92d20;
}

body.recall-mobile-mode .mobile-home-screen {
  position: relative;
  min-height: 100dvh;
  padding: max(22px, calc(env(safe-area-inset-top, 0px) + 12px)) 18px calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 0%, rgba(2, 184, 117, 0.08), transparent 32%),
    #f6f7f9;
}

body.recall-mobile-mode .mobile-page {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 14px 0 0;
  box-sizing: border-box;
}

body.recall-mobile-mode .mobile-page.hidden {
  display: none !important;
}

body.recall-mobile-mode .mobile-dashboard-card {
  width: 100%;
  display: grid;
  gap: 14px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}

body.recall-mobile-mode .mobile-search-entry,
body.recall-mobile-mode .mobile-search-box {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: #ffffff;
  color: #8a9099;
  padding: 0 14px;
  font-size: 15px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.recall-mobile-mode .mobile-search-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font-size: 15px;
}

body.recall-mobile-mode .mobile-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.recall-mobile-mode .mobile-card-headline h2 {
  margin: 0;
  color: #171717;
  font-size: 18px;
  line-height: 1.2;
}

body.recall-mobile-mode .mobile-card-headline button {
  border: 0;
  background: transparent;
  color: #02b875;
  font-size: 13px;
  font-weight: 800;
}

body.recall-mobile-mode .mobile-home-ask-form {
  display: grid;
  gap: 10px;
}

body.recall-mobile-mode #mobileHomeAskInput {
  width: 100%;
  min-height: 82px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f7f8fa;
  padding: 14px;
  color: #171717;
  font-size: 16px;
  line-height: 1.6;
}

body.recall-mobile-mode #mobileHomeAskInput:focus {
  outline: 0;
  border-color: #02b875;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 184, 117, 0.12);
}

body.recall-mobile-mode .mobile-home-answer {
  max-height: 360px;
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: #fbfcfd;
  padding: 14px;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
}

body.recall-mobile-mode .mobile-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.recall-mobile-mode .mobile-shortcut-grid button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  background: #f7f8fa;
  color: #171717;
  font-size: 13px;
  font-weight: 850;
}

body.recall-mobile-mode .mobile-shortcut-grid i {
  color: #02b875;
  font-size: 18px;
}

body.recall-mobile-mode .mobile-plain-list {
  display: grid;
  gap: 8px;
}

body.recall-mobile-mode .mobile-plain-list article {
  display: grid;
  gap: 5px;
  border-radius: 16px;
  background: #f7f8fa;
  padding: 14px;
}

body.recall-mobile-mode .mobile-plain-list strong {
  color: #171717;
  font-size: 14px;
}

body.recall-mobile-mode .mobile-plain-list span {
  color: #7a7f87;
  font-size: 12px;
  line-height: 1.5;
}

body.recall-mobile-mode .mobile-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

body.recall-mobile-mode .mobile-filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f2f4;
  color: #6f737c;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

body.recall-mobile-mode .mobile-filter-row button.active {
  background: #e6f8f1;
  color: #02b875;
}

body.recall-mobile-mode .mobile-settings-list {
  display: grid;
  gap: 8px;
}

body.recall-mobile-mode .mobile-settings-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: #f7f8fa;
  padding: 0 14px;
  text-align: left;
}

body.recall-mobile-mode .mobile-settings-list span {
  color: #171717;
  font-size: 15px;
  font-weight: 850;
}

body.recall-mobile-mode .mobile-settings-list small {
  color: #8a9099;
  font-size: 12px;
}

body.recall-mobile-mode .mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 40;
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

body.recall-mobile-mode .mobile-bottom-nav button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #8a9099;
  font-size: 11px;
  font-weight: 800;
}

body.recall-mobile-mode .mobile-bottom-nav i {
  font-size: 17px;
}

body.recall-mobile-mode .mobile-css-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  box-sizing: border-box;
  color: currentColor;
}

body.recall-mobile-mode .mobile-icon-search {
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: scale(0.72);
}

body.recall-mobile-mode .mobile-icon-search::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

body.recall-mobile-mode .mobile-icon-home::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 16px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

body.recall-mobile-mode .mobile-icon-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

body.recall-mobile-mode .mobile-icon-inbox {
  border: 2px solid currentColor;
  border-radius: 4px;
  border-top-color: transparent;
  transform: translateY(2px);
}

body.recall-mobile-mode .mobile-icon-inbox::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  border: 2px solid currentColor;
  border-top: 0;
}

body.recall-mobile-mode .mobile-icon-file {
  border: 2px solid currentColor;
  border-radius: 3px;
}

body.recall-mobile-mode .mobile-icon-file::before {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: currentColor;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

body.recall-mobile-mode .mobile-icon-file::after,
body.recall-mobile-mode .mobile-icon-note::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

body.recall-mobile-mode .mobile-icon-note {
  border: 2px solid currentColor;
  border-radius: 4px;
}

body.recall-mobile-mode .mobile-icon-note::before {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 4px 0 2px 0;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

body.recall-mobile-mode .mobile-icon-user::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

body.recall-mobile-mode .mobile-icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 16px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 4px 4px;
}

body.recall-mobile-mode .mobile-icon-location::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: currentColor;
  transform: rotate(-45deg);
}

body.recall-mobile-mode .mobile-icon-location::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

body.recall-mobile-mode .mobile-icon-list::before,
body.recall-mobile-mode .mobile-icon-bullet-list::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 1px;
  top: 4px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

body.recall-mobile-mode .mobile-icon-list::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

body.recall-mobile-mode .mobile-icon-bullet-list::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

body.recall-mobile-mode .mobile-icon-send::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 18px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(0 45%, 100% 0, 62% 100%, 48% 58%);
}

body.recall-mobile-mode .mobile-icon-up::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
}

body.recall-mobile-mode .mobile-icon-up::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

body.recall-mobile-mode .mobile-icon-clip {
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-left-width: 2px;
  border-radius: 10px 10px 10px 2px;
  transform: rotate(-42deg) scale(0.72);
}

body.recall-mobile-mode .mobile-icon-clip::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 8px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 8px 2px;
}

body.recall-mobile-mode .mobile-bottom-nav button.active {
  background: #e6f8f1;
  color: #02b875;
}

body.recall-mobile-mode .mobile-today-card {
  background: #ffffff;
}

body.recall-mobile-mode {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #f6f7f9;
}

body.recall-mobile-mode #mobileRoot {
  display: block !important;
  width: 100%;
  min-height: 100dvh;
  background: #f6f7f9;
  color: #171717;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
}

body.recall-mobile-mode #mobileRoot.hidden,
body.recall-mobile-mode #mobileRoot .hidden {
  display: none !important;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    background: #f6f7f9;
  }

  #authView,
  #appView,
  #appView.app-shell,
  #appView.app-shell.hidden,
  #messageFollowupDrawer,
  #messageFollowupDrawerOverlay,
  #homeChatForm,
  #dashboardView,
  #workspaceChatFloat,
  #marketingAnalysisDock {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #mobileRoot {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f6f7f9;
    color: #171717;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  }

  #mobileRoot.hidden,
  #mobileRoot .hidden,
  #mobileRoot .mobile-pending-section.hidden,
  #mobileRoot .mobile-processing-state.hidden {
    display: none !important;
  }

  .mobile-screen {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  .mobile-login-screen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(34px, calc(env(safe-area-inset-top, 0px) + 18px)) 20px max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
    scroll-padding: max(34px, calc(env(safe-area-inset-top, 0px) + 18px)) 0 120px;
  }

  .mobile-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
  }

  .mobile-login-card {
    display: grid;
    gap: 18px;
    margin: auto 0;
    padding: 28px 20px;
  }

  .mobile-login-screen.is-keyboard-open {
    justify-content: flex-start;
    padding-top: max(18px, env(safe-area-inset-top, 0px));
    padding-bottom: max(180px, calc(env(safe-area-inset-bottom, 0px) + 180px));
  }

  .mobile-login-screen.is-keyboard-open .mobile-login-card {
    margin: 0;
  }

  .mobile-brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #171717;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
  }

  .mobile-login-card h1,
  .mobile-hero-copy h1 {
    margin: 0;
    color: #171717;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.8px;
  }

  .mobile-login-card p,
  .mobile-hero-copy p {
    margin: 0;
    color: #6f737c;
    font-size: 15px;
    line-height: 1.55;
  }

  .mobile-field {
    display: grid;
    gap: 8px;
    color: #5f6570;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-field input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 52px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #f7f8fa;
    padding: 0 14px;
    color: #171717;
    font-size: 16px;
  }

  .mobile-primary-button,
  .mobile-secondary-button,
  .mobile-plain-button {
    width: 100%;
    max-width: none;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 850;
  }

  .mobile-primary-button {
    background: #171717;
    color: #ffffff;
  }

  .mobile-secondary-button {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #171717;
  }

  .mobile-plain-button {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    background: #f1f2f4;
    color: #171717;
    font-size: 14px;
  }

  .mobile-state-line,
  .mobile-processing-state {
    min-height: 22px;
    color: #6f737c;
    font-size: 13px;
    line-height: 1.5;
  }

  .mobile-state-line.is-error,
  .mobile-processing-state.is-error {
    color: #d92d20;
  }

  .mobile-home-screen {
    display: flex;
    flex-direction: column;
    padding: max(22px, calc(env(safe-area-inset-top, 0px) + 12px)) 18px max(18px, env(safe-area-inset-bottom));
  }

  .mobile-topbar {
    width: 100%;
    max-width: none;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
  }

  .mobile-topbar div {
    display: grid;
    gap: 2px;
  }

  .mobile-topbar strong {
    color: #171717;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-topbar span {
    color: #81858d;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-avatar-button {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 650;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.06);
  }

  .mobile-avatar-button::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid #f6f7f9;
    border-radius: 999px;
    background: #171717;
  }

  .mobile-action-view {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    padding: 18px 0;
    box-sizing: border-box;
  }

  .mobile-hero-copy {
    display: grid;
    gap: 10px;
    text-align: center;
  }

  .mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-section-head div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .mobile-section-head span {
    color: #81858d;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-section-head h1 {
    margin: 0;
    color: #171717;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.4px;
  }

  .mobile-thought-card {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    background: #ffffff;
    padding: 16px;
  }

  .mobile-thought-stream-section {
    display: grid;
    gap: 0;
    margin-top: -4px;
    padding-bottom: 112px;
  }

  .mobile-thought-stream-list {
    display: grid;
    gap: 14px;
  }

  .mobile-compose-fab {
    position: fixed;
    left: 50%;
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 45;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 16px;
    background: #35d07f;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(21, 188, 109, 0.3);
    font-size: 36px;
    font-weight: 300;
    line-height: 46px;
  }

  body:not(.mobile-thought-sheet-open) .mobile-compose-fab {
    display: block;
  }

  body.mobile-thought-sheet-open .mobile-compose-fab {
    display: none;
  }

  .mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.58);
  }

  .mobile-tag-suggest {
    position: fixed;
    right: 22px;
    bottom: calc(var(--thought-keyboard-offset, 0px) + 210px);
    left: 22px;
    z-index: 95;
    max-height: min(42dvh, 340px);
    overflow-y: auto;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    padding: 8px 0;
    transform: translateY(0);
    transition: bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-tag-suggest button {
    display: block;
    width: 100%;
    min-height: 0;
    border: 0;
    background: transparent;
    color: #3f4540;
    padding: 14px 24px;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
  }

  .mobile-tag-suggest button:active {
    background: #f6f8f7;
  }

  .mobile-thought-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    box-sizing: border-box;
    transform: translateY(calc(-1 * var(--thought-keyboard-offset, 0px)));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    min-height: 210px;
    border-radius: 22px 22px 0 0;
    background: #ffffff;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.18);
  }

  .mobile-thought-sheet-handle {
    width: 34px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #e5e7eb;
  }

  .mobile-thought-sheet-form {
    min-height: 152px;
    display: grid;
    grid-template-rows: minmax(78px, 1fr) auto auto auto;
  }

  .mobile-thought-form {
    display: grid;
    gap: 12px;
  }

  #mobileThoughtInput {
    width: 100%;
    min-height: 78px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #f7f8fa;
    padding: 12px 14px;
    color: #171717;
    font-size: 17px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
  }

  #mobileThoughtInput:focus {
    outline: 0;
    box-shadow: none;
  }

  #mobileThoughtInput:empty::before {
    content: attr(data-placeholder);
    color: #9aa0a6;
    pointer-events: none;
  }

  #mobileThoughtInput ol,
  #mobileThoughtInput ul {
    margin: 0;
    padding-left: 1.45em;
  }

  #mobileThoughtInput li {
    margin: 0 0 4px;
  }

  .mobile-thought-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-sheet-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    border: 0;
    background: transparent;
    color: #383d3a;
    padding: 0;
    font-size: 22px;
    font-weight: 650;
  }

  .mobile-thought-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 38px;
    min-height: 0;
    margin-left: auto;
    border: 0;
    border-radius: 19px;
    background: #e5e7eb;
    color: #b9bec5;
    font-size: 17px;
  }

  .mobile-thought-send-button:not(:disabled) {
    background: #35d07f;
    color: #ffffff;
  }

  body.recall-mobile-mode .mobile-thought-actions :where(.mobile-sheet-tool, .mobile-thought-send-button) {
    min-height: 0 !important;
    box-shadow: none !important;
  }

  .mobile-picture-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 4px;
    color: #8a8f8c;
  }

  .mobile-picture-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }

  .mobile-picture-icon::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    left: 2px;
    height: 8px;
    background: currentColor;
    clip-path: polygon(0 100%, 34% 48%, 52% 68%, 72% 34%, 100% 100%);
  }

  .mobile-thought-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  .mobile-thought-location-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    background: #eef8f2;
    padding: 9px 11px;
    color: #168a55;
    font-size: 12px;
  }

  .mobile-thought-location-name {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
    font: inherit;
    box-shadow: none !important;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-thought-location-name,
  .mobile-thought-location-name:active,
  .mobile-thought-location-name:focus {
    background: transparent !important;
    outline: 0;
    box-shadow: none !important;
  }

  .mobile-thought-location-name span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-thought-location-preview.hidden {
    display: none;
  }

  .mobile-thought-location-preview button[data-remove-thought-location] {
    width: 24px;
    height: 24px;
    min-height: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(22, 138, 85, 0.1);
    color: #168a55;
  }

  .mobile-thought-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    border-radius: 999px;
    background: #eef8f2;
    padding: 7px 10px;
    color: #168a55;
    font-size: 12px;
    text-decoration: none;
  }

  .mobile-thought-image-chip,
  .mobile-thought-image {
    position: relative;
    width: 86px;
    height: 64px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #f7f8fa;
  }

  .mobile-thought-image-chip img,
  .mobile-thought-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-thought-image-chip button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    padding: 0;
    line-height: 22px;
  }

  .mobile-thought-item {
    position: relative;
    display: grid;
    gap: 10px;
    box-sizing: border-box;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    padding: 20px 52px 20px 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
  }

  .mobile-thought-more {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-thought-menu {
    position: absolute;
    top: 44px;
    right: 16px;
    z-index: 8;
    min-width: 116px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  }

  .mobile-thought-menu button {
    width: 100%;
    min-height: 42px;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #232826;
    padding: 0 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
  }

  .mobile-thought-menu button:active {
    background: #f6f8f7;
  }

  .mobile-thought-item p {
    margin: 0;
    overflow: hidden;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
  }

  .mobile-thought-item p.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .mobile-thought-item ol,
  .mobile-thought-item ul {
    margin: 0;
    padding-left: 1.35em;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
  }

  .mobile-thought-item li {
    margin: 0 0 4px;
  }

  .mobile-thought-item div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .mobile-thought-item > div button,
  .mobile-thought-item > div span {
    min-height: 22px;
    border: 0;
    border-radius: 7px;
    background: #e6f8f1;
    color: #02b875;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-thought-item small {
    margin-left: auto;
    color: #9ca3af;
    font-size: 11px;
  }

  .mobile-action-list {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-action-button {
    width: 100%;
    max-width: none;
    min-height: 104px;
    display: grid;
    grid-template-rows: 38px auto auto;
    gap: 5px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 16px;
    background: #f6f6f6;
    color: #171717;
    box-shadow: none;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .mobile-action-button:active {
    background: #efefef;
    transform: scale(0.98);
  }

  .mobile-action-button::before {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 900;
  }

  #mobileUploadImageBtn::before {
    content: "图";
    background: #eff6ff;
    color: #2563eb;
  }

  #mobileUploadFileBtn::before {
    content: "文";
    background: #ecfdf5;
    color: #059669;
  }

  #mobileCameraBtn::before {
    content: "拍";
    background: #faf5ff;
    color: #9333ea;
  }

  .mobile-action-button span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-action-button small {
    color: #7a7f87;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
  }

  .mobile-action-button:disabled,
  .mobile-primary-button:disabled,
  .mobile-secondary-button:disabled {
    opacity: 0.55;
  }

  .mobile-processing-state {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px;
    text-align: center;
  }

  .mobile-pending-section {
    width: 100%;
    max-width: none;
    gap: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    box-shadow: none;
  }

  #mobileRoot .mobile-pending-section {
    display: grid !important;
  }

  .mobile-pending-section > div:first-child {
    display: grid;
    gap: 4px;
    text-align: center;
  }

  .mobile-pending-section strong {
    color: #171717;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-pending-section span {
    color: #7a7f87;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-pending-files {
    display: grid;
    gap: 8px;
  }

  .mobile-pending-file {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 14px;
    background: #f6f7f9;
    padding: 11px 12px;
    color: #3f444c;
    font-size: 13px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-pending-empty {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border: 1px dashed rgba(15, 23, 42, 0.11);
    border-radius: 14px;
    background: #fafafa;
    padding: 20px 12px;
    color: #a3a3a3;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
  }

  .mobile-pending-actions {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-pending-actions button:disabled {
    opacity: 0.38;
    box-shadow: none;
  }

  #mobileStartRecognizeBtn.is-ready {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  }

  #mobileStartRecognizeBtn.is-ready:active {
    background: #1d4ed8;
  }

  .mobile-recent-section {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 10px;
  }

  .mobile-recent-section h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 850;
  }

  .mobile-recent-list {
    display: grid;
    gap: 8px;
  }

  .mobile-recent-item {
    width: 100%;
    max-width: none;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 3px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 15px;
    text-align: left;
    box-shadow: none;
  }

  .mobile-recent-item::after {
    content: ">";
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #c8c8c8;
    font-size: 18px;
    font-weight: 500;
    justify-self: end;
  }

  .mobile-recent-item strong {
    grid-column: 1;
    overflow: hidden;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-recent-item small {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: #8c8c8c;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-recent-tag {
    display: inline-flex;
    align-items: center;
    max-width: 88px;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #fffbeb;
    color: #b45309;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
  }

  .mobile-result-view {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 0;
    box-sizing: border-box;
  }

  .mobile-result-head {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-result-head div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .mobile-result-head span {
    color: #858a93;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-result-head strong {
    overflow: hidden;
    color: #171717;
    font-size: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-content {
    width: 100%;
    max-width: none;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #222;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .mobile-saved-path {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ecfdf3;
    color: #027a48;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
  }

  .mobile-result-actions {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Pixel alignment fixes for Recall Mobile. Keep after the legacy mobile block. */
body.recall-mobile-mode :where(button, .mobile-primary-button, .mobile-secondary-button, .mobile-plain-button) {
  font-family: inherit;
  line-height: 1 !important;
}

body.recall-mobile-mode :where(.mobile-primary-button, .mobile-secondary-button, .mobile-plain-button),
body.recall-mobile-mode .mobile-card-headline button,
body.recall-mobile-mode .mobile-filter-row button,
body.recall-mobile-mode .mobile-settings-list button,
body.recall-mobile-mode .mobile-bottom-nav button,
body.recall-mobile-mode .mobile-shortcut-grid button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.recall-mobile-mode .mobile-thought-actions :where(.mobile-primary-button, .mobile-secondary-button),
body.recall-mobile-mode .mobile-pending-actions :where(.mobile-primary-button, .mobile-secondary-button) {
  height: 52px !important;
  min-height: 52px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.recall-mobile-mode .mobile-card-headline button,
body.recall-mobile-mode .mobile-plain-button {
  min-height: 40px !important;
  padding: 0 12px !important;
}

body.recall-mobile-mode .mobile-action-button {
  min-height: 104px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px 8px !important;
  text-align: center !important;
}

body.recall-mobile-mode .mobile-action-button::before {
  flex: 0 0 36px !important;
  margin: 0 auto !important;
}

body.recall-mobile-mode .mobile-action-button span,
body.recall-mobile-mode .mobile-action-button small {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.15 !important;
}

body.recall-mobile-mode .mobile-recent-item {
  min-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 15px !important;
}

body.recall-mobile-mode .mobile-recent-item::after {
  position: static !important;
  flex: 0 0 18px !important;
  align-self: center !important;
  grid-column: auto !important;
  grid-row: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 18px !important;
  line-height: 18px !important;
  transform: translateY(-1px);
}

body.recall-mobile-mode .mobile-recent-item strong,
body.recall-mobile-mode .mobile-recent-item small {
  grid-column: auto !important;
}

body.recall-mobile-mode .mobile-recent-item > strong,
body.recall-mobile-mode .mobile-recent-item > small {
  min-width: 0 !important;
}

body.recall-mobile-mode .mobile-recent-item {
  flex-wrap: wrap !important;
}

body.recall-mobile-mode .mobile-recent-item strong {
  flex: 1 1 calc(100% - 34px) !important;
  order: 1 !important;
}

body.recall-mobile-mode .mobile-recent-item small {
  flex: 1 1 calc(100% - 34px) !important;
  order: 2 !important;
}

body.recall-mobile-mode .mobile-recent-item::after {
  order: 3 !important;
  margin-top: -36px !important;
}

body.recall-mobile-mode .mobile-settings-list button {
  height: 58px !important;
  min-height: 58px !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  text-align: left !important;
}

body.recall-mobile-mode .mobile-settings-list span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
  line-height: 1 !important;
}

body.recall-mobile-mode .mobile-settings-list small {
  flex: 0 1 45% !important;
  min-width: 0 !important;
  text-align: right !important;
  line-height: 1 !important;
}

body.recall-mobile-mode .mobile-topbar {
  align-items: center !important;
}

body.recall-mobile-mode .mobile-topbar div {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.recall-mobile-mode .mobile-topbar strong,
body.recall-mobile-mode .mobile-topbar span {
  display: block !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  letter-spacing: 0 !important;
}

body.recall-mobile-mode .mobile-topbar strong {
  line-height: 1.05 !important;
}

body.recall-mobile-mode .mobile-topbar span {
  line-height: 1.15 !important;
}

body.recall-mobile-mode .mobile-bottom-nav button,
body.recall-mobile-mode .mobile-shortcut-grid button {
  flex-direction: column !important;
}

body.recall-mobile-mode .mobile-recent-item {
  min-height: 66px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 18px !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 3px !important;
  padding: 12px 15px !important;
}

body.recall-mobile-mode .mobile-recent-item strong {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: initial !important;
  flex: initial !important;
}

body.recall-mobile-mode .mobile-recent-item small {
  grid-column: 1 !important;
  grid-row: 2 !important;
  order: initial !important;
  flex: initial !important;
}

body.recall-mobile-mode .mobile-recent-item::after {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  order: initial !important;
  align-self: center !important;
  justify-self: end !important;
  margin: 0 !important;
  transform: translateY(-1px) !important;
}

.mobile-settings-dialog {
  width: min(92vw, 520px);
  max-height: 82dvh;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  padding: 0;
  color: #171717;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.mobile-confirm-dialog {
  width: min(88vw, 400px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.3);
}

.mobile-confirm-dialog::backdrop {
  background: rgba(18, 20, 19, 0.58);
  backdrop-filter: blur(2px);
}

.mobile-confirm-body {
  padding: 24px 22px 18px;
}

.mobile-confirm-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.mobile-confirm-body p {
  margin: 0;
  color: #68706d;
  font-size: 15px;
  line-height: 1.65;
}

.mobile-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid #edf0ef;
}

.mobile-confirm-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef1f0;
  color: #242927;
  font-size: 15px;
  font-weight: 750;
}

.mobile-confirm-actions button.danger {
  background: #dc4c4c;
  color: #ffffff;
}

.mobile-confirm-actions button:disabled {
  opacity: 0.55;
}

body.recall-mobile-mode .mobile-transfer-chat {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f3f4f5;
}

body.recall-mobile-mode .mobile-transfer-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: #ffffff;
}

body.recall-mobile-mode .mobile-transfer-chat-head h1,
body.recall-mobile-mode .mobile-transfer-chat-head p {
  margin: 0;
}

body.recall-mobile-mode .mobile-transfer-chat-head h1 {
  font-size: 20px;
}

body.recall-mobile-mode .mobile-transfer-chat-head p {
  margin-top: 4px;
  color: #858991;
  font-size: 12px;
}

body.recall-mobile-mode .mobile-transfer-messages {
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding: 16px 10px;
}

body.recall-mobile-mode .mobile-transfer-messages > h3 {
  justify-self: center;
  margin: 10px 0 4px;
}

body.recall-mobile-mode .mobile-transfer-item {
  width: min(78%, 360px);
  display: grid;
  grid-template-columns: 1fr;
  justify-self: start;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
}

body.recall-mobile-mode .mobile-transfer-item.is-own {
  justify-self: end;
}

body.recall-mobile-mode .mobile-transfer-item.is-image {
  width: min(64%, 260px);
}

body.recall-mobile-mode .mobile-transfer-bubble {
  display: grid;
  gap: 7px;
  border-radius: 5px 15px 15px 15px;
  background: #ffffff;
  padding: 11px 12px;
  color: #171717;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.recall-mobile-mode .mobile-transfer-item.is-own .mobile-transfer-bubble {
  border-radius: 15px 5px 15px 15px;
  background: #95ec69;
}

body.recall-mobile-mode .mobile-transfer-item.is-image .mobile-transfer-bubble {
  gap: 6px;
  padding: 8px;
}

body.recall-mobile-mode .mobile-transfer-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

body.recall-mobile-mode .mobile-transfer-bubble > small {
  color: rgba(0, 0, 0, 0.5);
  text-align: right;
}

body.recall-mobile-mode .mobile-transfer-image img {
  width: 100%;
  max-height: 190px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

body.recall-mobile-mode .mobile-transfer-file {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.recall-mobile-mode .mobile-transfer-file > i {
  font-size: 30px;
}

body.recall-mobile-mode .mobile-transfer-file span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.recall-mobile-mode .mobile-transfer-actions {
  grid-column: 1;
  justify-content: flex-start;
  padding: 0 2px;
}

body.recall-mobile-mode .mobile-transfer-item.is-own .mobile-transfer-actions {
  justify-content: flex-end;
}

body.recall-mobile-mode .mobile-transfer-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: end;
  padding: 11px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

body.recall-mobile-mode #mobilePageInbox {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-home-screen {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.recall-mobile-mode .mobile-transfer-sheet-handle {
  display: none;
}

body.recall-mobile-mode.mobile-transfer-sheet-open .mobile-transfer-composer {
  position: fixed;
  right: 14px;
  bottom: calc(var(--transfer-keyboard-offset, 0px) + 12px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 90;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.18);
  transform: none;
  transition: bottom 180ms ease;
}

body.recall-mobile-mode.mobile-transfer-sheet-open .mobile-transfer-sheet-handle {
  grid-column: 1 / -1;
  display: block;
  width: 34px;
  height: 4px;
  justify-self: center;
  border-radius: 999px;
  background: #e5e7eb;
}

body.recall-mobile-mode .mobile-transfer-composer textarea {
  min-height: 42px;
  max-height: 148px;
  box-sizing: border-box;
  resize: none;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 13px;
  background: #f7f8fa;
  padding: 10px 12px;
  color: #171717;
  font-size: 16px;
}

body.recall-mobile-mode .mobile-transfer-composer button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: #171717;
  color: #ffffff;
}

body.recall-mobile-mode .mobile-transfer-composer #mobileTransferAttachBtn {
  background: #eceef0;
  color: #3f454d;
}

body.recall-mobile-mode .mobile-transfer-chat > .mobile-state-line {
  min-height: 18px;
  padding: 0 12px 8px;
  background: #ffffff;
}

.mobile-settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
}

.mobile-settings-dialog form {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.mobile-settings-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mobile-settings-dialog h2,
.mobile-settings-dialog p {
  margin: 0;
}

.mobile-settings-dialog header > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f1f2f4;
  font-size: 24px;
}

.mobile-settings-dialog section {
  display: grid;
  gap: 13px;
  overflow-y: auto;
}

.mobile-settings-dialog section.hidden {
  display: none;
}

.mobile-settings-dialog label {
  display: grid;
  gap: 7px;
  color: #60656e;
  font-size: 13px;
  font-weight: 750;
}

.mobile-settings-dialog label > input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 13px;
  background: #f7f8fa;
  padding: 0 13px;
  color: #171717;
  font-size: 15px;
}

.mobile-settings-dialog .mobile-setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  background: #f7f8fa;
  padding: 14px;
}

.mobile-setting-toggle > span {
  display: grid;
  gap: 4px;
}

.mobile-setting-toggle input {
  width: 22px;
  height: 22px;
}

.mobile-settings-about {
  min-height: 160px;
  place-content: center;
  text-align: center;
}

.mobile-recognition-queue {
  display: grid;
  gap: 9px;
}

.mobile-recognition-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: #f8f9fa;
  padding: 13px;
}

.mobile-recognition-job > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-recognition-job strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.mobile-recognition-job small,
.mobile-recognition-job p {
  margin: 0;
  color: #7a7f87;
  font-size: 11px;
}

.mobile-recognition-job button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: #fee2e2;
  color: #b42318;
  padding: 0 11px;
}

.mobile-job-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a1a1aa;
}

.mobile-recognition-job.is-processing .mobile-job-status-dot {
  background: #35d07f;
  box-shadow: 0 0 0 5px rgba(53, 208, 127, 0.13);
  animation: mobile-job-pulse 1.2s ease-in-out infinite;
}

.mobile-recognition-job.is-done .mobile-job-status-dot {
  background: #22c55e;
}

@keyframes mobile-job-pulse {
  50% { opacity: 0.42; }
}

@media (prefers-color-scheme: dark) {
  body.recall-mobile-mode,
  body.recall-mobile-mode #mobileRoot,
  body.recall-mobile-mode .mobile-home-screen,
  body.recall-mobile-mode #mobileRoot,
  body.recall-mobile-mode :where(html, body) {
    color-scheme: dark;
    background: #101312 !important;
    color: #f4f7f5 !important;
  }

  body.recall-mobile-mode .mobile-home-screen {
    background:
      radial-gradient(circle at 20% 0%, rgba(53, 208, 127, 0.12), transparent 34%),
      #101312 !important;
  }

  body.recall-mobile-mode :where(.mobile-card, .mobile-dashboard-card, .mobile-thought-card, .mobile-thought-item, .mobile-pending-section, .mobile-processing-state, .mobile-result-content, .mobile-search-entry, .mobile-search-box, .mobile-recent-item) {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: #181c1b !important;
    color: #f4f7f5 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  }

  body.recall-mobile-mode :where(.mobile-bottom-nav, .mobile-thought-sheet, .mobile-tag-suggest, .mobile-thought-menu) {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(24, 28, 27, 0.96) !important;
    color: #f4f7f5 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36) !important;
  }

  body.recall-mobile-mode :where(.mobile-login-card h1, .mobile-hero-copy h1, .mobile-card-headline h2, .mobile-topbar strong, .mobile-section-head h1, .mobile-settings-list span, .mobile-pending-section strong, .mobile-recent-section h2, .mobile-result-head strong, .mobile-thought-item p, .mobile-plain-list strong, .mobile-action-button, #mobileThoughtInput, .mobile-search-box input, #mobileHomeAskInput) {
    color: #f4f7f5 !important;
  }

  body.recall-mobile-mode :where(.mobile-login-card p, .mobile-hero-copy p, .mobile-topbar span, .mobile-section-head span, .mobile-settings-list small, .mobile-state-line, .mobile-processing-state, .mobile-pending-section span, .mobile-action-button small, .mobile-recent-item small, .mobile-result-head span, .mobile-plain-list span) {
    color: #9aa5a1 !important;
  }

  body.recall-mobile-mode :where(.mobile-field input, #mobileHomeAskInput, #mobileThoughtInput, .mobile-pending-file, .mobile-pending-empty, .mobile-home-answer, .mobile-action-button, .mobile-shortcut-grid button, .mobile-plain-list article, .mobile-filter-row button, .mobile-settings-list button) {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: #202624 !important;
    color: #f4f7f5 !important;
  }

  body.recall-mobile-mode :where(.mobile-field input, #mobileHomeAskInput, #mobileThoughtInput, .mobile-search-box input)::placeholder {
    color: #737d79 !important;
  }

  body.recall-mobile-mode #mobileThoughtInput:empty::before {
    color: #737d79 !important;
  }

  body.recall-mobile-mode :where(.mobile-primary-button, .mobile-brand-mark) {
    background: #f4f7f5 !important;
    color: #111412 !important;
  }

  body.recall-mobile-mode .mobile-secondary-button,
  body.recall-mobile-mode .mobile-plain-button {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: #242a28 !important;
    color: #f4f7f5 !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav button {
    color: #89938f !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav button.active,
  body.recall-mobile-mode .mobile-filter-row button.active {
    background: rgba(53, 208, 127, 0.16) !important;
    color: #35d07f !important;
  }

  body.recall-mobile-mode :where(.mobile-card-headline button, .mobile-shortcut-grid i, .mobile-tag-suggest button:active, .mobile-tag-suggest button:hover) {
    color: #35d07f !important;
  }

  body.recall-mobile-mode .mobile-tag-suggest button {
    color: #e6ece9 !important;
  }

  body.recall-mobile-mode .mobile-tag-suggest button:active {
    background: #202624 !important;
  }

  body.recall-mobile-mode .mobile-sheet-overlay {
    background: rgba(0, 0, 0, 0.66) !important;
  }

  body.recall-mobile-mode .mobile-thought-sheet-handle {
    background: #3a423f !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool,
  body.recall-mobile-mode .mobile-picture-icon,
  body.recall-mobile-mode .mobile-thought-more {
    color: #c7d0cc !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button {
    background: #313936 !important;
    color: #737d79 !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button:not(:disabled),
  body.recall-mobile-mode .mobile-compose-fab,
  body.recall-mobile-mode #mobileStartRecognizeBtn.is-ready {
    background: #35d07f !important;
    color: #ffffff !important;
  }

  body.recall-mobile-mode :where(.mobile-thought-item > div button, .mobile-thought-item > div span, .mobile-recent-tag, .mobile-saved-path) {
    background: rgba(53, 208, 127, 0.14) !important;
    color: #35d07f !important;
  }

  body.recall-mobile-mode .mobile-thought-menu button {
    color: #e6ece9 !important;
  }

  body.recall-mobile-mode .mobile-thought-menu button:active {
    background: #202624 !important;
  }

  body.recall-mobile-mode :where(.mobile-thought-image-chip, .mobile-thought-image, .mobile-action-button::before) {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: #242a28 !important;
  }

  body.recall-mobile-mode .mobile-avatar-button {
    background: rgba(220, 38, 38, 0.16) !important;
    color: #f87171 !important;
  }

  body.recall-mobile-mode .mobile-avatar-button::after {
    border-color: #101312 !important;
    background: #f4f7f5 !important;
  }

  body.recall-mobile-mode .mobile-recent-item::after {
    color: #56605c !important;
  }
}

/* Final mobile UI guards: keep icon layout stable and location chip clean. */
body.recall-mobile-mode .mobile-bottom-nav button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
}

body.recall-mobile-mode .mobile-bottom-nav .mobile-css-icon,
body.recall-mobile-mode .mobile-thought-actions .mobile-css-icon,
body.recall-mobile-mode .mobile-transfer-composer .mobile-css-icon {
  display: inline-block !important;
  font-family: inherit !important;
  line-height: 1 !important;
}

body.recall-mobile-mode .mobile-thought-location-preview .mobile-thought-location-name {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* WeChat-like mobile shell: fixed route header, natural page scroll, full-screen transfer chat. */
@media (max-width: 768px) {
  body.recall-mobile-mode {
    --mobile-fixed-topbar: calc(62px + env(safe-area-inset-top, 0px));
    --mobile-fixed-tabbar: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  body.recall-mobile-mode .mobile-home-screen {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    padding: var(--mobile-fixed-topbar) 18px 0 !important;
  }

  body.recall-mobile-mode .mobile-topbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    min-height: var(--mobile-fixed-topbar) !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 10px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
    background: rgba(246, 247, 249, 0.94) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  }

  body.recall-mobile-mode .mobile-page {
    min-height: 0 !important;
    height: calc(100dvh - var(--mobile-fixed-topbar)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 0 var(--mobile-fixed-tabbar) !important;
  }

  body.recall-mobile-mode .mobile-home-answer {
    max-height: none !important;
    overflow: visible !important;
    font-size: 15px !important;
  }

  body.recall-mobile-mode .markdown-content h1,
  body.recall-mobile-mode .markdown-content h2,
  body.recall-mobile-mode .markdown-content h3,
  body.recall-mobile-mode .markdown-content h4 {
    margin: 0 0 10px !important;
    color: #171717 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  body.recall-mobile-mode .markdown-content h1 { font-size: 22px !important; }
  body.recall-mobile-mode .markdown-content h2 { font-size: 18px !important; }
  body.recall-mobile-mode .markdown-content h3,
  body.recall-mobile-mode .markdown-content h4 { font-size: 16px !important; }

  body.recall-mobile-mode .markdown-content p,
  body.recall-mobile-mode .markdown-content li {
    margin: 0 0 8px !important;
    line-height: 1.75 !important;
    word-break: break-word !important;
  }

  body.recall-mobile-mode .markdown-content ol,
  body.recall-mobile-mode .markdown-content ul {
    margin: 0 0 12px !important;
    padding-left: 1.35em !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-home-screen {
    padding: var(--mobile-fixed-topbar) 0 0 !important;
    background: #ededed !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-topbar {
    justify-content: center !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
    background: rgba(237, 237, 237, 0.96) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-topbar div {
    align-items: center !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-topbar strong {
    display: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-topbar span {
    color: #111111 !important;
    font-size: 18px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-avatar-button {
    position: absolute !important;
    right: 16px !important;
    bottom: 9px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: transparent !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-avatar-button::before {
    content: "...";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-4px);
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-avatar-button::after {
    content: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] #mobilePageInbox {
    height: calc(100dvh - var(--mobile-fixed-topbar)) !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ededed !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-chat {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    border-radius: 0 !important;
    background: #ededed !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-chat-head {
    display: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-messages {
    display: grid !important;
    align-content: start !important;
    gap: 10px !important;
    overflow-y: auto !important;
    padding: 14px 12px calc(var(--mobile-fixed-tabbar) + 76px) !important;
    background: #ededed !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-messages > h3 {
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 6px auto 2px !important;
    border-radius: 5px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    color: #ffffff !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item {
    width: min(76%, 330px) !important;
    gap: 4px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-image {
    width: min(58%, 240px) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-bubble {
    position: relative !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-bubble::before {
    content: "";
    position: absolute;
    top: 12px;
    left: -6px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 7px solid #ffffff;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-bubble {
    background: #95ec69 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-bubble::before {
    right: -6px;
    left: auto;
    border-right: 0;
    border-left: 7px solid #95ec69;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-bubble > small {
    display: block !important;
    margin-top: 6px !important;
    color: rgba(0, 0, 0, 0.48) !important;
    font-size: 11px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions {
    padding: 0 1px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions a,
  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions button {
    min-height: 28px !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #3f454d !important;
    padding: 0 5px !important;
    font-size: 12px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions .danger {
    color: #c93434 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer {
    position: fixed !important;
    right: 0 !important;
    bottom: var(--mobile-fixed-tabbar) !important;
    left: 0 !important;
    z-index: 55 !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 9px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    background: #f7f7f7 !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"].mobile-transfer-sheet-open .mobile-transfer-composer {
    bottom: calc(var(--transfer-keyboard-offset, 0px) + var(--mobile-fixed-tabbar)) !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    padding: 8px 12px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-sheet-handle {
    display: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer textarea {
    min-height: 38px !important;
    max-height: 112px !important;
    border: 1px solid #dedede !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
    line-height: 1.35 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #111111 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn {
    background: transparent !important;
    color: #111111 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-chat > .mobile-state-line {
    position: fixed !important;
    right: 12px !important;
    bottom: calc(var(--mobile-fixed-tabbar) + 58px) !important;
    left: 12px !important;
    z-index: 56 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: center !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-bottom-nav {
    border-radius: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    min-height: var(--mobile-fixed-tabbar) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06) !important;
  }
}

/* Mobile polish: OCR previews, fixed tab headers, and cleaner thought controls. */
@media (max-width: 768px) {
  body.recall-mobile-mode .mobile-topbar {
    height: var(--mobile-fixed-topbar) !important;
    max-height: var(--mobile-fixed-topbar) !important;
    flex: 0 0 var(--mobile-fixed-topbar) !important;
  }

  body.recall-mobile-mode .mobile-action-view,
  body.recall-mobile-mode .mobile-result-view,
  body.recall-mobile-mode .mobile-thought-stream-section {
    min-height: calc(100dvh - var(--mobile-fixed-topbar) - var(--mobile-fixed-tabbar)) !important;
  }

  body.recall-mobile-mode .mobile-recognition-job {
    border-radius: 18px !important;
    background: #ffffff !important;
  }

  body.recall-mobile-mode .mobile-recognition-job.is-previewable {
    cursor: pointer;
  }

  body.recall-mobile-mode .mobile-recognition-job.is-done button {
    min-width: 52px !important;
    background: #e6f8f1 !important;
    color: #02a66b !important;
    font-weight: 850 !important;
  }

  body.recall-mobile-mode .mobile-recognition-job.is-done .mobile-job-status-dot {
    display: none !important;
  }

  body.recall-mobile-mode .mobile-tag-suggest {
    right: 16px !important;
    left: 16px !important;
    max-height: min(34dvh, 260px) !important;
    border-radius: 16px !important;
    padding: 6px 0 !important;
  }

  body.recall-mobile-mode .mobile-tag-suggest button {
    min-height: 42px !important;
    padding: 9px 18px !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
  }

  body.recall-mobile-mode .mobile-thought-sheet {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions {
    display: grid !important;
    grid-template-columns: repeat(7, 28px) minmax(42px, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool {
    width: 28px !important;
    height: 30px !important;
    font-size: 20px !important;
  }

  body.recall-mobile-mode .mobile-sheet-close-tool {
    color: #737a82 !important;
    font-size: 23px !important;
    font-weight: 900 !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button {
    width: 100% !important;
    max-width: 52px !important;
    height: 38px !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }

  body.recall-mobile-mode .mobile-thought-item {
    padding: 18px !important;
    gap: 12px !important;
  }

  body.recall-mobile-mode .mobile-thought-more,
  body.recall-mobile-mode .mobile-thought-menu {
    display: none !important;
  }

  body.recall-mobile-mode .mobile-thought-item .mobile-thought-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
  }

  body.recall-mobile-mode .mobile-thought-item .mobile-thought-meta button,
  body.recall-mobile-mode .mobile-thought-item .mobile-thought-meta span {
    min-height: 18px !important;
    border-radius: 6px !important;
    padding: 1px 6px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 16px !important;
  }

  body.recall-mobile-mode .mobile-thought-item .mobile-thought-meta small {
    margin-left: auto !important;
    font-size: 10px !important;
  }

  body.recall-mobile-mode .mobile-thought-inline-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-top: 2px !important;
  }

  body.recall-mobile-mode .mobile-thought-inline-actions button {
    width: auto !important;
    min-height: 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f5f6 !important;
    color: #596169 !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  body.recall-mobile-mode .mobile-thought-inline-actions button.danger {
    background: #fff1f2 !important;
    color: #dc2626 !important;
  }
}

/* Mobile color pass and home restore. Keep this last so it only refines the mobile shell. */
@media (max-width: 768px) {
  body.recall-mobile-mode {
    --recall-mobile-bg: #f7f8fa;
    --recall-mobile-panel: #ffffff;
    --recall-mobile-soft: #f2f4f6;
    --recall-mobile-line: #e8ebef;
    --recall-mobile-text: #111315;
    --recall-mobile-muted: #727983;
    --recall-mobile-faint: #9aa1aa;
    --recall-mobile-accent: #00a66a;
    --recall-mobile-accent-soft: #e7f7f0;
    --recall-mobile-danger: #d92d20;
  }

  body.recall-mobile-mode,
  body.recall-mobile-mode #mobileRoot,
  body.recall-mobile-mode .mobile-home-screen {
    background:
      radial-gradient(circle at 18% 0%, rgba(0, 166, 106, 0.055), transparent 30%),
      var(--recall-mobile-bg) !important;
    color: var(--recall-mobile-text) !important;
  }

  body.recall-mobile-mode :where(.mobile-dashboard-card, .mobile-pending-section, .mobile-result-content, .mobile-recognition-job, .mobile-thought-item, .mobile-settings-list button, .mobile-search-entry, .mobile-search-box) {
    border-color: var(--recall-mobile-line) !important;
    background: var(--recall-mobile-panel) !important;
    color: var(--recall-mobile-text) !important;
    box-shadow: 0 12px 34px rgba(17, 19, 21, 0.045) !important;
  }

  body.recall-mobile-mode :where(.mobile-section-head span, .mobile-topbar span, .mobile-state-line, .mobile-processing-state, .mobile-action-button small, .mobile-pending-section span, .mobile-thought-item small) {
    color: var(--recall-mobile-muted) !important;
  }

  body.recall-mobile-mode :where(#mobileHomeAskInput, #mobileThoughtInput, .mobile-transfer-composer textarea, .mobile-field input, .mobile-pending-file, .mobile-pending-empty) {
    border-color: var(--recall-mobile-line) !important;
    background: var(--recall-mobile-soft) !important;
    color: var(--recall-mobile-text) !important;
  }

  body.recall-mobile-mode :where(#mobileHomeAskInput, #mobileThoughtInput, .mobile-transfer-composer textarea, .mobile-field input)::placeholder,
  body.recall-mobile-mode #mobileThoughtInput:empty::before {
    color: var(--recall-mobile-faint) !important;
  }

  body.recall-mobile-mode :where(.mobile-bottom-nav, .mobile-thought-sheet, .mobile-tag-suggest) {
    border-color: rgba(17, 19, 21, 0.08) !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  body.recall-mobile-mode :where(.mobile-bottom-nav button.active, .mobile-filter-row button.active, .mobile-thought-item .mobile-thought-meta button, .mobile-thought-item .mobile-thought-meta span, .mobile-recent-tag) {
    background: var(--recall-mobile-accent-soft) !important;
    color: var(--recall-mobile-accent) !important;
  }

  body.recall-mobile-mode :where(.mobile-primary-button, .mobile-thought-send-button:not(:disabled), .mobile-compose-fab, #mobileStartRecognizeBtn.is-ready) {
    background: var(--recall-mobile-text) !important;
    color: #ffffff !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button:not(:disabled),
  body.recall-mobile-mode .mobile-compose-fab {
    background: #35c982 !important;
  }

  body.recall-mobile-mode :where(.mobile-transfer-actions .danger, .mobile-state-line.is-error, .mobile-processing-state.is-error) {
    color: var(--recall-mobile-danger) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-home-screen {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: max(22px, calc(env(safe-area-inset-top, 0px) + 12px)) 18px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-topbar {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    min-height: 58px !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-page {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 14px 0 0 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-search-entry,
  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-dashboard-card {
    border-radius: 22px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 32px !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button {
    flex: 0 0 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    height: 42px !important;
    margin-left: auto !important;
    border-radius: 21px !important;
  }
}

/* Full mobile recolor: Graphite + Memory Green. */
@media (max-width: 768px) {
  body.recall-mobile-mode {
    --m-bg: #fafafa;
    --m-surface: #ffffff;
    --m-surface-2: #f5f5f5;
    --m-surface-3: #eeeeee;
    --m-text: #111111;
    --m-text-2: #666666;
    --m-text-3: #8a8f98;
    --m-line: #eaeaea;
    --m-line-strong: #dcdcdc;
    --m-green: #00a66a;
    --m-green-soft: #e9f8f1;
    --m-red: #d92d20;
    --m-blue: #2563eb;
  }

  body.recall-mobile-mode,
  body.recall-mobile-mode #mobileRoot,
  body.recall-mobile-mode .mobile-screen,
  body.recall-mobile-mode .mobile-home-screen,
  body.recall-mobile-mode #mobileRoot :where(.mobile-page, .mobile-action-view, .mobile-result-view) {
    background: var(--m-bg) !important;
    color: var(--m-text) !important;
  }

  body.recall-mobile-mode .mobile-topbar {
    background: rgba(250, 250, 250, 0.96) !important;
    border-bottom: 1px solid var(--m-line) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode .mobile-topbar strong,
  body.recall-mobile-mode :where(.mobile-section-head h1, .mobile-card-headline h2, .mobile-result-head strong, .mobile-pending-section strong, .mobile-settings-list span, .mobile-thought-item p, .mobile-thought-item li, .mobile-action-button span, .mobile-plain-list strong) {
    color: var(--m-text) !important;
  }

  body.recall-mobile-mode .mobile-topbar span,
  body.recall-mobile-mode :where(.mobile-section-head span, .mobile-card-headline small, .mobile-result-head span, .mobile-pending-section span, .mobile-settings-list small, .mobile-action-button small, .mobile-state-line, .mobile-processing-state, .mobile-plain-list span, .mobile-thought-item small, .mobile-recognition-job small, .mobile-recognition-job p) {
    color: var(--m-text-2) !important;
  }

  body.recall-mobile-mode :where(.mobile-dashboard-card, .mobile-card, .mobile-pending-section, .mobile-processing-state, .mobile-result-content, .mobile-search-entry, .mobile-search-box, .mobile-plain-list article, .mobile-recognition-job, .mobile-thought-item, .mobile-settings-list button, .mobile-transfer-bubble, .mobile-transfer-file) {
    border: 1px solid var(--m-line) !important;
    background: var(--m-surface) !important;
    color: var(--m-text) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode :where(.mobile-dashboard-card, .mobile-pending-section, .mobile-result-content, .mobile-recognition-job, .mobile-thought-item) {
    border-radius: 14px !important;
  }

  body.recall-mobile-mode .mobile-search-entry,
  body.recall-mobile-mode .mobile-search-box,
  body.recall-mobile-mode .mobile-settings-list button,
  body.recall-mobile-mode .mobile-plain-list article {
    border-radius: 12px !important;
  }

  body.recall-mobile-mode :where(input, textarea, #mobileThoughtInput, #mobileHomeAskInput, .mobile-transfer-composer textarea, .mobile-field input, .mobile-pending-file, .mobile-pending-empty) {
    border-color: var(--m-line-strong) !important;
    background: var(--m-surface-2) !important;
    color: var(--m-text) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode :where(input, textarea, #mobileThoughtInput, #mobileHomeAskInput, .mobile-transfer-composer textarea, .mobile-field input)::placeholder,
  body.recall-mobile-mode #mobileThoughtInput:empty::before {
    color: var(--m-text-3) !important;
  }

  body.recall-mobile-mode :where(input, textarea, #mobileThoughtInput, #mobileHomeAskInput, .mobile-transfer-composer textarea, .mobile-field input):focus {
    border-color: var(--m-text) !important;
    background: var(--m-surface) !important;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06) !important;
  }

  body.recall-mobile-mode :where(.mobile-primary-button, .mobile-transfer-composer button, .mobile-thought-send-button:not(:disabled), #mobileStartRecognizeBtn.is-ready) {
    background: var(--m-text) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode :where(.mobile-secondary-button, .mobile-plain-button, .mobile-filter-row button, .mobile-thought-inline-actions button, .mobile-transfer-actions a, .mobile-transfer-actions button) {
    border: 1px solid var(--m-line) !important;
    background: var(--m-surface-2) !important;
    color: var(--m-text-2) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode .mobile-plain-button,
  body.recall-mobile-mode .mobile-card-headline button,
  body.recall-mobile-mode #mobileRefreshJobsBtn,
  body.recall-mobile-mode #mobileRefreshTransferBtn {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--m-green) !important;
  }

  body.recall-mobile-mode .mobile-action-button {
    border: 1px solid var(--m-line) !important;
    background: var(--m-surface) !important;
    color: var(--m-text) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode .mobile-action-button::before {
    background: var(--m-surface-2) !important;
    color: var(--m-text) !important;
  }

  body.recall-mobile-mode #mobileUploadImageBtn::before {
    background: #eff6ff !important;
    color: var(--m-blue) !important;
  }

  body.recall-mobile-mode #mobileUploadFileBtn::before,
  body.recall-mobile-mode #mobileCameraBtn::before {
    background: var(--m-green-soft) !important;
    color: var(--m-green) !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid var(--m-line) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
    padding: 6px 12px env(safe-area-inset-bottom, 0px) !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav button {
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 12px !important;
    color: var(--m-text-3) !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav button.active {
    background: var(--m-text) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode :where(.mobile-thought-item .mobile-thought-meta button, .mobile-thought-item .mobile-thought-meta span, .mobile-recent-tag, .mobile-recognition-job.is-done button, .mobile-filter-row button.active) {
    background: var(--m-green-soft) !important;
    color: var(--m-green) !important;
    border-color: transparent !important;
  }

  body.recall-mobile-mode .mobile-compose-fab,
  body.recall-mobile-mode .mobile-thought-send-button:not(:disabled) {
    background: var(--m-green) !important;
    color: #ffffff !important;
  }

  body.recall-mobile-mode .mobile-avatar-button {
    background: #fff5f5 !important;
    color: var(--m-red) !important;
    box-shadow: inset 0 0 0 1px #fee2e2 !important;
  }

  body.recall-mobile-mode .mobile-avatar-button::after {
    border-color: var(--m-bg) !important;
    background: var(--m-text) !important;
  }

  body.recall-mobile-mode :where(.mobile-state-line.is-error, .mobile-processing-state.is-error, .mobile-transfer-actions .danger) {
    color: var(--m-red) !important;
  }

  body.recall-mobile-mode .mobile-thought-sheet,
  body.recall-mobile-mode .mobile-tag-suggest,
  body.recall-mobile-mode .mobile-transfer-composer {
    border-color: var(--m-line) !important;
    background: var(--m-surface) !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode .mobile-sheet-overlay {
    background: rgba(17, 17, 17, 0.62) !important;
  }

  body.recall-mobile-mode .mobile-thought-sheet-handle {
    background: var(--m-line-strong) !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool,
  body.recall-mobile-mode .mobile-picture-icon {
    color: var(--m-text-2) !important;
  }

  body.recall-mobile-mode .mobile-transfer-chat,
  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-chat,
  body.recall-mobile-mode[data-mobile-route-current="inbox"] #mobilePageInbox,
  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-messages {
    background: #f2f2f2 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-bubble {
    background: var(--m-green-soft) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-bubble::before {
    border-left-color: var(--m-green-soft) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-bubble::before {
    border-right-color: var(--m-surface) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-home-screen,
  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-home-screen {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: max(22px, calc(env(safe-area-inset-top, 0px) + 12px)) 18px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-topbar,
  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-topbar {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    min-height: 58px !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="home"] .mobile-page,
  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-page {
    height: auto !important;
    min-height: 0 !important;
    align-content: start !important;
    overflow: visible !important;
    padding: 14px 0 0 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-dashboard-card {
    align-content: start !important;
    gap: 18px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-settings-list {
    gap: 1px !important;
    overflow: hidden !important;
    border: 1px solid var(--m-line) !important;
    border-radius: 14px !important;
    background: var(--m-surface) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-settings-list button {
    height: 58px !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--m-line) !important;
    background: var(--m-surface) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="me"] .mobile-settings-list button:last-child {
    border-bottom: 0 !important;
  }
}

/* Mobile layout fixes requested after the recolor pass. */
@media (max-width: 768px) {
  body.recall-mobile-mode[data-mobile-route-current="ocr"] .mobile-hero-copy {
    display: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="ocr"] .mobile-action-view {
    gap: 14px !important;
    padding-top: 14px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="ocr"] .mobile-pending-actions.is-auto-recognize {
    display: none !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="ocr"] .mobile-pending-section {
    gap: 12px !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="ocr"] .mobile-pending-section > div:first-child {
    text-align: left !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  body.recall-mobile-mode .mobile-bottom-nav button,
  body.recall-mobile-mode .mobile-bottom-nav button.active {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 4px 2px !important;
    transform: none !important;
    align-self: center !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item {
    width: fit-content !important;
    max-width: min(76vw, 330px) !important;
    justify-items: start !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own {
    justify-items: end !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-image {
    width: fit-content !important;
    max-width: min(58vw, 240px) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-bubble {
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-grid !important;
    justify-self: start !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-bubble {
    justify-self: end !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-file {
    width: fit-content !important;
    max-width: min(70vw, 300px) !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions {
    width: fit-content !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    justify-self: start !important;
    padding: 2px 0 0 !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-item.is-own .mobile-transfer-actions {
    justify-self: end !important;
  }

  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions a,
  body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-actions button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 9px !important;
    white-space: nowrap !important;
  }

  body.recall-mobile-mode .mobile-thought-actions {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    min-height: 40px !important;
    padding-top: 0 !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool,
  body.recall-mobile-mode .mobile-thought-send-button {
    align-self: flex-start !important;
    margin-top: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.recall-mobile-mode .mobile-sheet-tool {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.recall-mobile-mode .mobile-thought-send-button {
    flex: 0 0 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions .mobile-css-icon,
  body.recall-mobile-mode .mobile-thought-actions .mobile-picture-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.recall-mobile-mode .mobile-thought-actions strong {
    display: block !important;
    line-height: 1 !important;
    transform: none !important;
  }
}

/* Thought image previews and deterministic toolbar alignment. */
@media (max-width: 768px) {
  body.recall-mobile-mode .mobile-thought-image-open,
  body.recall-mobile-mode .mobile-thought-image-preview-button {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  body.recall-mobile-mode .mobile-thought-image-open img,
  body.recall-mobile-mode .mobile-thought-image-preview-button img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  body.recall-mobile-mode .mobile-thought-actions {
    --thought-tool-track: 42px;
    align-items: flex-start !important;
    gap: 10px !important;
    min-height: var(--thought-tool-track) !important;
    padding: 0 !important;
  }

  body.recall-mobile-mode .mobile-thought-actions :where(.mobile-sheet-tool, .mobile-thought-send-button) {
    position: relative !important;
    top: 0 !important;
    align-self: flex-start !important;
    height: var(--thought-tool-track) !important;
    min-height: var(--thought-tool-track) !important;
    max-height: var(--thought-tool-track) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transform: none !important;
  }

  body.recall-mobile-mode .mobile-thought-actions .mobile-sheet-tool {
    flex: 0 0 34px !important;
    width: 34px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions .mobile-thought-send-button {
    flex: 0 0 58px !important;
    width: 58px !important;
    max-width: 58px !important;
    margin-left: auto !important;
    border-radius: 21px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions :where(.mobile-css-icon, .mobile-picture-icon) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    flex: 0 0 22px !important;
    transform: none !important;
  }

  body.recall-mobile-mode .mobile-thought-actions .mobile-icon-send {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }

  body.recall-mobile-mode .mobile-thought-actions strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body.recall-mobile-mode .mobile-thought-image-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 140 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.88) !important;
    padding: max(20px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  body.recall-mobile-mode .mobile-thought-image-lightbox.hidden {
    display: none !important;
  }

  body.recall-mobile-mode .mobile-thought-image-lightbox img {
    display: block !important;
    max-width: 100% !important;
    max-height: 86dvh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #ffffff !important;
  }

  body.recall-mobile-mode .mobile-thought-image-lightbox-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }
}

body.recall-mobile-mode #mobileResultBackBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 54px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
}

body.recall-mobile-mode .mobile-transfer-image {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: zoom-in;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip {
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip::before {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 2px !important;
  width: 12px !important;
  height: 19px !important;
  border: 3px solid currentColor !important;
  border-top-color: transparent !important;
  border-radius: 0 0 10px 10px !important;
  transform: rotate(35deg) !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip::after {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  top: 6px !important;
  width: 5px !important;
  height: 12px !important;
  border: 2px solid currentColor !important;
  border-top-color: transparent !important;
  border-radius: 0 0 8px 8px !important;
  transform: rotate(35deg) !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"].mobile-transfer-sheet-open .mobile-sheet-overlay {
  display: none !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"].mobile-transfer-sheet-open .mobile-transfer-composer {
  bottom: var(--transfer-keyboard-offset, 0px) !important;
  box-shadow: none !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn {
  border-radius: 12px !important;
  background: #f1f2f4 !important;
  color: #3f3f46 !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid currentColor !important;
  border-left-width: 2px !important;
  border-radius: 10px 10px 10px 2px !important;
  transform: rotate(-42deg) scale(0.76) !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip::before {
  content: none !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-icon-clip::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 3px !important;
  width: 8px !important;
  height: 10px !important;
  border: 2px solid currentColor !important;
  border-radius: 8px 8px 8px 2px !important;
  transform: none !important;
}

@media (min-width: 769px) {
  #inboxView .inbox-transfer-item {
    width: min(72%, 760px) !important;
  }

  #inboxView .inbox-transfer-bubble {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #inboxView .inbox-transfer-message-text,
  #inboxView .inbox-transfer-item p {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #inboxView .inbox-transfer-bubble > small {
    white-space: normal !important;
  }
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer {
  z-index: 92 !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"].mobile-transfer-sheet-open .mobile-bottom-nav {
  display: none !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: #f1f2f4 !important;
  color: #3f3f46 !important;
}

body.recall-mobile-mode[data-mobile-route-current="inbox"] .mobile-transfer-composer #mobileTransferAttachBtn .mobile-attach-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.25 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
