:root {
  --qc-comp: 0 1px 2px rgba(16, 16, 29, .04), 0 12px 32px -14px rgba(16, 16, 29, .16);
  --qc-frag: 0 1px 2px rgba(16, 16, 29, .05), 0 8px 18px -10px rgba(16, 16, 29, .16);
  --qc-seg: #FFFFFF;
  --qc-code-bg: #17171D;
  --qc-code-head: #1E1E26;
  --qc-code-line: rgba(255, 255, 255, .07);
  --qc-code-text: #E4E4E7;
  --qc-code-mute: #A1A1AA;
  --qc-code-num: #71717A;
  --qc-col: 776px;
}

.dark {
  --qc-comp: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 44px -18px rgba(0, 0, 0, .75);
  --qc-frag: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 18px -10px rgba(0, 0, 0, .7);
  --qc-seg: #26262E;
  --qc-code-bg: #0B0B0F;
  --qc-code-head: #131318;
  --qc-code-line: rgba(255, 255, 255, .08);
}

body.route-chat main { overflow: hidden; }
@media (min-width: 768px) { body.route-chat .ql-toasts { bottom: calc(var(--ql-composer-h, 0px) + 20px); } }

.qc-root { height: 100%; display: flex; background: var(--ql-bg); color: var(--ql-ink); font-family: var(--ql-font); font-size: 13.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.qc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; position: relative; }
#chat-root.is-docked .qc-main { padding-right: var(--px-dock-w, 0px); }

.ql-topbar:has(#chat-title) { gap: 10px; }
#chat-title { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-title[hidden] { display: none; }
.ql-topbar-title:has(.qc-rename) { overflow: visible; flex: 0 1 380px; display: flex; }
.qc-pchip {
  height: 26px; flex-shrink: 0; max-width: 260px; padding: 0 9px 0 7px; border: 1px solid var(--ql-line); border-radius: 999px; background: var(--ql-card);
  color: var(--ql-ink-2); font: inherit; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  transition: border-color .12s, color .12s;
}
.qc-pchip[hidden] { display: none; }
.qc-pchip:hover { border-color: var(--ql-faint); color: var(--ql-ink); }
.qc-pchip svg { width: 13px; height: 13px; flex-shrink: 0; }
.qc-pchip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qc-hbtn {
  position: relative; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 1px solid var(--ql-line); border-radius: 8px; background: var(--ql-bg);
  color: var(--ql-ink-2); display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.qc-hbtn[hidden] { display: none; }
.qc-hbtn svg { width: 16px; height: 16px; display: block; }
.qc-hbtn:hover { border-color: var(--ql-faint); color: var(--ql-ink); }
.qc-hbtn[aria-expanded="true"], .qc-hbtn.is-on { border-color: var(--ql-ink); background: var(--ql-sunk); color: var(--ql-ink); }
.qc-hbtn.is-ghost { border-color: transparent; background: transparent; color: var(--ql-mute); }
.qc-hbtn.is-ghost:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-hbtn.is-ghost[aria-expanded="true"] { border-color: transparent; background: var(--ql-sunk); color: var(--ql-ink); }
.qc-hbtn:focus-visible, .qc-pchip:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-rename { display: inline-flex; align-items: center; gap: 2px; height: 32px; min-width: 0; flex: 0 1 360px; padding: 0 2px 0 9px; border: 1px solid var(--ql-brand); border-radius: 8px; background: var(--ql-bg); box-shadow: 0 0 0 3px var(--ql-brand-ring); }
.qc-rename input { flex: 1 1 auto; min-width: 0; height: 26px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ql-ink); }
.qc-rename-b { width: 26px; height: 26px; flex-shrink: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ql-ink-2); display: grid; place-items: center; cursor: pointer; }
.qc-rename-b:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-rename-b svg { width: 14px; height: 14px; }

.qc-thread {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; position: relative; box-sizing: border-box; padding: 28px 32px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--ql-line) transparent;
}
.qc-thread:focus { outline: none; }
.qc-thread:focus-visible { outline: 2px solid var(--ql-brand-ring); outline-offset: -2px; }
.qc-thread { display: flex; flex-direction: column; }
.qc-thread > * { flex-shrink: 0; }
#chat-root.is-home .qc-thread { padding-top: 0; padding-bottom: 0; }
#chat-root.is-home .qc-thread > .qc-home { flex: 1 0 auto; }
#messages > .px-msg, #messages > .px-stopped, #messages > .px-terr, #messages > .qc-gone { width: 100%; max-width: var(--qc-col); margin-left: auto; margin-right: auto; box-sizing: border-box; }
#chat-root { --px-bar-slot: 32px; --qc-gap: 10px; --qc-gap-user: 14px; --qc-gap-line: 2px; --qc-end: 24px; }
#messages.chat-messages { padding-bottom: var(--qc-end); }
#messages.chat-messages > .px-msg, #messages.chat-messages > .px-msg.px-turnwrap, #messages.chat-messages > .px-msg:last-child, #messages.chat-messages > .px-msg.px-turnwrap:last-child,
#messages.chat-messages > .px-stopped.msg-stopped, #messages.chat-messages > .px-terr, #messages.chat-messages > .qc-gone { margin-bottom: 0; }
#messages.chat-messages > .px-msg, #messages.chat-messages > .px-stopped, #messages.chat-messages > .px-terr, #messages.chat-messages > .qc-gone { margin-top: 0; }
#messages.chat-messages > * + .px-msg, #messages.chat-messages > * + .px-stopped, #messages.chat-messages > * + .px-terr, #messages.chat-messages > * + .qc-gone { margin-top: var(--qc-gap); }
#messages.chat-messages > * + .px-msg.qc-umsg { margin-top: var(--qc-gap-user); }
#messages.chat-messages > .qc-home[hidden] + .px-msg, #messages.chat-messages > .qc-hsk + .px-msg { margin-top: 0; }
#messages.chat-messages > .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))) > * > .msg-actions,
#messages.chat-messages > .px-hbwrap:not(:has(.px-blk)) > * > .msg-actions { display: none; }
#messages.chat-messages > .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))) + .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))),
#messages.chat-messages > .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))) + .px-hbwrap:not(:has(.px-blk)),
#messages.chat-messages > .px-hbwrap:not(:has(.px-blk)) + .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))),
#messages.chat-messages > .px-hbwrap:not(:has(.px-blk)) + .px-hbwrap:not(:has(.px-blk)),
#messages.chat-messages > .px-turnwrap:not(.px-hbwrap):not(:has(.px-seg, .px-blk > :not(.px-res), .px-blk > .px-res > :not(.px-agl))) + .px-turnwrap:has(> .px-turn > .qc-hand:first-child),
#messages.chat-messages > .px-hbwrap:not(:has(.px-blk)) + .px-turnwrap:has(> .px-turn > .qc-hand:first-child) { margin-top: var(--qc-gap-line); }
#messages .px-turn > :has(+ .msg-actions), #messages .px-turn > :has(+ .msg-actions) > :last-child, #messages .px-turn > :has(+ .msg-actions) > :last-child > :last-child { margin-bottom: 0; }
#messages > .px-msg.msg-enter { animation: qc-in .22s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes qc-in { from { opacity: 0; transform: translateY(4px); } }
.qc-hsk { width: 100%; max-width: var(--qc-col); margin: 0 auto 8px; box-sizing: border-box; display: flex; flex-direction: column; }
.qc-hsk.is-long { flex: 1 1 0px; min-height: 0; overflow: hidden; justify-content: flex-end; }
.qc-hsk-x { flex-shrink: 0; }
.qc-hsk-x + .qc-hsk-x { margin-top: 28px; }
.qc-hsk-u { display: flex; justify-content: flex-end; }
.qc-hsk-u .ql-sk { height: 43px; max-width: 85%; border-radius: 16px 16px 4px 16px; }
.qc-hsk-r { display: flex; flex-direction: column; margin-top: 35px; padding: 2px 0; }
.qc-hsk-r .ql-sk { height: 10px; margin: 8px 0 7px; }
.qc-tab.qc-tab-sk { cursor: default; }
.qc-tab-sk .ql-sk { height: 9px; background: var(--ql-line); }
.qc-tab-sk .ql-sk:first-child { width: 15px; height: 15px; border-radius: 5px; flex-shrink: 0; }
.qc-note-sk { display: flex; flex-direction: column; justify-content: center; min-height: 18px; }
.qc-note-sk .ql-sk { width: 300px; max-width: 80%; height: 9px; }
.qc-note-sk .ql-sk + .ql-sk { display: none; }
.qc-pcard.qc-pcard-sk { cursor: default; }
.qc-pcard.qc-pcard-sk:hover { border-color: var(--ql-line); box-shadow: none; }
.qc-pcard-sk .qc-pcard-t, .qc-pcard-sk .qc-pcard-s { display: flex; flex-direction: column; }
.qc-pcard-sk .ql-sk { display: block; height: 9px; margin: 4.6px 0; }
.qc-pcard-sk .qc-pcard-s .ql-sk { height: 8px; margin: 4.7px 0; }
.qc-mode-sk { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 7px; }
.qc-mode-sk .ql-sk { width: 13px; height: 13px; border-radius: 4px; }
.qc-mode-sk .ql-sk + .ql-sk { width: 42px; height: 9px; }
#px-mode-host.px-mode-wrap > .qc-mode-sk { display: none; }
@media (max-width: 1023px) {
  .qc-pcard-sk .ql-sk + .ql-sk { display: none; }
}
@media (max-width: 639px), (min-width: 768px) and (pointer: coarse) {
  .qc-mode-sk { height: 40px; padding: 0 10px 0 9px; }
}
@media (max-width: 767px) {
  .qc-note-sk { min-height: 36px; }
  .qc-note-sk .ql-sk { width: 92%; max-width: none; }
  .qc-note-sk .ql-sk + .ql-sk { display: block; width: 58%; margin-top: 9px; }
}

.qc-home { display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
.qc-home[hidden] { display: none; }
.qc-sp { flex: 1 1 0px; }
.qc-sp-top { flex: 1.6 1 0px; min-height: 28px; }
.qc-sp-bot { flex: 1 1 0px; min-height: 32px; }
.qc-hero, .qc-hero-dock, .qc-modes, .qc-sugg, .qc-setup { width: 100%; max-width: var(--qc-col); align-self: center; flex-shrink: 0; box-sizing: border-box; }
.qc-hero { text-align: center; }
.qc-date { display: block; font-size: 13px; font-weight: 500; color: var(--ql-mute); }
.qc-greet { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; color: var(--ql-ink); overflow-wrap: anywhere; }
.qc-ask { display: block; color: var(--ql-mute); }
.qc-hero-dock { margin-top: 22px; }
.qc-hero-dock:empty { display: none; }
.qc-modes { margin-top: 20px; }
.qc-track { width: 100%; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--ql-sunk); box-sizing: border-box; }
.qc-tab {
  flex: 1 1 0; min-width: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ql-mute); font: inherit; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
}
.qc-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.qc-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qc-tab:hover { color: var(--ql-ink); }
.qc-tab[aria-selected="true"] { background: var(--qc-seg); color: var(--ql-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 16, 29, .08), 0 0 0 1px var(--ql-line-2); }
.qc-tab:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-sugg { margin-top: 24px; }
.qc-sugg-head { display: flex; align-items: center; gap: 12px; min-height: 26px; margin-bottom: 10px; }
.qc-sugg-note { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ql-mute); }
.qc-more { height: 26px; margin-right: -6px; padding: 0 6px 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ql-mute); font: inherit; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.qc-more:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-more svg { width: 13px; height: 13px; }
.qc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qc-pcard {
  position: relative; text-align: left; padding: 0; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); font: inherit; color: inherit;
  cursor: pointer; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; transition: border-color .15s, box-shadow .2s;
}
.qc-pcard:hover { border-color: var(--ql-faint); box-shadow: 0 12px 28px -18px rgba(16, 16, 29, .28); }
.qc-pcard[aria-pressed="true"] { border: 1.5px solid var(--ql-ink); }
.qc-pcard:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-well { position: relative; display: block; width: 100%; height: 104px; flex-shrink: 0; background: var(--ql-side); border-bottom: 1px solid var(--ql-line-2); overflow: hidden; }
.qc-lift { position: absolute; inset: 0; display: block; transition: transform .25s ease; }
.qc-pcard:hover .qc-lift { transform: translateY(-3px); }
.qc-pcard-tt { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 13px; }
.qc-pcard-t { font-size: 13.5px; font-weight: 600; color: var(--ql-ink); line-height: 1.35; }
.qc-pcard-s { font-size: 12px; color: var(--ql-mute); line-height: 1.45; }

