.thinking-toggle-wrapper { margin: 6px 0 4px; padding-left: 42px; }
.thinking-glass { max-width: min(88%, 560px); }
.thinking-glass > summary {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    list-style: none; padding: 7px 13px; border-radius: 999px;
    color: var(--text-color, #505666); font: inherit; font-size: 11px;
    background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(230,236,247,.35));
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 2px rgba(255,255,255,.4), 0 3px 12px rgba(50,65,95,.1);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    user-select: none;
}
.thinking-glass > summary::-webkit-details-marker { display: none; }
.thinking-glass > summary::before { content: '✦'; opacity: .65; }
.thinking-glass > summary:focus-visible { outline: 2px solid var(--primary-color, #7288ac); outline-offset: 3px; }
.thinking-glass-content {
    white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow: auto;
    padding: 14px; margin: 9px 0; border-radius: 16px; line-height: 1.65; font: inherit; font-size: 12px;
    background: rgba(248,250,255,.85); color: #414956; border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 5px 18px rgba(50,65,95,.08);
}
#setting-smart-reply-level { max-width: 130px; border: 1px solid #e3e6ed; border-radius: 9px; padding: 7px; background: #fff; color: #444; }
/* 沿用原状态栏分页与滚动，仅补充外部玻璃按钮和背面文本。 */
.status-slide-inner[hidden], .status-glass-action[hidden] { display:none; }
.status-thinking-text { width:100%; box-sizing:border-box; white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; line-height:1.7; padding:18px; border-radius:20px; color:#414956; background:linear-gradient(135deg,rgba(248,250,255,.88),rgba(231,237,248,.78)); border:1px solid rgba(255,255,255,.9); box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 2px rgba(255,255,255,.4),0 5px 18px rgba(50,65,95,.1); backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); }
.status-face-empty { text-align:center; color:#999; }
.status-glass-action { position:absolute; bottom:80px; left:50%; transform:translateX(-50%); width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid rgba(255,255,255,.5); background:rgba(255,255,255,.24); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); box-shadow:0 4px 15px rgba(0,0,0,.1); color:#333; cursor:pointer; z-index:1003; }
#status-delete-current { left:calc(50% - 64px); }
#status-flip-face { left:calc(50% + 64px); width:44px; height:44px; }
#status-flip-face svg { width:22px; height:22px; }
.status-delete-picker { position:absolute; inset:0; z-index:1005; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.12); }
.status-delete-options { width:min(82%,300px); padding:18px; border-radius:22px; background:rgba(255,255,255,.78); border:1px solid rgba(255,255,255,.65); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); box-shadow:0 12px 36px #0002; color:#333; }
.status-delete-options p { text-align:center; margin:0 0 14px; }
.status-delete-options button { display:block; width:100%; margin:7px 0; padding:11px 8px; border-radius:13px; border:1px solid #fff7; background:#ffffff55; color:inherit; font:inherit; cursor:pointer; }
.status-delete-options button:disabled { opacity:.35; cursor:default; }
.status-glass-action:disabled { opacity:.35; cursor:default; }
.status-panel-overlay .close-status-panel { background:rgba(255,255,255,.24); border:1px solid rgba(255,255,255,.5); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }

/* 描述可换行，右侧开关固定宽度，不随文字收缩或溢出。 */
.thinking-setting-item { gap:14px; }
.thinking-setting-item > .kkt-item-content { flex:1 1 0; min-width:0; }
.thinking-setting-item .kkt-item-title, .thinking-setting-item .kkt-item-subtitle { white-space:normal; overflow-wrap:anywhere; }
.thinking-setting-item > .kkt-switch { flex:0 0 44px; width:44px; min-width:44px; margin-left:0; }

/* 仅思维链背面的编辑工具，不改状态模板与外部按钮。 */
.status-thinking-tools { display:inline-flex; align-items:center; white-space:normal; margin:0 0 14px; border-radius:999px; border:1px solid #ffffffaa; background:linear-gradient(135deg,#ffffffbb,#e6ecf759); box-shadow:inset 0 1px 0 #fffffff2,0 3px 12px #32415f19; overflow:hidden; }
.status-thinking-tools button { width:46px; height:36px; display:flex; align-items:center; justify-content:center; padding:0; border:0; background:transparent; color:#414956; cursor:pointer; }
.status-thinking-tools button + button { border-left:1px solid #ffffff99; }
.status-thinking-tools button:disabled { opacity:.4; cursor:default; }
.status-thinking-body { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:inherit; margin:0; padding:0; }
.status-thinking-editor { display:block; box-sizing:border-box; width:100%; min-height:36vh; padding:12px; border:1px solid #ffffffbb; border-radius:12px; background:#ffffff44; color:inherit; font:inherit; line-height:inherit; resize:vertical; }
.status-thinking-notice { white-space:normal; font-size:12px; color:#984b40; margin:10px 0 0; }
.status-thinking-editor[hidden], .status-thinking-tools[hidden], .status-thinking-body[hidden], .status-thinking-notice[hidden] { display:none; }
