:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202020;background:#f7f7f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}.app{height:100vh;height:100dvh;display:flex;flex-direction:column}.top{position:relative;min-height:64px;display:flex;align-items:center;justify-content:center;padding:12px 24px;border-bottom:1px solid #eaeaea;background:#fff;flex-shrink:0}.brand{text-decoration:none;color:#252525;font-size:17px;font-weight:600;letter-spacing:.02em}.top>button{position:absolute;right:24px;font-size:12px}.quiet{border:0;background:transparent;color:#666;border-radius:20px;padding:9px 12px;font-size:13px;white-space:nowrap}.quiet:hover{background:#ececec;color:#111}.chat{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth;padding:32px 22px}.chat-inner{max-width:780px;margin:0 auto}.chat-inner:has(.welcome:only-child){min-height:100%;display:flex;align-items:center;justify-content:center}.welcome{width:100%;text-align:center;padding:30px 0 65px}.book-mark{width:46px;height:46px;display:grid;place-items:center;border:1px solid #ddd;border-radius:14px;background:#fff;margin:0 auto 24px;font-family:Georgia,"STKaiti","KaiTi",serif;font-size:24px}.welcome h1{font-size:30px;letter-spacing:-.04em;font-weight:600;margin:0 0 13px}.welcome p{font-size:14px;color:#888;margin:0}.examples{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:30px}.examples button{background:transparent;border:1px solid #e0e0e0;border-radius:18px;padding:10px 14px;font-size:12px;color:#666}.examples button:hover{background:#fff;border-color:#bcbcbc}.composer-wrap{flex-shrink:0;padding:10px 22px 18px;background:#f7f7f7}.composer{max-width:800px;margin:0 auto;background:#fff;border:1px solid #dedede;border-radius:26px;padding:12px;box-shadow:0 5px 24px #00000004}textarea{display:block;width:100%;min-height:68px;max-height:170px;resize:vertical;background:transparent;border:0;border-radius:12px;padding:12px 13px;color:#222;font-size:15px;line-height:1.7}textarea::placeholder{color:#aaa}textarea:focus{outline:none}.composer:focus-within{border-color:#b7b7b7}.toolbar,.left-tools,.right-tools{display:flex;align-items:center;gap:6px}.toolbar{justify-content:space-between;padding:4px 4px 0}select{font-size:13px;border:0;background:#f3f3f3;color:#333;border-radius:20px;padding:9px 12px;max-width:132px;cursor:pointer}.send{border:0;border-radius:50%;height:36px;width:36px;background:#181818;color:#fff;font-size:25px;line-height:1;display:grid;place-items:center}.send:hover,.primary:hover{background:#383838}.footer-note{text-align:center;color:#999;font-size:11px;line-height:1.6;margin:10px 0 0}#status{max-width:780px;margin:8px auto 0;color:#777;font-size:12px;line-height:1.6}#status:empty{display:none}.message{margin:0 0 30px;overflow-wrap:anywhere}.message.user{width:fit-content;max-width:85%;margin-left:auto;background:#ececec;padding:13px 19px;border-radius:23px}.message.assistant{padding:4px 0}.role{font-size:12px;color:#888;margin:0 0 10px}.user .role{display:none}.answer{white-space:pre-wrap;font-size:15px;line-height:1.9}.sources{margin-top:18px;border-top:1px solid #e5e5e5;padding-top:10px}.sources>summary{font-size:12px;color:#888}details{margin-top:9px}summary{cursor:pointer;font-size:12px;line-height:1.8;color:#666}blockquote{white-space:pre-wrap;font-size:13px;line-height:1.85;margin:8px 0;padding:12px 16px;border-left:2px solid #ccc;color:#666;background:#f0f0f0;border-radius:0 8px 8px 0}dialog{width:440px;max-width:calc(100% - 32px);max-height:80dvh;overflow:auto;border:1px solid #e5e5e5;border-radius:22px;padding:26px;box-shadow:0 16px 70px #0002;color:#222;background:#fff}dialog::backdrop{background:#0003;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-heading h2{font-size:19px;font-weight:600;margin:0}.close{font-size:24px;padding:0 7px}.muted{color:#888;font-size:13px;line-height:1.7;margin:15px 0 20px}input{width:100%;padding:13px 15px;border:1px solid #d5d5d5;border-radius:12px;background:#fff}.primary{width:100%;border:0;border-radius:12px;background:#181818;color:white;padding:12px;font-size:14px}#access-status{font-size:12px;color:#9a4e39;line-height:1.6}#catalog p{font-size:13px;line-height:1.8;border-top:1px solid #eee;padding-top:13px;overflow-wrap:anywhere}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:focus-visible{outline:2px solid #888;outline-offset:3px}@media(max-width:600px){.top{min-height:58px;padding:12px 14px;justify-content:space-between}.brand{font-size:15px}.top>button{position:static;padding:7px 9px}.chat{padding:24px 18px}.welcome{padding:20px 0 35px}.welcome h1{font-size:25px}.examples{gap:8px;margin-top:25px;flex-direction:column;align-items:center}.examples button{font-size:12px}.composer-wrap{padding:8px 10px 12px}.composer{padding:9px;border-radius:23px}.toolbar{gap:4px}.quiet{padding:9px;font-size:12px}select{font-size:12px;max-width:110px;padding:9px}.left-tools,.right-tools{gap:2px}.footer-note{font-size:10px}.message.user{max-width:90%}.answer{font-size:14px}dialog{padding:22px}}

.message.thinking .answer{
  color:#8a8a8a;
  font-size:14px;
}

.message.thinking .role{
  color:#999;
}

.message.thinking{
  opacity:.88;
}

.attachments{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 8px;
}

.attachments:empty{
  display:none;
}

.attachment-card{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:240px;
  padding:7px 9px;
  border:1px solid #e4e4e4;
  border-radius:10px;
  background:#fafafa;
  font-size:13px;
}

.attachment-card img{
  width:38px;
  height:38px;
  border-radius:6px;
  object-fit:cover;
}

.attachment-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:6px;
  background:#eee;
  font-size:10px;
  font-weight:600;
}

.attachment-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
}

.attachment-remove{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:2px 4px;
  font-size:18px;
  color:#888;
}

.attach-button{
  width:34px;
  height:34px;
  padding:0;
  border-radius:50%;
  font-size:22px;
  line-height:1;
}