.qc-logo { width: 22px; height: 22px; flex-shrink: 0; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--ql-line); box-sizing: border-box; display: inline-grid; place-items: center; overflow: hidden; }
.qc-logo img { width: 58%; height: 58%; object-fit: contain; display: block; }
.qc-logo-16 { width: 16px; height: 16px; border-radius: 6px; }
.qc-logo-18 { width: 18px; height: 18px; border-radius: 6px; }
.qc-logo-20 { width: 20px; height: 20px; border-radius: 8px; }
.qc-logo-32 { width: 32px; height: 32px; border-radius: 8px; }
.qc-flex { flex: 1 1 auto; min-width: 0; }
.qc-ell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qc-well .qc-a-sheet { position: absolute; left: 14px; top: 12px; right: -14px; bottom: -14px; display: flex; flex-direction: column; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 8px; box-shadow: var(--qc-frag); box-sizing: border-box; overflow: hidden; }
.qc-well b { font-weight: 600; color: var(--ql-ink); }
.qc-well .qc-a-bar { display: block; height: 4px; border-radius: 3px; flex-shrink: 0; }
.qc-well .qc-a-head { display: flex; align-items: center; gap: 6px; font-size: 9.5px; }
.qc-well .qc-a-head.is-rule { padding-bottom: 5px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-xs { font-size: 8.5px; }
.qc-well .qc-a-faint { color: var(--ql-faint); }
.qc-well .qc-a-mute { color: var(--ql-mute); }
.qc-well .qc-a-ink2 { color: var(--ql-ink-2); font-size: 9px; white-space: nowrap; }
.qc-well .qc-a-warn { color: var(--ql-warn); }
.qc-well .qc-a-title { font-size: 10px; font-weight: 600; color: var(--ql-ink); line-height: 1.25; }
.qc-well .qc-a-title.is-rule { font-size: 9.5px; padding-bottom: 5px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-tag { height: 14px; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: 8px; font-weight: 600; display: inline-flex; align-items: center; flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qc-well .qc-a-tag.is-ok { background: var(--ql-ok-soft); color: var(--ql-ok); }
.qc-well .qc-a-tag.is-bad { background: var(--ql-bad-soft); color: var(--ql-bad); }
.qc-well .qc-a-tag.is-warn { background: var(--ql-warn-soft); color: var(--ql-warn); }
.qc-well .qc-a-tag.is-warnfill { height: 13px; padding: 0 4px; border-radius: 3px; background: var(--ql-warn); color: var(--ql-bg); font-size: 7px; font-weight: 700; }
.qc-well .qc-a-tag.is-brand { height: 13px; padding: 0 4px; border-radius: 3px; background: var(--ql-brand-soft); color: var(--ql-brand-ink); font-size: 7.5px; }
.qc-well .qc-a-tag.is-sunk { padding: 0 4px; background: var(--ql-sunk); color: var(--ql-ink-2); font-size: 7.5px; }
.qc-well .qc-a-pad { left: 16px; top: 14px; padding: 8px 24px 8px 10px; display: block; }
.qc-well .qc-a-pad .qc-a-head { padding-bottom: 6px; border-bottom: 1px solid var(--ql-line-2); font-size: 10px; }
.qc-well .qc-a-to { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 9.5px; color: var(--ql-mute); }
.qc-well .qc-a-pill { height: 15px; padding: 0 6px; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-ink-2); font-weight: 500; display: inline-flex; align-items: center; }
.qc-well .qc-a-send { display: flex; align-items: flex-end; gap: 8px; margin-top: 7px; }
.qc-well .qc-a-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.qc-well .qc-a-btn { height: 20px; flex-shrink: 0; padding: 0 8px; border-radius: 6px; background: var(--ql-ink); color: var(--ql-bg); font-size: 9.5px; font-weight: 600; display: flex; align-items: center; }
.qc-well .qc-a-cal { left: 16px; top: 14px; display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 14px; grid-template-rows: 24px repeat(5, 16px); }
.qc-well .qc-a-calhead { grid-column: 1 / 5; grid-row: 1; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-callogo { grid-column: 1; grid-row: 1; display: grid; place-items: center; }
.qc-well .qc-a-d1, .qc-well .qc-a-d2 { grid-row: 1; display: flex; align-items: center; padding-left: 6px; font-size: 9.5px; color: var(--ql-mute); }
.qc-well .qc-a-d1 { grid-column: 2; }
.qc-well .qc-a-d2 { grid-column: 3; font-weight: 600; color: var(--ql-ink); }
.qc-well .qc-a-grid { grid-column: 2 / 5; grid-row: 2 / 7; background-image: linear-gradient(var(--ql-line-2) 1px, transparent 1px); background-size: 100% 16px; }
.qc-well .qc-a-vline { grid-column: 3; grid-row: 2 / 7; border-left: 1px solid var(--ql-line-2); }
.qc-well .qc-a-h1, .qc-well .qc-a-h2, .qc-well .qc-a-h3 { grid-column: 1; font-size: 8px; line-height: 1; color: var(--ql-faint); text-align: right; padding: 1px 5px 0 0; }
.qc-well .qc-a-h1 { grid-row: 2; }
.qc-well .qc-a-h2 { grid-row: 3; }
.qc-well .qc-a-h3 { grid-row: 4; }
.qc-well .qc-a-ev1 { grid-column: 2; grid-row: 2 / 4; margin: 2px 4px 2px 3px; padding: 3px 5px; border-radius: 4px; background: var(--ql-sunk); color: var(--ql-ink-2); font-size: 8.5px; line-height: 1.25; overflow: hidden; }
.qc-well .qc-a-ev2 { grid-column: 3; grid-row: 3 / 5; margin: 8px 4px 0 3px; padding: 3px 5px 3px 7px; border-radius: 4px; background: var(--ql-brand-soft); color: var(--ql-brand-ink); font-size: 8.5px; font-weight: 600; line-height: 1.3; overflow: hidden; }
.qc-well .qc-a-ev2 span { display: block; font-weight: 400; }
.qc-well .qc-a-sent { grid-column: 2 / 4; grid-row: 6; align-self: center; justify-self: end; margin-right: 4px; display: flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 600; color: var(--ql-ok); }
.qc-well .qc-a-col { display: flex; flex-direction: column; }
.qc-well .qc-a-bar30 { display: flex; align-items: center; gap: 6px; height: 30px; flex-shrink: 0; padding: 0 22px 0 9px; border-bottom: 1px solid var(--ql-line-2); font-size: 10px; }
.qc-well .qc-a-bar30 b { flex: 1 1 auto; }
.qc-well .qc-a-stack { display: flex; align-items: center; }
.qc-well .qc-a-stack .qc-logo { box-shadow: 0 0 0 2px var(--ql-card); }
.qc-well .qc-a-stack .qc-logo + .qc-logo { margin-left: -5px; }
.qc-well .qc-a-kv { display: grid; grid-template-columns: 46px 1fr; gap: 4px 8px; align-items: center; padding: 7px 22px 0 9px; font-size: 9.5px; }
.qc-well .qc-a-kv > span { color: var(--ql-faint); }
.qc-well .qc-a-kv > b { white-space: nowrap; }
.qc-well .qc-a-kv > em { font-style: normal; color: var(--ql-ink-2); white-space: nowrap; }
.qc-well .qc-a-clock { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ql-ink-2); font-variant-numeric: tabular-nums; }
.qc-well .qc-a-notif { position: absolute; left: 14px; right: 14px; top: 40px; display: flex; gap: 8px; padding: 8px 9px; border-radius: 10px; background: var(--ql-card); border: 1px solid var(--ql-line); box-shadow: var(--qc-frag); box-sizing: border-box; }
.qc-well .qc-a-ntt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 9.5px; color: var(--ql-ink-2); }
.qc-well .qc-a-nh { display: flex; font-size: 9px; color: var(--ql-mute); }
.qc-well .qc-a-nh b { flex: 1 1 auto; }
.qc-well .qc-a-ghost { position: absolute; left: 22px; right: 22px; top: 86px; height: 20px; border-radius: 10px; background: var(--ql-card); border: 1px solid var(--ql-line); opacity: .6; }
.qc-well .qc-a-doc { position: absolute; left: 26px; top: 12px; right: 26px; bottom: -18px; display: flex; flex-direction: column; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 6px; box-shadow: var(--qc-frag); box-sizing: border-box; overflow: hidden; }
.qc-well .qc-a-doch { height: 34px; flex-shrink: 0; padding: 7px 10px; box-sizing: border-box; background: var(--ql-ink); color: var(--ql-bg); display: flex; flex-direction: column; justify-content: center; }
.qc-well .qc-a-doch i { font-style: normal; font-size: 7px; font-weight: 700; letter-spacing: .14em; opacity: .7; }
.qc-well .qc-a-doch b { color: var(--ql-bg); font-size: 10px; }
.qc-well .qc-a-docb { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; }
.qc-well .qc-a-badge { position: absolute; right: 14px; bottom: 10px; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; }
.qc-well .qc-a-badge.is-bad { background: var(--ql-bad-soft); color: var(--ql-bad); }
.qc-well .qc-a-sl1 { position: absolute; left: 38px; top: 12px; right: 8px; height: 62px; background: var(--ql-sunk); border: 1px solid var(--ql-line); border-radius: 6px; box-sizing: border-box; }
.qc-well .qc-a-sl2 { position: absolute; left: 27px; top: 20px; right: 19px; height: 62px; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 6px; box-sizing: border-box; opacity: .85; }
.qc-well .qc-a-sl3 { position: absolute; left: 16px; top: 28px; right: 30px; height: 66px; display: flex; gap: 8px; padding: 9px 10px; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 6px; box-shadow: var(--qc-frag); box-sizing: border-box; }
.qc-well .qc-a-slt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.qc-well .qc-a-slt b { font-size: 9.5px; font-weight: 700; line-height: 1.2; }
.qc-well .qc-a-slt .qc-a-bar { height: 3px; border-radius: 2px; }
.qc-well .qc-a-slc { width: 36%; flex-shrink: 0; display: flex; align-items: flex-end; gap: 3px; padding: 6px; border-radius: 4px; background: var(--ql-side); box-sizing: border-box; }
.qc-well .qc-a-slc i { flex: 1; border-radius: 2px; background: var(--ql-line); }
.qc-well .qc-a-slc i.is-ink { background: var(--ql-ink); }
.qc-well .qc-a-pager { position: absolute; right: 12px; bottom: 8px; font-size: 9px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
.qc-well .qc-a-xl { bottom: -2px; }
.qc-well .qc-a-cells { flex: 1 1 auto; display: grid; grid-template-columns: 16px repeat(4, minmax(0, 1fr)); grid-auto-rows: 13px; overflow: hidden; }
.qc-well .qc-a-cell { display: flex; align-items: center; justify-content: center; padding: 0 4px; font-size: 7.5px; color: var(--ql-faint); box-sizing: border-box; overflow: hidden; border-right: 1px solid var(--ql-line-2); border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-cell.is-head { background: var(--ql-sunk); }
.qc-well .qc-a-cell.is-total { background: var(--ql-side); }
.qc-well .qc-a-cell i { display: block; height: 3px; border-radius: 2px; }
.qc-well .qc-a-tabs { height: 18px; flex-shrink: 0; display: flex; align-items: stretch; border-top: 1px solid var(--ql-line-2); font-size: 8px; color: var(--ql-mute); padding-right: 14px; }
.qc-well .qc-a-tabs span { padding: 0 7px; display: flex; align-items: center; }
.qc-well .qc-a-tabs span.is-on { background: var(--ql-side); color: var(--ql-ink); font-weight: 600; box-shadow: inset 0 2px 0 var(--ql-ink); }
.qc-well .qc-a-inv { left: 16px; top: 14px; gap: 5px; padding: 9px 24px 9px 11px; }
.qc-well .qc-a-invh { display: flex; align-items: center; }
.qc-well .qc-a-invh b { flex: 1 1 auto; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.qc-well .qc-a-invh span { font-size: 8.5px; color: var(--ql-faint); font-variant-numeric: tabular-nums; }
.qc-well .qc-a-from { font-size: 8.5px; color: var(--ql-mute); }
.qc-well .qc-a-line { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; color: var(--ql-ink-2); font-variant-numeric: tabular-nums; }
.qc-well .qc-a-line.is-rule { padding-top: 5px; border-top: 1px solid var(--ql-line-2); }
.qc-well .qc-a-line.is-total b { font-size: 9px; }
.qc-well .qc-a-line.is-total strong { font-size: 10px; font-weight: 700; color: var(--ql-ink); }
.qc-well .qc-a-mrow { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 22px 0 8px; border-bottom: 1px solid var(--ql-line-2); font-size: 9px; flex-shrink: 0; }
.qc-well .qc-a-mrow.is-head { height: 26px; font-size: 9.5px; }
.qc-well .qc-a-mrow.is-vip { background: var(--ql-warn-soft); }
.qc-well .qc-a-mrow.is-vip b { white-space: nowrap; }
.qc-well .qc-a-mrow.is-last { border-bottom: 0; }
.qc-well .qc-a-pad2 { padding: 8px 24px 0 10px; }
.qc-well .qc-a-pad2 > .qc-a-head:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-men { display: flex; align-items: center; gap: 6px; height: 22px; }
.qc-well .qc-a-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px; }
.qc-well .qc-a-dot.is-ok { background: var(--ql-ok); }
.qc-well .qc-a-dot.is-bad { background: var(--ql-bad); }
.qc-well .qc-a-gl { width: 14px; height: 14px; flex-shrink: 0; border-radius: 4px; background: var(--ql-sunk); color: var(--ql-mute); display: grid; place-items: center; }
.qc-well .qc-a-gl.is-round { border-radius: 999px; }
.qc-well .qc-a-gl svg { width: 9px; height: 9px; }
.qc-well .qc-a-urg { font-size: 7.5px; font-weight: 600; color: var(--ql-bad); }
.qc-well .qc-a-pad3 { padding: 7px 24px 0 10px; }
.qc-well .qc-a-od { display: flex; align-items: center; gap: 6px; height: 21px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-od.is-last { border-bottom: 0; }
.qc-well .qc-a-num { font-size: 8.5px; font-variant-numeric: tabular-nums; }
.qc-well .qc-a-inv { font-size: 9px; }
.qc-well .qc-a-od .qc-a-inv { color: var(--ql-ink); font-variant-numeric: tabular-nums; }
.qc-well .qc-a-fill { display: block; flex: 1 1 auto; height: 4px; border-radius: 3px; background: var(--ql-sunk); }
.qc-well .qc-a-dig { left: 22px; right: 22px; bottom: -16px; padding: 8px 10px 0; }
.qc-well .qc-a-dg { display: flex; align-items: center; height: 18px; font-size: 9px; color: var(--ql-ink-2); }
.qc-well .qc-a-dg span { flex: 1 1 auto; }
.qc-well .qc-a-dg b { font-variant-numeric: tabular-nums; }
.qc-well .qc-a-rep { left: 18px; top: 14px; gap: 6px; padding: 10px 24px 10px 11px; }
.qc-well .qc-a-cite { display: flex; align-items: center; gap: 3px; }
.qc-well .qc-a-cite em, .qc-well .qc-a-n { width: 11px; height: 11px; border-radius: 3px; background: var(--ql-brand-soft); color: var(--ql-brand-ink); font-style: normal; font-size: 7px; font-weight: 700; display: grid; place-items: center; }
.qc-well .qc-a-fillw { display: block; height: 4px; border-radius: 3px; background: var(--ql-sunk); }
.qc-well .qc-a-chip { position: absolute; right: 12px; bottom: 10px; height: 20px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--ql-card); border: 1px solid var(--ql-line); box-shadow: var(--qc-frag); display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; color: var(--ql-ink-2); }
.qc-well .qc-a-map { position: absolute; left: 14px; top: 14px; width: 44%; bottom: -12px; border-radius: 8px; border: 1px solid var(--ql-line); background-color: var(--ql-sunk); background-image: linear-gradient(var(--ql-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--ql-line-2) 1px, transparent 1px); background-size: 14px 14px; box-sizing: border-box; overflow: hidden; }
.qc-well .qc-a-map i { position: absolute; width: 7px; height: 7px; border-radius: 999px; background: var(--ql-brand); box-shadow: 0 0 0 3px var(--ql-brand-soft); }
.qc-well .qc-a-csv { left: 40%; top: 22px; padding: 7px 22px 0 8px; }
.qc-well .qc-a-cr { display: flex; align-items: center; gap: 5px; height: 18px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-cr.is-last { border-bottom: 0; }
.qc-well .qc-a-rev { top: 14px; gap: 7px; padding: 9px 24px 0 10px; }
.qc-well .qc-a-stars { display: flex; align-items: center; gap: 2px; color: var(--ql-warn); }
.qc-well .qc-a-stars svg { width: 11px; height: 11px; flex-shrink: 0; }
.qc-well .qc-a-stars .qc-a-trend { width: 44px; height: 14px; color: var(--ql-ink); }
.qc-well .qc-a-rv { display: flex; align-items: center; gap: 5px; }
.qc-well .qc-a-fund { top: 14px; padding: 0 24px 0 9px; }
.qc-well .qc-a-fh { display: flex; align-items: center; height: 22px; border-bottom: 1px solid var(--ql-line-2); font-size: 7.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ql-faint); }
.qc-well .qc-a-fr { display: flex; align-items: center; height: 22px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-fr.is-last { border-bottom: 0; }
.qc-well .qc-a-c48 { width: 48px; flex-shrink: 0; }
.qc-well .qc-a-c14 { width: 14px; flex-shrink: 0; }
.qc-well .qc-a-wk { position: absolute; left: 14px; top: 10px; font-size: 9.5px; font-weight: 600; color: var(--ql-ink-2); }
.qc-well .qc-a-wkg { left: 14px; top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 10px; grid-template-rows: 14px repeat(5, 12px); column-gap: 4px; row-gap: 2px; padding: 5px 0 0 6px; }
.qc-well .qc-a-wd { grid-row: 1; font-size: 8px; color: var(--ql-faint); text-align: center; }
.qc-well .qc-a-wkg i { display: block; border-radius: 3px; }
.qc-well .qc-a-every { position: absolute; left: 14px; top: 12px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ql-card); border: 1px solid var(--ql-line); box-shadow: var(--qc-frag); display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; color: var(--ql-ink-2); white-space: nowrap; }
.qc-well .qc-a-every svg { width: 10px; height: 10px; }
.qc-well .qc-a-bub { position: absolute; left: 14px; right: 24px; top: 42px; padding: 7px 9px; border-radius: 3px 10px 10px 10px; background: var(--ql-card); border: 1px solid var(--ql-line); box-shadow: var(--qc-frag); box-sizing: border-box; font-size: 9.5px; line-height: 1.4; color: var(--ql-ink); }
.qc-well .qc-a-reply { position: absolute; right: 14px; bottom: 8px; padding: 4px 8px; border-radius: 10px 3px 10px 10px; background: var(--ql-ok-soft); border: 1px solid var(--ql-line); font-size: 9.5px; color: var(--ql-ink); }
.qc-well .qc-a-agenda { margin-top: 5px; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; color: var(--ql-faint); }
.qc-well .qc-a-ag { display: flex; align-items: center; gap: 5px; height: 15px; font-size: 8.5px; }
.qc-well .qc-a-notes { position: absolute; left: 14px; top: 14px; width: 38%; bottom: -12px; display: flex; flex-direction: column; gap: 5px; padding: 8px; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 8px; box-sizing: border-box; opacity: .75; }
.qc-well .qc-a-notes b { font-size: 8.5px; color: var(--ql-ink-2); }
.qc-well .qc-a-notes .qc-a-bar { height: 3px; border-radius: 2px; }
.qc-well .qc-a-arrow { position: absolute; left: calc(38% + 18px); top: 46px; color: var(--ql-faint); }
.qc-well .qc-a-arrow svg { width: 12px; height: 12px; display: block; }
.qc-well .qc-a-tasks { left: calc(38% + 36px); top: 14px; padding: 4px 22px 0 8px; }
.qc-well .qc-a-task { display: flex; align-items: center; gap: 5px; height: 20px; border-bottom: 1px solid var(--ql-line-2); font-size: 9px; color: var(--ql-ink); }
.qc-well .qc-a-task.is-last { border-bottom: 0; }
.qc-well .qc-a-ring { width: 10px; height: 10px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--ql-line); box-sizing: border-box; }
.qc-well .qc-a-task .qc-a-xs { font-size: 8px; }
.qc-well .qc-a-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 50px; margin-top: 14px; padding-bottom: 1px; border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-chart i { flex: 1 1 0; border-radius: 3px 3px 0 0; background: var(--ql-line); position: relative; }
.qc-well .qc-a-chart i.is-ink { background: var(--ql-ink); }
.qc-well .qc-a-chart em { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); height: 13px; padding: 0 5px; border-radius: 4px; background: var(--ql-ink); color: var(--ql-bg); font-style: normal; font-size: 7.5px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; }
.qc-well .qc-a-sum { left: 22px; right: 22px; bottom: -20px; gap: 5px; padding: 9px 11px; }
.qc-well .qc-a-sum .qc-a-title { font-size: 9.5px; }
.qc-well .qc-a-hl { display: block; padding: 2px 3px; margin: 0 -3px; border-radius: 3px; background: var(--ql-brand-soft); }
.qc-well .qc-a-hl i { display: block; width: 84%; height: 4px; border-radius: 3px; background: var(--ql-brand); opacity: .35; }
.qc-well .qc-a-chk { display: flex; align-items: center; gap: 4px; }
.qc-well .qc-a-chk > i:first-child { width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--ql-line); box-sizing: border-box; flex-shrink: 0; }
.qc-well .qc-a-diff { padding: 0 22px 0 0; font-family: var(--ql-mono); }
.qc-well .qc-a-df { display: flex; align-items: center; gap: 8px; height: 20px; padding: 0 8px; font-size: 9px; color: var(--ql-faint); }
.qc-well .qc-a-df i { display: block; width: 46%; height: 4px; border-radius: 3px; background: var(--ql-line); }
.qc-well .qc-a-df em { font-style: normal; font-size: 7.5px; }
.qc-well .qc-a-df.is-add { background: var(--ql-ok-soft); color: var(--ql-ok); font-weight: 600; }
.qc-well .qc-a-df.is-add i { width: 58%; background: var(--ql-ok); opacity: .45; }
.qc-well .qc-a-df.is-del { background: var(--ql-bad-soft); color: var(--ql-bad); font-weight: 600; }
.qc-well .qc-a-df.is-del i { width: 52%; background: var(--ql-bad); opacity: .4; }
.qc-well .qc-a-df.is-chg { background: var(--ql-warn-soft); color: var(--ql-warn); font-weight: 600; }
.qc-well .qc-a-df.is-chg i { width: 40%; background: var(--ql-warn); opacity: .45; }
.qc-well .qc-a-pdfp { position: absolute; left: 16px; top: 14px; width: 30%; bottom: -12px; display: flex; flex-direction: column; gap: 4px; padding: 7px; background: var(--ql-card); border: 1px solid var(--ql-line); border-radius: 6px; box-shadow: var(--qc-frag); box-sizing: border-box; }
.qc-well .qc-a-pdfp .qc-a-bar { height: 3px; border-radius: 2px; }
.qc-well .qc-a-pdft { align-self: flex-start; padding: 0 4px; font-size: 7px; font-weight: 700; }
.qc-well .qc-a-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.qc-well .qc-a-mini i { height: 6px; background: var(--ql-sunk); }
.qc-well .qc-a-pdfp + .qc-a-arrow { left: calc(30% + 22px); }
.qc-well .qc-a-tbl { left: calc(30% + 40px); top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 16px; padding-right: 14px; }
.qc-well .qc-a-tbl > i { display: flex; align-items: center; padding: 0 5px; border-right: 1px solid var(--ql-line-2); border-bottom: 1px solid var(--ql-line-2); }
.qc-well .qc-a-tbl > i.is-h { background: var(--ql-sunk); padding: 0; }
.qc-well .qc-a-tbl > i b { display: block; height: 3px; border-radius: 2px; background: var(--ql-line); }

