:root { --green: #202020; --green-dark: #171717; --line: #e5e5e5; --muted: #686868; background: white; color: #202020; }
.top { height: 60px; min-height: 60px; flex-wrap: nowrap; background: white; color: inherit; padding: 0 20px; border-bottom: 1px solid var(--line); }
.identity { font-weight: 600; }
.logo { color: white; background: #222; border-radius: 10px; }
.quiet, input::file-selector-button { background: #f3f3f3; color: #333; }
button:hover:not(:disabled) { filter: brightness(.95); }
:focus-visible { outline-color: #3477bd; }
.workspace { max-width: none; padding: 0; gap: 0; grid-template-columns: 214px minmax(0,1fr); }
.navigation { padding: 22px 12px; gap: 4px; background: #f8f8f8; min-height: calc(100dvh - 60px); border-right: 1px solid var(--line); }
.navigation button { border-radius: 12px; font-size: .94rem; }
.navigation button:hover, .navigation button[aria-current] { background: #eaeaea; }
.navigation button[aria-current] { font-weight: 650; }
.content { padding: 24px clamp(16px,4vw,64px); }
.content:has(#chat-panel:not([hidden])) { padding-block: 0; }
#chat-panel { max-width: 800px; margin: auto; display: flex; flex-direction: column; height: calc(100dvh - 60px); }
#chat-panel h1 { font-size: 1.06rem; padding-block: 18px; margin: 0; }
.conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; border: 0; padding-bottom: max(14px,env(safe-area-inset-bottom)); }
.history { display: flex; flex: 1; flex-direction: column; gap: 20px; overflow: auto; padding: 14px 4px 24px; }
.history:empty { display: grid; place-items: center; }
.history:empty::after { content: "今天想讨论什么经营问题？"; font-size: clamp(22px,3vw,32px); font-weight: 550; text-align: center; }
.message { background: transparent; padding: 0; line-height: 1.65; }
.message strong { font-size: .78rem; color: var(--muted); }
.message[data-role="user"] { align-self: flex-end; max-width: 88%; padding: 10px 18px; background: #f2f2f2; border-radius: 20px; }
.message[data-role="user"] strong { display: none; }
.message details { margin-top: 8px; }
.message summary { width: fit-content; max-width: 100%; padding: 5px 12px; border-radius: 14px; background: #f5f5f5; font-size: .8rem; }
.chat-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 8px; padding: 12px 14px; border: 1px solid #dedede; border-radius: 26px; box-shadow: 0 3px 16px #0000000c; }
.question { grid-column: 1/-1; grid-row: 1; }
.question span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chat-form textarea { resize: none; padding: 4px 8px; border: 0; font-weight: 400; }
.chat-form label:has(select) { font-size: 0; gap: 0; }
.chat-form select { font-size: .83rem; width: fit-content; max-width: 100%; min-height: 36px; padding: 4px 7px; border: 0; background: #f5f5f5; border-radius: 16px; }
.chat-form button { border-radius: 20px; min-height: 36px; font-size: .83rem; }
.chat-form .workflow-actions { flex-direction: row-reverse; }
.chat-form .feedback { grid-column: 1/-1; }
.file-field, .file-result { background: #fafafa; }
#nav-toggle { display: none; }
@media (max-width: 760px) {
  .top { justify-content: flex-start; gap: 8px; padding-inline: 10px; }
  .account-bar { margin-left: auto; }
  #account-name, .identity .logo { display: none; }
  body:has(#workspace:not([hidden])) #nav-toggle { display: block; background: white; border: 1px solid var(--line); border-radius: 50%; width: 42px; padding: 0; }
  .workspace { display: block; }
  .navigation { display: none; position: fixed; z-index: 3; inset: 60px auto 0 0; width: min(82vw,300px); min-height: 0; overflow-y: auto; box-shadow: 10px 8px 32px #0001; }
  body:has(#nav-toggle[aria-expanded="true"]) .navigation { display: grid; }
  .content { padding-inline: 12px; }
  #chat-panel h1 { font-size: .95rem; }
  .chat-form { padding: 10px; }
}
