:root {
  --ink: #252525;
  --muted: #767676;
  --accent: #b54a43;
  --accent-dark: #983c37;
  --tint: #fbefed;
  --paper: #fafafa;
  --line: #e9e9e9;
  --white: #fff;
  --soft: #f3f3f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.7 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dedede;
  border-radius: 9px;
  padding: 9px 17px;
  background: white;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f5f5f5;
  border-color: #c8c8c8;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: var(--accent-dark);
}
button.active {
  background: #f1f1f1;
  color: var(--ink);
  font-weight: 600;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  padding: 11px 13px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #979797;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
label input,
label select {
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  color: var(--accent);
  background: #fff;
  font-size: 24px;
  font-weight: 500;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.quiet-button {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--muted);
}
.quiet-button:hover {
  background: #f1f1f1;
  color: var(--ink);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 20px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2e7e6;
  color: #8f4b46;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.login {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: #fff;
}
.login-brand {
  padding: 13vh 9vw;
  background: #f6f5f4;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-brand .brand-icon {
  margin-bottom: 26px;
}
.login-brand h1 {
  font-size: 55px;
  font-weight: 500;
  line-height: 1.45;
  margin: 65px 0 30px;
}
.login-brand h1 span {
  font-size: 35px;
  font-weight: 400;
  color: #6b6b6b;
}
.login-brand p {
  font-size: 13px;
  color: #777;
}
.login-note {
  margin-top: auto;
  padding-top: 75px;
  font-size: 12px;
  color: #868686;
}
.login-form {
  align-self: center;
  max-width: 390px;
  width: 100%;
  padding: 32px;
  margin: auto;
}
.login-form h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.login-form label {
  margin: 22px 0;
}
.login-form .primary {
  width: 100%;
  margin-top: 10px;
}
.error {
  color: var(--accent);
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
  margin-bottom: 40px;
}
.brand b {
  font-size: 15px;
  letter-spacing: 0.08em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.nav-section {
  padding: 22px 14px 8px;
  font-size: 10px;
  color: #959595;
  letter-spacing: 0.1em;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
}
nav button.active {
  background: #f2f2f2;
}
nav button.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.nav-symbol {
  font-size: 18px;
  color: #777;
  width: 20px;
  text-align: center;
}
.nav-tag {
  font-size: 9px;
  margin-left: auto;
  color: var(--accent);
  border: 1px solid #ead3d0;
  border-radius: 4px;
  padding: 0 4px;
}
.aside-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account b {
  font-weight: 500;
  font-size: 12px;
}
.account small {
  display: block;
  color: #8b8b8b;
  font-size: 10px;
}
.aside-bottom .quiet-button {
  display: flex;
  justify-content: space-between;
  text-align: left;
}
.aside-bottom .quiet-button span {
  color: #aaa;
}
main {
  width: 100%;
  min-width: 0;
  padding: 0 38px 32px;
  align-self: start;
}
header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  gap: 20px;
}
.header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.workspace-path {
  font-size: 10px;
  color: #969696;
  letter-spacing: 0.06em;
}
.workspace-path span {
  margin-left: 9px;
}
header h2 {
  display: inline;
  margin-left: 12px;
  font-size: 14px;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-user {
  font-size: 12px;
  color: #555;
}
.services {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-size: 10px;
  background: #f1f1f1;
  border-radius: 6px;
  padding: 4px 9px;
  color: #666;
  white-space: nowrap;
}
.pill.pending {
  background: #faf0ef;
  color: var(--accent);
}
.services .pill {
  background: transparent;
  padding: 0;
  font-size: 10px;
}
.services .pill::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888;
  margin-right: 5px;
}
.services .pending::before {
  background: var(--accent);
}
#menu-toggle {
  display: none;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: #0003;
  z-index: 25;
  border: 0;
  border-radius: 0;
}
.chat-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: block;
}
.chat {
  background: var(--paper);
  border: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 135px);
  max-height: calc(100dvh - 135px);
}
.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 13px;
  color: #858585;
  font-size: 11px;
}
.agent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  margin-right: 7px;
}
.chat-welcome {
  padding: 60px 30px 40px;
  margin: auto;
  text-align: center;
  max-width: 660px;
}
.soft-icon {
  display: grid;
  place-items: center;
  border: 1px solid #dbc3c0;
  border-radius: 17px;
  color: var(--accent);
  background: #fff;
  width: 62px;
  height: 62px;
  font-size: 35px;
  margin: 0 auto 24px;
}
.welcome-label {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.13em;
}
.chat-welcome h1 {
  font-size: 34px;
  font-weight: 500;
  margin: 12px 0;
}
.chat-welcome p {
  font-size: 13px;
  color: #888;
}
.quick-questions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 35px;
  text-align: left;
}
.quick-questions button {
  position: relative;
  min-height: 90px;
  text-align: left;
  font-size: 12px;
  background: #fff;
  border-color: #ededed;
  color: #595959;
  padding: 17px 18px 25px;
}
.quick-questions button::after {
  content: '↗';
  position: absolute;
  right: 12px;
  bottom: 7px;
  color: #b7b7b7;
}
.quick-questions button:hover {
  border-color: #dfbfbb;
  background: #fdf9f8;
}
#messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  padding: 8px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.message {
  position: relative;
  white-space: pre-wrap;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.85;
  padding: 17px 20px;
  overflow-wrap: anywhere;
}
.message.user {
  align-self: flex-end;
  background: #f0f0f0;
  border-radius: 16px 4px 16px 16px;
  margin-right: 48px;
  max-width: 72%;
  min-width: 65px;
}
.message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 4px 16px 16px 16px;
  margin-left: 46px;
  min-width: 100px;
}
.message-avatar {
  position: absolute;
  top: 4px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 12px;
  background: #ebebeb;
  color: #666;
}
.message.user .message-avatar {
  right: -43px;
  background: #f1e4e2;
  color: #9a5a55;
}
.message.assistant .message-avatar {
  left: -44px;
  border: 1px solid #e1ceca;
  background: #fff;
  color: var(--accent);
}
.message h4 {
  font-size: 10px;
  font-weight: 500;
  color: #888;
  margin: 0 0 7px;
  line-height: 1.3;
}
.source-button {
  font-size: 10px;
  margin: 9px 5px 0 0;
  padding: 3px 8px;
  border-color: #eee;
  color: #777;
  background: #fafafa;
}
.composer {
  margin: 12px 30px 0;
  padding: 15px 18px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  background: #f0f0f0;
}
.composer textarea {
  border: 0;
  background: transparent;
  padding: 2px 2px 5px;
  min-height: 55px;
  font-size: 13px;
  resize: none;
}
.composer textarea:focus {
  outline: none;
}
.composer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.composer-note {
  font-size: 10px;
  color: #969696;
  flex: 1;
}
.send-button {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  padding: 8px !important;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.send-button svg {
  width: 21px;
  height: 21px;
}
.section-intro {
  margin-bottom: 25px;
}
.section-intro h1 {
  margin-bottom: 7px;
}
.section-intro p {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}
.form-row label {
  flex: 1;
  min-width: 175px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  color: #666;
  font-size: 12px;
}
.check input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
.visit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.visit-top h3 {
  margin: 7px 0;
}
.visit-top p {
  margin-bottom: 0;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hint-card {
  border-color: #e5d6d4;
  background: #fff;
  min-height: 230px;
}
.hint-card h2 {
  margin: 12px 0;
}
.hint-card blockquote {
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 2px solid var(--accent);
  background: #fbf7f6;
  color: #66534f;
  font-size: 13px;
}
.transcripts {
  max-height: 480px;
  overflow: auto;
}
.transcript {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.transcript small {
  font-size: 10px;
  color: #999;
}
#manual-form {
  display: grid;
  gap: 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 11px;
}
.list-item h3 {
  margin-bottom: 5px;
  font-size: 14px;
}
.list-item p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs button {
  font-size: 12px;
}
#new-knowledge {
  margin-left: auto;
}
#knowledge-search {
  margin-bottom: 18px;
  max-width: 520px;
}
.record-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.record-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.record-stats span {
  font-size: 12px;
  color: #888;
}
.record-stats strong {
  font-size: 29px;
  font-weight: 500;
  color: var(--accent);
}
.record-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 23px;
}
.record-sidebar .list {
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}
.search-field {
  position: relative;
  margin-bottom: 14px;
}
.search-field span {
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 22px;
  color: #888;
}
.search-field input {
  margin: 0;
  background: #f1f1f1;
  border: 0;
  padding-left: 38px;
  font-size: 12px;
}
.record-sidebar .list-item {
  padding: 17px;
  font-size: 12px;
}
.record-sidebar button {
  font-size: 11px;
  padding: 5px 11px;
  margin-top: 9px;
}
.detail-empty {
  min-height: 310px;
  border: 1px dashed #ddd;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #999;
  background: #fff;
  text-align: center;
  padding: 40px;
  font-size: 12px;
}
.detail-empty span {
  font-size: 34px;
  color: #b5b5b5;
  margin-bottom: 12px;
}
.detail-empty h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 8px 0;
}
.record-form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}
.record-form .form-row {
  align-items: start;
}
.record-form textarea {
  min-height: 85px;
}
.record-fact {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.member-toolbar {
  margin-bottom: 18px;
}
#invite-panel {
  margin: 0 0 20px;
}
#invite-panel summary {
  font-size: 12px;
  color: #888;
  cursor: pointer;
  margin-bottom: 13px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 25px;
}
.member-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.member-table th {
  background: #f5f5f5;
  font-weight: 500;
  color: #888;
  font-size: 11px;
  padding: 14px 20px;
}
.member-table tr.list-item {
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
}
.member-table td {
  padding: 20px;
  font-size: 12px;
}
.member-table tr:last-child {
  border-bottom: 0;
}
.member-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-name b {
  font-weight: 500;
}
.member-table .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
  background: #f1f1f1;
  color: #666;
}
.member-table button {
  font-size: 11px;
  padding: 4px 10px;
}
dialog {
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  width: min(740px, 94vw);
  padding: 27px;
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #0004;
}
#editor-fields {
  display: grid;
  gap: 13px;
  margin: 20px 0;
}
#editor-fields textarea {
  min-height: 170px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #303030;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  z-index: 100;
  max-width: 90vw;
  font-size: 12px;
}
.usage-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 12px;
  color: #777;
}
.usage-row b {
  color: #444;
  font-weight: 500;
}
#invite-result {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--accent);
}
.empty {
  padding: 40px;
  color: #929292;
  text-align: center;
  font-size: 12px;
}
@media (min-width: 1600px) {
  main {
    padding-right: 55px;
    padding-left: 55px;
  }
  .chat-welcome {
    padding-top: 100px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 25px 25px;
  }
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .services {
    gap: 8px;
  }
  .header-user {
    display: none;
  }
  .record-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .visit-top {
    display: block;
  }
  .button-row {
    margin-top: 18px;
  }
}
@media (max-width: 820px) {
  .workspace {
    display: block;
  }
  aside {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 232px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar-open aside {
    transform: translateX(0);
  }
  #menu-toggle {
    display: grid;
  }
  main {
    padding: 0 22px 22px;
  }
  header {
    height: 66px;
    margin-bottom: 24px;
  }
  .services .pill {
    font-size: 9px;
  }
  .workspace-path {
    display: none;
  }
  header h2 {
    margin-left: 0;
  }
  .chat {
    min-height: calc(100dvh - 108px);
    max-height: calc(100dvh - 108px);
  }
  .chat-welcome {
    padding: 45px 0 30px;
  }
  .chat-welcome h1 {
    font-size: 28px;
  }
  .visit-grid {
    grid-template-columns: 1fr;
  }
  .record-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .record-stats > div {
    padding: 16px;
  }
  .login-brand {
    padding: 9vh 7vw;
  }
  .login-brand h1 {
    font-size: 45px;
  }
  .login-brand h1 span {
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 0 16px 18px;
  }
  header {
    margin-bottom: 16px;
  }
  .services .pill:not(:first-child) {
    display: none;
  }
  .header-right {
    gap: 10px;
  }
  .header-user {
    display: none;
  }
  .chat-toolbar {
    padding: 0 4px 12px;
  }
  .chat {
    min-height: calc(100dvh - 100px);
    max-height: calc(100dvh - 100px);
  }
  #messages {
    padding: 12px 5px 24px;
    gap: 23px;
  }
  .chat-welcome {
    padding: 45px 13px 20px;
  }
  .chat-welcome h1 {
    font-size: 25px;
  }
  .chat-welcome p {
    font-size: 12px;
  }
  .quick-questions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 25px;
  }
  .quick-questions button {
    min-height: 48px;
    padding: 13px 25px 13px 15px;
  }
  .quick-questions button::after {
    bottom: 12px;
  }
  .message {
    max-width: 84%;
    font-size: 13px;
    padding: 14px 16px;
  }
  .message.user {
    max-width: 79%;
    margin-right: 36px;
  }
  .message.assistant {
    margin-left: 35px;
  }
  .message-avatar {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
  .message.user .message-avatar {
    right: -35px;
  }
  .message.assistant .message-avatar {
    left: -35px;
  }
  .message .source-button {
    font-size: 9px;
  }
  .composer {
    margin: 10px 0 0;
    padding: 13px 14px 10px;
  }
  .composer textarea {
    min-height: 52px;
  }
  .composer-note {
    font-size: 9px;
  }
  .record-stats {
    gap: 8px;
    margin-bottom: 18px;
  }
  .record-stats > div {
    display: block;
    padding: 13px;
  }
  .record-stats span {
    font-size: 10px;
  }
  .record-stats strong {
    display: block;
    font-size: 24px;
    margin-top: 4px;
  }
  .record-layout {
    grid-template-columns: 1fr;
  }
  .record-sidebar .list {
    max-height: 300px;
  }
  .section-intro h1 {
    font-size: 24px;
  }
  .table-wrap {
    margin-left: -2px;
    margin-right: -2px;
  }
  .member-table td,
  .member-table th {
    padding: 14px;
  }
  .card {
    padding: 20px;
  }
  .form-row {
    gap: 12px;
  }
  .form-row label {
    min-width: 100%;
  }
  .tabs button {
    padding: 7px 10px;
    font-size: 11px;
  }
  #new-knowledge {
    margin-left: 0;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 30px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .login-brand .brand-icon {
    margin-bottom: 13px;
  }
  .login-brand h1 {
    font-size: 36px;
    margin: 20px 0 13px;
  }
  .login-brand h1 span {
    font-size: 22px;
  }
  .login-brand p {
    font-size: 11px;
  }
  .login-note {
    display: none;
  }
  .login-form {
    padding: 30px 32px;
  }
  .login-form h2 {
    font-size: 24px;
  }
}