.qc-setup { margin-top: 28px; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); overflow: hidden; }
.qc-setup-head { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--ql-line-2); }
.qc-setup-t { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ql-ink); white-space: nowrap; }
.qc-setup-p { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 12px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
.qc-setup-bar { width: 64px; height: 4px; border-radius: 999px; background: var(--ql-sunk); overflow: hidden; }
.qc-setup-bar i { display: block; height: 100%; background: var(--ql-ink); width: 0%; }
.qc-setup-bar i.qc-w1 { width: 33.3%; }
.qc-setup-bar i.qc-w2 { width: 66.6%; }
.qc-setup-bar i.qc-w3 { width: 100%; }
.qc-setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ql-line-2); }
.qc-step { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; text-decoration: none; color: inherit; background: var(--ql-card); min-width: 0; transition: background .12s; }
.qc-step:hover { background: var(--ql-side); }
.qc-step:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: -2px; }
.qc-step-logos { display: flex; align-items: center; flex-shrink: 0; }
.qc-step-logos .qc-logo, .qc-step > .qc-logo { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ql-card); }
.qc-step-logos .qc-logo + .qc-logo { margin-left: -10px; }
.qc-step-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--ql-brand-soft); color: var(--ql-brand); display: grid; place-items: center; }
.qc-step-ico svg { width: 16px; height: 16px; }
.qc-step-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.qc-step-t { font-size: 13.5px; font-weight: 600; color: var(--ql-ink); }
.qc-step-s { font-size: 12px; color: var(--ql-mute); }
.qc-step-chev { width: 14px; height: 14px; flex-shrink: 0; color: var(--ql-faint); }
.qc-step.is-done .qc-step-t { color: var(--ql-mute); }

