/* ChatNest-aligned interaction and mobile geometry repair. */

#app-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  overflow: hidden;
  background: #f9f9f7;
  place-items: center;
  transition: opacity 180ms ease;
}

#app-loading[hidden] {
  display: none;
}

#app-loading.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.app-loading-brand {
  display: block;
  width: 187px;
  height: 44px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  #app-loading { transition-duration: 1ms; }
}

[data-view-target="shared"],
.shared-view,
.brand-mark,
.identity-button {
  display: none !important;
}

.messages {
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
}

#system-prompt-input {
  display: block;
  min-height: 240px;
  max-height: min(56dvh, 560px);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.claude-page-view {
  overflow: auto;
  color: #171716;
  background: #f7f7f5;
}

.claude-page {
  width: min(680px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 24px;
}

.claude-page-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  margin-bottom: 30px;
}

.claude-page-header h1 {
  margin: 0;
  font: 600 24px/1.2 var(--sans);
  text-align: center;
}

.claude-page-header button {
  width: 42px;
  height: 42px;
  display: grid;
  padding: 0;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.07);
  place-items: center;
}

.claude-page-header button svg,
.claude-memory-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.claude-settings-list {
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
}

.claude-settings-list button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  padding: 0 20px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 19, 0.08);
  text-align: left;
}

