/* Approved conversation study. Keep the existing shell and real controls. */
#sidebar :is(.new-chat,.drawer-shortcuts button,.side-links button){color:var(--sidebar-ink)!important}
/* 夜间新对话按钮：白填充上是黑字黑图标，不被上面的 sidebar-ink 浅色压掉 */
:root[data-theme="dark"] #sidebar .new-chat{color:#292929!important}
/* 深度思考中状态行：背景透明，直接融入聊天背景（夜间不再出现深色底框，字色保留） */
#transcript .run-process>summary .run-state-running{background:transparent!important}
#sidebar .side-links{display:flex;flex-direction:column;gap:0;padding-top:6px}
#sidebar .side-links button{min-height:40px;padding:6px 9px;font-size:17px!important;font-weight:400;line-height:1.5}
#sidebar .side-links svg{width:20px;height:20px}
#sidebar .side-foot{display:none}
#conversations{padding-bottom:4px}
#conversations>.workspace-project-section{padding-top:4px;border-top:0}
#conversations :is(.workspace-list-heading,.workspace-recent-target){min-height:40px;margin:8px 0 4px;padding:0 8px;gap:8px;color:var(--sidebar-ink);letter-spacing:normal}
#conversations :is(.workspace-recent-target>span,.project-master-toggle){font-size:17px!important;font-weight:400;line-height:1.6}
#conversations .project-master-toggle{min-height:40px}
#conversations :is(.workspace-create,.history-search-toggle){width:36px;min-width:36px;height:36px;min-height:36px}
#conversations .workspace-folder{margin:0}
#conversations .workspace-folder-line{border:0;border-radius:8px}
#conversations .workspace-folder-toggle{min-height:38px;gap:10px;padding:6px 8px;border-radius:8px;font-size:16px!important;font-weight:400;line-height:26px}
#conversations .workspace-folder-toggle>span{font-size:16px;font-weight:400;line-height:26px}
#conversations .workspace-folder-toggle>svg{width:16px;height:16px;color:var(--sidebar-ink)}
#conversations .workspace-folder-menu{width:28px;min-width:28px;height:32px;min-height:32px;padding:0}
#conversations .workspace-folder-menu svg{width:16px;height:16px}
#conversations .workspace-folder-children{margin:2px 0 4px 28px;padding:0;border:0}
#conversations .workspace-history-row .history-title{display:flex;align-items:center;gap:9px;min-height:40px;padding:6px 8px;font-size:17px!important;font-weight:400;line-height:1.4}
.history-title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-chat-mark{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:8px;background:#f6f7f4;color:#858c80}
#conversations .history-chat-mark svg{width:18px;height:18px;color:inherit}
:root[data-theme="dark"] .history-chat-mark{background:#3b3f37;color:#adb4a5}
#composer #quick-actions{display:flex;align-items:stretch;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 1px 15px;scrollbar-width:none}
#composer #quick-actions[hidden]{display:none}
#composer .quick-action:not(.quick-action-more){display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;flex:0 0 calc((100% - 12px)/1.85);min-width:0;min-height:0;padding:12px;border:0;border-radius:20px;background:var(--composer-surface);color:var(--chat-text);text-align:left;white-space:normal;scroll-snap-align:start;gap:0}
.quick-card-heading{display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:28px;margin-bottom:6px}
#composer .quick-card-heading>strong{min-width:0;font-size:16px;font-weight:610;line-height:1.5;letter-spacing:-.025em;overflow-wrap:anywhere;white-space:normal}
.quick-card-mark{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:8px;background:var(--quick-icon-fill)}
#composer .quick-card-mark svg{width:18px!important;height:18px!important}
#composer .quick-card-description{display:block;max-width:100%;margin:0;font-size:12px;line-height:1.65;color:var(--chat-muted);text-wrap:pretty}
#composer .quick-action-more{flex:0 0 62px;flex-direction:column;justify-content:center;border:0;background:transparent;padding:9px 8px;font-size:12px;white-space:normal}
#composer .quick-action[data-quick-kind="expert"]{--quick-icon-fill:#eee5da}
#composer .quick-action[data-quick-kind="expert"] .quick-card-mark{color:#987b5a}
.run-process{margin:3px 0 0;border:0}
.run-process>summary{min-height:44px;padding:5px 0;gap:9px;font-size:13px;line-height:1.5}
.run-process>summary .run-state-badge{padding:0;border-radius:0;background:transparent;font-size:13px;font-weight:400;line-height:1.5;gap:8px;color:var(--chat-muted)}
.run-process>summary>[data-clock]{font-size:12px;color:var(--chat-muted)}
.run-state-running .run-state-glyph{display:contents;border:0;animation:none}
.run-process .execution-chevron{font-size:19px}
.pal-cosmic-activity{display:block;position:relative;flex:none;width:26px;height:26px;color:#929e8c}
.pal-cosmic-shape{display:grid;place-items:center;position:absolute;inset:0;opacity:0;transform:scale(.65) rotate(-12deg);animation:pal-cosmic-glint 5.5s ease-in-out infinite;animation-delay:calc(var(--shape-index)*1.1s - var(--cosmic-elapsed,0s))}
.pal-cosmic-shape svg{display:block;width:23px;height:23px;max-width:none;max-height:none;stroke-width:1.4}
.pal-cosmic-shape:nth-child(2n){color:#ac9984}
.execution-step.in_progress .execution-dot{width:20px;height:20px;top:12px;left:-3px;border:0;border-radius:0;background:transparent;animation:none}
.execution-dot .pal-cosmic-activity{width:20px;height:20px}.execution-dot .pal-cosmic-shape svg{width:18px;height:18px}
.pal-activity-label{display:inline-block;position:relative;flex:none;width:calc(var(--type-width) + 3px);height:1.5em;line-height:1.5}
.pal-type-line{display:block;box-sizing:content-box;width:0;height:1.5em;white-space:nowrap;overflow:hidden;border-right:2px solid currentColor;animation:pal-typewriter 2.8s cubic-bezier(.35,0,.25,1) infinite,pal-type-caret .65s step-end infinite}
@keyframes pal-cosmic-glint{0%,19%,100%{opacity:0;transform:scale(.65) rotate(-12deg)}4%,13%{opacity:1;transform:scale(1) rotate(0deg)}17%{opacity:.15;transform:scale(.9) rotate(10deg)}}
@keyframes pal-typewriter{0%,4%{width:0}28%,70%{width:var(--type-width)}90%,100%{width:0}}
@keyframes pal-type-caret{0%,65%{border-right-color:currentColor}66%,100%{border-right-color:transparent}}
.execution-process-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0 0;padding-top:10px;border-top:1px solid var(--sidebar-line)}
.execution-process-controls button{min-height:36px;border:0;background:transparent;font-size:12px;color:var(--chat-muted);padding:6px}
.execution-process-controls button:last-child{margin-left:auto}
#app .message-user{width:fit-content;min-height:0;max-width:84%;margin:4px 0 22px auto;padding:11px 17px;border-radius:22px 22px 7px 22px;font-size:16px!important;font-weight:400;line-height:1.65;background:#ebebeb!important;color:#292b27!important;overflow-wrap:anywhere}
:root[data-theme="dark"] #app .message-user{background:#2b2c29!important;color:#e5e7df!important}
#transcript .output .markdown-preview{font-size:16px!important;line-height:1.7;letter-spacing:.005em}
#transcript .conversation-history-more{display:block;width:fit-content;max-width:100%;margin:8px auto 20px;padding:9px 16px;border:0;border-radius:20px;font-size:13px;color:var(--chat-muted);background:var(--composer-hover);cursor:pointer}
#transcript .conversation-history-more:disabled{cursor:wait;opacity:.65}
#transcript.conversation-is-preloading{overflow:hidden}
#chat-view:has(#transcript.conversation-is-preloading,#transcript .conversation-loading) #quick-actions{display:none!important}
#transcript .conversation-preload{position:relative;display:flex;align-items:flex-end;width:100%;height:100%;min-height:0;overflow:hidden;pointer-events:none;user-select:none}
#transcript .conversation-preload-layout{width:100%;display:flex;flex-direction:column;gap:21px;padding:12px 3px 24px;filter:blur(5.7px);opacity:.44;animation:conversation-preload-breathe 2.7s ease-in-out infinite;color:var(--chat-text,#232520)}
#transcript .conversation-preload-line{height:10px;min-height:10px;max-width:100%;border-radius:2px;background:repeating-linear-gradient(90deg,currentColor 0 6px,transparent 6px 8px);opacity:.65;flex:none}
#transcript .conversation-preload-user{align-self:flex-end;display:flex;align-items:center;width:76%;max-width:340px;min-height:51px;padding:18px 16px;border-radius:22px 22px 5px 22px;background:#e9eae7}
#transcript .conversation-preload-user>.conversation-preload-line{height:9px;min-height:9px;opacity:.65}
#transcript .conversation-preload-process{display:flex;gap:9px;align-items:center;min-height:30px;padding-bottom:11px;border-bottom:1px solid var(--line,#e2e4dd);opacity:.55}
#transcript .conversation-preload svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
#transcript .conversation-preload-process>.conversation-preload-line{height:7px;min-height:7px}
#transcript .conversation-preload-body{display:flex;flex-direction:column;gap:24px}
#transcript .conversation-preload-heading{height:16px;min-height:16px;max-width:340px;opacity:.82}
#transcript .conversation-preload-subheading{height:12px;min-height:12px;max-width:290px;opacity:.7}
#transcript .conversation-preload-paragraph{display:flex;flex-direction:column;gap:16px}
#transcript .conversation-preload-list{display:flex;flex-direction:column;gap:19px}
#transcript .conversation-preload-item{display:flex;align-items:center;gap:12px;padding-left:3px}
#transcript .conversation-preload-dot{width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}
#transcript .conversation-preload-card{display:flex;gap:13px;align-items:center;min-height:77px;margin-top:3px;padding:15px;border:1px solid var(--line,#e2e4dd);border-radius:18px;background:var(--composer-surface,#fff)}
#transcript .conversation-preload-file{display:grid;place-items:center;width:34px;height:39px;border:1px solid var(--line,#e2e4dd);border-radius:8px;opacity:.6;flex:none}
#transcript .conversation-preload-file-copy{flex:1;display:flex;flex-direction:column;gap:12px;min-width:0}
#transcript .conversation-preload-file-copy>.conversation-preload-line:last-child{height:7px;min-height:7px;opacity:.6}
#transcript .conversation-preload-actions{display:flex;align-items:center;gap:22px;padding:2px 4px 0;opacity:.55}
#transcript.conversation-revealing{animation:conversation-content-clear 260ms ease-out}
:root[data-theme=dark] #transcript .conversation-preload-user{background:#2b2e26}
@keyframes conversation-preload-breathe{0%,100%{opacity:.41}50%{opacity:.5}}
@keyframes conversation-content-clear{from{filter:blur(3px);opacity:.6}to{filter:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#transcript .conversation-preload-layout,#transcript.conversation-revealing{animation:none!important}}
#transcript .output .markdown-preview :is(h1,h2){font-size:20px;line-height:1.55;font-weight:650}
#transcript .output .markdown-preview :is(h3,h4){font-size:17px;line-height:1.6;font-weight:620}
#transcript .output .markdown-preview strong{font-weight:650}
#composer .composer-input :is(#input-mode,#send,#task-stop)[hidden]{display:none!important}
#app #task-stop{order:4;display:grid;place-items:center;flex:none;width:43px;min-width:43px;height:43px;min-height:43px;margin:0;padding:0;border:0;border-radius:50%;background:#242622;color:white;cursor:pointer}
#task-stop svg{width:17px;height:17px;fill:currentColor;stroke:none}
#task-stop:disabled{opacity:.45;cursor:default}
#task-stop:focus-visible{outline:2px solid var(--chat-muted);outline-offset:3px}
#composer[data-running="true"] #hold-to-talk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--composer-hover);border-radius:16px}
#hold-to-talk .hold-label{font-size:14px;font-weight:400;line-height:1.45}
#hold-to-talk .hold-caption{font-size:10px;line-height:1.6;color:var(--chat-muted)}
:root[data-theme="dark"] #app #task-stop{background:#e2e9d9;color:#232a1d}
@media(min-width:901px){#composer .quick-action:not(.quick-action-more){flex-basis:calc((100% - 14px)/2.25);padding:14px 20px}#composer .quick-card-heading>strong{font-size:18px}.quick-card-mark{width:28px;height:28px}#composer .quick-card-mark svg{width:20px!important;height:20px!important}#composer .quick-card-description{font-size:13px}#conversations .workspace-history-row .history-title{min-height:36px}#sidebar .side-links button{min-height:36px}}
@media(max-width:375px){#composer .quick-card-heading>strong{font-size:14px}#composer .quick-card-description{font-size:11px}}
@media(max-height:500px){#composer #quick-actions{display:none}}
@media(prefers-reduced-motion:reduce){.pal-cosmic-shape{animation:none!important;opacity:0}.pal-cosmic-shape:first-child{opacity:1;transform:none}.pal-type-line{animation:none!important;width:var(--type-width);border-right-color:transparent}}