.qc-bar { flex-shrink: 0; position: relative; box-sizing: border-box; padding: 0 32px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.qc-bar.chat-composer-bar { border-top: 0; }
#chat-root.is-hero .qc-bar { display: none; }
.qc-compose { position: relative; width: 100%; max-width: var(--qc-col); margin: 0 auto; }
.qc-jump { bottom: calc(100% + 12px); border-color: var(--ql-line); background: var(--ql-card); color: var(--ql-ink-2); box-shadow: var(--ql-sh-pop); }
.qc-jump:hover { color: var(--ql-ink); }
.qc-jump .px-arc { color: var(--ql-brand); }
#chat-root.is-home .qc-jump { display: none; }
.qc-compose::before { content: ""; position: absolute; left: -32px; right: -32px; bottom: 100%; height: 92px; z-index: 19; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--ql-bg) 50%); opacity: 0; transition: opacity var(--dur-2, .14s) ease; }
.qc-compose:has(> .qc-jump.is-on)::before { opacity: 1; }
#chat-root.is-home .qc-compose::before { display: none; }
.qc-refused { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--ql-line); border-radius: 14px; background: var(--ql-card); text-align: left; }
.qc-refused[hidden] { display: none; }
.qc-ref-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--ql-warn-soft); color: var(--ql-warn); display: grid; place-items: center; }
.qc-ref-ico svg { width: 16px; height: 16px; }
.qc-ref-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qc-ref-tt b { font-size: 14px; font-weight: 600; color: var(--ql-ink); }
.qc-ref-tt span { font-size: 13px; line-height: 1.5; color: var(--ql-mute); }
.qc-ref-btn { height: 34px; padding: 0 14px; border-radius: 8px; background: var(--ql-ink); color: var(--ql-bg); font-size: 13px; font-weight: 500; text-decoration: none; display: flex; align-items: center; flex-shrink: 0; align-self: center; white-space: nowrap; }
.qc-ref-btn:hover { opacity: .88; }
.qc-holdhost { margin-bottom: 12px; }
.qc-holdhost[hidden] { display: none; }
.qc-lim { box-sizing: border-box; width: 100%; padding: 14px 16px 16px; border: 1px solid var(--ql-line); border-radius: 14px; background: var(--ql-card); box-shadow: var(--qc-frag); text-align: left; }
#messages .qc-lim { max-width: 560px; margin: 16px 0 4px; }
.qc-lim-head { display: flex; align-items: flex-start; gap: 12px; }
.qc-lim-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; }
.qc-lim-ic svg { width: 18px; height: 18px; }
.qc-lim-ic.tone-brand { background: var(--ql-brand-soft); color: var(--ql-brand); }
.qc-lim-ic.tone-warn { background: var(--ql-warn-soft); color: var(--ql-warn); }
.qc-lim-ic.tone-ok { background: var(--ql-ok-soft); color: var(--ql-ok); }
.qc-lim-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.qc-lim-t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ql-ink); }
.qc-lim-s { font-size: 13px; line-height: 1.45; color: var(--ql-mute); }
.qc-lim-plan { flex-shrink: 0; padding-top: 2px; font-size: 12.5px; line-height: 18px; color: var(--ql-mute); white-space: nowrap; }
.qc-lim-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qc-lim-btn { height: 32px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--ql-line); border-radius: 8px; background: var(--ql-card); color: var(--ql-ink); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.qc-lim-btn:hover { background: var(--ql-sunk); }
.qc-lim-btn.is-primary { border-color: var(--ql-ink); background: var(--ql-ink); color: var(--ql-bg); }
.qc-lim-btn.is-primary:hover { background: var(--ql-ink); opacity: .88; }
.qc-lim-btn:disabled { opacity: .5; cursor: default; }
.qc-lim-btn:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-lim-ask { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--ql-ink); }
.qc-lim-ask svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ql-mute); }
#composer-card.qc-card.is-held { background: var(--ql-sunk); box-shadow: none; }
#composer-card.qc-card.is-held .qc-ta { color: var(--ql-mute); cursor: default; }
#composer-card.qc-card.is-held .qc-ta::placeholder { color: var(--ql-mute); }
#composer-card.qc-card.is-held #attach-btn, #composer-card.qc-card.is-held #mic-btn { opacity: .45; pointer-events: none; }
#composer-card.qc-card.is-held .qc-send.px-sendstop.is-one > .px-send { background: transparent; color: var(--ql-faint); cursor: default; }
#composer-card.qc-card.is-held .qc-send { position: relative; }
#composer-card.qc-card.is-held .qc-send[data-why]:hover::after { content: attr(data-why); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 7px; background: var(--ql-ink); color: var(--ql-bg); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; pointer-events: none; z-index: 5; }
#chat-root .px-row[data-mark="stop"] .px-ri { color: var(--ql-mute); }
#chat-root .px-row[data-mark="stop"] .px-rlbl { color: var(--ql-ink); font-weight: 500; }
#chat-root .px-row[data-s="resumed"] .px-ri-play { opacity: 1; }
#chat-root .px-row[data-s="resumed"] .px-ri svg.px-ri-play { background: var(--ql-brand-soft); color: var(--ql-brand); padding: 2px; }
#chat-root .px-row[data-s="resumed"] .px-rlbl { color: var(--ql-brand); font-weight: 500; }
#chat-root .px-row[data-s="resumed"] .px-rmeta { display: none; }
.qc-edit { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--ql-brand-soft); color: var(--ql-brand-ink); font-size: 12.5px; }
.qc-edit[hidden] { display: none; }
.qc-edit > svg { width: 14px; height: 14px; flex-shrink: 0; }
.qc-edit-t { flex: 1 1 auto; min-width: 0; }
.qc-edit-t b { font-weight: 600; }
.qc-edit-x { height: 28px; flex-shrink: 0; white-space: nowrap; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ql-brand-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qc-edit-x:hover { background: color-mix(in srgb, var(--ql-brand) 10%, transparent); }
.qc-vdock { margin-bottom: 10px; }
.qc-vdock .px-vtt { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; border: 1px solid var(--ql-line); border-radius: 16px; background: var(--ql-card); box-shadow: none; box-sizing: border-box; }
.qc-vdock .px-vtt-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ql-bad); flex-shrink: 0; animation: qc-rec 1.4s ease-in-out infinite; }
@keyframes qc-rec { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.qc-vdock .px-vtt-wave { flex: 1 1 auto; min-width: 0; height: 26px; color: var(--ql-ink-2); }
.qc-vdock .px-vtt-time { flex-shrink: 0; min-width: 38px; text-align: right; font-family: var(--ql-mono); font-size: 12.5px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
.qc-vdock .px-vtt-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ql-mute); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.qc-vdock .px-vtt-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qc-vdock .px-vtt-btn.cancel:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-vdock .px-vtt-btn.done { background: var(--ql-ink); color: var(--ql-bg); }
.qc-vdock .px-vtt-btn.done svg { stroke-width: 2.4; }

.qc-card { position: relative; width: 100%; border: 1px solid var(--ql-line); border-radius: 16px; background: var(--ql-card); box-shadow: none; text-align: left; transition: border-color .15s, box-shadow .15s; }
#composer-card.qc-card:focus-within { border-color: var(--ql-faint); }
#composer-card.qc-card.is-drop { border-color: var(--ql-brand); box-shadow: 0 0 0 3px var(--ql-brand-ring); }
#composer-card.qc-card.is-handback { border-color: var(--ql-brand); box-shadow: 0 0 0 3px var(--ql-brand-soft); }
.qc-ta {
  display: block; width: 100%; box-sizing: border-box; resize: none; border: 0; outline: 0; background: transparent; padding: 16px 18px 4px; min-height: 64px; max-height: 50vh;
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ql-ink); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ql-line) transparent;
}
.qc-ta::placeholder { color: var(--ql-faint); opacity: 1; }
.qc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.qc-chips.hidden { display: none; }
.qc-chip { position: relative; height: 34px; flex-shrink: 0; max-width: 100%; padding: 0 2px 0 4px; box-sizing: border-box; border: 1px solid var(--ql-line); border-radius: 9px; background: var(--ql-bg); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ql-ink-2); overflow: hidden; }
.qc-chip.is-busy { color: var(--ql-mute); }
.qc-chip.is-bad { border-color: var(--ql-bad-line); background: var(--ql-bad-soft); color: var(--ql-ink-2); }
.qc-cmain { min-width: 0; display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: default; text-align: left; }
button.qc-cmain { cursor: pointer; }
button.qc-cmain:hover .qc-cn { color: var(--ql-ink); }
.qc-cn { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.qc-cst { font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ql-mute); }
.qc-chip.is-bad .qc-cst { color: var(--ql-bad); }
.qc-clead { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; overflow: hidden; font-size: 8px; font-weight: 700; letter-spacing: .02em; background: var(--ql-sunk); color: var(--ql-ink-2); }
.qc-clead.is-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-clead.is-bad { background: var(--ql-card); color: var(--ql-bad); }
.qc-clead.is-bad svg { width: 13px; height: 13px; }
.qc-clead.is-pdf, .qc-fl-badge.is-pdf, .qc-ftag.is-pdf { background: var(--ql-bad-soft); color: var(--ql-bad); }
.qc-clead.is-sheet, .qc-fl-badge.is-sheet, .qc-ftag.is-sheet { background: var(--ql-ok-soft); color: var(--ql-ok); }
.qc-clead.is-doc, .qc-fl-badge.is-doc, .qc-ftag.is-doc { background: var(--ql-info-soft); color: var(--ql-info); }
.qc-cretry { height: 26px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: var(--ql-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.qc-cretry:hover, .qc-cx:hover { background: var(--ql-sunk); }
.qc-chip.is-held { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.qc-chip.is-held .qc-cmain { flex: 1 1 auto; }
.qc-ctx { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.qc-ctx .qc-cst { white-space: normal; }
.qc-clead.is-held { background: var(--ql-brand-soft); color: var(--ql-brand); }
.qc-clead.is-held svg { width: 14px; height: 14px; }
.qc-chip.is-held .qc-cretry { color: var(--ql-brand); }
.qc-cx { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ql-faint); display: grid; place-items: center; cursor: pointer; }
.qc-cx svg { width: 11px; height: 11px; }
.qc-cx:hover { color: var(--ql-ink); }
.qc-chip .qc-cbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 0; background: transparent; }
.qc-chip .qc-cbar > i { background: var(--ql-brand); }

.qc-tools { display: flex; align-items: center; gap: 2px; padding: 4px 10px 10px; }
.qc-tool { height: 32px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ql-ink-2); font: inherit; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; cursor: pointer; white-space: nowrap; padding: 0 8px; transition: background .12s, color .12s; }
.qc-tool:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-tool.hidden, .qc-conn-wrap.hidden, #model-indicator.hidden { display: none; }
.qc-tool:focus-visible, .qc-send button:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-tool svg { width: 16px; height: 16px; flex-shrink: 0; }
.qc-ibtn { width: 32px; padding: 0; justify-content: center; }
.qc-count { flex-shrink: 0; margin: 0 4px 0 2px; font-size: 11.5px; color: var(--ql-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc-count.hidden { display: none; }
.qc-conn { gap: 8px; padding: 0 8px 0 6px; }
.qc-conn-logos { display: flex; align-items: center; }
.qc-conn-logos:empty { display: none; }
.qc-conn-logos .qc-logo { box-shadow: 0 0 0 2px var(--ql-card); }
.qc-conn-logos .qc-logo + .qc-logo { margin-left: -6px; }
.qc-conn-plug { display: none; }
.qc-conn-logos:empty + .qc-conn-plug { display: block; }
.qc-conn-n { font-size: 12px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
.qc-conn-n[hidden] { display: none; }
.qc-conn-wrap.qc-hide-research { display: none; }
.qc-research { display: flex; align-items: center; gap: 2px; }
.qc-research[hidden] { display: none; }
.qc-sources { height: 30px; flex-shrink: 0; margin-left: 2px; padding: 0 8px 0 5px; border: 0; border-radius: 8px; background: var(--ql-sunk); color: var(--ql-ink-2); font: inherit; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.qc-src-globe { width: 20px; height: 20px; border-radius: 8px; background: var(--ql-card); border: 1px solid var(--ql-line); box-sizing: border-box; display: grid; place-items: center; color: var(--ql-ink-2); }
.qc-src-globe svg { width: 12px; height: 12px; }
.qc-sources .qc-src-drive { width: 20px; height: 20px; margin-left: -10px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ql-sunk); }
.qc-sources .qc-chev { width: 12px; height: 12px; }
.qc-deep { height: 32px; flex-shrink: 0; margin-left: 2px; padding: 0 9px 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--ql-ink-2); font: inherit; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.qc-deep:hover { background: var(--ql-sunk); }
.qc-deep-track { position: relative; width: 32px; height: 18px; flex-shrink: 0; border-radius: 999px; background: var(--ql-line); transition: background .15s; }
.qc-deep-track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.qc-deep[aria-checked="true"] .qc-deep-track { background: var(--ql-ink); }
.qc-deep[aria-checked="true"] .qc-deep-track i { left: 16px; background: var(--ql-bg); }
.qc-model { gap: 3px; padding: 0 6px 0 8px; }
.qc-model svg { width: 12px; height: 12px; }
.qc-mic.is-rec, .qc-mic.px-dict-rec { background: var(--ql-bad-soft) !important; color: var(--ql-bad) !important; border-color: transparent !important; animation: none !important; }
.qc-send { flex-shrink: 0; margin-left: 4px; }
.qc-send.px-sendstop.is-one > .px-send, .qc-send.px-sendstop.is-one > .px-stop { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--ql-ink); color: var(--ql-bg); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.qc-send.px-sendstop.is-one.is-off > .px-send { background: var(--ql-sunk); color: var(--ql-faint); cursor: default; }
.qc-send.px-sendstop.is-one > .px-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.qc-stop-sq { width: 11px; height: 11px; border-radius: 3px; background: var(--ql-bg); display: block; }
.qc-under.px-under { position: relative; margin-top: 8px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 26px; container-type: normal; }
.qc-disclaim.px-disclaim { margin: 0; padding: 0; font-size: 12px; line-height: 16px; color: var(--ql-mute); white-space: nowrap; overflow: visible; }
.qc-backdrop.hidden { display: none; }
.qc-pop {
  min-width: 260px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 4px; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); box-shadow: var(--ql-sh-pop); color: var(--ql-ink); text-align: left; z-index: 80;
  font-family: var(--ql-font); font-size: 13px; line-height: 1.4;
}
.qc-pop.hidden { display: none; }
.qc-pop-up { position: absolute; left: 0; bottom: calc(100% + 8px); }
#browser-menu.qc-pop { width: 300px; }
.qc-cm-hd { height: 30px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 10px; }
.qc-cm-lbl { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ql-mute); }
.qc-cm-n { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-ink-2); font-size: 11px; font-weight: 600; letter-spacing: 0; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.qc-cm-act { height: 24px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; color: var(--ql-ink-2); text-decoration: none; white-space: nowrap; }
.qc-cm-act:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-cm-act:focus-visible, .qc-cm-foot:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-cm-apps { flex: 1 1 auto; min-height: 76px; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ql-line) transparent; }
.qc-cm-app { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--ql-ink); }
.qc-cm-an { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-cm-sep { display: block; height: 1px; flex-shrink: 0; margin: 4px 0; background: var(--ql-line-2); }
.qc-cm-row { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 4px 10px 6px; }
.qc-cm-logo.qc-logo { width: 32px; height: 32px; border-radius: 8px; }
.qc-cm-ico { width: 32px; height: 32px; flex-shrink: 0; box-sizing: border-box; border: 1px solid var(--ql-line); border-radius: 8px; display: grid; place-items: center; color: var(--ql-ink-2); }
.qc-cm-ico svg { width: 17px; height: 17px; }
.qc-cm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.qc-cm-rt { font-size: 13px; font-weight: 600; color: var(--ql-ink); white-space: nowrap; }
.qc-cm-rs { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ql-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-cm-rs.is-good { color: var(--ql-ok); }
.qc-cm-rs.is-warn { color: var(--ql-warn); }
.qc-cm-pulse { width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px; background: currentColor; animation: pxConnPulse 1.6s ease-in-out infinite; }
.qc-cm-cta.ql-btn { flex-shrink: 0; text-decoration: none; }
.qc-cm-sw.ql-switch { flex-shrink: 0; }
.qc-cm-note { flex-shrink: 0; margin: 0; padding: 0 10px 6px 52px; font-size: 12px; line-height: 1.45; color: var(--ql-mute); }
.qc-cm-foot { flex-shrink: 0; width: 100%; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 8px; background: transparent; color: var(--ql-ink-2); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.qc-cm-foot > span { flex: 1 1 auto; }
.qc-cm-foot:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-cm-chev { width: 13px; height: 13px; flex-shrink: 0; color: var(--ql-mute); }
.qc-model-menu.qc-pop { width: 280px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ql-line) transparent; }
.qc-mm-row { display: flex; align-items: center; gap: 2px; }
.qc-mm-item.ql-menu-item { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; }
.qc-mm-item.is-sel { font-weight: 600; }
.qc-mm-item > .qc-mm-ck { flex: 0 0 auto; display: grid; place-items: center; color: var(--ql-ink); }
.qc-mm-item > .qc-mm-ck svg { width: 15px; height: 15px; }
.qc-mm-rec { margin-left: 8px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--ql-sunk); color: var(--ql-ink-2); font-style: normal; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; vertical-align: 1px; }
.qc-model-menu .px-effort { padding-right: 4px; }
#effort-pop.px-effort-pop { z-index: 95; }
.qc-slash { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); z-index: 40; max-height: 264px; overflow-y: auto; padding: 6px; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); box-shadow: var(--ql-sh-pop); }
.qc-slash.hidden { display: none; }
.qc-slash-i { width: 100%; height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ql-ink); }
.qc-slash-i:hover, .qc-slash-i:focus-visible { background: var(--ql-sunk); outline: none; }
.qc-slash-k { width: 72px; flex-shrink: 0; font-family: var(--ql-mono); font-size: 12px; color: var(--ql-mute); }
.qc-slash-l { font-size: 13px; font-weight: 500; }

