/* thinking-pill.css — 思考链入口行（塔拉 10-12「心声与思考抽屉」批 1，配 thinking-pill.js）
   以前在 script.js _ensureStreamCSS 里注入的「渐变边框盒子 + 原地展开」外观搬到这里并改成一行入口；
   _ensureStreamCSS 只留布局（与气泡同源宽度）那几条。仿 Claude / 仿 ChatGPT 皮的规则带 .chat-ui-mode-* 前缀，
   更具体，照旧盖过这里。 */

.stream-thinking {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 2px;
}

.stream-thinking .thinking-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px 4px 2px;
    border-radius: 9px;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--text) 60%, transparent);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.stream-thinking .thinking-header:hover,
.stream-thinking .thinking-header:focus-visible {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    outline: none;
}

.stream-thinking .thinking-header:active {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.az-think-pill .az-think-ico {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.az-think-pill .az-think-ico circle {
    fill: currentColor;
    stroke: none;
}

.az-think-pill .az-think-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.az-think-pill .az-think-chev {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.az-think-pill .thinking-toggle { display: none; }

.az-think-pill.is-live .az-think-label {
    animation: az-think-breathe 1.6s ease-in-out infinite;
}

@keyframes az-think-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* 正文是抽屉的数据源，聊天里不显示 */
.stream-thinking .thinking-body {
    display: none;
}

/* 心声（手写 [thinking]，批 2）同样只给抽屉读；两套皮不认识这个类 ⇒ 这里对所有皮都藏 */
.stream-thinking .az-inner-voice {
    display: none !important;
}

/* 兜底：thinking-pill.js 没加载时 script.js 给的最小块仍能原地展开 */
.stream-thinking.expanded .thinking-body {
    display: block;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 12px 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.6;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
    .az-think-pill.is-live .az-think-label { animation: none; }
}
