:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #242b28;
  background: #e9ece7;
  font-synthesis: none;
  --paper: #f7f8f5;
  --ink: #242b28;
  --muted: #858c84;
  --line: #e4e7e0;
  --green: #294b3e;
  --soft: #edf0e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6a8e77;
  outline-offset: 4px;
}
button {
  color: inherit;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
button {
  border: 0;
  background: none;
}
button:hover {
  filter: brightness(0.96);
}
button:active {
  transform: scale(0.97);
}
.app {
  width: 100%;
  max-width: 760px;
  height: 100dvh;
  min-height: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.topbar {
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 24px 17px;
  flex-shrink: 0;
  border-bottom: 1px solid #e4e7e080;
}
.header-actions {
  display: flex;
  align-items: center;
}
.topbar > .brand {
  justify-self: center;
}
.topbar > #new-button {
  justify-self: end;
}
.library-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.library-list {
  max-height: 60dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.library-list .file-card {
  max-width: 100%;
  flex-shrink: 0;
}
.preview-actions {
  flex-wrap: wrap;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.brand-name {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
}
.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b8872;
  margin-top: 2px;
}
.connection {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.conversation {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d9ded5 transparent;
  position: relative;
}
.welcome {
  padding: clamp(44px, 10vh, 100px) 28px 30px;
  max-width: 450px;
  margin: auto;
  animation: arrive 0.45s ease-out;
}
.bridge-mark {
  width: 73px;
  height: 73px;
  margin-bottom: 34px;
  color: var(--green);
}
.bridge-mark svg {
  width: 100%;
  height: 100%;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 13px;
}
.welcome h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0 0 15px;
  line-height: 1.4;
}
.welcome-copy {
  color: #7b827a;
  font-size: 13px;
  letter-spacing: 0.4px;
  margin: 0;
}
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 45px;
  max-width: 300px;
}
.suggestions button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #5f6a60;
}
.suggestions button:last-child {
  border-bottom: 0;
}
.suggestions button > span:last-child {
  margin-left: auto;
  color: #9ca598;
}
.suggestions svg {
  width: 18px;
  height: 18px;
}
.composer-area {
  padding: 12px 24px calc(13px + env(safe-area-inset-bottom));
  flex-shrink: 0;
  background: var(--paper);
}
.composer {
  border: 1px solid #dce2d8;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 3px 16px #20322404;
  padding: 16px 14px 11px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.composer:focus-within {
  border-color: #9aaf9e;
  box-shadow: 0 4px 18px #294b3e07;
}
.composer textarea {
  display: block;
  width: 100%;
  resize: none;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 24px;
  min-height: 30px;
  max-height: 144px;
  padding: 0 5px;
  scrollbar-width: thin;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer textarea::placeholder {
  color: #a1a79e;
}
.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.tool-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attach-button {
  width: 35px;
  height: 35px;
  background: #f4f5f1;
  color: #65715f;
}
.engine {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #77816f;
  padding: 8px 0;
}
.engine svg {
  width: 13px;
  height: 13px;
}
.engine-spark {
  color: #74886d;
}
.send-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border-radius: 50%;
  transition:
    background 0.2s,
    transform 0.15s;
}
.send-button:disabled {
  background: #e9ede5;
  color: #a6b19f;
}
.footer-note {
  font-size: 9px;
  color: #a3aaa0;
  text-align: center;
  letter-spacing: 1px;
  margin: 12px 0 0;
}
.messages {
  padding: 25px 26px 12px;
  max-width: 660px;
  margin: auto;
}
.message {
  margin-bottom: 28px;
  animation: arrive 0.25s ease-out;
}
.message-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.message-label svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.message.user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 35px;
}
.message.user .message-text {
  background: #e9eee5;
  border-radius: 18px 18px 4px 18px;
  padding: 13px 16px;
  max-width: 100%;
}
.message-text {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message time {
  font-size: 9px;
  color: #a0a69c;
  display: block;
  margin-top: 7px;
}
.task-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #788371;
  margin: 16px 0;
  line-height: 1.7;
}
.task-state svg {
  width: 16px;
  height: 16px;
}
.task-state.running svg {
  animation: turn 2s linear infinite;
}
.task-state.failed {
  color: #986957;
}
.file-card {
  width: 100%;
  max-width: 340px;
  border: 1px solid #dfe4da;
  border-radius: 13px;
  background: #fff;
  padding: 13px 13px 0;
  margin-top: 12px;
  overflow: hidden;
}
.file-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.file-badge {
  height: 42px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf1e9;
  color: #5c7756;
  border-radius: 7px;
  flex-shrink: 0;
}
.file-badge svg {
  width: 22px;
  height: 22px;
}
.file-info {
  min-width: 0;
  flex: 1;
}
.file-name {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.file-meta {
  font-size: 10px;
  color: #969d91;
}
.file-actions {
  border-top: 1px solid #edf0e9;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 43px;
}
.file-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  min-width: 40px;
  font-size: 11px;
  color: #6b7c64;
}
.file-actions svg {
  width: 16px;
  height: 16px;
}
.file-actions button:first-child {
  margin-right: auto;
}
.attachments {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
}
.attachments:empty {
  display: none;
}
.attachment-chip {
  background: #edf1e9;
  border: 1px solid #dde4d7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 6px 7px 10px;
  flex-shrink: 0;
  max-width: 240px;
  font-size: 11px;
}
.attachment-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip svg {
  width: 16px;
  height: 16px;
}
.attachment-chip button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.attachment-chip.uploading {
  opacity: 0.6;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  max-width: calc(100vw - 28px);
  box-shadow: 0 15px 80px #1a2e2220;
}
dialog[open] {
  animation: arrive 0.2s ease-out;
}
dialog::backdrop {
  background: #1d2c2440;
  backdrop-filter: blur(3px);
}
.drawer {
  height: 100dvh;
  max-height: none;
  margin: 0 auto 0 max(0px, calc((100vw - 760px) / 2));
  width: 320px;
  border-radius: 0 22px 22px 0;
  display: none;
  flex-direction: column;
  padding: 24px 20px;
}
.drawer[open] {
  display: flex;
  animation: slide 0.22s ease-out;
}
.drawer-header,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.drawer h2,
.dialog-header h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
  overflow-wrap: anywhere;
}
.drawer .icon-button {
  width: 36px;
  height: 36px;
}
.new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: white;
  border-radius: 11px;
  padding: 13px 16px;
  font-size: 13px;
  margin-bottom: 26px;
}
.new-chat svg {
  width: 18px;
  height: 18px;
}
#history-list {
  overflow-y: auto;
  flex: 1;
}
.history-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 5px;
}
.history-item.active {
  background: #e9eee5;
}
.history-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item small {
  display: block;
  color: #969e91;
  font-size: 10px;
  margin-top: 8px;
}
.drawer-foot {
  font-size: 10px;
  color: #9ba492;
  margin-top: 20px;
}
.preview-dialog {
  width: 640px;
  border-radius: 20px;
}
.preview-dialog .eyebrow {
  margin-bottom: 7px;
}
.preview-body {
  height: min(55dvh, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf0e9;
  border-radius: 12px;
  overflow: auto;
}
.preview-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.preview-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  align-self: flex-start;
  padding: 20px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  width: 100%;
  margin: 0;
}
.preview-unavailable {
  text-align: center;
  padding: 24px;
  color: #8c9585;
  font-size: 12px;
  line-height: 1.8;
}
.preview-unavailable svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: #7a8f70;
}
.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
}
.primary-button {
  color: white;
  background: var(--green);
}
.secondary-button {
  background: #e9eee5;
  color: var(--green);
}
.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
}
.info-dialog {
  border-radius: 20px;
  width: 380px;
}
#info-body {
  font-size: 13px;
  line-height: 1.9;
  color: #7c8575;
}
#info-body p {
  margin: 12px 0;
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.status-row strong {
  font-weight: 500;
  color: #3c5540;
}
.toast {
  position: fixed;
  bottom: 190px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  background: #293c30;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12px;
  line-height: 1.6;
  max-width: calc(100vw - 40px);
  width: max-content;
  transition: 0.2s;
  z-index: 10;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.empty-history {
  color: #909b86;
  font-size: 12px;
  text-align: center;
  margin: 40px 0;
}
.hidden {
  display: none !important;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide {
  from {
    opacity: 0.4;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 800px) {
  .app {
    box-shadow: 0 0 80px #273b2810;
  }
  .composer-area {
    padding-left: 52px;
    padding-right: 52px;
  }
  .topbar {
    padding-left: 32px;
    padding-right: 32px;
  }
  .welcome {
    max-width: 490px;
  }
  .welcome h1 {
    font-size: 33px;
  }
  .messages {
    padding-left: 35px;
    padding-right: 35px;
  }
}
@media (max-width: 380px) {
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .composer-area {
    padding-left: 14px;
    padding-right: 14px;
  }
  .welcome {
    padding-left: 25px;
    padding-right: 25px;
  }
  .welcome h1 {
    font-size: 26px;
  }
  .preview-actions {
    flex-direction: column;
  }
  .messages {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-height: 700px) {
  .welcome {
    padding-top: 30px;
  }
  .bridge-mark {
    width: 55px;
    height: 55px;
    margin-bottom: 22px;
  }
  .suggestions {
    margin-top: 25px;
  }
  .suggestions button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* 手机优先：页面占满视口，操作集中在拇指可达的底部。 */
.app {
  max-width: 480px;
  min-height: 0;
  height: var(--app-height, 100dvh);
}
.topbar {
  grid-template-columns: 48px 1fr 48px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  min-height: 72px;
}
.brand-name {
  font-size: 20px;
}
.connection {
  font-size: 11px;
  letter-spacing: 0.3px;
}
.icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}
.welcome {
  padding: 32px 24px 24px;
}
.bridge-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
}
.welcome h1 {
  font-size: 27px;
}
.welcome-copy {
  font-size: 15px;
}
.eyebrow {
  font-size: 12px;
}
.suggestions {
  margin-top: 28px;
  max-width: none;
}
.suggestions button {
  min-height: 56px;
  font-size: 15px;
}
.suggestions svg {
  width: 21px;
  height: 21px;
}
.messages {
  padding: 20px 16px 8px;
}
.message-text {
  font-size: 16px;
  line-height: 1.75;
}
.message-label {
  font-size: 12px;
}
.message time {
  font-size: 11px;
}
.message.user {
  margin-left: 24px;
}
.task-state {
  font-size: 14px;
}
.composer-area {
  padding: 8px 12px;
}
.composer {
  padding: 12px 12px 8px;
  border-radius: 22px;
}
.composer textarea {
  font-size: 16px;
  line-height: 24px;
}
.composer-tools {
  margin-top: 6px;
}
.attach-button,
.send-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
}
.engine {
  min-height: 48px;
  font-size: 13px;
  padding: 8px;
}
.engine svg {
  width: 16px;
  height: 16px;
}
.footer-note {
  font-size: 11px;
  letter-spacing: 0;
  margin: 8px 0 0;
}
.attachment-chip {
  font-size: 13px;
}
.attachment-chip button {
  width: 44px;
  height: 44px;
}
.mobile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
  padding: 4px 24px calc(4px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.tab {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #879083;
  font-size: 14px;
  border-radius: 14px;
}
.tab.active {
  color: var(--green);
  font-weight: 600;
}
.tab.active svg {
  stroke-width: 2;
}
.tab svg {
  width: 23px;
  height: 23px;
}
#chat-tab:active {
  transform: none;
}
.keyboard-open .app > .mobile-tabs,
.keyboard-open .footer-note {
  display: none;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 4px 4px 4px 12px;
  border-radius: 16px;
  margin-top: 10px;
  min-height: 84px;
  flex-shrink: 0;
}
.file-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 76px;
  padding: 8px 0;
  text-align: left;
  background: none;
}
.file-main:active {
  transform: none;
}
.file-main:hover {
  filter: none;
}
.file-badge {
  width: 42px;
  height: 48px;
  border-radius: 10px;
}
.file-info {
  display: block;
}
.file-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}
.file-meta {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #7b8576;
}
.file-more {
  align-self: center;
  margin: 0 0 0 6px;
  color: #65735e;
}
.file-more svg {
  stroke-width: 3;
}
.mobile-page,
.drawer {
  inset: 0;
  width: min(100%, 480px);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--paper);
  box-shadow: none;
  overflow: hidden;
}
.mobile-page[open],
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: page-in 0.2s ease-out;
}
.mobile-page .dialog-header,
.drawer-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-page .dialog-header h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}
.mobile-page .dialog-header > div {
  min-width: 0;
}
.mobile-page .dialog-header .eyebrow {
  display: none;
}
#preview-title {
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-note {
  margin: 0;
  padding: 18px 20px 10px;
  font-size: 13px;
  flex-shrink: 0;
  color: #788371;
}
.library-list {
  padding: 0 16px 20px;
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: block;
}
.library-list .file-card {
  margin: 8px 0 12px;
}
.library-list .empty-history {
  font-size: 15px;
}
#preview .preview-body {
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 0;
  background: #eef1e9;
  overflow: auto;
  margin: 0;
}
.preview-body pre {
  font-size: 15px;
  padding: 20px;
  line-height: 1.8;
}
.preview-unavailable {
  font-size: 15px;
}
.preview-actions {
  display: flex;
  flex-direction: row;
  margin: 0;
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.preview-actions > .primary-button {
  flex: 1;
  min-height: 52px;
  font-size: 15px;
  border-radius: 14px;
}
.preview-actions > .primary-button svg {
  width: 20px;
  height: 20px;
}
.drawer-header {
  grid-template-columns: 1fr 48px;
  padding-left: 24px;
}
.drawer .icon-button {
  width: 48px;
  height: 48px;
}
.drawer .new-chat {
  margin: 16px 16px 12px;
  min-height: 52px;
  font-size: 15px;
  justify-content: center;
}
.drawer #history-list {
  padding: 0 16px;
  min-height: 0;
}
.history-item {
  min-height: 72px;
  padding: 16px;
}
.history-item strong {
  font-size: 15px;
}
.history-item small {
  font-size: 12px;
}
.drawer-foot {
  font-size: 12px;
  text-align: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.action-sheet,
.info-dialog {
  inset: auto 0 0;
  width: min(100%, 480px);
  max-width: 100%;
  max-height: 90dvh;
  margin: 0 auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  box-shadow: none;
}
.action-sheet[open],
.info-dialog[open] {
  animation: sheet-in 0.22s ease-out;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #ccd3c5;
  margin: 0 auto 22px;
}
.action-sheet h2 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
  margin: 0 12px 18px;
}
.sheet-action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  text-align: left;
  border-radius: 12px;
}
.sheet-action:active {
  background: var(--soft);
  transform: none;
}
.sheet-action svg {
  width: 23px;
  height: 23px;
  color: #687d60;
}
.sheet-action.destructive {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 8px;
  padding-top: 18px;
  color: #a15c4b;
}
.sheet-action.destructive svg {
  color: inherit;
}
.sheet-cancel {
  width: 100%;
  min-height: 52px;
  background: #e9eee5;
  border-radius: 14px;
  margin-top: 16px;
  font-size: 16px;
}
.info-dialog {
  padding-top: 20px;
}
.info-dialog .dialog-header {
  margin-bottom: 10px;
}
.info-dialog #info-body {
  font-size: 15px;
}
.info-dialog .secondary-button {
  min-height: 52px;
  width: 100%;
  font-size: 15px;
}
.toast {
  font-size: 14px;
  bottom: calc(160px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
}
@keyframes page-in {
  from {
    opacity: 0.7;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes sheet-in {
  from {
    opacity: 0.5;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-height: 600px) {
  .welcome {
    padding-top: 18px;
  }
  .bridge-mark {
    display: none;
  }
  .suggestions {
    margin-top: 18px;
  }
  .composer-area {
    padding-top: 6px;
  }
  .footer-note {
    display: none;
  }
  .mobile-tabs .tab {
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-page[open],
  .drawer[open],
  .action-sheet[open],
  .info-dialog[open] {
    animation: none;
  }
}
.toast {
  border: 0;
  margin: 0;
  top: auto;
  right: auto;
}

.account-form{display:grid;gap:16px;margin-top:20px}.account-field{display:grid;gap:8px;font-size:14px}.account-field input{width:100%;box-sizing:border-box;border:1px solid #d8d9d4;border-radius:10px;padding:14px;font:inherit;background:#fff;color:#202720}.account-remember{display:flex;align-items:center;gap:8px}.account-remember input{width:20px;height:20px}.account-feedback{font-size:14px;line-height:1.6;margin:0}.account-form button{min-height:48px}

.account-field select{width:100%;padding:14px;border:1px solid #d8d9d4;border-radius:10px;font:inherit;background:#fff}.account-field input[type=range]{padding:0;accent-color:#294b3e;min-height:40px}.task-model,.task-heartbeat{color:#7a847b;font-size:12px;margin:8px 0}.task-progress{margin:12px 0;padding:12px 0;border-top:1px solid #e0e5dc;font-size:13px}.task-progress summary{cursor:pointer;color:#52654f;padding:8px 0}.progress-entry{display:flex;gap:10px;line-height:1.65;padding:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.progress-entry time{flex-shrink:0;color:#8b9489;font-size:11px}.engine{max-width:calc(100vw - 150px)}.engine>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.task-question{padding:16px;border:1px solid #cdd8c5;border-radius:12px;margin:12px 0}.task-question p{white-space:pre-wrap;line-height:1.7}.task-question button{display:block;margin-top:8px;width:100%;text-align:left;white-space:normal}

.file-card.image-card{position:relative;display:block;padding:0;overflow:hidden;max-width:340px;background:transparent}.image-card .image-main{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:0;padding:0}.image-thumbnail{display:flex;position:relative;align-items:center;justify-content:center;min-height:120px;width:100%;background:#edf0e9;overflow:hidden;border-radius:14px}.image-thumbnail img{display:block;width:100%;max-height:300px;object-fit:contain}.image-thumbnail-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:#7b8777;font-size:12px}.image-card .file-info{padding:10px 48px 10px 12px}.image-card .file-more{position:absolute;bottom:5px;right:3px}.attachment-image{width:54px;height:54px;padding:0;flex:none;background:transparent}.attachment-image .image-thumbnail{width:54px;height:54px;min-height:0;border-radius:8px}.attachment-image img{height:54px;object-fit:cover}.attachment-image .image-thumbnail-status{padding:3px;font-size:9px}