.qc-umsg .qc-ucol { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; max-width: 100%; }
.qc-ubub.px-ubub { position: relative; max-width: 85%; padding: 10px 14px; box-sizing: border-box; border-radius: 16px 16px 4px 16px; background: var(--ql-sunk); color: var(--ql-ink); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.qc-umsg.is-editing .qc-ubub { box-shadow: 0 0 0 2px var(--ql-brand); }
.qc-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 85%; }
.qc-fcard { height: 48px; max-width: 280px; padding: 0 12px 0 7px; box-sizing: border-box; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); display: inline-flex; align-items: center; gap: 10px; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s; }
.qc-fcard:hover { border-color: var(--ql-faint); }
.qc-fcard:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-fthumb, .qc-ftag { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; background: var(--ql-sunk); color: var(--ql-ink-2); }
.qc-fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-ftt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qc-fn { font-size: 13px; font-weight: 500; color: var(--ql-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-fm { font-size: 12px; color: var(--ql-mute); white-space: nowrap; }
.qc-fdel { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px dashed var(--ql-line); border-radius: 10px; font-size: 12px; color: var(--ql-mute); }
.qc-fdel svg { width: 13px; height: 13px; }
.qc-fdel s { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-fdel span { font-size: 11px; }
.qc-prov { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-mute); font-size: 11.5px; }
.qc-prov svg, .qc-prov img { width: 13px; height: 13px; }
.qc-faudio { width: 260px; max-width: 100%; }

#chat-root .msg-actions .px-actbar { gap: 1px; padding: 4px 0 0; }
@media (hover: none) and (pointer: coarse) {
  #messages > .px-msg .px-hover-actions { opacity: 1; pointer-events: auto; }
}
#chat-root .px-act-btn { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--ql-mute); }
#chat-root .px-act-btn:hover { background: var(--ql-sunk); color: var(--ql-ink); }
#chat-root .px-act-btn svg { width: 15px; height: 15px; stroke-width: 1.8; }
#chat-root .px-act-btn.is-active, #chat-root .px-act-btn[aria-pressed="true"] { background: var(--ql-brand-soft); color: var(--ql-brand-ink); }
#chat-root .px-act-btn.is-copied { color: var(--ql-ok); }
#chat-root .px-act-btn:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 1px; }
#chat-root .px-act-time { font-size: 12px; color: var(--ql-mute); padding: 0 6px 0 4px; }
#chat-root .qc-umsg .px-act-end .px-actbar { right: -6px; }
#chat-root .qc-umsg .px-act-time { padding: 0 4px 0 0; }
#chat-root .qc-umsg .qc-ucol > .msg-actions { margin-top: -4px; }

#chat-root .px-turn { color: var(--ql-ink); }
#chat-root .px-agroup.has-items:not(.is-empty), #chat-root .px-agroup.is-inline { margin-bottom: 10px; }
#chat-root .px-status { height: 25px; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ql-mute); }
#chat-root .px-status.is-gone { height: 0; }
#chat-root .px-glyph { color: var(--ql-mute); }
#chat-root .px-agroup.has-items .px-status .px-sl { color: var(--ql-ink-2); }
#chat-root .px-stimer { color: var(--ql-mute); font-weight: 400; }
#chat-root .px-schev { color: var(--ql-mute); }
#chat-root .px-status.is-wait, #chat-root .px-status.is-wait .px-glyph, #chat-root .px-status.is-wait .px-stimer, #chat-root .px-status.is-wait .px-sl { color: var(--ql-warn); }
#chat-root .px-asum { height: 28px; margin-left: -4px; padding: 0 6px 0 4px; border-radius: 7px; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ql-mute); }
#chat-root .px-asum:hover { color: var(--ql-ink); }
#chat-root .px-asum:focus-visible, #chat-root .px-status:focus-visible, #chat-root .px-row.is-click:focus-visible, #chat-root .px-thead:focus-visible, #chat-root .px-amore:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
#chat-root .px-agroup.has-items > .px-abody { margin-top: 6px; padding: 4px 0; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); overflow: hidden; }
#chat-root .px-agroup.has-items > .px-abody.is-shut { display: none; }
#chat-root .px-agroup.is-collapsed:not(.is-open) > .px-abody { border-color: transparent; padding: 0; margin-top: 0; }
#chat-root .px-agroup.has-rows .px-abody::before { display: none; }
#chat-root .px-amore { height: 30px; margin: -4px 0 4px; padding: 0 12px; gap: 8px; border-bottom: 1px solid var(--ql-line-2); font-size: 12px; color: var(--ql-mute); width: 100%; }
#chat-root .px-amore::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
#chat-root .px-amore:hover { background: var(--ql-sunk); color: var(--ql-ink); }
#chat-root .px-row { min-height: 32px; gap: 10px; padding: 0 12px; border-radius: 0; font-size: 13px; line-height: 20px; color: var(--ql-ink-2); }
#chat-root .px-row.is-click:hover, #chat-root .px-row.is-sel { background: var(--ql-sunk); }
#chat-root .px-ri { width: 16px; height: 16px; background: transparent; color: var(--ql-mute); }
#chat-root .px-ri svg { width: 16px; height: 16px; border-radius: 999px; box-sizing: border-box; }
#chat-root .px-ri .px-ri-done { background: var(--ql-ok-soft); color: var(--ql-ok); padding: 3px; stroke-width: 3.2; }
#chat-root .px-ri .px-ri-fail { background: var(--ql-bad-soft); color: var(--ql-bad); padding: 3.5px; stroke-width: 3.4; }
#chat-root .px-ri .px-ri-stop { background: var(--ql-sunk); color: var(--ql-mute); padding: 2px; }
#chat-root .px-ri .px-ri-wait { width: 12px; height: 12px; border: 1.5px solid var(--ql-line); color: transparent; }
#chat-root .px-ri .px-arc { color: var(--ql-brand); }
#chat-root .px-row[data-s="failed"] .px-ri, #chat-root .px-row[data-s="awaiting"] .px-ri { color: inherit; }
#chat-root .px-rlbl { flex: 0 1 auto; min-width: 0; font-weight: 400; color: var(--ql-ink-2); }
#chat-root .px-row:has(.px-rmeta:empty) .px-rlbl { flex: 1 1 auto; }
#chat-root .px-row[data-s="running"] .px-rlbl { color: var(--ql-ink); font-weight: 500; }
#chat-root .px-row[data-s="failed"] .px-rlbl { color: var(--ql-ink); }
#chat-root .px-row[data-s="awaiting"] .px-rlbl { color: var(--ql-mute); }
#chat-root .px-rmeta { margin-left: 0; padding-left: 0; font-size: 13px; color: var(--ql-mute); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#chat-root .px-rmeta:not(:empty)::before { content: "\00b7\00a0"; }
#chat-root .px-rdur { flex-shrink: 0; min-width: 30px; text-align: right; font-size: 11.5px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
#chat-root .px-rdur:empty { min-width: 0; }
#chat-root .px-rfav { order: 3; display: inline-flex; align-items: center; gap: 0; }
#chat-root .px-rmeta { order: 2; }
#chat-root .px-rlbl { order: 1; }
#chat-root .px-ri { order: 0; }
#chat-root .px-rdur { order: 4; }
#chat-root .px-rchev { order: 5; }
#chat-root .px-rfav img, #chat-root .px-rfav .qc-brand { width: 20px; height: 20px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--ql-line); box-sizing: border-box; padding: 3px; object-fit: contain; box-shadow: 0 0 0 2px var(--ql-card); }
#chat-root .px-rfav-i { width: 18px; height: 18px; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-ink-2); border: 1px solid var(--ql-line); box-sizing: border-box; display: grid; place-items: center; font-size: 9px; font-weight: 700; box-shadow: 0 0 0 2px var(--ql-card); }
#chat-root .px-rfav-i + .px-rfav-i { margin-left: -5px; }
#chat-root .px-rfav .px-sico > .px-sico-img { width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; box-shadow: none; }
#chat-root .px-rchev { width: 26px; height: 26px; margin-right: -6px; margin-left: 0; border-radius: 7px; color: var(--ql-ink-2); opacity: 1; display: grid; place-items: center; }
#chat-root .px-rchev svg { width: 13px; height: 13px; }
#chat-root .px-row.is-click:hover .px-rchev { background: var(--ql-line-2); }
#chat-root .px-tk { padding: 0; }
#chat-root .px-thead { min-height: 32px; gap: 10px; padding: 0 12px; border-radius: 0; font-size: 13px; color: var(--ql-ink-2); }
#chat-root .px-thead:hover { background: var(--ql-sunk); }
#chat-root .px-thead .px-rlbl { flex: 1 1 auto; color: var(--ql-ink-2); }
#chat-root .px-thead .px-ri > * { opacity: 0; }
#chat-root .px-thead .px-ri .px-ri-spark { opacity: 1; width: 14px; height: 14px; background: transparent; padding: 0; color: var(--ql-mute); }
#chat-root .px-thead .px-rchev { width: 13px; height: 13px; margin: 0; color: var(--ql-mute); }
#chat-root .px-tk.is-open > .px-thead .px-rchev { transform: rotate(90deg); }
#chat-root .px-tbody { margin: 0 14px 8px 38px; padding: 0; border-left: 0; font-size: 13px; line-height: 1.55; color: var(--ql-mute); }
#chat-root .px-tbody.opt-prose, #chat-root .px-tbody.opt-prose p, #chat-root .px-tbody.opt-prose li { font-size: 13px; line-height: 1.55; color: var(--ql-mute); }

#chat-root .opt-prose.px-seg { font-size: 15px; line-height: 1.65; color: var(--ql-ink); }
#chat-root .px-seg { margin-bottom: 0; }
#chat-root .px-seg + .px-seg { margin-top: 12px; }
#chat-root .px-seg p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--ql-ink); }
#chat-root .px-seg > :last-child, #chat-root .px-seg > :last-child > :last-child { margin-bottom: 0; }
#chat-root .px-seg h1, #chat-root .px-seg h2, #chat-root .px-seg h3, #chat-root .px-seg h4 { margin: 6px 0 8px; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; color: var(--ql-ink); }
#chat-root .px-seg h1 { font-size: 18px; }
#chat-root .px-seg h1, #chat-root .px-seg h2, #chat-root .px-seg h3 { border: 0; padding: 0; }
#chat-root .px-seg strong, #chat-root .px-seg b { font-weight: 600; color: var(--ql-ink); }
#chat-root .px-seg a { color: var(--ql-ink); text-decoration: underline; text-decoration-color: var(--ql-faint); text-underline-offset: 3px; }
#chat-root .px-seg a:hover { text-decoration-color: var(--ql-ink); }
#chat-root .px-seg :not(pre) > code { font-family: var(--ql-mono); font-size: 13px; padding: 1px 5px; border-radius: 5px; background: var(--ql-sunk); color: var(--ql-ink); border: 0; }
#chat-root .px-seg :not(pre) > code::before, #chat-root .px-seg :not(pre) > code::after { content: none; }
#chat-root .px-seg ol, #chat-root .px-seg ul { margin: 0 0 12px; padding-left: 28px; list-style: none; }
#chat-root .px-seg li { margin: 0 0 8px; padding-left: 0; line-height: 1.65; }
#chat-root .px-seg li + li { margin-top: 0; }
#chat-root .px-seg li > p { margin-bottom: 6px; }
#chat-root .px-seg ol > li { position: relative; padding-left: 0; }
#chat-root .px-seg ol > li::before { position: absolute; left: -28px; top: 0; width: 18px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; display: block; text-align: left; font-size: inherit; font-weight: 400; line-height: inherit; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
#chat-root .px-seg ul > li { position: relative; }
#chat-root .px-seg ul > li::before { content: ""; position: absolute; left: -16px; top: 10px; width: 5px; height: 5px; border-radius: 999px; background: var(--ql-faint); }
#chat-root .px-seg blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--ql-line); color: var(--ql-ink-2); font-style: normal; }
#chat-root .px-seg hr { margin: 16px 0; border: 0; border-top: 1px solid var(--ql-line); }
#chat-root .px-stall { width: 6px; height: 6px; background: var(--ql-mute); }
#chat-root .px-stall.px-caret { display: inline-block; width: .6em; height: .6em; margin-left: .3em; border-radius: 999px; vertical-align: middle; position: relative; top: -.05em; background: currentColor; opacity: 1; animation: qc-caret-dot 1.3s ease-in-out infinite; }
@keyframes qc-caret-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.78); } }

