.agent-panel{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;width:100%;margin:2px 0 6px;font-size:13px}
    .agent-head{display:flex;align-items:center;gap:9px;padding:11px 14px;cursor:pointer;user-select:none}
    .agent-head b{font-weight:600;font-size:13.5px}
    .a-status-ico{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center}
    .a-status-ico .st-ico{width:18px;height:18px}
    .agent-count{margin-left:auto;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 9px;flex:0 0 auto}
    .agent-chev{color:var(--muted);display:grid;place-items:center;transition:transform .2s ease;flex:0 0 auto}
    .agent-panel.collapsed .agent-chev{transform:rotate(-90deg)}
    .agent-steps{border-top:1px solid var(--line);padding:9px 14px;display:flex;flex-direction:column;gap:9px}
    .agent-panel.collapsed .agent-steps{display:none}
    .agent-step{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12.5px;line-height:1.4}
    .agent-step.running{color:var(--text)}
    .agent-step.done{color:var(--text)}
    .st-slot{width:16px;height:16px;flex:0 0 16px;display:grid;place-items:center}
    .st-ico{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;box-sizing:border-box;color:#fff}
    .st-ico.done{background:#3fbf7f;border-color:#3fbf7f}
    .st-ico svg{width:9px;height:9px}
    .a-spin{width:13px;height:13px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--text);animation:aspin .7s linear infinite;display:inline-block}
    @keyframes aspin{to{transform:rotate(360deg)}}
    .agent-tool{margin:0 14px 13px;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--surface)}
    .agent-panel.collapsed .agent-tool{display:none}
    .at-head{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12.5px}
    .at-head>svg{width:14px;height:14px;color:var(--muted);flex:0 0 14px}
    .at-head b{font-weight:600}
    .at-cmd{font-family:ui-monospace,'Cascadia Code','JetBrains Mono',Menlo,Consolas,monospace;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .at-hide{margin-left:auto;background:none;border:0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;padding:2px 4px;flex:0 0 auto}
    .at-hide:hover{color:var(--text)}
    .agent-term{background:var(--bg);color:var(--text);font-family:ui-monospace,'Cascadia Code','JetBrains Mono',Menlo,Consolas,monospace;font-size:11.5px;line-height:1.8;padding:10px 0;max-height:230px;overflow:auto;scrollbar-width:thin}
    .agent-tool.hideterm .agent-term,.agent-tool.hideterm .term-exit{display:none}
    .term-line{display:flex;gap:10px;padding:0 14px;white-space:pre-wrap;word-break:break-word}
    .term-line time{color:#6b7280;flex:0 0 auto}
    .term-line>span{min-width:0}
    .t-warn{color:#d99b26}
    .t-link{color:#7294d4}
    .t-ok{color:#34d399}
    .t-label{color:#9aa1ab}
    .term-exit{display:none;align-items:center;gap:8px;padding:7px 14px;border-top:1px solid var(--line);background:var(--bg);font-family:ui-monospace,'Cascadia Code','JetBrains Mono',Menlo,Consolas,monospace;font-size:11.5px;color:#34d399}
    .term-exit::before{content:'';width:3px;height:13px;background:#34d399;border-radius:2px}
    .msg .agent-panel+.bubble{padding-top:0}
    @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

    /* Sequential API pipeline — inherits the original theme. */
    .agent-tool.hideterm .agent-term,.agent-tool.hideterm .term-exit{display:none!important}
    .pipeline-run{width:100%;min-width:0}
    .pipeline-run .agent-panel{margin:8px 0}
    .pipeline-mode,.pipeline-narrative{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0 16px}
    .pipeline-mode{display:inline-block;border:1px solid var(--line);border-radius:99px;padding:3px 11px;font-size:11px;margin-bottom:5px}
    .pipeline-narrative{color:var(--text);padding-inline-start:12px;border-inline-start:2px solid #3fbf7f}
    .pipeline-run[dir="rtl"] .agent-count,.pipeline-run[dir="rtl"] .at-hide{margin-left:0;margin-right:auto}
    .pipeline-run .agent-head{outline-offset:-3px}
    .pipeline-run .agent-term{direction:ltr;text-align:left}
    .pipeline-run[dir="rtl"] .agent-term{direction:rtl;text-align:right}
    .pipeline-error{border-color:#da6969!important;color:#c94f4f}
    .pipeline-error .term-exit{color:#ef9a9a}
    .pipeline-stage-card{margin-top:16px}
    .pipeline-stage-card h3{font-size:15px;margin:0 0 6px}
    .pipeline-stage-card .stage-enable{display:flex;align-items:center;gap:10px;margin-bottom:16px;cursor:pointer;font-size:14px}
    .pipeline-stage-card input[type="checkbox"],.pipeline-settings input[type="checkbox"]{width:17px;height:17px;accent-color:#36986d;flex:0 0 auto}
    .pipeline-settings label.inline-check{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:13px}
    .pipeline-settings select,.pipeline-stage-card select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
    .pipeline-stage-card .stage-description{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:16px}
    .pipeline-status{font-size:12px;line-height:1.7;margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}
    .pipeline-status.err,.pipeline-status.ok{margin-top:12px;padding:10px 12px;border-radius:9px;line-height:1.55;font-size:12px;font-weight:500}
    .pipeline-status.err{background:#5a2320;color:#fff}
    .pipeline-status.ok{background:#1d5539;color:#fff}
    .at-head{flex-wrap:wrap}.at-head .at-cmd{min-width:0;max-width:100%}
    @media(max-width:600px){.pipeline-settings .field-row{display:block}.pipeline-run .agent-head b{font-size:12px}.pipeline-run .at-cmd{display:none}.pipeline-run .agent-head{padding:10px}.pipeline-run .agent-tool{margin:0 8px 10px}.pipeline-run .agent-count{padding:2px 6px}}

/* Additional features use Hooshan's existing design tokens. No Muse app shell is imported. */
.muse-native{color:var(--text);--danger:#e88b88;--faint:var(--muted);--ink:var(--text);--line-strong:var(--line)}
.muse-native svg:not(.icon){width:19px;height:19px;vertical-align:middle;flex-shrink:0}
.muse-native .panel-lead,.muse-native .form-note,.muse-native .stage-description{color:var(--muted);font-size:12px;line-height:1.8}
.muse-native .card,.muse-native .summary-card,.muse-native .plan{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);margin-block:12px}
.muse-native .stat-grid,.muse-native .plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.muse-native .summary-card strong{display:block;font-size:28px;margin-top:12px}
.muse-native .primary-btn,.muse-native .secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:24px;padding:10px 18px;background:var(--hover);color:var(--text);border:1px solid var(--line)}
.muse-native .primary-btn{background:var(--accent);color:var(--blue);border-color:transparent}
.muse-native .d-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
.muse-native .field{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.muse-native .field input,.muse-native .field textarea,.muse-native select{background:var(--bg);border:1px solid var(--line);border-radius:12px;color:var(--text);padding:12px;max-width:100%;min-width:0}
.muse-native .field label{font-size:12px;color:var(--muted)}
.muse-native .field textarea{min-height:95px;resize:vertical}
.muse-native .field-row,.muse-native .apikey-row{display:flex;gap:12px;align-items:center}.muse-native .field-row>.field{flex:1;min-width:0}.muse-native .apikey-row input{flex:1;min-width:0}
.muse-native .atable{width:100%;border-collapse:collapse;font-size:12px;line-height:1.7}.muse-native .atable th,.muse-native .atable td{padding:12px 8px;text-align:start;border-bottom:1px solid var(--line)}.muse-native .atable th{color:var(--muted);font-weight:500}.muse-native .atable select{padding:6px}
.muse-native .cact{padding:6px;border-radius:50%}.muse-native .cact:hover{background:var(--hover)}
.muse-native .you-badge,.muse-native .adm-badge{font-size:10px;border-radius:6px;padding:3px 6px;background:var(--hover);margin-inline-start:7px}
.muse-native .switch{width:40px;height:24px;border-radius:20px;background:var(--hover);padding:3px;flex-shrink:0}.muse-native .switch i{display:block;width:18px;height:18px;background:var(--muted);border-radius:50%;transition:transform .15s}.muse-native .switch.on{background:var(--accent)}.muse-native .switch.on i{background:var(--blue);transform:translateX(16px)}
.muse-native .setting-copy span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.muse-native .plan .price{font-size:26px;margin:12px 0}.muse-native .plan small{font-size:12px;color:var(--muted)}.muse-native .plan li{margin-block:8px;font-size:12px}
.muse-native #adminBody{overflow-x:auto}.muse-native .tabs{overflow:auto;white-space:nowrap;flex-shrink:0}.muse-native .tabs button{flex-shrink:0}
.muse-native .conv-view{max-height:50vh;overflow:auto}.muse-native .cm{padding:12px;border-bottom:1px solid var(--line);white-space:pre-wrap}.muse-native .cm b{display:block;color:var(--muted);font-size:11px}
.muse-native .pipeline-settings select{border-radius:12px;background:var(--bg);color:var(--text)}
.answer .md-table{max-width:100%;overflow-x:auto;margin:18px 0;border:1px solid var(--line);border-radius:14px}.answer .md-table table{width:100%;border-collapse:collapse;font-size:13px}.answer .md-table th,.answer .md-table td{padding:11px 15px;border-bottom:1px solid var(--line);text-align:start;min-width:100px}.answer .md-table th{background:var(--surface);font-weight:600}.answer .md-table tr:last-child td{border-bottom:0}
.answer blockquote{border-inline-start:3px solid var(--blue);padding-inline-start:16px;color:var(--muted);margin-inline:0}.answer .inline-code{background:var(--surface);border-radius:5px;padding:2px 5px}.answer .md-hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.answer .codebox .codehead button{cursor:pointer}.answer .codebox .tok-kw,.answer .codebox .tk-kw{color:#c792ea}.answer .codebox .tk-str{color:#a5d6a7}.answer .codebox .tk-num{color:#f6c177}.answer .codebox .tk-com{color:#8892a2}.answer .codebox .tk-fn{color:#82aaff}.answer .codebox .tk-tag{color:#f07178}.answer .codebox .tk-attr{color:#ffcb6b}.answer .codebox .tk-op{color:#89ddff}
.pipeline-host{min-width:0}.pipeline-host .agent-panel{--ink:var(--text);--line-strong:var(--line)}
.pipeline-host .agent-panel .a-status-ico svg{width:12px;height:12px}.pipeline-host .pipeline-mode{max-width:100%;white-space:normal}.pipeline-host .agent-head:focus-visible{outline:2px solid var(--blue)}
#muse-notice{padding:9px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:0 20px 8px;text-align:center;font-size:12px;overflow-wrap:anywhere}
body.muse-compact .message{margin-bottom:18px}body.muse-compact .recent-item{min-height:30px}
@media(max-width:600px){.muse-native .field-row{display:block}.muse-native .stat-grid{grid-template-columns:1fr 1fr}.muse-native .atable th,.muse-native .atable td{padding:9px 5px}.muse-native .tabs{max-width:100%}}
