:root { color-scheme: dark; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; --blue: #4d80ff; --progress: 0; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #141414; color: #eee; display: flex; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #83a7ff; outline-offset: 4px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mascot { width: 34px; height: 29px; stroke: none; color: var(--blue); }
.sidebar { width: 264px; height: 100svh; position: fixed; inset: 0 auto 0 0; z-index: 20; background: #1c1c1c; border-right: 1px solid #292929; padding: 21px 15px 0; display: flex; flex-direction: column; transition: transform .2s ease; }
.sidebar-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); }
.brand .mascot { width: 31px; height: 26px; }
.brand span { font-size: 25px; font-weight: 650; letter-spacing: -.7px; }
.sidebar-tools { display: flex; gap: 8px; }
.icon-button { border: none; background: transparent; padding: 2px; color: #b4b8bd; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; width: 26px; height: 28px; }
.icon-button:hover { background: #333; color: #fff; }
.icon-button svg { width: 18px; height: 18px; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; background: #44474c; color: #f7f7f7; border: 1px solid #4a4d52; border-radius: 25px; height: 41px; flex-shrink: 0; margin-top: 25px; font-size: 14px; }
.new-chat:hover { background: #51545a; }
.new-chat svg { width: 16px; height: 16px; }
.history-search { width: 100%; margin-top: 17px; padding: 10px 9px; border: 1px solid #454545; border-radius: 8px; background: #292929; color: #eee; font-size: 12px; }
.history { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #393939 transparent; margin-top: 28px; padding: 0 10px 15px; flex: 1; }
.history-group { margin-bottom: 29px; }
.history h2 { font-size: 12px; font-weight: 400; color: #a0a4a9; margin: 0 0 8px; line-height: 20px; display: flex; justify-content: space-between; align-items: center; }
.history h2 span { font-size: 16px; }
.history ul { list-style: none; padding: 0; margin: 0; }
.history li { font-size: 14px; line-height: 22px; padding: 5px 0; margin-bottom: 8px; color: #e2e2e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history li:last-child { margin-bottom: 0; }
.sidebar-footer { font-size: 11px; color: #898d95; padding: 14px 10px; border-top: 1px solid #292929; display: flex; gap: 7px; align-items: center; background: #1c1c1c; }
.parody-dot { width: 5px; height: 5px; border-radius: 100%; background: #7b96dd; }
.workspace { position: relative; width: calc(100% - 264px); margin-left: 264px; min-height: 100svh; padding: 114px 38px 90px; transition: width .2s ease, margin-left .2s ease; }
.workspace-header { position: absolute; inset: 17px 24px auto; display: flex; align-items: center; gap: 10px; min-height: 31px; }
.open-sidebar, .mobile-brand { display: none; }
.parody-label { margin-left: auto; font-size: 12px; color: #a5b7df; padding: 6px 11px; border: 1px solid #35415d; border-radius: 7px; background: #1a2030; }
.chat-thread { max-width: 776px; margin: 0 auto; }
.user-message { display: flex; justify-content: flex-end; margin-bottom: 42px; }
.user-message p { margin: 0; max-width: 85%; padding: 13px 20px; background: #2b2b2b; border-radius: 18px 18px 4px 18px; font-size: 16px; line-height: 1.7; }
.assistant-message { display: flex; align-items: flex-start; gap: 15px; }
.assistant-avatar { width: 32px; height: 29px; margin-top: 2px; }
.assistant-body { flex: 1; min-width: 0; }
.assistant-name { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 16px; font-weight: 600; }
.assistant-name > span { padding: 3px 7px; border-radius: 5px; border: 1px solid #35415d; color: #87a6ed; font-size: 10px; font-weight: 400; }
.thinking-process { margin: 0; padding: 0; }
.assistant-reply { margin: 23px 0; color: #f0f0f0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.redirect-panel { margin-top: 23px; }
.history .current-chat { background: #303030; border-radius: 7px; margin-inline: -8px; padding-inline: 8px; }
body.has-reply .typing-dots { display: none; }
body.has-reply .thinking-spinner { animation: none; }
.thinking-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a8adb8; font-size: 13px; }
.thinking-title { display: inline-flex; align-items: center; gap: 7px; }
.thinking-spinner { width: 16px; height: 16px; color: #7196ea; animation: spin 6s linear infinite; }
.typing-dots { display: flex; align-items: center; gap: 3px; margin-left: -3px; }
.typing-dots i { width: 3px; height: 3px; background: #a8adb8; border-radius: 50%; animation: pulse 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.countdown-badge { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8f99ae; white-space: nowrap; }
#countdown { color: #8eaef5; font-variant-numeric: tabular-nums; }
.thought-list { list-style: none; padding: 0 0 0 12px; margin: 13px 0 16px; border-left: 2px solid #353941; }
.thought { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 24px; color: #6c707a; transition: color .3s ease; }
.thought.active { color: #c0c4ce; }
.thought.done { color: #9299a8; }
.thought-status { color: #6991ed; font-size: 14px; width: 15px; text-align: center; flex-shrink: 0; }
.thought.active .thought-status { animation: pulse 1.2s infinite; }
.thought.done .thought-status { color: #789a84; font-size: 12px; }
.progress-heading { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #777e8d; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.progress-track { height: 2px; overflow: hidden; background: #2c3037; border-radius: 4px; }
.progress-fill { width: 100%; height: 100%; transform: scaleX(var(--progress)); transform-origin: left center; background: #587fcf; }
.redirect-row { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.redirect-row p { margin: 0; font-size: 11px; line-height: 1.7; color: #848b9b; }
.redirect-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.pause-button { background: transparent; padding: 5px 0; border: 0; color: #949cae; font-size: 11px; }
.pause-button:hover { color: #d4dbea; }
.direct-button { padding: 5px 0; color: #83a5f3; font-size: 12px; white-space: nowrap; }
.direct-button:hover { color: #bed0ff; }
.disclaimer { position: absolute; bottom: 21px; left: 20px; right: 20px; text-align: center; color: #7b808b; font-size: 11px; line-height: 1.7; }
.noscript-note { font-size: 12px; line-height: 1.8; color: #a8adb8; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sidebar-backdrop { display: none; }
body.is-paused .thinking-spinner, body.is-paused .typing-dots i, body.is-paused .thought-status { animation-play-state: paused; }
body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .workspace { margin-left: 0; width: 100%; }
body.sidebar-collapsed .open-sidebar { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .workspace { padding-inline: 28px; }
  .redirect-row { flex-wrap: wrap; }
  .redirect-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); width: min(280px, calc(100vw - 52px)); box-shadow: 10px 0 30px #0004; }
  .workspace, body.sidebar-collapsed .workspace { width: 100%; margin-left: 0; padding: 96px 20px 90px; }
  .workspace-header { inset: 17px 16px auto; }
  .open-sidebar { display: inline-flex; }
  .mobile-brand { display: block; color: var(--blue); font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
  .parody-label { font-size: 10px; padding: 6px 8px; }
  .user-message { margin-bottom: 33px; }
  .user-message p { font-size: 15px; padding: 11px 15px; }
  .assistant-message { gap: 10px; }
  .assistant-avatar { width: 26px; height: 25px; }
  .assistant-name { font-size: 15px; margin-bottom: 18px; }
  .assistant-reply { font-size: 15px; margin-block: 20px; }
  .thinking-heading { font-size: 12px; }
  .countdown-badge { font-size: 11px; }
  .thought { line-height: 23px; font-size: 12px; }
  .thought-list { margin-bottom: 18px; }
  .redirect-row { flex-wrap: wrap; gap: 8px; }
  .redirect-row p { width: 100%; }
  .redirect-actions { margin-left: auto; gap: 22px; }
  .pause-button, .direct-button { min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; }
  .disclaimer { bottom: 18px; font-size: 10px; left: 28px; right: 28px; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 19; border: 0; background: #0008; cursor: default; }
}
@media (max-width: 360px) {
  .workspace { padding-inline: 14px; }
  .mobile-brand { font-size: 17px; }
  .parody-label { font-size: 9px; padding-inline: 5px; }
  .thinking-title { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