#chat-root .opt-prose .opt-table-wrap { margin: 2px 0 16px; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); box-shadow: none; }
#chat-root .opt-prose .opt-table-scroll { scrollbar-width: thin; scrollbar-color: var(--ql-line) transparent; }
#chat-root .opt-prose .opt-table-wrap table { font-size: 13.5px; line-height: 1.5; }
#chat-root .opt-prose .opt-table-wrap thead { background: var(--ql-side); }
#chat-root .opt-prose .opt-table-wrap th { padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--ql-mute); border-bottom: 1px solid var(--ql-line); }
#chat-root .opt-prose .opt-table-wrap td { padding: 10px 14px; color: var(--ql-ink); border-top: 1px solid var(--ql-line-2); }
#chat-root .opt-prose .opt-table-wrap tbody tr:first-child td { border-top: 0; }
#chat-root .opt-prose .opt-table-wrap tbody tr td:first-child { font-weight: 500; }
#chat-root .opt-prose .opt-table-wrap tbody tr:nth-child(even) { background: transparent; }
#chat-root .opt-prose .opt-table-wrap tbody tr:hover { background: var(--ql-hover); }
#chat-root .opt-table-foot { height: 38px; box-sizing: border-box; padding: 0 6px 0 14px; border-top: 1px solid var(--ql-line-2); background: transparent; font-size: 12px; color: var(--ql-mute); }
#chat-root .opt-table-btn { height: 28px; padding: 0 8px; gap: 6px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--ql-ink-2); }
#chat-root .opt-table-btn:hover { background: var(--ql-sunk); color: var(--ql-ink); }
#chat-root .opt-table-btn svg { width: 13px; height: 13px; }
#chat-root .opt-table-btn.is-done { color: var(--ql-ok); }
.opt-table-overlay { background: var(--ql-scrim-strong); z-index: 91; }
.opt-table-sheet { border-color: var(--ql-line); border-radius: 16px; background: var(--ql-bg); box-shadow: var(--ql-sh-dlg); }
.opt-table-sheet-head { border-bottom-color: var(--ql-line); }
.opt-table-sheet-title { color: var(--ql-ink); }

