.pulse-cortex{position:absolute;inset:0;z-index:5;display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);background:var(--surface);animation:pulse-cortex-in .28s cubic-bezier(.2,.8,.2,1)}.pulse-cortex[hidden]{display:none}@keyframes pulse-cortex-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.pulse-cortex-side{min-height:0;display:flex;flex-direction:column;border-inline-end:1px solid var(--border);background:var(--surface-2)}.pulse-cortex-side-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px;font-size:13px;font-weight:600;color:var(--text-strong)}.pulse-cortex-new{display:flex;align-items:center;gap:6px;padding-block:6px;padding-inline:9px 12px;border-radius:8px;border:1px solid var(--chip-line);background:var(--surface);color:var(--brand-ink);font-size:12.5px;font-weight:600;cursor:pointer}.pulse-cortex-new:hover{background:var(--primary-soft)}.pulse-cortex-main{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}.pulse-cortex-head{height:60px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;border-bottom:1px solid var(--border-soft)}.pulse-cortex-agent{display:flex;align-items:center;gap:10px;min-width:0}.pulse-cortex-avatar{width:30px;height:30px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#fff;font-size:13px;font-weight:800}.pulse-cortex-name,.pulse-cortex-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pulse-cortex-name{font-size:14.5px;font-weight:700;color:var(--text-strong)}.pulse-cortex-sub{font-size:11.5px;color:var(--text-muted)}.pulse-cortex-history-toggle{display:none!important}.pulse-cortex-scroll{flex:1;min-height:0;overflow-y:auto;background:var(--home-thread-bg)}.pulse-cortex-jump{position:sticky;bottom:8px;display:flex;justify-content:center;pointer-events:none}.pulse-cortex-jump button{pointer-events:auto;font-size:12px;font-weight:600;padding:6px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-strong);box-shadow:0 2px 8px #0000001f;cursor:pointer}.pulse-cortex-thread{max-width:780px;margin:0 auto;padding:28px 24px;display:flex;flex-direction:column;gap:14px}.pulse-cortex-entity{padding:4px 10px;border-radius:100px;background:var(--primary-soft);color:var(--primary);font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pulse-cortex-foot{flex-shrink:0;padding:14px 24px 16px;border-top:1px solid var(--border-soft)}.pulse-cortex-foot>*{max-width:780px;margin-inline:auto}.pulse-cortex-compose{display:flex;align-items:center;gap:10px;padding-block:8px;padding-inline:16px 8px;border-radius:14px;border:1px solid var(--chip-line);background:var(--surface);box-shadow:0 6px 20px #2e31920f}.pulse-cortex-compose:focus-within{border-color:var(--primary)}.pulse-cortex-compose input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-size:14.5px;color:var(--text-strong)}.pulse-cortex-compose button{flex-shrink:0;padding:9px 18px;border:none;border-radius:10px;background:var(--brand-fill);color:#fff;font-size:13.5px;font-weight:600;cursor:pointer}.pulse-cortex-compose button.is-stop{background:var(--red-solid)}.pulse-cortex-compose button:disabled{opacity:.6;cursor:default}.pulse-cortex-compose button.pulse-cortex-attach{display:flex;align-items:center;padding:6px;margin-inline-start:-8px;border-radius:8px;background:transparent;color:var(--text-muted)}.pulse-cortex-compose button.pulse-cortex-attach:hover:not(:disabled){color:var(--primary);background:var(--surface-2)}.pulse-cortex-tray{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}.pulse-cortex-attachment{display:flex;flex-direction:column;gap:2px}.pulse-cortex-attachment-row{display:flex;align-items:center;gap:8px;padding-block:6px;padding-inline:10px 6px;border:1px solid var(--chip-line);border-radius:10px;background:var(--surface);font-size:13px;color:var(--text-strong)}.pulse-cortex-attachment-name{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pulse-cortex-attachment-row select{font-size:12px;padding:3px 6px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--text-strong)}.pulse-cortex-attachment-row button{display:flex;padding:4px;border:none;border-radius:6px;background:transparent;color:var(--text-faint);cursor:pointer}.pulse-cortex-attachment-row button:hover:not(:disabled){color:var(--text-strong);background:var(--surface-2)}.pulse-cortex-attachment-error{font-size:12px;color:var(--red-solid);padding-inline:4px}.pulse-cortex-attachment-hint{font-size:12px;color:var(--text-subtle);padding-inline:4px}.pulse-cortex-disclaimer{margin-top:8px;font-size:11px;line-height:16.5px;text-align:center;color:var(--text-subtle)}.pulse-cortex-toast{position:absolute;inset-inline-end:16px;bottom:16px;z-index:1;max-width:320px;padding:10px 16px;border-radius:10px;color:#fff;font-size:12.5px;font-weight:600;box-shadow:0 8px 24px #0000002e}@media(max-width:900px){.pulse-cortex{grid-template-columns:minmax(0,1fr)}.pulse-cortex-history-toggle{display:flex!important}.pulse-cortex:not(.is-history) .pulse-cortex-side,.pulse-cortex.is-history .pulse-cortex-scroll,.pulse-cortex.is-history .pulse-cortex-foot{display:none}.pulse-cortex.is-history{grid-template-rows:auto minmax(0,1fr)}.pulse-cortex.is-history .pulse-cortex-main{grid-row:1}.pulse-cortex.is-history .pulse-cortex-side{grid-row:2;border:none}}.pulse-stage.is-docked{flex-direction:row}.pulse-cortex.is-docked{position:relative;inset:auto;z-index:auto;width:420px;flex-shrink:0;grid-template-columns:minmax(0,1fr);border-left:1px solid var(--border);box-shadow:-6px 0 24px #2e31920f;animation:pulse-cortex-dock-in .24s cubic-bezier(.2,.8,.2,1)}@keyframes pulse-cortex-dock-in{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:none}}.pulse-cortex.is-docked .pulse-cortex-head{padding-inline:16px 10px}.pulse-cortex.is-docked .pulse-cortex-thread{padding:18px 16px}.pulse-cortex.is-docked .pulse-cortex-foot{padding:12px 16px 14px}.pulse-cortex.is-docked .pulse-cortex-history-toggle{display:flex!important}.pulse-cortex.is-docked:not(.is-history) .pulse-cortex-side,.pulse-cortex.is-docked.is-history .pulse-cortex-scroll,.pulse-cortex.is-docked.is-history .pulse-cortex-foot{display:none}.pulse-cortex.is-docked.is-history{grid-template-rows:auto minmax(0,1fr)}.pulse-cortex.is-docked.is-history .pulse-cortex-main{grid-row:1}.pulse-cortex.is-docked.is-history .pulse-cortex-side{grid-row:2;border:none}.pulse-cortex-dock{width:30px;height:30px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;border-radius:8px;border:1px solid var(--chip-line);background:var(--primary-soft);color:var(--primary);cursor:pointer}.pulse-cortex-dock:hover{border-color:var(--primary)}.pulse-cortex-dock[aria-pressed=true]{border-color:transparent;background:var(--brand-fill);color:#fff}@media(prefers-reduced-motion:reduce){.pulse-cortex,.pulse-cortex.is-docked{animation:none}}.pulse-cortex-typing{display:inline-flex;align-items:center;gap:4px;height:1.55em;vertical-align:middle}.pulse-cortex-typing>span{width:6px;height:6px;border-radius:50%;background:var(--text-muted);opacity:.25;animation:pulse-cortex-dot 1.2s infinite}.pulse-cortex-typing>span:nth-child(2){animation-delay:.2s}.pulse-cortex-typing>span:nth-child(3){animation-delay:.4s}@keyframes pulse-cortex-dot{0%,to{opacity:.25}20%{opacity:1}}.pulse-cortex-step{margin-inline-start:10px;font-size:12.5px;color:var(--text-muted);vertical-align:middle}@media(prefers-reduced-motion:reduce){.pulse-cortex-typing>span{animation:none;opacity:.6}}
