:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #24292e;
  background: #f6f7f8;
  font-size: 13px;
  line-height: 1.6;
  --line: #e5e7eb;
  --muted: #77808b;
  --accent: #267365;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { padding: 7px 15px; border: 1px solid transparent; border-radius: 4px; background: var(--accent); color: #fff; }
button:hover { filter: brightness(.96); }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #73a99d; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.secondary { background: #fff; color: #444c56; border-color: #dce0e4; }
.text-button { padding: 4px 0; border: 0; background: none; color: #66707a; font-size: 12px; }
.topbar { height: 60px; padding: 0 26px; border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.brand a { text-decoration: none; color: #24292e; font-size: 18px; font-weight: 650; letter-spacing: -.4px; }
.brand > span { border-left: 1px solid #dfe2e5; padding-left: 20px; color: #626b75; }
.toolbar { display: flex; align-items: center; gap: 16px; }
.connection { color: var(--muted); font-size: 12px; }
.badge { font-size: 11px; padding: 2px 7px; background: #f1f2f4; color: #69727d; border-radius: 3px; white-space: nowrap; }
.settings { position: relative; }
.settings > summary { list-style: none; padding: 7px 0 7px 4px; color: #545e68; }
.settings > summary::-webkit-details-marker { display: none; }
.settings-content { position: absolute; z-index: 10; top: calc(100% + 12px); right: 0; width: 300px; padding: 20px; background: #fff; border: 1px solid #dce0e4; border-radius: 5px; box-shadow: 0 6px 20px #24292e12; }
.settings-content h2 { margin-bottom: 12px; }
.setting { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; font-size: 12px; }
.setting > span { color: var(--muted); white-space: nowrap; }
.setting strong { font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.settings-content > p { margin-top: 12px; }
main { padding: 0 22px 20px; }
.notice { min-height: 42px; padding: 12px 1px; color: var(--muted); font-size: 12px; }
.workspace { display: grid; grid-template-columns: 240px minmax(300px, 1fr) 280px; min-height: 560px; height: calc(100dvh - 126px); background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.list-pane, .chat-pane, .detail-pane { min-width: 0; min-height: 0; }
.list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.list-pane .pane-heading { border-bottom: 0; padding-bottom: 8px; min-height: 51px; }
.counts { display: flex; gap: 18px; font-size: 11px; padding: 0 20px 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.counts b { color: #535d67; margin-left: 4px; font-weight: 500; }
.jobs { overflow-y: auto; flex: 1; }
.job { display: block; width: 100%; padding: 16px 18px; text-align: left; background: none; border: 0; border-radius: 0; border-bottom: 1px solid #f0f1f3; color: #404850; }
.job:hover { background: #f7f8f9; filter: none; }
.job.selected { background: #f0f5f3; box-shadow: inset 2px 0 var(--accent); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.job-summary { margin-top: 7px; font-size: 12px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.state { color: #62776c; font-size: 10px; white-space: nowrap; }
.state.review { color: #9b763e; }
.chat-pane { display: flex; flex-direction: column; }
.thread-heading > div { display: flex; align-items: center; gap: 12px; }
.thread-heading .secondary { font-size: 12px; padding: 4px 10px; }
.chat { flex: 1; min-height: 180px; overflow-y: auto; padding: 26px; }
.empty { color: #969da5; text-align: center; padding: 65px 12px; font-size: 12px; }
.bubble { max-width: 88%; margin-bottom: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sender { display: block; color: #8a919a; font-size: 11px; margin-bottom: 6px; }
.bubble-text { display: block; background: #f3f4f6; padding: 12px 15px; border-radius: 5px; }
.bubble.bot { margin-left: auto; }
.bubble.bot .sender { text-align: right; }
.bubble.bot .bubble-text { background: #edf4f0; }
.bubble.human .bubble-text { background: #eef2f7; }
.chat .muted { text-align: center; margin: 12px 0; }
.composer { padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.samples { margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.samples summary { width: fit-content; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.examples button { padding: 4px 9px; border-color: var(--line); color: #64706a; background: #fff; font-size: 12px; }
textarea { display: block; width: 100%; min-height: 78px; padding: 10px 0; resize: vertical; border: 0; outline: none; color: #303841; background: #fff; }
textarea::placeholder { color: #a0a6ae; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.demo-actions { display: flex; gap: 18px; }
.detail-pane { border-left: 1px solid var(--line); overflow-y: auto; }
.lead-content { padding: 20px; }
.lead-summary { margin-bottom: 16px; color: #68736c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 12px; border-bottom: 1px solid #f1f2f4; }
dt { color: var(--muted); white-space: nowrap; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
dd.missing { color: #bcc1c7; }
.next-step { margin-top: 27px; }
.next-step p { margin-top: 8px; font-size: 12px; line-height: 1.8; color: #535f58; }
.paused-panel { border-top: 1px solid var(--line); padding: 20px; }
.paused-panel > p { margin-top: 10px; }
.pause-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font-size: 12px; }
.login { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.login input { padding: 7px 10px; border: 1px solid #dce0e4; border-radius: 4px; min-width: 260px; }
.error { margin-bottom: 16px; padding: 12px 16px; border: 1px solid #e8c8bb; border-radius: 4px; color: #925c44; background: #fdf6f2; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (min-width: 1600px) { .workspace { grid-template-columns: 280px minmax(300px, 1fr) 320px; } }
@media (max-width: 1050px) { .workspace { grid-template-columns: 200px minmax(280px, 1fr) 230px; } .pane-heading, .lead-content, .paused-panel { padding-left: 16px; padding-right: 16px; } .chat { padding: 20px; } .toolbar { gap: 10px; } .connection { display: none; } }
@media (max-width: 800px) { main { padding: 0 12px 16px; } .topbar { padding: 0 16px; } .brand > span { display: none; } .workspace { grid-template-columns: 185px minmax(0, 1fr); height: auto; min-height: 0; } .list-pane { grid-row: 1 / 3; } .chat-pane { min-height: 520px; } .chat { max-height: 400px; } .detail-pane { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); } .detail-pane dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } .lead-summary { margin-bottom: 8px; } .next-step { margin-top: 18px; } }
@media (max-width: 560px) { .topbar { height: 56px; padding: 0 12px; } .brand a { font-size: 16px; } .toolbar { gap: 9px; font-size: 12px; } #pause { padding: 5px 8px; font-size: 12px; } .badge { font-size: 10px; } .workspace { display: flex; flex-direction: column; } .list-pane { border-right: 0; border-bottom: 1px solid var(--line); } .list-pane .pane-heading { min-height: 0; padding: 12px 16px 6px; } .counts { padding: 0 16px 10px; } .jobs { max-height: 130px; } .job { padding: 12px 16px; } .jobs .empty { padding: 14px; } .chat-pane { min-height: 430px; } .thread-heading > div { gap: 8px; } .thread-heading .muted { font-size: 11px; } .bubble { max-width: 94%; } .chat { padding: 20px 16px; } .composer { padding: 12px 16px; } .detail-pane dl { display: block; } .settings-content { width: min(300px, calc(100vw - 24px)); } .login input { min-width: 0; flex: 1; } }

.list-search { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.list-search input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
select { font: inherit; color: #626b75; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.list-limit { padding: 8px 14px; font-size: 10px; border-top: 1px solid var(--line); }
.thread-actions { display: flex; align-items: center; gap: 10px; }
.thread-heading > div:first-child { display: block; }
.thread-heading { flex-wrap: wrap; }
.read-actions { display: flex; align-items: center; gap: 14px; padding: 6px 20px; border-bottom: 1px solid #f0f1f3; flex-wrap: wrap; }
.read-actions > span { flex: 1; }
.read-actions button { font-size: 11px; }
.bubble.human { margin-left: auto; }
.bubble.human .sender { text-align: right; }
.attachment { display: block; padding: 10px; background: #f4f5f7; color: var(--accent); font-size: 12px; }
.message-error { display: block; padding: 6px; color: #a36346; font-size: 11px; }
.older { display: block; margin: 0 auto 20px; }
.suggestion { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.suggestion p { white-space: pre-wrap; font-size: 12px; margin: 8px 0; }
#demo-panel { margin: 12px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
#demo-form { margin-top: 6px; }
#demo-form textarea { min-height: 54px; }
#demo-form button { padding: 4px 10px; font-size: 12px; }
@media(max-width:800px) { .read-actions { padding: 6px 16px; gap: 10px; } .thread-actions { gap: 8px; } .list-search { flex-wrap: wrap; } .thread-heading { padding: 12px 16px; } }