.nav-symbol svg {
  width: 18px;
  height: 18px;
  display: block;
}
.record-sidebar .list-item.selected {
  border-color: #d5b7b3;
  background: #fffcfb;
}
.muted {
  color: #737373;
}
.agent-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-select-label select {
  width: auto;
  min-width: 160px;
  font-size: 12px;
  padding: 7px 12px;
  background: #fff;
  border-color: #e7e7e7;
}
.kb-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
}
.kb-module-nav {
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  align-self: start;
}
.kb-module {
  display: block;
  white-space: normal;
  text-align: left;
  width: 100%;
  padding: 16px 13px;
  border: 0;
  border-radius: 10px;
  margin-bottom: 5px;
  background: transparent;
}
.kb-module b {
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}
.kb-module small {
  font-size: 10px;
  color: #888;
}
.kb-module.active {
  background: #f5f1f0;
  color: #a54741;
}
.kb-module-content {
  min-width: 0;
}
.kb-module-content h2 {
  font-size: 22px;
}
.kb-upload {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.kb-upload label {
  flex: 1;
  min-width: 220px;
}
.kb-upload input {
  margin-top: 10px;
}
.kb-upload .muted {
  font-size: 11px;
  width: 100%;
}
.kb-document button {
  margin-right: 10px;
}
.recipe-heading {
  margin: 36px 0 20px;
}
.recipe-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.recipe-grid .list-item {
  margin: 0;
}
.agent-card {
  margin: 0;
}
.agent-card h3 {
  font-size: 21px;
}
.agent-card p {
  font-size: 12px;
  line-height: 1.8;
}
.agent-card button {
  margin-top: 18px;
}
.agent-editor {
  max-width: 1180px;
  width: calc(100vw - 80px);
  max-height: 92vh;
  padding: 27px !important;
}
.agent-editor-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
.agent-configuration {
  min-width: 0;
}
.configuration-section {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}
.configuration-section:first-child {
  padding-top: 0;
}
.configuration-section h3 {
  font-size: 16px;
}
.configuration-section label {
  display: block;
  margin: 15px 0;
}
.configuration-section textarea {
  width: 100%;
  min-height: 115px;
}
.configuration-section .muted,
.agent-test-panel .muted {
  font-size: 11px;
  line-height: 1.8;
}
.config-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  margin: 12px 0 !important;
}
input[type='checkbox'] {
  accent-color: #b54a43;
}
.check-label input {
  width: 16px !important;
  min-width: 16px;
  flex: none;
}
.agent-test-panel {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 0;
  min-width: 0;
}
.agent-test-panel textarea {
  width: 100%;
  min-height: 105px;
  margin: 14px 0;
}
.agent-test-panel .source-text {
  font-size: 13px;
  line-height: 1.9;
}
.workflow-step {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fafafa;
}
.workflow-step span {
  flex: 1;
  font-size: 12px;
}
.workflow-step button {
  font-size: 11px;
  padding: 5px 9px;
}
.workflow-step + .row {
  margin-top: 14px;
}
#agent-save {
  position: sticky;
  bottom: 0;
  margin: 18px 0 0;
}
#recipe-editor {
  max-width: 800px;
  width: calc(100vw - 40px);
}
#recipe-form > label {
  margin: 18px 0;
}
.recipe-module-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 15px;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  align-items: center;
}
.recipe-module-row label {
  font-size: 11px;
}
.recipe-module-row input[type='number'] {
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .recipe-grid,
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kb-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .agent-editor {
    width: calc(100vw - 36px);
  }
  .agent-editor-layout {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .kb-layout {
    grid-template-columns: 1fr;
  }
  .kb-module-nav {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .kb-module {
    min-width: 155px;
  }
  .recipe-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .agent-editor {
    padding: 18px !important;
  }
  .agent-editor-layout {
    grid-template-columns: 1fr;
  }
  .agent-test-panel {
    position: static;
  }
  .recipe-module-row {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 8px;
  }
  .agent-select-label select {
    min-width: 130px;
    max-width: 180px;
  }
}

.conversation-item {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
}
.conversation-item h3 {
  overflow-wrap: anywhere;
  margin: 0 0 9px;
}
.conversation-item p {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin: 0 0 12px;
}
.conversation-metrics {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 16px;
}
.record-section {
  padding: 22px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  margin-bottom: 16px;
  min-width: 0;
}
.record-section h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
.record-section .muted {
  font-size: 11px;
}
.query-total {
  display: block;
  font-size: 38px;
  font-weight: 500;
}
.keyword-tag {
  display: inline-block;
  font-size: 11px;
  background: #f5f3f2;
  color: #685b58;
  padding: 6px 9px;
  border-radius: 6px;
  margin: 0 6px 6px 0;
}
.analysis-space {
  min-height: 100px;
  border: 1px dashed #e6e6e6;
  border-radius: 8px;
}
.source-turn {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}
.source-turn:last-child {
  border-bottom: 0;
}
.source-turn small,
.source-turn b {
  display: block;
  margin-bottom: 10px;
}
.source-turn b {
  font-size: 12px;
}
.source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.85;
}
.push-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}
.push-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}
.push-fields {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}
.push-form button {
  justify-self: start;
}
.push-card {
  max-width: 920px;
}
.push-card h3 {
  font-size: 19px;
  margin-top: 15px;
}
.attachment-button {
  display: block;
  margin: 15px 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.member-operations {
  white-space: nowrap;
}
.member-invite {
  min-width: 170px;
}
.invite-code {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text, #292929);
}
.member-invite .muted {
  margin: 5px 0 8px;
  font-size: 11px;
}
.member-invite button {
  padding: 5px 8px;
  margin-right: 5px;
  font-size: 11px;
}
#invite-result {
  flex-basis: 100%;
  color: #666;
  line-height: 1.7;
}
#invite-result:empty {
  display: none;
}
.member-operations button {
  padding: 6px 10px;
  margin-right: 6px;
  font-size: 11px;
}
.danger-text {
  color: #b54a43;
}
.usage-toolbar {
  margin-top: 35px;
}
.usage-filters {
  display: flex;
  gap: 12px;
}
.usage-filters select {
  width: auto;
  min-width: 130px;
}
.usage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.usage-stats > div {
  padding: 23px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
}
.usage-stats span {
  display: block;
  color: #888;
  font-size: 11px;
}
.usage-stats strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.usage-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.usage-charts .card {
  min-width: 0;
}
.usage-charts svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #444;
}
.chart-legend span:last-child {
  color: #b54a43;
}
#usage-note,
.pricing-note {
  font-size: 11px;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .conversation-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .conversation-metrics .record-section:first-child {
    grid-column: 1/-1;
  }
  .usage-stats {
    grid-template-columns: 1fr 1fr;
  }
  .usage-charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .conversation-metrics {
    gap: 10px;
  }
  .record-section {
    padding: 18px;
  }
  .usage-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .usage-filters {
    width: 100%;
  }
  .usage-filters select {
    flex: 1;
    min-width: 0;
  }
  .usage-stats {
    gap: 8px;
  }
  .usage-stats > div {
    padding: 17px 12px;
  }
  .usage-stats strong {
    font-size: 15px;
  }
  .push-fields {
    grid-template-columns: 1fr;
  }
  .record-layout {
    grid-template-columns: 1fr;
  }
}

/* 官网原始品牌图片，保留完整比例与颜色。 */
.company-logo {
  display: block;
  object-fit: contain;
  height: auto;
}
.login-logo {
  width: 230px;
  max-width: 100%;
  margin-bottom: 26px;
}
.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.sidebar-logo {
  width: 170px;
  max-width: 100%;
}
.brand small {
  padding-left: 2px;
}
.welcome-logo {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin: 0 auto 24px;
}
.message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: inherit;
}
@media (max-width: 600px) {
  .login-logo {
    width: 200px;
    margin-bottom: 13px;
  }
}
