/* 聊天页。class 一律 ct- 开头 */
.ct { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* 顶栏：雾感暗青，左上压一角蕾丝 */
.ct-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; color: var(--on-dark); padding: var(--status-h) 10px 10px 8px;
  background: var(--chat-top); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); box-shadow: 0 2px 12px rgba(46, 56, 62, .14); border-bottom: 1px solid rgba(244, 238, 231, .18); }
.ct-bar { position: relative; height: 50px; display: flex; align-items: center; gap: 8px; }
.ct-ib { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--on-dark); background: none; border: 0; padding: 0; flex: none; }
.ct-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ct-av { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--teal-soft); border: 1px solid rgba(244, 238, 231, .5); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ct-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ct-av .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #9FB394; box-shadow: 0 0 0 2px var(--teal); }
.ct-who .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-who b { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-who small { font-size: 10.5px; color: var(--lace); opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 用量小圆环 */
.ct-ring { position: relative; width: 34px; height: 34px; }
.ct-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ct-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 11px; }

/* 消息区 */
.ct-body { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.ct-body .lace-edge { top: 0; }
.ct-body .lilac { position: absolute; right: 0; top: calc(var(--status-h) + 52px); width: 74px; opacity: .85; pointer-events: none; }
.ct-list { position: relative; padding: calc(var(--status-h) + 76px) 26px 18px; display: flex; flex-direction: column; gap: 14px; }

.ct-div { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; color: var(--ink-2); letter-spacing: 2px; margin: 4px 0; }
.ct-div::before, .ct-div::after { content: ''; width: 46px; height: 1px; background: var(--line); }

.ct-row { display: flex; align-items: flex-end; gap: 8px; }
.ct-row.me { justify-content: flex-end; }
.ct-row .av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--teal-soft); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; align-self: flex-start; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.ct-row .av.ghost { visibility: hidden; }
.ct-col { display: flex; flex-direction: column; gap: 4px; max-width: 82%; min-width: 0; }
.ct-line .ct-b, .ct-line .ct-img { min-width: 0; }
.ct-row.me .ct-col { align-items: flex-end; }
.ct-line { display: flex; align-items: flex-end; gap: 4px; }
.ct-row.me .ct-line { justify-content: flex-end; }
.ct-meta { display: flex; align-items: center; gap: 3px; font-family: var(--font-serif); font-size: 11px; line-height: 14px; color: #81766F; white-space: nowrap; flex: none; padding-bottom: 2px; }
.ct-meta .ico { width: 14px; height: 9px; color: var(--mauve-btn); }

.ct-b { padding: 10px 14px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; border-radius: 18px; }
.ct-b.ai { background: var(--bubble-ai); border: 1px solid var(--lace); border-top-left-radius: 6px; box-shadow: 0 2px 6px rgba(81, 75, 74, .07); color: var(--ink); }
.ct-b.me { background: var(--bubble-me); color: #FBF8F4; border-bottom-right-radius: 6px; box-shadow: 0 3px 8px rgba(112, 100, 119, .22); }
.ct-asr { display: inline-flex; vertical-align: -1px; margin-right: 5px; opacity: .75; }
.ct-asr .ico { width: 12px; height: 12px; }

/* 思考过程：一行小字，和头像对齐；两层折叠（收起 → 摘要 → 全部） */
.ct-think { align-self: flex-start; margin: -4px 0 -2px 2px; max-width: 78%; }
.ct-think .head { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; color: var(--mauve-deep); font-size: 11px; letter-spacing: .5px; }
.ct-think .head .ico { width: 12px; height: 12px; }
.ct-think .head .dn { width: 8px; height: 5px; transition: transform .2s; }
.ct-think[data-level="1"] .head .dn, .ct-think[data-level="2"] .head .dn { transform: rotate(180deg); }
.ct-think .brief, .ct-think .full { display: none; margin: 4px 0 0 16px; font-size: 11.5px; line-height: 1.7; font-style: italic; color: var(--ink-2); }
.ct-think[data-level="1"] .brief { display: block; }
.ct-think[data-level="2"] .full { display: block; }
.ct-think .more { border: 0; background: none; padding: 0; margin-left: 4px; font-size: 11px; font-style: normal; color: var(--mauve-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mauve-pale); }

/* 克的语音条：播放、波形、时长、收藏（=保存原声）、转文字 */
.ct-voice { display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 9px 10px 9px 9px; }
.ct-voice .pl { width: 32px; height: 32px; border-radius: 50%; background: var(--mauve-btn); color: var(--paper); border: 0; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.ct-voice .pl .ico { width: 14px; height: 14px; margin-left: 2px; }
.ct-voice .wave { flex: 1; height: 22px; }
.ct-voice .wave rect { fill: var(--mauve); }
.ct-voice .d { font-family: var(--font-serif); font-size: 13px; color: var(--ink-2); flex: none; }
.ct-voice .st { width: 28px; height: 28px; border: 0; background: none; padding: 0; color: var(--mauve-btn); display: flex; align-items: center; justify-content: center; flex: none; }
.ct-voice .st .ico { width: 17px; height: 17px; }
.ct-voice .vt { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; padding: 0; color: var(--mauve-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.ct-voice .vt.on { background: rgba(169, 154, 170, .18); }
.ct-vtext { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); padding: 2px 6px; border-left: 2px solid var(--mauve-pale); margin-left: 6px; }

/* 图片 */
.ct-img { position: relative; width: 220px; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 10px rgba(81, 75, 74, .16); border: 3px solid var(--card); }
.ct-img img { display: block; width: 100%; height: auto; }
.ct-img .ct-meta { position: absolute; right: 6px; bottom: 5px; color: var(--paper); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.ct-img .ct-meta .ico { color: var(--paper); }

/* 底部输入栏 */
.ct-in { position: relative; flex: none; padding: 10px 14px 6px; background: var(--paper); border-top: 1px solid var(--lace); display: flex; align-items: flex-end; gap: 8px; }
.ct-in .bow { position: absolute; right: 6px; top: -26px; width: 48px; filter: drop-shadow(0 2px 2px rgba(81, 75, 74, .16)); pointer-events: none; }
.ct-in .r { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); color: var(--mauve-deep); padding: 0; }
.ct-in .box { flex: 1; min-width: 0; display: flex; align-items: flex-end; border-radius: 21px; background: var(--card); border: 1px solid var(--line); padding: 0 6px 0 14px; }
.ct-in textarea { flex: 1; min-width: 0; height: 40px; max-height: 120px; border: 0; outline: 0; resize: none; background: none; padding: 10px 0; font-size: 14.5px; line-height: 20px; color: var(--ink); }
.ct-in textarea::placeholder { color: #A39A93; }
.ct-in .emo { width: 34px; height: 40px; border: 0; background: none; padding: 0; color: var(--mauve-deep); display: flex; align-items: center; justify-content: center; }
.ct-in .r.go { background: var(--mauve-btn); border-color: var(--mauve-btn); color: var(--paper); }

/* 工具调用：一行小字，点开看每一步 */
.ct-tools { align-self: flex-start; margin: -4px 0 -2px 2px; max-width: 86%; }
.ct-tools .head { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; color: var(--teal); font-size: 11px; letter-spacing: .5px; }
.ct-tools .head .ico { width: 13px; height: 13px; }
.ct-tools .head em { font-style: normal; color: #A0605A; }
.ct-tools .head .dn { width: 8px; height: 5px; transition: transform .2s; }
.ct-tools.open .head .dn { transform: rotate(180deg); }
.ct-tools ol { display: none; list-style: none; margin: 6px 0 0 16px; padding: 8px 10px; border-left: 2px solid var(--teal-pale); background: rgba(252, 250, 246, .6); border-radius: 0 10px 10px 0; }
.ct-tools.open ol { display: block; }
.ct-tools li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 22px; color: var(--ink-2); }
.ct-tools li b { font-weight: 500; color: var(--teal); flex: none; }
.ct-tools li code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-tools li i { font-style: normal; color: var(--sage); flex: none; }
.ct-tools li.bad i { color: #A0605A; }

/* 审批卡、选项卡：信纸小卡，左边一道颜色 */
.ct-card { align-self: stretch; margin-left: 42px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--lace); box-shadow: 0 3px 10px rgba(81, 75, 74, .08); position: relative; overflow: hidden; }
.ct-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal-soft); }
.ct-card .hd { display: flex; align-items: center; gap: 6px; color: var(--teal); }
.ct-card .hd b { font-size: 14px; font-weight: 500; color: var(--ink); }
.ct-card .why { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.ct-card .cmd { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #EFE9E3; font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.6; color: var(--teal-deep); white-space: pre-wrap; word-break: break-all; }
.ct-card .acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.ct-card .acts button { height: 34px; border-radius: 17px; font-size: 12.5px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.ct-card .acts .yes { background: var(--mauve-btn); border-color: var(--mauve-btn); color: var(--paper); }
.ct-card .acts .no { color: #8A5A55; }
.ct-card .acts button:disabled { opacity: .5; }
.ct-card .res { margin: 8px 0 0; font-size: 12px; color: var(--sage); }
.ct-card.done { opacity: .85; }

.ct-ask::before { background: var(--mauve); }
.ct-ask .hd { color: var(--mauve-deep); }
.ct-ask .opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ct-ask .opts button { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--lace); background: var(--paper); font-size: 13.5px; color: var(--ink); text-align: left; }
.ct-ask .opts .n { width: 20px; height: 20px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 12px; color: var(--mauve-deep); border: 1px solid var(--mauve-pale); }
.ct-ask .opts button[aria-pressed="true"] { border-color: var(--mauve-btn); background: rgba(169, 154, 170, .16); }
.ct-ask .opts button[aria-pressed="true"] .n { background: var(--mauve-btn); border-color: var(--mauve-btn); color: var(--paper); }
.ct-ask .opts button:disabled:not([aria-pressed="true"]) { opacity: .5; }
.ct-ask .own { margin-top: 8px; border: 0; background: none; padding: 2px 0; font-size: 12px; color: var(--mauve-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mauve-pale); }

/* 长按菜单：复制 / 收藏 */
.ct-menu-wrap { position: absolute; inset: 0; z-index: 20; }
.ct-menu-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(70, 86, 94, .12); cursor: default; }
.ct-menu { position: absolute; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(252, 250, 246, .97); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(46, 56, 62, .2); animation: ct-pop .14s ease-out; }
.ct-menu button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 11.5px; }
.ct-menu button .ico { width: 18px; height: 18px; color: var(--mauve-deep); }
.ct-menu button:hover, .ct-menu button:focus-visible { background: rgba(169, 154, 170, .14); outline: none; }
.ct-b.pressed, .ct-img.pressed { position: relative; z-index: 21; box-shadow: 0 0 0 2px var(--mauve-pale), 0 6px 16px rgba(46, 56, 62, .16); }
@keyframes ct-pop { from { opacity: 0; transform: translateY(4px) scale(.96) } }

/* 九项长按菜单：两排 */
.ct-menu { flex-wrap: wrap; justify-content: flex-start; }
.ct-menu button { width: 62px; min-width: 0; padding: 7px 0; }
.ct-menu button.danger, .ct-menu button.danger .ico { color: #9A6560; }

/* 引用：输入框上方的预览条 + 气泡里的引用块 */
.ct-quote { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px 7px 16px; background: rgba(252, 250, 246, .96); border-top: 1px solid var(--lace); font-size: 12px; color: var(--ink-2); }
.ct-quote span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--mauve-pale); padding-left: 8px; }
.ct-quote b, .ct-qt b { font-weight: 500; margin-right: 6px; color: var(--mauve-deep); }
.ct-quote button { width: 28px; height: 28px; border: 0; background: none; padding: 0; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.ct-qt { display: block; margin: -2px -4px 6px; padding: 5px 8px; border-radius: 8px; font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.ct-b.me .ct-qt { background: rgba(255, 255, 255, .16); color: #EDE5E8; }
.ct-b.me .ct-qt b { color: #FBF8F4; }
.ct-b.ai .ct-qt { background: #F1EBE5; color: var(--ink-2); }

/* 翻译结果：气泡下面一行小字 */
.ct-tr { display: flex; gap: 5px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--ink-2); padding: 2px 6px; }
.ct-tr .ico { width: 12px; height: 12px; margin-top: 3px; color: var(--mauve-deep); }

.ct-quote + .ct-in .bow { display: none; }
.ct-menu { gap: 2px; padding: 5px; }

/* 加号面板：输入栏上面一排 */
.ct-plus { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 6px; background: var(--paper); border-top: 1px solid var(--lace); }
.ct-plus[hidden] { display: none; }
.ct-plus button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--ink); }
.ct-plus button .ico { width: 54px; height: 54px; padding: 15px; border-radius: 16px; background: var(--card); border: 1px solid var(--lace); box-shadow: 0 2px 6px rgba(81, 75, 74, .07); color: var(--mauve-deep); box-sizing: border-box; }
.ct-in .r[data-act="plus"] .ico { transition: transform .2s; }
.ct-in .r[data-act="plus"].on .ico { transform: rotate(45deg); }
.ct-plus:not([hidden]) + .ct-f + .ct-f + .ct-f + .ct-in .bow, .ct-atts:not([hidden]) ~ .ct-in .bow { display: none; }

/* 选好待发的图片和文件 */
.ct-atts { flex: none; display: flex; gap: 8px; padding: 10px 16px 4px; overflow-x: auto; background: var(--paper); border-top: 1px solid var(--lace); }
.ct-atts[hidden] { display: none; }
.ct-att { position: relative; flex: none; height: 58px; display: flex; align-items: center; gap: 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--lace); }
.ct-att img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.ct-att > .ico { margin-left: 10px; color: var(--mauve-deep); }
.ct-att em { font-style: normal; font-size: 12px; max-width: 110px; padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-att button { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; }

/* 文件消息 */
.ct-file { display: flex; align-items: center; gap: 10px; min-width: 180px; text-decoration: none; }
.ct-file .ico { width: 30px; height: 30px; flex: none; }
.ct-b.me.ct-file .ico { color: #FBF8F4; }
.ct-b.ai.ct-file .ico { color: var(--mauve-deep); }
.ct-file span { display: flex; flex-direction: column; min-width: 0; }
.ct-file b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.ct-file small { font-family: var(--font-serif); font-size: 11.5px; opacity: .8; }

/* 看大图 */
.ct-view { position: absolute; inset: 0; z-index: 30; background: rgba(30, 32, 36, .94); display: flex; align-items: center; justify-content: center; animation: ct-pop .18s ease-out; }
.ct-view img { max-width: 100%; max-height: 82%; object-fit: contain; }
.ct-view button { position: absolute; top: calc(var(--status-h) + 8px); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; }
.ct-view .x { left: 16px; }
.ct-view .sv { right: 16px; }

/* 输入框下面一排：模型 / 思考强度 / 审批模式（小签，点了上面弹一张卡） */
.ct-opts { flex: none; display: flex; gap: 6px; padding: 0 14px calc(10px + var(--safe-b)) 64px; background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.ct-opts::-webkit-scrollbar { display: none; }
.ct-opts button { flex: none; height: 26px; padding: 0 8px 0 6px; border-radius: 13px; border: 1px solid var(--lace); background: var(--card); color: var(--ink-2); font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.ct-opts button > i { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(169, 154, 170, .16); color: var(--mauve-deep); }
.ct-opts button .v { color: var(--ink); max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-opts button > .ico:last-child { color: var(--ink-2); opacity: .7; transition: transform .2s; }
.ct-opts button[aria-expanded="true"] { border-color: var(--mauve-pale); background: rgba(169, 154, 170, .12); }
.ct-opts button[aria-expanded="true"] > .ico:last-child { transform: rotate(180deg); }
.ct-opts button.risk { border-color: rgba(142, 90, 99, .45); }
.ct-opts button.risk > i { background: rgba(142, 90, 99, .12); color: #8E5A63; }
.ct-opts button.risk .v { color: #8E5A63; }

.ct-optpop { position: absolute; z-index: 30; width: 236px; padding: 10px 8px 8px; border-radius: 4px 16px 4px 16px;
  background-color: var(--card); background-image: radial-gradient(rgba(169, 154, 170, .14) .6px, transparent .7px); background-size: 5px 5px;
  box-shadow: 0 0 0 1px var(--lace), 0 0 0 4px rgba(252, 250, 246, .9), 0 0 0 5px var(--lace), 0 12px 28px rgba(60, 50, 62, .22); animation: ct-pop .18s ease-out; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(6px); } }
.ct-optpop .hd { margin: 0 6px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; color: var(--mauve-deep); }
.ct-optpop .hd small { font-size: 10px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.ct-optpop button { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 30px 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink); }
.ct-optpop button + button { margin-top: 2px; }
.ct-optpop button b { font-size: 13.5px; font-weight: 500; }
.ct-optpop button i { font-style: normal; font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }
.ct-optpop button em { position: absolute; right: 10px; top: 50%; margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--paper); background: var(--mauve-btn); opacity: 0; }
.ct-optpop button[aria-pressed="true"] { background: rgba(169, 154, 170, .14); }
.ct-optpop button[aria-pressed="true"] b { color: var(--mauve-deep); }
.ct-optpop button[aria-pressed="true"] em { opacity: 1; }
.ct-optpop button.risk b { color: #8E5A63; }
.ct-optpop button.risk[aria-pressed="true"] em { background: #8E5A63; }

/* 双方都有头像和名字：一串消息的第一条带，后面的头像位置留空（气泡对齐） */
.ct-row .av { overflow: hidden; }
.ct-row .av img { width: 100%; height: 100%; object-fit: cover; }
.ct-row .av.me { background: var(--mauve-btn); }
.ct-row.first:not(:first-child) { margin-top: 6px; }
.ct-col { max-width: 74%; }
.ct-name { font-size: 11.5px; letter-spacing: 1px; color: var(--ink-2); padding: 0 4px; line-height: 1.2; }
.ct-row.ai .ct-name { color: var(--teal); }
.ct-row.me .ct-name { color: var(--mauve-deep); }

/* 模型 / 思考强度选单里我们加的东西（2026-12-02，对标官方 App）：太长能滚；「默认」「推荐」小标；「更多模型」折叠；底下的小字和 Ultracode 开关 */
.ct-optpop { max-height: min(70vh, 460px); overflow-y: auto; }
.ct-optpop button b u { margin-left: 6px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--teal-pale); font-size: 9.5px; font-weight: 400; line-height: 15px; color: var(--teal); text-decoration: none; vertical-align: 1px; }
.ct-optpop button.fold { flex-direction: row; align-items: baseline; gap: 6px; margin-top: 4px; padding-right: 10px; border-top: 1px dashed var(--line); border-radius: 0; }
.ct-optpop button.fold i { flex: 1; }
.ct-optpop button.fold .ico { flex: none; align-self: center; color: var(--ink-2); transform: rotate(90deg); transition: transform .2s; }
.ct-optpop button.fold[aria-expanded="true"] .ico { transform: rotate(-90deg); }
.ct-optpop .more[hidden] { display: none; }
.ct-optpop .more button + button { margin-top: 2px; }
.ct-optpop .ft { margin: 8px 8px 2px; font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }
.ct-optpop .ft button { display: inline; width: auto; padding: 0; margin-left: 4px; font-size: 10.5px; color: var(--mauve-deep); text-decoration: underline; }
.ct-optpop .sw { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 10px 4px; border-top: 1px dashed var(--line); cursor: pointer; }
.ct-optpop .sw span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ct-optpop .sw b { font-size: 13.5px; font-weight: 500; }
.ct-optpop .sw span i { font-style: normal; font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }
.ct-optpop .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-optpop .sw .t { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line); transition: background .2s; }
.ct-optpop .sw .t::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(81, 75, 74, .25); transition: transform .2s; }
.ct-optpop .sw input:checked + .t { background: var(--mauve-btn); }
.ct-optpop .sw input:checked + .t::after { transform: translateX(16px); }
.ct-optpop .sw input:disabled + .t { opacity: .5; }

/* 我们加的：他忙着的时候，头像右下角那个表示在线的绿点自己一闪一闪（闪法和聊天列表里「正在忙」那个一样）。
   一开始是在状态文字左边另加一个小点，小苏觉得和头像上的绿点重复，改成这样（2026-12-03）。
   只让绿色本身变淡再变回来；外面那圈描边不动，不然头像的边会透出来。 */
.ct-av .on.live { animation: ct-on-pulse 1.6s ease-in-out infinite; }
@keyframes ct-on-pulse { 50% { background: color-mix(in srgb, #9FB394 30%, var(--teal)); } }