.claude-settings-list button:last-child { border-bottom: 0; }
.claude-settings-list strong { font: 500 18px/1.2 var(--sans); }
.claude-settings-list i { color: #777; font: normal 28px/1 var(--sans); }
.claude-settings-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usage-card {
  padding: 17px 20px 15px;
  background: #fff;
  border-radius: 25px;
}

.usage-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.usage-card-title h2,
.usage-card-title strong {
  margin: 0;
  font: 500 17px/1.25 var(--sans);
}

.usage-card-title strong { color: #777; font-size: 15px; font-weight: 400; }
.usage-progress { height: 6px; margin: 10px 0 9px; overflow: hidden; background: #c9def8; border-radius: 99px; }
.usage-progress i { width: 0; height: 100%; display: block; background: #2f80df; border-radius: inherit; transition: width 300ms ease; }
.usage-card p { margin: 0; color: #777; font: 400 14px/1.3 var(--sans); }
.usage-section-title { margin: 27px 20px 12px; color: #777; font: 400 16px/1.2 var(--sans); }
.usage-error { margin: -15px 0 16px; padding: 10px 14px; color: #8b3d2a; background: #f8eae5; border-radius: 12px; }

.artifacts-intro { color: #6d6d69; font: 15px/1.4 var(--sans); }
.artifacts-list { display: grid; gap: 16px; }
.artifact-card { overflow: hidden; background: #fff; border: 1px solid rgba(20,20,19,.08); border-radius: 18px; }
.artifact-card header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(20,20,19,.08); }
.artifact-card header strong, .artifact-card header span { font: 500 13px/1.2 var(--sans); }
.artifact-card header span { color: #777; text-transform: uppercase; }
.artifact-card iframe, .artifact-card pre { width: 100%; height: 300px; margin: 0; padding: 0; border: 0; }
.artifact-card pre { overflow: auto; padding: 16px; background: #20201f; color: #f7f7f5; font: 13px/1.45 ui-monospace, monospace; }
.artifacts-empty { margin-top: 40px; color: #777; text-align: center; font: 15px/1.4 var(--sans); }
.claude-memory-back { display: none; }

.effort-dialog {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(20, 20, 19, 0.24);
  border: 0;
}

.effort-dialog[hidden] {
  display: none !important;
}

.effort-sheet {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 53%;
  min-height: 430px;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
  color: #171716;
  background: #f7f7f5;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -10px 38px rgba(20, 20, 19, 0.08);
  transform: translate3d(0, 100%, 0);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.effort-dialog.is-open .effort-sheet {
  transform: translate3d(0, 0, 0);
}

.effort-handle {
  width: 38px;
  height: 5px;
  margin: 10px auto 0;
  background: #c7c7c4;
  border-radius: 99px;
}

.effort-sheet header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  height: 80px;
}

.effort-sheet header h2 {
  margin: 0;
  font: 600 20px/1.2 var(--sans);
  text-align: center;
}

.effort-back {
  width: 46px;
  height: 46px;
  display: grid;
  padding: 0;
  color: #171716;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(20, 20, 19, 0.07);
  place-items: center;
}

.effort-back svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.effort-options {
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
}

.effort-options button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #171716;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 19, 0.09);
  font: 400 18px/1.2 var(--sans);
  text-align: left;
}

.effort-options button:last-child {
  border-bottom: 0;
}

.effort-options small {
  display: inline-block;
  margin-left: 7px;
  padding: 4px 8px;
  color: #555551;
  background: #e7e7e3;
  border-radius: 99px;
  font: 600 11px/1 var(--sans);
  vertical-align: 2px;
}

.effort-options svg {
  width: 23px;
  height: 23px;
  opacity: 0;
  fill: none;
  stroke: #2f75c8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.effort-options button.is-selected svg {
  opacity: 1;
}

.effort-help {
  margin: 13px 20px 0;
  color: #777773;
  font: 400 14px/1.35 var(--sans);
}

.effort-extended {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  margin-top: 22px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 24px;
}

.effort-extended-copy {
  display: grid;
  gap: 3px;
}

.effort-extended-copy strong {
  font: 400 18px/1.2 var(--sans);
}

.effort-extended-copy small {
  color: #777773;
  font: 400 14px/1.25 var(--sans);
}

.effort-extended input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.effort-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: #c9c9c6;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.effort-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(20, 20, 19, .18);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.effort-extended input:checked + .effort-switch {
  background: #2f75c8;
}

.effort-extended input:checked + .effort-switch span {
  transform: translateX(24px);
}

.effort-extended input:focus-visible + .effort-switch {
  outline: 3px solid rgba(47, 117, 200, .25);
  outline-offset: 2px;
}

.message-regenerate-button {
  display: inline-grid;
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.message-regenerate-button svg {
  width: 16px;
  height: 16px;
  transform: translateY(-1.5px);
}

.message-regenerate-button:disabled {
  opacity: .38;
}

@media (max-width: 720px) {
  html.mobile-standalone,
  html.mobile-standalone body {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .app-shell,
  html[data-site="juhua"] .app-shell,
  html[data-site="sunflower"] .app-shell {
    position: fixed;
    top: var(--mobile-viewport-top, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--mobile-viewport-left, 0px) !important;
    width: var(--mobile-viewport-width, 100vw) !important;
    height: var(--mobile-viewport-height, 100dvh) !important;
    min-height: 0;
    grid-template-rows: 0 minmax(0, 1fr);
  }

  html.mobile-standalone:not(.mobile-keyboard-open) .app-shell,
  html.mobile-standalone:not(.mobile-keyboard-open)[data-site="juhua"] .app-shell,
  html.mobile-standalone:not(.mobile-keyboard-open)[data-site="sunflower"] .app-shell {
    top: 0 !important;
    height: 100vh !important;
  }

  html[data-site="juhua"],
  html[data-site="juhua"] body {
    background-color: #d7d7c9;
  }

  html[data-site="juhua"].empty-chat-open .app-shell::before {
    inset: 0;
  }

  html.mobile-keyboard-open .app-shell,
  html.mobile-keyboard-open[data-site="juhua"] .app-shell,
  html.mobile-keyboard-open[data-site="sunflower"] .app-shell {
    top: var(--mobile-viewport-top, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--mobile-viewport-left, 0px) !important;
    width: var(--mobile-viewport-width, 100vw) !important;
    height: var(--mobile-viewport-height, 100dvh) !important;
  }

  .site-header,
  html[data-site="juhua"] .site-header,
  html[data-site="sunflower"] .site-header {
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .brand {
    display: none !important;
  }

  .header-actions {
    display: none;
  }

  .module-nav,
  html[data-site="juhua"] .module-nav,
  html[data-site="sunflower"] .module-nav {
    display: none !important;
  }

  .module-tab,
  html[data-site="juhua"] .module-tab,
  html[data-site="sunflower"] .module-tab {
    height: 50px;
    min-height: 50px;
    border-radius: 12px 12px 0 0;
    font-size: 12px;
  }

  .module-tab svg {
    width: 16px;
  }

  .main-stage {
    padding: 0 !important;
  }

  .module-view,
  .module-view.is-active,
  .chat-view.is-active {
    height: 100% !important;
    min-height: 0 !important;
  }

  .conversation-rail,
  html[data-site="juhua"] .conversation-rail,
  html[data-site="sunflower"] .conversation-rail {
    top: calc(var(--mobile-viewport-top, 0px) + env(safe-area-inset-top)) !important;
    bottom: 0 !important;
    width: min(78vw, 345px) !important;
    padding: 0 16px calc(14px + env(safe-area-inset-bottom)) !important;
    color: #171716;
    background: #f7f7f5 !important;
    display: flex !important;
    flex-direction: column;
  }

  .rail-scrim {
    inset: calc(var(--mobile-viewport-top, 0px) + env(safe-area-inset-top)) 0 0;
  }

  .claude-rail-heading { min-height: 70px; padding: 20px 8px 8px !important; border: 0 !important; }
  .claude-rail-heading h2 { margin: 0; font: 600 24px/1.1 var(--serif); }
  .claude-rail-menu { display: grid; gap: 2px; margin: 5px 0 18px; }
  .claude-rail-menu button { width: 100%; display: flex; align-items: center; gap: 15px; min-height: 48px; padding: 10px 8px; color: inherit; background: transparent; border: 0; border-radius: 12px; font: 500 18px/1.2 var(--sans); text-align: left; }
  .claude-rail-menu button:active { background: #ecece9; }
  .claude-rail-menu svg, .claude-settings-entry svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .claude-rail-menu .claude-chats-icon { width: 29px; height: 29px; margin-left: -2px; margin-right: -2px; stroke-width: 1.9; }
  .claude-rail-section-label { margin: 0 8px 8px; color: #777; font: 14px/1.2 var(--sans); }
  .conversation-list { min-height: 0; flex: 1; padding: 0 !important; overflow-y: auto; }
  .conversation-item { min-height: 42px !important; border-radius: 12px !important; }
  .conversation-open { padding: 8px 10px !important; }
  .conversation-open span { display: none !important; }
  .conversation-open strong { font: 400 15px/1.25 var(--sans) !important; }
  .claude-rail-foot { min-height: 58px; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0 0 !important; border: 0 !important; }
  .claude-settings-entry { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 8px; color: inherit; background: transparent; border: 0; border-radius: 12px; font: 500 15px/1.1 var(--sans); }
  .claude-settings-entry svg { width: 22px; height: 22px; }
  .claude-settings-entry .claude-gear-icon { width: 24px; height: 24px; overflow: visible; stroke-width: 1.45; }
  .claude-new-chat { margin-left: auto; padding: 11px 15px; color: #fff; background: #272724; border: 0; border-radius: 22px; font: 600 14px/1 var(--sans); }

  .chat-topbar {
    min-height: calc(52.8px + env(safe-area-inset-top));
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  }

  html[data-site="juhua"] .chat-panel.is-empty-chat {
    background: transparent;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }

  html[data-site="sunflower"] .chat-panel.is-empty-chat {
    background: #f7f7f5;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }

  .chat-panel.is-empty-chat .chat-topbar {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    min-height: calc(58px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 16px 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .chat-panel.is-empty-chat .mobile-rail-button {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(20, 20, 19, .08);
  }

  .chat-panel.is-empty-chat .mobile-rail-button::after {
    position: absolute;
    top: 9px;
    right: 7px;
    width: 7px;
    height: 7px;
    content: "";
    background: #d97757;
    border: 2px solid #fff;
    border-radius: 50%;
  }

  .chat-panel.is-empty-chat .chat-title-wrap {
    visibility: hidden;
  }

  .mobile-rail-button {
    width: 36px;
    height: 36px;
    margin-right: 8px;
  }

  .chat-title-wrap h2 {
    max-width: 43vw;
    font-size: 16px;
  }

  .memory-status {
    display: none !important;
  }

  .messages {
    padding: 13px 16px 9px;
    scroll-behavior: auto;
  }

  html[data-site="juhua"] .chat-panel.is-empty-chat .messages {
    padding: 0;
    background: transparent;
  }

  html[data-site="sunflower"] .chat-panel.is-empty-chat .messages {
    padding: 0;
    background: #f7f7f5;
  }

  .chat-panel.is-empty-chat .empty-chat {
    min-height: 100%;
    display: grid;
    padding: calc(64px + env(safe-area-inset-top)) 24px 18px;
    place-items: center;
  }

  .claude-empty-center {
    display: grid;
    justify-items: center;
    gap: 20px;
    transform: translateY(4vh);
  }

  .claude-empty-mark {
    width: 32px;
    height: 32px;
    color: #d97757;
    fill: currentColor;
  }

  .claude-empty-center h3 {
    max-width: 340px;
    margin: 0;
    color: #2f2f2c;
    font: 400 clamp(23px, 6.1vw, 28px)/1.14 var(--serif);
    letter-spacing: -.02em;
    text-align: center;
  }

  .message,
  .message.assistant,
  .message.user {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    animation-duration: 150ms;
  }

  .message-avatar {
    display: none !important;
  }

  .message-body,
  .message.assistant .message-body {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .message.user .message-body {
    width: 100%;
    max-width: 100%;
  }

  .message-meta {
    align-items: center;
    width: max-content;
    gap: 5px;
    margin: 6px 0 0;
    font-size: 10px;
    line-height: 18px;
    letter-spacing: 0.035em;
  }

  .message:not(.user) .message-meta {
    margin-top: 24px;
  }

  .message.user .message-meta {
    justify-content: flex-end;
    margin-left: auto;
  }

  .message-content,
  .message:not(.user) .message-content {
    width: auto;
    max-width: 100%;
    padding: 0;
    color: var(--claude-foreground, #141413);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 16.8px;
    line-height: 1.68;
  }

  .message.user .message-content {
    width: fit-content;
    max-width: 84%;
    margin-left: auto;
    padding: 9px 13px;
    background: color-mix(in srgb, var(--paper-deep) 45%, var(--claude-surface));
    border: 1px solid rgba(128, 97, 20, 0.15);
    border-radius: 28px;
    box-shadow: none;
    font-size: 16.8px;
    line-height: 1.52;
  }

  .message-content p,
  .message-content p:last-child {
    margin: 0;
  }

  .message-content .message-text > p + p {
    margin-top: 0.8em;
  }

  .message.is-incomplete .message-content {
    border-style: solid;
  }

  .claude-thinking-summary {
    margin: 10px 0 24px;
    font-size: 14px;
    line-height: 1.2;
  }

  .claude-thinking-clock {
    width: 20px;
    height: 20px;
  }

  .claude-trail-logo {
    width: 24px;
    height: 24px;
    margin-top: 10px;
  }

  .composer {
    padding: 4px 8px calc(5px + env(safe-area-inset-bottom));
  }

  html[data-site="juhua"] .chat-panel .composer {
    z-index: 4;
    padding: 6px 16px calc(10px + env(safe-area-inset-bottom));
    background: transparent;
  }

  /* Continue the conversation behind the transparent outer composer area. */
  html[data-site="juhua"] .chat-panel:not(.is-empty-chat) {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  html[data-site="juhua"] .chat-panel:not(.is-empty-chat) .messages {
    padding-bottom: calc(var(--composer-overlay-height, 130px) + 9px);
    scroll-padding-bottom: calc(var(--composer-overlay-height, 130px) + 9px);
  }

  html[data-site="juhua"] .chat-panel:not(.is-empty-chat) .composer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
  }

  html[data-site="juhua"] .chat-panel:not(.is-empty-chat) .composer-paper {
    pointer-events: auto;
  }

  html[data-site="sunflower"] .chat-panel.is-empty-chat .composer {
    z-index: 4;
    padding: 6px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #f7f7f5 80%, rgba(247,247,245,0));
  }

  html[data-site="juhua"] .chat-panel .composer-paper {
    background:
      linear-gradient(135deg, rgba(252, 250, 239, .96), rgba(234, 233, 219, .94));
    border: 1px solid rgba(67, 85, 72, .22);
    border-radius: 24px;
    box-shadow:
      0 18px 42px rgba(63, 71, 59, .11),
      inset 0 0 0 3px rgba(255, 255, 255, .34);
    transform: translateY(10%);
  }

  html[data-site="sunflower"] .chat-panel.is-empty-chat .composer-paper {
    background: #fff;
    border: 1px solid rgba(20, 20, 19, .05);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(20, 20, 19, .10);
  }

  .chat-panel.is-empty-chat .composer textarea {
    min-height: 48px;
    padding: 16px 16px 5px;
    color: #292927;
    font-size: 17px;
  }

  .chat-panel.is-empty-chat .composer textarea::placeholder {
    color: #777772;
    opacity: 1;
  }

  .chat-panel.is-empty-chat .composer-actions {
    min-height: 48px;
    padding: 3px 8px 8px;
  }

  .composer-paper {
    border-radius: 20px;
  }

  .composer textarea {
    height: auto !important;
    min-height: 34px;
    max-height: 112px;
    padding: 14px 14px 3px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.2;
  }

  .composer-actions {
    min-height: 38px;
    padding: 2px 5px 4px 7px;
  }

  html[data-site="juhua"] .chat-panel .composer textarea {
    min-height: 48px;
    padding: 16px 16px 5px;
    color: #292927;
    font-size: 17px;
  }

  html[data-site="juhua"] .chat-panel .composer textarea::placeholder {
    color: #777772;
    opacity: 1;
  }

  html[data-site="juhua"] .chat-panel .composer textarea:focus,
  html[data-site="juhua"] .chat-panel .composer textarea:focus-visible {
    outline: none;
    box-shadow: none;
  }

  html[data-site="juhua"] .chat-panel .composer-actions {
    min-height: 48px;
    padding: 3px 8px 8px;
  }

  .image-attach-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
  }

  .image-attach-button svg {
    width: 18px;
    height: 18px;
  }

  .composer-model-pill {
    display: none;
    border: 0;
  }

  .chat-panel .composer-model-pill {
    display: block;
    max-width: 48vw;
    margin-left: 2px;
    padding: 10px 14px;
    overflow: hidden;
    color: #2f2f2c;
    background: #f4f4f1;
    border-radius: 20px;
    font: 500 14px/1 var(--sans);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .composer-model-pill:disabled {
    opacity: 0.55;
  }

  .effort-dialog {
    top: var(--mobile-viewport-top, 0px);
    left: var(--mobile-viewport-left, 0px);
    width: var(--mobile-viewport-width, 100vw);
    height: var(--mobile-viewport-height, 100dvh);
  }

  html.mobile-standalone:not(.mobile-keyboard-open) .effort-dialog {
    top: 0;
    height: 100vh;
  }

  .chat-panel.is-empty-chat .image-attach-button {
    background: #f4f4f1;
    border: 0;
    border-radius: 50%;
  }

  html[data-site="juhua"] .chat-panel .image-attach-button,
  html[data-site="juhua"] .chat-panel .composer-model-pill {
    background: #e3e2d8;
  }

  html[data-site="juhua"] .chat-panel .send-button {
    color: #fff;
    background: #20201f;
    border-color: #20201f;
  }

  html[data-site="juhua"] .chat-panel:not(.has-composer-content) .send-button {
    display: none !important;
  }

  .send-button,
  .stop-button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .send-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .send-button svg {
    width: 17px;
  }

  .stop-button:not([hidden]) {
    display: grid;
    place-items: center;
  }

  .stop-button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
  }

  .memory-view {
    padding-top: env(safe-area-inset-top);
    overscroll-behavior-y: contain;
  }

  html[data-site="juhua"] .chat-panel::after,
  html[data-site="juhua"] .conversation-rail::after {
    display: none !important;
    content: none !important;
  }

  .memory-hero { position: relative; padding-top: 58px; }
  .claude-memory-back { position: absolute; top: 8px; left: 0; width: 44px; height: 44px; display: grid; padding: 0; background: #fff; border: 0; border-radius: 50%; place-items: center; font: 300 36px/1 var(--sans); }

  .claude-page { padding: calc(14px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
  .claude-page-header { margin-bottom: 26px; }
  .claude-page-header h1 { font-size: 20px; }
  .claude-page-header button { width: 40px; height: 40px; }
  .usage-card { padding: 17px 20px 15px; border-radius: 22px; }
  .claude-settings-icon.usage-icon { width: 27px; height: 27px; stroke-width: 1.65; }

  #system-prompt-input {
    width: 100%;
    height: 46dvh;
    min-height: 260px;
    max-height: 52dvh;
    overflow-y: scroll !important;
    resize: none;
    touch-action: pan-y;
  }
}
