.floating-agent-root,
.floating-agent-root * {
    box-sizing:border-box;
}
.floating-agent-root {
    --fa-panel:rgba(255,255,255,.94);
    --fa-card:rgba(255,255,255,.72);
    --fa-text:#111827;
    --fa-muted:#64748b;
    --fa-line:rgba(15,23,42,.12);
    --fa-strong:#111827;
    --fa-strong-text:#fff;
    --fa-shadow:rgba(15,23,42,.18);
    position:fixed;
    right:24px;
    top:88px;
    z-index:9996;
    font-family:'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--fa-text);
}
html.theme-dark .floating-agent-root,
body.theme-dark .floating-agent-root {
    --fa-panel:rgba(16,22,33,.94);
    --fa-card:rgba(15,23,42,.74);
    --fa-text:#f8fafc;
    --fa-muted:#cbd5e1;
    --fa-line:rgba(255,255,255,.16);
    --fa-strong:#f8fafc;
    --fa-strong-text:#020403;
    --fa-shadow:rgba(0,0,0,.42);
}
.floating-agent-trigger {
    position:relative;
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    padding:0;
    display:grid;
    place-items:center;
    background:transparent;
    color:#fff;
    cursor:pointer;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.28));
    touch-action:none;
}
.floating-agent-trigger:focus-visible {
    outline:2px solid #38bdf8;
    outline-offset:4px;
}
.floating-agent-ring {
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:
        radial-gradient(circle at 34% 24%,rgba(255,255,255,.12),transparent 25%),
        linear-gradient(145deg,#171b24,#05070c 72%);
    border:1px solid rgba(148,163,184,.42);
    box-shadow:
        inset 0 0 8px rgba(255,255,255,.1),
        inset 0 -8px 14px rgba(0,0,0,.58),
        0 0 0 1px rgba(2,6,23,.56);
    overflow:hidden;
}
.floating-agent-ring::before {
    content:"";
    position:absolute;
    inset:5px;
    border-radius:inherit;
    background:
        radial-gradient(circle at 30% 20%,rgba(255,255,255,.11),transparent 28%),
        #11141b;
    border:1px solid rgba(148,163,184,.35);
    box-shadow:inset 0 0 10px rgba(0,0,0,.7);
}
.floating-agent-ring::after {
    content:"";
    position:absolute;
    inset:4px;
    border-radius:inherit;
    background:conic-gradient(from 0deg,#19d8ff,#3677ff,#a855f7,#ff4da6,#ff9b35,#20e0d0,#19d8ff);
    opacity:0;
    transform:scale(.99);
    transition:opacity .18s ease;
    animation:floatingAgentSpin 2.6s linear infinite;
    box-shadow:0 0 10px rgba(99,102,241,.55);
}
.floating-agent-trigger:hover .floating-agent-ring::after,
.floating-agent-root.open .floating-agent-ring::after {
    opacity:1;
}
.floating-agent-trigger:hover .floating-agent-ring::before,
.floating-agent-root.open .floating-agent-ring::before {
    inset:10px;
    z-index:2;
    background:#111827;
    border-color:rgba(255,255,255,.18);
}
.floating-agent-face {
    position:relative;
    z-index:3;
    width:23px;
    height:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}
.floating-agent-eye-left {
    width:6px;
    height:15px;
    border-radius:999px;
    background:#fff;
    transform-origin:center;
}
.floating-agent-eye-right {
    width:14px;
    height:14px;
    position:relative;
    transform:rotate(45deg);
}
.floating-agent-eye-right::before {
    content:"";
    position:absolute;
    left:1px;
    top:1px;
    width:11px;
    height:11px;
    border-left:5px solid #fff;
    border-bottom:5px solid #fff;
    border-radius:3px 2px 3px 2px;
}
.floating-agent-trigger:hover .floating-agent-eye-left,
.floating-agent-root.open .floating-agent-eye-left {
    animation:floatingAgentBlink 2.1s ease-in-out infinite;
}
.floating-agent-panel {
    position:fixed;
    top:138px;
    right:24px;
    width:min(960px, calc(100vw - 32px));
    height:min(760px, calc(100vh - 24px));
    max-height:calc(100vh - 24px);
    display:none;
    overflow:hidden;
    border-radius:12px;
    border:1px solid var(--fa-line);
    background:var(--fa-panel);
    box-shadow:0 30px 80px var(--fa-shadow);
    backdrop-filter:blur(22px);
}
.floating-agent-root.open .floating-agent-panel {
    display:flex;
    flex-direction:column;
}
.floating-agent-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:17px 18px 11px;
    cursor:grab;
    touch-action:none;
    user-select:none;
}
.floating-agent-root.dragging .floating-agent-trigger,
.floating-agent-root.dragging .floating-agent-head {
    cursor:grabbing;
}
.floating-agent-root.resizing,
.floating-agent-root.resizing * {
    user-select:none;
}
.floating-agent-resize-handle {
    position:absolute;
    z-index:20;
    display:block;
    touch-action:none;
}
.floating-agent-resize-handle.n,
.floating-agent-resize-handle.s {
    left:12px;
    right:12px;
    height:7px;
    cursor:ns-resize;
}
.floating-agent-resize-handle.n { top:0; }
.floating-agent-resize-handle.s { bottom:0; }
.floating-agent-resize-handle.e,
.floating-agent-resize-handle.w {
    top:12px;
    bottom:12px;
    width:7px;
    cursor:ew-resize;
}
.floating-agent-resize-handle.e { right:0; }
.floating-agent-resize-handle.w { left:0; }
.floating-agent-resize-handle.ne,
.floating-agent-resize-handle.nw,
.floating-agent-resize-handle.se,
.floating-agent-resize-handle.sw {
    width:14px;
    height:14px;
}
.floating-agent-resize-handle.ne { top:0; right:0; cursor:nesw-resize; }
.floating-agent-resize-handle.nw { top:0; left:0; cursor:nwse-resize; }
.floating-agent-resize-handle.se { right:0; bottom:0; cursor:nwse-resize; }
.floating-agent-resize-handle.sw { left:0; bottom:0; cursor:nesw-resize; }
.floating-agent-head strong {
    display:block;
    font-size:16px;
    font-weight:950;
    line-height:1.25;
}
.floating-agent-head span {
    display:block;
    margin-top:4px;
    color:var(--fa-muted);
    font-size:12px;
    font-weight:750;
}
.floating-agent-close {
    width:32px;
    height:32px;
    border:1px solid var(--fa-line);
    border-radius:999px;
    background:var(--fa-card);
    color:var(--fa-text);
    cursor:pointer;
}
.floating-agent-body {
    flex:1;
    min-height:0;
    overflow:hidden;
    padding:0;
    overscroll-behavior:contain;
}
.floating-agent-list {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:10px;
    position:sticky;
    top:0;
    z-index:4;
    padding:2px 0 7px;
    background:linear-gradient(var(--fa-panel) 78%,transparent);
}
.floating-agent-card {
    width:100%;
    min-height:38px;
    border:1px solid var(--fa-line);
    border-radius:10px;
    padding:7px 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--fa-card);
    color:var(--fa-text);
    cursor:pointer;
    text-align:center;
}
.floating-agent-card.active {
    border-color:#111827;
    background:#111827;
    color:#fff;
    box-shadow:none;
}
.floating-agent-mark {
    width:32px;
    height:32px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#22d3ee,#ec4899);
    color:#fff;
    font-size:14px;
    font-weight:950;
}
.floating-agent-card strong {
    display:block;
    width:100%;
    font-size:11px;
    font-weight:900;
    line-height:1.25;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-card span {
    display:block;
    margin-top:3px;
    color:var(--fa-muted);
    font-size:11px;
    font-weight:750;
    line-height:1.35;
}
.floating-agent-detail {
    border:1px solid var(--fa-line);
    border-radius:16px;
    background:color-mix(in srgb, var(--fa-card) 82%, transparent);
    padding:12px;
}
.floating-agent-detail-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.floating-agent-detail-head > div {
    min-width:0;
}
.floating-agent-detail-head > span {
    flex:0 0 auto;
    border-radius:999px;
    padding:4px 8px;
    background:var(--fa-card);
    color:var(--fa-muted);
    font-size:10px;
    font-weight:850;
}
.floating-agent-detail h3 {
    margin:0 0 6px;
    font-size:15px;
    line-height:1.25;
}
.floating-agent-detail p {
    margin:0;
    color:var(--fa-muted);
    font-size:12px;
    line-height:1.55;
}
.floating-agent-meta {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 12px;
    margin:10px 0;
}
.floating-agent-meta div {
    display:flex;
    justify-content:space-between;
    gap:8px;
    color:var(--fa-muted);
    font-size:11px;
    font-weight:750;
}
.floating-agent-meta b {
    color:var(--fa-text);
    font-weight:900;
    text-align:right;
}
.floating-agent-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:10px 0;
}
.floating-agent-tags span {
    max-width:100%;
    border:1px solid var(--fa-line);
    border-radius:999px;
    padding:4px 8px;
    color:var(--fa-muted);
    background:var(--fa-card);
    font-size:10.5px;
    font-weight:800;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-tags button {
    max-width:100%;
    border:1px solid var(--fa-line);
    border-radius:999px;
    padding:5px 9px;
    color:var(--fa-muted);
    background:var(--fa-card);
    font:inherit;
    font-size:10.5px;
    font-weight:800;
    cursor:pointer;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-tags button:hover,
.floating-agent-tags button:focus-visible {
    border-color:rgba(56,189,248,.72);
    color:var(--fa-text);
    outline:none;
}
.floating-agent-composer {
    margin-top:10px;
    overflow:hidden;
    border:1px solid var(--fa-line);
    border-radius:14px;
    background:var(--fa-card);
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.floating-agent-composer.drag-over {
    border-color:#3b82f6;
    background:rgba(59,130,246,.08);
    box-shadow:inset 0 0 0 2px rgba(59,130,246,.24);
}
.floating-agent-input {
    width:100%;
    min-height:82px;
    margin:0;
    border:0;
    border-radius:0;
    padding:11px 12px 7px;
    resize:vertical;
    background:transparent;
    color:var(--fa-text);
    outline:none;
    font:inherit;
    font-size:12px;
    line-height:1.55;
}
.floating-agent-attachments {
    display:none;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
    padding:4px 10px 8px;
}
.floating-agent-attachments.show {
    display:grid;
}
.floating-agent-attachment {
    position:relative;
    aspect-ratio:1;
    min-width:0;
    overflow:hidden;
    border-radius:8px;
    background:rgba(15,23,42,.1);
}
.floating-agent-attachment img,
.floating-agent-attachment video {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}
.floating-agent-attachment > button {
    position:absolute;
    right:3px;
    top:3px;
    width:18px;
    height:18px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(2,6,23,.8);
    color:#fff;
    cursor:pointer;
    line-height:18px;
}
.floating-agent-kind {
    position:absolute;
    left:3px;
    bottom:3px;
    border-radius:4px;
    padding:2px 4px;
    background:rgba(2,6,23,.78);
    color:#fff;
    font-size:8px;
}
.floating-agent-tools {
    min-height:34px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:4px 8px 7px;
}
.floating-agent-tools button {
    min-height:26px;
    border:0;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:0 7px;
    background:transparent;
    color:var(--fa-text);
    font:inherit;
    font-size:10px;
    font-weight:850;
    cursor:pointer;
}
.floating-agent-tools button:hover {
    background:rgba(100,116,139,.12);
}
.floating-agent-tools svg {
    width:14px;
    height:14px;
}
.floating-agent-tools > span {
    margin-left:auto;
    min-width:0;
    color:var(--fa-muted);
    font-size:9px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-actions {
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
    margin-top:10px;
}
.floating-agent-actions button,
.floating-agent-actions a {
    min-width:0;
    min-height:38px;
    border:1px solid var(--fa-line);
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:0 8px;
    background:var(--fa-card);
    color:var(--fa-text);
    text-decoration:none;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}
.floating-agent-actions svg {
    width:14px;
    height:14px;
}
.floating-agent-actions .primary {
    background:var(--fa-strong);
    border-color:var(--fa-strong);
    color:var(--fa-strong-text);
}
html.theme-dark .floating-agent-actions .primary,
body.theme-dark .floating-agent-actions .primary {
    background:rgba(15,23,42,.78);
    border-color:rgba(248,250,252,.86);
    color:#f8fafc;
}
.floating-agent-actions button:disabled {
    opacity:.55;
    cursor:not-allowed;
}
.floating-agent-result {
    display:none;
    margin-top:10px;
    max-height:260px;
    overflow:auto;
    border:1px solid var(--fa-line);
    border-radius:14px;
    padding:10px;
    background:rgba(15,23,42,.05);
    color:var(--fa-text);
    font-size:12px;
    line-height:1.55;
}
html.theme-dark .floating-agent-result,
body.theme-dark .floating-agent-result {
    background:rgba(2,6,23,.42);
}
.floating-agent-result.show {
    display:block;
}
.floating-agent-message {
    margin-bottom:8px;
}
.floating-agent-message > span {
    display:block;
    margin-bottom:3px;
    color:var(--fa-muted);
    font-size:9px;
    font-weight:850;
}
.floating-agent-message p {
    margin:0;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    color:var(--fa-text);
    font-size:11px;
    line-height:1.55;
}
.floating-agent-message.user {
    border-left:2px solid rgba(56,189,248,.72);
    padding-left:8px;
}
.floating-agent-outputs {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:8px;
}
.floating-agent-output {
    min-width:0;
    aspect-ratio:1;
    overflow:hidden;
    border:1px solid var(--fa-line);
    border-radius:9px;
    padding:0;
    background:var(--fa-card);
    cursor:zoom-in;
}
.floating-agent-output img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}
.floating-agent-result-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:8px;
}
.floating-agent-result-actions button {
    min-height:32px;
    border:1px solid var(--fa-line);
    border-radius:8px;
    background:var(--fa-card);
    color:var(--fa-text);
    font:inherit;
    font-size:10px;
    font-weight:850;
    cursor:pointer;
}
.floating-agent-status {
    margin-top:8px;
    color:var(--fa-muted);
    font-size:10px;
    line-height:1.45;
}
.floating-agent-status.error {
    color:#ef4444;
}
.floating-agent-spinner {
    width:13px;
    height:13px;
    border:2px solid currentColor;
    border-right-color:transparent;
    border-radius:999px;
    animation:floatingAgentSpin .7s linear infinite;
}
.floating-agent-workspace {
    height:100%;
    min-height:0;
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
}
.floating-agent-sidebar {
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:12px;
    border-right:1px solid var(--fa-line);
    background:color-mix(in srgb, var(--fa-card) 62%, transparent);
}
.floating-agent-new-chat {
    min-height:40px;
    border:1px dashed var(--fa-line);
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    background:var(--fa-card);
    color:var(--fa-text);
    font:inherit;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
}
.floating-agent-new-chat svg {
    width:15px;
    height:15px;
}
.floating-agent-sidebar-label {
    margin:14px 4px 7px;
    color:var(--fa-muted);
    font-size:10px;
    font-weight:800;
}
.floating-agent-conversations {
    flex:1;
    min-height:0;
    overflow:auto;
    display:grid;
    align-content:start;
    gap:5px;
}
.floating-agent-conversation {
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 26px;
    align-items:center;
    border-radius:7px;
}
.floating-agent-conversation.active {
    background:rgba(59,130,246,.1);
}
.floating-agent-conversation > button:first-child {
    min-width:0;
    min-height:38px;
    border:0;
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    align-items:center;
    gap:7px;
    padding:5px 7px;
    background:transparent;
    color:var(--fa-text);
    text-align:left;
    cursor:pointer;
}
.floating-agent-conversation svg {
    width:14px;
    height:14px;
    color:var(--fa-muted);
}
.floating-agent-conversation span {
    min-width:0;
}
.floating-agent-conversation strong,
.floating-agent-conversation small {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-conversation strong {
    font-size:10.5px;
}
.floating-agent-conversation small {
    margin-top:2px;
    color:var(--fa-muted);
    font-size:8.5px;
}
.floating-agent-conversation-delete {
    width:24px;
    height:24px;
    border:0;
    display:grid;
    place-items:center;
    padding:0;
    background:transparent;
    color:var(--fa-muted);
    cursor:pointer;
    opacity:0;
}
.floating-agent-conversation:hover .floating-agent-conversation-delete,
.floating-agent-conversation-delete:focus-visible {
    opacity:1;
}
.floating-agent-switcher {
    display:grid;
    gap:6px;
    padding-top:10px;
    border-top:1px solid var(--fa-line);
}
.floating-agent-switcher > button {
    min-width:0;
    min-height:36px;
    border:1px solid var(--fa-line);
    border-radius:999px;
    display:grid;
    grid-template-columns:24px minmax(0,1fr);
    align-items:center;
    gap:7px;
    padding:4px 8px;
    background:#252a31;
    color:#fff;
    text-align:left;
    cursor:pointer;
}
.floating-agent-switcher > button.active {
    border-color:#315cff;
    background:#3155ed;
}
.floating-agent-switcher strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10.5px;
}
.floating-agent-mini-face {
    width:22px;
    height:22px;
    border-radius:999px;
    background:
        radial-gradient(circle at 38% 48%,#fff 0 8%,transparent 9%),
        conic-gradient(#22d3ee,#6366f1,#ec4899,#f97316,#22d3ee);
    box-shadow:inset 0 0 0 5px #151922;
}
.floating-agent-chat {
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    background:color-mix(in srgb, var(--fa-panel) 92%, transparent);
}
.floating-agent-chat-head {
    flex:0 0 auto;
    padding:10px 14px 8px;
    border-bottom:1px solid var(--fa-line);
}
.floating-agent-chat-head > div {
    display:flex;
    align-items:center;
    gap:7px;
}
.floating-agent-chat-head h3 {
    margin:0;
    font-size:14px;
}
.floating-agent-chat-head button {
    width:24px;
    height:24px;
    border:0;
    display:grid;
    place-items:center;
    padding:0;
    background:transparent;
    color:var(--fa-muted);
    cursor:pointer;
}
.floating-agent-chat-head button svg {
    width:13px;
    height:13px;
}
.floating-agent-chat-head span {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--fa-muted);
    font-size:10px;
}
.floating-agent-chat-head p {
    margin:4px 0 0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--fa-muted);
    font-size:9.5px;
}
.floating-agent-chat > .floating-agent-result {
    flex:1;
    min-height:0;
    max-height:none;
    margin:0;
    overflow:auto;
    border:0;
    border-radius:0;
    padding:16px;
    background:transparent;
}
.floating-agent-message {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    margin:0 0 13px;
}
.floating-agent-message.user {
    align-items:flex-end;
    border:0;
    padding:0;
}
.floating-agent-message > span {
    margin:0 0 4px;
}
.floating-agent-bubble {
    max-width:min(78%,620px);
    border-radius:3px;
    padding:9px 11px;
    background:rgba(226,232,240,.58);
}
.floating-agent-message.user .floating-agent-bubble {
    background:rgba(219,234,254,.72);
}
html.theme-dark .floating-agent-bubble,
body.theme-dark .floating-agent-bubble {
    background:rgba(30,41,59,.8);
}
html.theme-dark .floating-agent-message.user .floating-agent-bubble,
body.theme-dark .floating-agent-message.user .floating-agent-bubble {
    background:rgba(30,64,175,.42);
}
.floating-agent-message-media {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:7px;
}
.floating-agent-message-media img,
.floating-agent-message-media video {
    width:64px;
    height:64px;
    border-radius:5px;
    object-fit:cover;
    background:#0f172a;
}
.floating-agent-guide-options {
    max-width:78%;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:-6px 0 16px;
}
.floating-agent-guide-options button,
.floating-agent-guide-actions button {
    min-height:30px;
    border:1px solid rgba(59,130,246,.24);
    border-radius:999px;
    padding:0 11px;
    background:rgba(239,246,255,.86);
    color:#3155a4;
    font:inherit;
    font-size:10px;
    font-weight:750;
    cursor:pointer;
}
.floating-agent-guide-options span {
    flex-basis:100%;
    color:var(--fa-muted);
    font-size:9px;
}
.floating-agent-guide-actions {
    display:flex;
    gap:8px;
    margin:-4px 0 16px;
}
.floating-agent-guide-actions button {
    border-radius:8px;
}
.floating-agent-guide-actions button.primary {
    background:var(--fa-strong);
    border-color:var(--fa-strong);
    color:var(--fa-strong-text);
}
.floating-agent-chat .floating-agent-outputs {
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-width:620px;
}
.floating-agent-chat .floating-agent-output {
    aspect-ratio:3/4;
}
.floating-agent-composer-area {
    flex:0 0 auto;
    padding:8px 12px 11px;
    border-top:1px solid var(--fa-line);
    background:var(--fa-panel);
}
.floating-agent-quick-row {
    display:flex;
    gap:6px;
    overflow:auto;
    padding-bottom:6px;
}
.floating-agent-quick-row button {
    flex:0 0 auto;
    min-height:25px;
    border:1px solid var(--fa-line);
    border-radius:999px;
    padding:0 8px;
    background:var(--fa-card);
    color:var(--fa-muted);
    font:inherit;
    font-size:9px;
    cursor:pointer;
}
.floating-agent-composer-area .floating-agent-composer {
    margin:0;
}
.floating-agent-composer-area .floating-agent-input {
    min-height:62px;
    max-height:130px;
    resize:none;
}
.floating-agent-composer-area .floating-agent-actions {
    margin-top:7px;
}
.floating-agent-empty {
    padding:10px;
    color:var(--fa-muted);
    font-size:10px;
    text-align:center;
}
.floating-agent-asset-picker {
    position:fixed;
    inset:0;
    z-index:40;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(2,6,23,.48);
    backdrop-filter:blur(5px);
}
.floating-agent-asset-picker.show {
    display:flex;
}
.floating-agent-asset-dialog {
    width:min(720px,calc(100vw - 28px));
    max-height:min(680px,calc(100vh - 32px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--fa-line);
    border-radius:8px;
    background:var(--fa-panel);
    box-shadow:0 28px 70px rgba(2,6,23,.34);
}
.floating-agent-asset-head {
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 14px;
    border-bottom:1px solid var(--fa-line);
}
.floating-agent-asset-head > div {
    min-width:0;
    display:flex;
    align-items:baseline;
    gap:10px;
}
.floating-agent-asset-head strong {
    font-size:14px;
}
.floating-agent-asset-head span {
    color:var(--fa-muted);
    font-size:10px;
}
.floating-agent-asset-head button {
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border:1px solid var(--fa-line);
    border-radius:7px;
    background:var(--fa-card);
    color:var(--fa-text);
    cursor:pointer;
}
.floating-agent-asset-head svg {
    width:15px;
    height:15px;
}
.floating-agent-asset-grid {
    min-height:0;
    flex:1 1 auto;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-rows:max-content;
    align-content:start;
    gap:9px;
    overflow:auto;
    padding:12px;
}
.floating-agent-asset-item {
    min-width:0;
    align-self:start;
    display:grid;
    grid-template-rows:auto auto auto;
    overflow:hidden;
    border:2px solid transparent;
    border-radius:7px;
    padding:0;
    background:var(--fa-card);
    color:var(--fa-text);
    cursor:pointer;
    text-align:left;
}
.floating-agent-asset-item:hover {
    border-color:rgba(59,130,246,.45);
}
.floating-agent-asset-item.selected {
    border-color:#3b82f6;
    box-shadow:0 0 0 2px rgba(59,130,246,.18);
}
.floating-agent-asset-item img {
    width:100%;
    aspect-ratio:1;
    display:block;
    object-fit:cover;
    background:rgba(100,116,139,.12);
}
.floating-agent-asset-item span {
    display:block;
    overflow:hidden;
    padding:7px 8px;
    font-size:9px;
    font-weight:750;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.floating-agent-asset-item small {
    display:block;
    padding:0 8px 7px;
    color:var(--fa-muted);
    font-size:8px;
    text-align:left;
}
.floating-agent-asset-scopebar {
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 12px;
    border-bottom:1px solid var(--fa-line);
}
.floating-agent-asset-scopes {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:3px;
    padding:3px;
    border:1px solid var(--fa-line);
    border-radius:7px;
    background:var(--fa-card);
}
.floating-agent-asset-scopes button,
.floating-agent-personal-upload {
    min-height:28px;
    border:0;
    border-radius:5px;
    padding:0 10px;
    background:transparent;
    color:var(--fa-muted);
    font:inherit;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}
.floating-agent-asset-scopes button.active {
    background:#2563eb;
    color:#fff;
}
.floating-agent-personal-upload {
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid var(--fa-line);
    background:var(--fa-card);
    color:var(--fa-text);
}
.floating-agent-personal-upload svg {
    width:13px;
    height:13px;
}
.floating-agent-asset-empty {
    grid-column:1/-1;
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:var(--fa-muted);
    font-size:11px;
}
.floating-agent-asset-actions {
    display:flex;
    justify-content:flex-end;
    gap:8px;
    padding:10px 12px;
    border-top:1px solid var(--fa-line);
}
.floating-agent-asset-actions button {
    min-width:88px;
    min-height:34px;
    border:1px solid var(--fa-line);
    border-radius:7px;
    padding:0 12px;
    background:var(--fa-card);
    color:var(--fa-text);
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.floating-agent-asset-actions button.primary {
    border-color:#2563eb;
    background:#2563eb;
    color:#fff;
}
@keyframes floatingAgentSpin {
    to { transform:rotate(360deg); }
}
@keyframes floatingAgentBlink {
    0%, 7%, 100% { transform:scaleY(1); }
    3% { transform:scaleY(.16); }
}
@media (max-width:760px) {
    .floating-agent-root {
        top:84px;
        right:14px;
    }
    .floating-agent-trigger {
        width:36px;
        height:36px;
    }
    .floating-agent-panel {
        top:130px;
        right:8px;
        width:min(366px, calc(100vw - 16px));
        height:calc(100vh - 16px);
        max-height:calc(100vh - 16px);
    }
    .floating-agent-resize-handle {
        display:none;
    }
    .floating-agent-head {
        padding:10px 12px 8px;
    }
    .floating-agent-head span {
        display:none;
    }
    .floating-agent-workspace {
        display:flex;
        flex-direction:column;
    }
    .floating-agent-sidebar {
        flex:0 0 auto;
        width:100%;
        padding:7px;
        border-right:0;
        border-bottom:1px solid var(--fa-line);
    }
    .floating-agent-new-chat {
        min-height:30px;
    }
    .floating-agent-sidebar-label,
    .floating-agent-conversations {
        display:none;
    }
    .floating-agent-switcher {
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:5px;
        padding-top:6px;
        border-top:0;
    }
    .floating-agent-switcher > button {
        min-height:30px;
        grid-template-columns:minmax(0,1fr);
        padding:4px 5px;
        text-align:center;
    }
    .floating-agent-mini-face {
        display:none;
    }
    .floating-agent-chat {
        flex:1;
    }
    .floating-agent-chat-head {
        padding:7px 10px 6px;
    }
    .floating-agent-chat-head p {
        display:none;
    }
    .floating-agent-chat > .floating-agent-result {
        padding:10px;
    }
    .floating-agent-bubble,
    .floating-agent-guide-options {
        max-width:90%;
    }
    .floating-agent-composer-area {
        padding:6px 8px 8px;
    }
    .floating-agent-quick-row {
        display:none;
    }
    .floating-agent-composer-area .floating-agent-input {
        min-height:52px;
    }
    .floating-agent-tools {
        flex-wrap:wrap;
    }
    .floating-agent-tools > span {
        width:100%;
        margin-left:7px;
    }
    .floating-agent-asset-picker {
        padding:8px;
    }
    .floating-agent-asset-dialog {
        width:calc(100vw - 16px);
        max-height:calc(100vh - 16px);
    }
    .floating-agent-asset-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:7px;
        padding:9px;
    }
    .floating-agent-asset-scopebar {
        align-items:stretch;
        flex-direction:column;
    }
    .floating-agent-personal-upload {
        justify-content:center;
    }
    .floating-agent-actions {
        grid-template-columns:1fr 1fr 1fr;
    }
    .floating-agent-actions button {
        font-size:10px;
        padding:0 5px;
    }
}