#chat-root .qc-code.cb-card { margin: 2px 0 16px; border-radius: 12px; overflow: hidden; background: var(--qc-code-bg); border: 1px solid var(--qc-code-line); box-shadow: none; }
#chat-root .qc-code-head.cb-head { position: static; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; background: var(--qc-code-head); border-bottom: 1px solid var(--qc-code-line); border-radius: 0; }
#chat-root .qc-code-lang { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
#chat-root .qc-code-lang .cb-lang { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--qc-code-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-root .qc-cb-term { width: 12px; height: 12px; color: var(--qc-code-mute); flex-shrink: 0; }
#chat-root .qc-code-copy { height: 28px; white-space: nowrap; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--qc-code-mute); font: inherit; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#chat-root .qc-code-copy svg { width: 12px; height: 12px; }
#chat-root .qc-code-copy:hover { background: rgba(255, 255, 255, .08); color: #F4F4F5; }
#chat-root .qc-code-copy.is-done { color: #34D399; }
#chat-root .qc-code-body { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3F3F46 transparent; }
#chat-root [data-codeblock] pre, #chat-root [data-codeblock] code[class*="language-"] { font-family: var(--ql-mono); font-size: 13px; line-height: 1.65; color: var(--qc-code-text); text-shadow: none; background: transparent; }
#chat-root [data-codeblock] .line-numbers-rows > span:before { color: var(--qc-code-num); font-size: 12px; }
#chat-root [data-codeblock] .line-numbers .line-numbers-rows { border-right: 0; }
#chat-root [data-codeblock] .token.punctuation, #chat-root [data-codeblock] .token.operator { color: #A1A1AA; }
#chat-root [data-codeblock] .token.function, #chat-root [data-codeblock] .token.keyword, #chat-root [data-codeblock] .token.tag { color: #C7D2FE; }
#chat-root [data-codeblock] .token.string, #chat-root [data-codeblock] .token.attr-value, #chat-root [data-codeblock] .token.char { color: #A7F3D0; }
#chat-root [data-codeblock] .token.number, #chat-root [data-codeblock] .token.boolean, #chat-root [data-codeblock] .token.variable, #chat-root [data-codeblock] .token.property, #chat-root [data-codeblock] .token.attr-name, #chat-root [data-codeblock] .token.class-name { color: #FDE68A; }
#chat-root [data-codeblock] .token.comment { color: #71717A; font-style: normal; }
#chat-root [data-codeblock] .token.plain { color: var(--qc-code-text); }

#chat-root .px-blk { margin: 2px 0 16px; }
#chat-root .px-blk:last-child, #chat-root .px-turn > .px-blk:nth-last-child(2) { margin-bottom: 0; }
#chat-root .px-notice { margin: 2px 0 12px; font-size: 13px; font-style: normal; color: var(--ql-mute); }
#chat-root .px-terr, #messages > .px-terr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 560px; margin: 2px 0 14px; padding: 8px 8px 8px 12px; border: 1px solid var(--ql-bad-line); border-radius: 12px; background: var(--ql-bad-soft); font-size: 13px; line-height: 1.45; color: var(--ql-ink); box-sizing: border-box; }
#messages > .px-terr { margin-left: auto; margin-right: auto; max-width: var(--qc-col); }
#chat-root .px-terr-ico { width: 16px; height: 16px; color: var(--ql-bad); }
#chat-root .px-terr-btn { height: 30px; padding: 0 11px 0 9px; gap: 6px; border: 1px solid var(--ql-line); border-radius: 8px; background: var(--ql-bg); font-size: 12.5px; font-weight: 500; color: var(--ql-ink); }
#chat-root .px-terr-btn:hover { border-color: var(--ql-faint); background: var(--ql-bg); }
#chat-root .px-terr-btn svg { width: 13px; height: 13px; }
#messages > .px-stopped.msg-stopped { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#chat-root .px-stopped-ico { width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--ql-sunk); color: var(--ql-ink-2); }
#chat-root .px-stopped-ico svg { width: 12px; height: 12px; }
#chat-root .px-stopped-title { font-size: 13px; font-weight: 600; color: var(--ql-ink); }
#chat-root .px-stopped-sub { font-size: 12.5px; line-height: 1.45; color: var(--ql-mute); }
.qc-srcpill-row { margin: 0 0 14px; }
#chat-root .px-turn > .qc-hand { margin: 0 0 6px; }
#messages .px-turn > .qc-hand .px-agl, #messages .px-blk > .px-res > .px-agl:only-child { margin: 0; }
#messages .px-blk > .px-res:has(> .px-agl:only-child) { margin: 0; }
#messages .px-turn > .qc-hand:has(+ .px-agroup.is-empty + .px-blk > .px-res > .px-agl:only-child) { margin-bottom: 2px; }
#chat-root .px-turn > .qc-hand + .px-agroup.is-empty { display: none; }
.qc-srcpill { height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--ql-line); border-radius: 999px; background: var(--ql-card); color: var(--ql-ink-2); font: inherit; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: border-color .12s, color .12s; }
.qc-srcpill:hover { border-color: var(--ql-faint); color: var(--ql-ink); }
.qc-srcpill:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 2px; }
.qc-srcpill > svg { width: 12px; height: 12px; }
.qc-srcpill-f { display: flex; align-items: center; }
.qc-srcpill-f span { width: 20px; height: 20px; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-ink-2); border: 1px solid var(--ql-line); box-sizing: border-box; display: grid; place-items: center; font-size: 9px; font-weight: 700; box-shadow: 0 0 0 2px var(--ql-card); }
.qc-srcpill-f span + span { margin-left: -5px; }
.qc-src-wrap { padding: 4px 0 12px; }
.qc-src { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--ql-line-2); transition: background .12s; }
.qc-src:hover { background: var(--ql-side); }
.qc-src:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: -2px; }
.qc-src-i { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; border-radius: 999px; background: var(--ql-sunk); color: var(--ql-ink-2); border: 1px solid var(--ql-line); box-sizing: border-box; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.qc-src-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qc-src-m { font-size: 12px; color: var(--ql-mute); }
.qc-src-t { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ql-ink); }
.qc-src-s { font-size: 12.5px; line-height: 1.45; color: var(--ql-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-fl-sec + .qc-fl-sec { margin-top: 4px; }
.qc-fl-h { display: flex; align-items: center; gap: 8px; height: 32px; margin: 6px 0 0; padding: 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ql-mute); }
.qc-fl-c { font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.qc-fl-list { display: flex; flex-direction: column; }
.qc-fl-row { display: flex; align-items: center; gap: 6px; padding: 4px 10px; }
.qc-fl-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.qc-fl-main:hover { background: var(--ql-sunk); }
.qc-fl-main.is-static { cursor: default; }
.qc-fl-main.is-static:hover { background: transparent; }
.qc-fl-main:focus-visible, .qc-fl-dl:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: 1px; }
.qc-fl-badge { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; background: var(--ql-sunk); color: var(--ql-ink-2); }
.qc-fl-tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.qc-fl-n { font-size: 13px; font-weight: 500; color: var(--ql-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-fl-m { font-size: 12px; color: var(--ql-mute); }
.qc-fl-dl { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; color: var(--ql-ink-2); display: grid; place-items: center; }
.qc-fl-dl:hover { background: var(--ql-sunk); color: var(--ql-ink); }
.qc-fl-dl svg { width: 15px; height: 15px; }
.qc-fl-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 8px; }
.qc-fl-img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--ql-line); background: var(--ql-sunk); }
.qc-fl-img > button { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: block; }
.qc-fl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-fl-imgdl { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; background: var(--ql-card); box-shadow: var(--ql-sh-pop); opacity: 0; transition: opacity .12s; }
.qc-fl-img:hover .qc-fl-imgdl, .qc-fl-imgdl:focus-visible { opacity: 1; }
.qc-fl-empty { padding: 40px 20px; }
.qc-gone { display: flex; min-height: 60%; align-items: center; justify-content: center; }

.qc-share.qc-hbtn { display: inline-flex; align-items: center; width: auto; min-width: 32px; padding: 0 10px 0 6px; gap: 6px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ql-ink); }
.qc-share.qc-hbtn > svg { width: 15px; height: 15px; margin-left: 2px; color: var(--ql-ink-2); }
.qc-share.qc-hbtn[hidden] { display: none; }
.qc-share.is-stack { padding: 0 5px; }
.qc-share .qsh-badge { height: 22px; }
.qc-share .qsh-badge .ql-av-stack > .ql-av { box-shadow: 0 0 0 2px var(--ql-bg); }
.qc-share:hover .qsh-badge .ql-av-stack > .ql-av { box-shadow: 0 0 0 2px var(--ql-bg); }
.qc-share-t { white-space: nowrap; }
.qc-sbar[hidden] { display: none; }
.qc-sbar { flex-shrink: 0; padding-left: 24px; padding-right: 16px; }
.qc-sbar-btn { flex-shrink: 0; }
#chat-root.is-proj-view .qc-bar { display: none; }
#chat-root.is-proj .qc-jump, #chat-root.is-proj .qc-compose::before { display: none; }
.qc-proj[hidden] { display: none; }
.qc-proj { width: 100%; max-width: var(--qc-col); margin: 0 auto; padding: 12px 0 24px; box-sizing: border-box; }
.qc-proj-head { display: flex; align-items: center; gap: 14px; }
.qc-proj-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ql-sunk); color: var(--ql-ink-2); display: grid; place-items: center; flex-shrink: 0; }
.qc-proj-tile svg { width: 20px; height: 20px; }
.qc-proj-tt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qc-proj-name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--ql-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-proj-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--ql-mute); }
.qc-proj-meta .qsh-from { font-size: 12.5px; }
.qc-proj-dot { color: var(--ql-faint); }
.qc-proj-instr { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--ql-line); border-radius: 12px; background: var(--ql-card); }
.qc-proj-instr p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ql-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.qc-proj-lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ql-mute); }
.qc-proj-note { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--ql-mute); }
.qc-proj-sec { display: flex; align-items: center; gap: 8px; height: 32px; margin-top: 24px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ql-mute); border-bottom: 1px solid var(--ql-line); }
.qc-proj-sec .ql-num { letter-spacing: 0; font-weight: 500; }
.qc-plist { display: flex; flex-direction: column; }
.qc-prow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .12s; }
.qc-prow + .qc-prow { background-image: linear-gradient(var(--ql-line-2), var(--ql-line-2)); background-size: calc(100% - 20px) 1px; background-position: 10px 0; background-repeat: no-repeat; }
.qc-prow:not(.is-sk):hover, .qc-prow:not(.is-sk):hover + .qc-prow { background-image: none; }
.qc-prow:not(.is-sk):hover { background-color: var(--ql-side); }
.qc-prow:focus-visible { outline: 2px solid var(--ql-brand); outline-offset: -2px; }
.qc-prow .ql-av.qc-prow-av, .qc-prow-av.ql-sk { width: 32px; height: 32px; border-radius: 999px; font-size: 11.5px; flex-shrink: 0; }
.qc-prow .ql-av.qc-prow-av.is-you { background: var(--ql-brand-soft); color: var(--ql-brand-ink); }
.qc-prow-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qc-prow-t { font-size: 13.5px; font-weight: 500; color: var(--ql-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-prow-s { font-size: 12px; color: var(--ql-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-prow-s b { font-weight: 500; color: var(--ql-ink-2); }
.qc-prow-w { flex-shrink: 0; font-size: 12px; color: var(--ql-mute); font-variant-numeric: tabular-nums; }
.qc-plist-empty { padding: 28px 0; font-size: 13px; color: var(--ql-mute); }
.qc-rdo[hidden] { display: none; }
body.qc-rdo-on a[href*="download=1"] { display: none !important; }
.qc-rdo { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px 10px 14px; box-sizing: border-box; border: 1px solid var(--ql-line); border-radius: 16px; background: var(--ql-side); }
.qc-rdo-ico { width: 32px; height: 32px; border-radius: 999px; background: var(--ql-card); box-shadow: inset 0 0 0 1px var(--ql-line); color: var(--ql-mute); display: grid; place-items: center; flex-shrink: 0; }
.qc-rdo-ico svg { width: 16px; height: 16px; }
.qc-rdo-t { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--ql-ink-2); }
.qc-rdo-t b { font-weight: 600; color: var(--ql-ink); }
.qc-rdo-btn { flex-shrink: 0; gap: 6px; display: inline-flex; align-items: center; }
.qc-rdo-btn svg { width: 14px; height: 14px; }
#chat-root.is-rdo #composer-card, #chat-root.is-rdo .qc-under, #chat-root.is-rdo #px-cq-host, #chat-root.is-rdo #qc-edit { display: none !important; }
#chat-root.is-rdo .qc-bar { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
#chat-root.is-rdo .msg-actions [data-act="edit"], #chat-root.is-rdo .msg-actions [data-act="regen"], #chat-root.is-rdo .msg-actions [data-act="up"], #chat-root.is-rdo .msg-actions [data-act="down"] { display: none; }
body.qc-rdo-on #chat-tasks-btn { display: none; }
#messages > .qc-rdo-head { width: 100%; max-width: var(--qc-col); margin: 0 auto 18px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--ql-mute); }
.qc-rdo-head b { font-weight: 600; color: var(--ql-ink-2); }
.qc-rdo-head .ql-av.qc-rdo-av { width: 22px; height: 22px; font-size: 9px; }

@media (max-width: 1023px) {
  .qc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .qc-track { overflow-x: auto; scrollbar-width: none; scroll-padding: 0 4px; }
  .qc-track::-webkit-scrollbar { display: none; }
  .qc-tab { flex: 1 0 auto; padding: 0 12px; }
}

@media (max-width: 767px) {
  .qc-lim-acts { flex-direction: column; gap: 8px; }
  .qc-lim-btn { width: 100%; height: 44px; font-size: 15px; border-radius: 10px; }
  .qc-lim-plan { display: none; }
  #messages .qc-lim { max-width: none; }
  .ql-topbar:has(#chat-title) { padding: 0 4px; gap: 2px; }
  .ql-topbar:has(#chat-title) .ql-topbar-menu { width: 44px; height: 44px; margin-left: 0; border-radius: 10px; }
  .ql-topbar:has(#chat-title) .ql-topbar-title { flex: 1 1 auto; margin-left: 2px; }
  .ql-topbar:has(#chat-title) .ql-topbar-actions { gap: 0; }
  .qc-hbtn { width: 44px; height: 44px; border-color: transparent; background: transparent; border-radius: 10px; }
  .qc-hbtn svg { width: 18px; height: 18px; }
  #chat-tasks-btn:not([data-has-tasks="true"]) { display: none; }
  #px-pq-chip { display: none !important; }
  .qc-rename { flex: 1 1 auto; height: 40px; }
  .qc-thread { padding: 18px 16px 20px; scrollbar-width: none; }
  .qc-thread::-webkit-scrollbar { display: none; }
  #chat-root.is-home .qc-thread { padding: 0 16px; }
  .qc-sp-top { flex: 1 1 0px; min-height: 20px; }
  .qc-sp-bot { flex: 1 1 0px; min-height: 16px; }
  .qc-greet { font-size: 23px; line-height: 1.2; }
  .qc-modes { margin-top: 20px; }
  .qc-track { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; gap: 6px; border-radius: 0; background: transparent; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .qc-track::-webkit-scrollbar { display: none; }
  .qc-tab { flex: 0 0 auto; height: 44px; padding: 0 14px; background: var(--ql-sunk); color: var(--ql-ink-2); }
  .qc-sugg { margin-top: 18px; }
  .qc-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .qc-cards::-webkit-scrollbar { display: none; }
  .qc-pcard { flex: 0 0 236px; scroll-snap-align: start; }
  .qc-cards, .qc-track { scroll-padding: 0 16px; }
  .qc-setup { margin-top: 24px; }
  .qc-setup-grid { display: flex; flex-direction: column; }
  .qc-bar { padding: 8px 12px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .qc-compose::before { left: -12px; right: -12px; height: 100px; }
  #messages .px-agl { min-height: 0; padding: 6px 0; }
  .qc-ta { padding: 12px 14px 2px; min-height: 48px; font-size: 16px; max-height: 220px; }
  .qc-tool { height: 44px; }
  .qc-ibtn { width: 44px; }
  .qc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .qc-chips::-webkit-scrollbar { display: none; }
  .qc-send.px-sendstop.is-one > .px-send, .qc-send.px-sendstop.is-one > .px-stop { width: 44px; height: 44px; }
  .qc-disclaim.px-disclaim { display: none; }
  .qc-ubub.px-ubub { max-width: 88%; }
  .qc-files { max-width: 100%; }
  #chat-root .opt-prose .opt-table-wrap table { min-width: 520px; }
  #chat-root .opt-prose .opt-table-scroll { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); animation: none; }
  #chat-root .opt-table-foot { height: 48px; }
  #chat-root .opt-table-btn { height: 44px; padding: 0 12px; }
  .qc-pop-up {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; min-width: 0; max-width: none; max-height: 80dvh; padding: 8px 8px max(12px, env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: var(--ql-sh-sheet); z-index: 91; overflow: hidden;
    animation: ql-sheet-up .2s cubic-bezier(.16, 1, .3, 1);
  }
  .qc-pop-up::before { content: ""; display: block; flex-shrink: 0; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 999px; background: var(--ql-line); }
  #browser-menu.qc-pop-up, .qc-model-menu.qc-pop-up { width: auto; }
  .qc-model-menu.qc-pop-up { overflow-y: auto; }
  .qc-cm-hd { height: 36px; }
  .qc-cm-apps { min-height: 88px; max-height: none; }
  .qc-cm-app, .qc-cm-foot, .qc-mm-item.ql-menu-item { height: 44px; font-size: 15px; }
  .qc-cm-act { height: 36px; padding: 0 8px; font-size: 14px; }
  .qc-cm-cta.ql-btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .qc-cm-rt { font-size: 14px; }
  .qc-cm-rs, .qc-cm-note { font-size: 13px; }
  .qc-backdrop:not(.hidden) { position: fixed; inset: 0; background: var(--ql-scrim); z-index: 90; }
  .qc-fl-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-share.qc-hbtn { width: auto; padding: 0 6px; }
  .qc-share .qc-share-t { display: none; }
  .qc-sbar { padding: 10px 16px; flex-wrap: wrap; }
  .qc-sbar > .ql-grow { flex-basis: calc(100% - 28px); }
  .qc-sbar-btn.ql-btn { margin-left: 28px; height: 40px; }
  .qc-proj { padding: 8px 0 20px; }
  .qc-proj-name { font-size: 18px; }
  .qc-prow { min-height: 64px; }
  .qc-rdo { flex-wrap: wrap; gap: 10px 12px; padding: 12px; border-radius: 14px; }
  .qc-rdo-t { flex-basis: calc(100% - 44px); font-size: 14px; }
  .qc-rdo-btn.ql-btn { width: 100%; height: 44px; justify-content: center; font-size: 14.5px; }
  #messages > .qc-rdo-head { margin-bottom: 14px; }
}

@media (min-width: 768px) {
  .qc-backdrop { display: none !important; }
}

@media (min-width: 768px) and (pointer: coarse) {
  .qc-hbtn { width: 40px; height: 40px; }
  .qc-tab { height: 40px; }
  .qc-tool, .qc-deep { height: 40px; }
  .qc-ibtn { width: 40px; }
  .qc-send.px-sendstop.is-one > .px-send, .qc-send.px-sendstop.is-one > .px-stop { width: 40px; height: 40px; }
  .qc-slash-i { height: 44px; }
  .qc-lim-btn { height: 40px; padding: 0 14px; }
  .qc-fl-row { min-height: 48px; }
  .qc-pchip, .qc-more, .qc-edit-x, .qc-cx, .qc-cretry, .qc-srcpill, .qc-fl-imgdl, #chat-root .qc-code-copy, #chat-root .px-asum, #chat-root .px-act-btn, .qc-cm-act, .qc-cm-cta { position: relative; }
  .qc-pchip::after, .qc-more::after, .qc-edit-x::after, .qc-cx::after, .qc-cretry::after, .qc-srcpill::after, .qc-fl-imgdl::after, #chat-root .qc-code-copy::after, #chat-root .px-asum::after, #chat-root .px-act-btn::after, .qc-cm-act::after, .qc-cm-cta::after {
    content: ""; position: absolute; top: min(0px, calc(50% - 20px)); bottom: min(0px, calc(50% - 20px)); left: min(0px, calc(50% - 20px)); right: min(0px, calc(50% - 20px));
  }
}
@media (min-width: 768px) and (hover: none) {
  .qc-fl-imgdl { opacity: 1; }
}

@media (min-width: 768px) and (pointer: coarse) {
  .qc-cm-foot, .qc-mm-item.ql-menu-item { height: 40px; }
  .qc-cm-act { height: 32px; }
  .qc-cm-cta.ql-btn { height: 32px; }
  #chat-root .px-asum { height: 40px; }
  #chat-root .px-act-btn { width: 40px; height: 40px; }
  #chat-root { --px-bar-slot: 44px; }
  #chat-root .opt-table-btn, #chat-root .qc-code-copy, #chat-root .px-terr-btn { height: 40px; }
  .qc-chip { height: 40px; }
  .qc-cx { width: 40px; height: 40px; }
  .qc-cmain, .qc-cretry { min-height: 40px; }
  .qc-ref-btn, .qc-sources, .qc-fl-dl { min-height: 40px; }
  .qc-fl-dl { min-width: 40px; }
  .qc-vdock .px-vtt-btn { width: 40px; height: 40px; }
  #chat-root .qc-jump { height: 40px; }
  #chat-root .px-thead { min-height: 40px; }
}

@media (max-width: 767px) and (pointer: coarse) {
  .qc-pchip, .qc-more, .qc-edit-x, .qc-cx, .qc-cretry, .qc-srcpill, .qc-fl-dl, .qc-sources, #chat-root .qc-code-copy, #chat-root .opt-table-btn, #chat-root .px-asum, #chat-root .px-act-btn { position: relative; }
  .qc-pchip::after, .qc-more::after, .qc-edit-x::after, .qc-cx::after, .qc-cretry::after, .qc-srcpill::after, .qc-fl-dl::after, .qc-sources::after, #chat-root .qc-code-copy::after, #chat-root .opt-table-btn::after, #chat-root .px-asum::after, #chat-root .px-act-btn::after {
    content: ""; position: absolute; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); left: min(0px, calc(50% - 22px)); right: min(0px, calc(50% - 22px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .qc-lift, .qc-pcard, .qc-tab { transition: none; }
  #chat-root .px-stall.px-caret, .qc-vdock .px-vtt-dot { animation: none; }
  #messages > .px-msg.msg-enter { animation: none; }
  .qc-pop-up, .qc-cm-pulse { animation: none; }
}
