@charset "UTF-8";

:root {
    --ijx-agent-accent-1: #0077ff;
    --ijx-agent-accent-2: #00d2ff;
    --ijx-agent-accent-3: #a7ecff;
    --ijx-agent-accent-4: #f7fcff;
    --ijx-agent-shell-1: rgba(10, 18, 34, 0.42);
    --ijx-agent-shell-2: rgba(16, 42, 76, 0.14);
    --ijx-agent-panel-surface: rgba(248, 251, 255, 0.56);
    --ijx-agent-panel-surface-2: rgba(232, 242, 255, 0.34);
    --ijx-agent-text-1: rgba(15, 23, 42, 0.94);
    --ijx-agent-text-2: rgba(71, 85, 105, 0.82);
    --ijx-agent-border-soft: rgba(255, 255, 255, 0.36);
}

#ijx-agent-root {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483647;
    width: 72px;
    height: 72px;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
    --ijx-pointer-x: 36px;
    --ijx-pointer-y: 18px;
    --ijx-tilt-x: 0deg;
    --ijx-tilt-y: 0deg;
}

#ijx-agent-root * {
    box-sizing: border-box;
}

#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) {
    width: 72px;
    height: 72px;
}

#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) .ijx-agent-launcher {
    transform: scale(0.82);
    box-shadow:
        0 14px 28px rgba(3, 11, 28, 0.22),
        0 0 0 1px rgba(0, 210, 255, 0.18),
        0 0 24px rgba(0, 210, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) .ijx-agent-viewport-aura {
    opacity: 0;
}

.ijx-agent-viewport-aura {
    position: fixed;
    inset: -8%;
    pointer-events: none;
    opacity: 0;
    filter: saturate(140%);
    transition: opacity 380ms ease;
}

#ijx-agent-root.ijx-agent-open .ijx-agent-viewport-aura,
#ijx-agent-root.ijx-agent-summoning .ijx-agent-viewport-aura {
    opacity: 1;
}

.ijx-agent-viewport-aura::before,
.ijx-agent-viewport-aura::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ijx-agent-viewport-aura::before {
    background:
        radial-gradient(circle at 12% 15%, rgba(0, 119, 255, 0.28), transparent 28%),
        radial-gradient(circle at 85% 14%, rgba(0, 210, 255, 0.22), transparent 26%),
        radial-gradient(circle at 83% 86%, rgba(0, 119, 255, 0.18), transparent 24%),
        radial-gradient(circle at 17% 85%, rgba(167, 236, 255, 0.18), transparent 26%);
    filter: blur(48px);
}

.ijx-agent-viewport-aura::after {
    background:
        linear-gradient(90deg, rgba(0, 119, 255, 0.22), transparent 18%, transparent 82%, rgba(0, 210, 255, 0.18)),
        linear-gradient(180deg, rgba(167, 236, 255, 0.18), transparent 14%, transparent 86%, rgba(0, 119, 255, 0.18));
    filter: blur(24px);
}

.ijx-agent-viewport-aura-edge {
    position: absolute;
    pointer-events: none;
    opacity: 0.82;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(167, 236, 255, 0.7), rgba(0, 210, 255, 0));
    filter: blur(10px);
}

.ijx-agent-viewport-aura-edge.edge-top,
.ijx-agent-viewport-aura-edge.edge-bottom {
    left: 10%;
    width: 80%;
    height: 3px;
}

.ijx-agent-viewport-aura-edge.edge-top {
    top: 2.5%;
}

.ijx-agent-viewport-aura-edge.edge-bottom {
    bottom: 2.5%;
}

.ijx-agent-viewport-aura-edge.edge-left,
.ijx-agent-viewport-aura-edge.edge-right {
    top: 10%;
    width: 3px;
    height: 80%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(167, 236, 255, 0.7), rgba(0, 210, 255, 0));
}

.ijx-agent-viewport-aura-edge.edge-left {
    left: 2.5%;
}

.ijx-agent-viewport-aura-edge.edge-right {
    right: 2.5%;
}

.ijx-agent-anchor {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.ijx-agent-launcher {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(158deg, var(--ijx-agent-shell-1), var(--ijx-agent-shell-2));
    backdrop-filter: blur(34px) saturate(185%) brightness(1.04);
    -webkit-backdrop-filter: blur(34px) saturate(185%) brightness(1.04);
    box-shadow:
        0 16px 34px rgba(3, 11, 28, 0.18),
        0 4px 16px rgba(3, 11, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -10px 24px rgba(0, 119, 255, 0.12),
        0 0 0 1px rgba(0, 210, 255, 0.04);
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.24s ease,
        border-color 0.24s ease;
    transform: perspective(240px) rotateX(var(--ijx-tilt-x)) rotateY(var(--ijx-tilt-y));
}

.ijx-agent-launcher:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 38px rgba(3, 11, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -14px 28px rgba(0, 119, 255, 0.14),
        0 0 18px rgba(0, 210, 255, 0.1);
}

.ijx-agent-launcher:active,
.ijx-agent-launcher.is-dragging {
    transform: translateY(1px) scale(0.98);
}

.ijx-agent-launcher.is-summoning {
    transform: scale(1.06);
    box-shadow:
        0 24px 44px rgba(3, 11, 28, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -16px 30px rgba(0, 119, 255, 0.16),
        0 0 22px rgba(0, 210, 255, 0.12);
}

#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) .ijx-agent-launcher:hover {
    transform: translateY(-1px) scale(0.88);
}

#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) .ijx-agent-launcher:active,
#ijx-agent-root.ijx-agent-content-dock-page:not(.ijx-agent-open) .ijx-agent-launcher.is-dragging {
    transform: translateY(1px) scale(0.82);
}

.ijx-agent-launcher::before,
.ijx-agent-launcher::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.ijx-agent-launcher::before {
    inset: 1px;
    background:
        radial-gradient(circle at var(--ijx-pointer-x) var(--ijx-pointer-y), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 26%, rgba(0, 210, 255, 0.04) 62%, transparent 100%),
        linear-gradient(142deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04) 42%, rgba(0, 210, 255, 0.06) 100%);
}

.ijx-agent-launcher::after {
    inset: auto 10px 10px auto;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.38), rgba(167, 236, 255, 0));
    filter: blur(7px);
}

.ijx-agent-launcher-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

.ijx-agent-launcher-core,
.ijx-agent-launcher-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.ijx-agent-launcher-core {
    width: 28px;
    height: 28px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 22%, rgba(167, 236, 255, 0.94) 48%, rgba(0, 210, 255, 0.88) 76%, rgba(0, 119, 255, 1));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 0 22px rgba(0, 210, 255, 0.28),
        0 10px 18px rgba(0, 89, 204, 0.24);
}

.ijx-agent-launcher-orbit {
    border: 1px solid rgba(167, 236, 255, 0.28);
}

.ijx-agent-launcher-orbit.orbit-a {
    width: 42px;
    height: 42px;
    animation: ijx-agent-orbit 5.8s linear infinite;
}

.ijx-agent-launcher-orbit.orbit-b {
    width: 56px;
    height: 56px;
    opacity: 0.58;
    animation: ijx-agent-orbit-reverse 8.2s linear infinite;
}

.ijx-agent-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 388px;
    height: min(620px, calc(100vh - 126px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(180deg, var(--ijx-agent-panel-surface), var(--ijx-agent-panel-surface-2));
    border: 1px solid var(--ijx-agent-border-soft);
    backdrop-filter: blur(38px) saturate(185%) brightness(1.05);
    -webkit-backdrop-filter: blur(38px) saturate(185%) brightness(1.05);
    box-shadow:
        0 22px 54px rgba(5, 12, 24, 0.16),
        0 8px 20px rgba(5, 12, 24, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -20px 32px rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(12px) scale(0.985) perspective(560px) rotateX(calc(var(--ijx-tilt-x) * 0.18)) rotateY(calc(var(--ijx-tilt-y) * 0.18));
    transform-origin: bottom right;
    pointer-events: auto;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ijx-agent-panel::before,
.ijx-agent-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ijx-agent-panel::before {
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.34), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.08) 100%);
    opacity: 0.92;
}

.ijx-agent-panel::after {
    inset: auto -12% -18% 18%;
    height: 48%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12), rgba(255, 255, 255, 0));
    filter: blur(28px);
    opacity: 0.72;
}

#ijx-agent-root.ijx-agent-panel-right .ijx-agent-panel {
    left: 0;
    right: auto;
}

#ijx-agent-root.ijx-agent-panel-bottom .ijx-agent-panel {
    top: calc(100% + 14px);
    bottom: auto;
}

#ijx-agent-root.ijx-agent-panel-left.ijx-agent-panel-top .ijx-agent-panel {
    transform-origin: bottom right;
}

#ijx-agent-root.ijx-agent-panel-right.ijx-agent-panel-top .ijx-agent-panel {
    transform-origin: bottom left;
}

#ijx-agent-root.ijx-agent-panel-left.ijx-agent-panel-bottom .ijx-agent-panel {
    transform-origin: top right;
}

#ijx-agent-root.ijx-agent-panel-right.ijx-agent-panel-bottom .ijx-agent-panel {
    transform-origin: top left;
}

.ijx-agent-panel.ijx-agent-show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1) perspective(560px) rotateX(calc(var(--ijx-tilt-x) * 0.14)) rotateY(calc(var(--ijx-tilt-y) * 0.14));
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .ijx-agent-launcher,
    .ijx-agent-panel {
        background: rgba(16, 25, 46, 0.92);
    }
}

.ijx-agent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.2);
}

.ijx-agent-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ijx-agent-panel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.95), transparent 30%),
        linear-gradient(135deg, #dbeafe, #bfdbfe 46%, #7dd3fc);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 18px rgba(96, 165, 250, 0.18);
}

.ijx-agent-panel-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ijx-agent-panel-copy strong {
    color: var(--ijx-agent-text-1);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.006em;
}

.ijx-agent-panel-copy span {
    color: var(--ijx-agent-text-2);
    font-size: 12px;
    margin-top: 3px;
}

.ijx-agent-panel-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(71, 85, 105, 0.9);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.ijx-agent-panel-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.ijx-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(247, 248, 251, 0.03));
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.ijx-agent-messages::-webkit-scrollbar {
    width: 6px;
}

.ijx-agent-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border-radius: 999px;
}

.ijx-agent-message-row {
    display: flex;
    width: 100%;
    padding: 0 2px;
}

.ijx-agent-message-row.is-bot {
    justify-content: flex-start;
}

.ijx-agent-message-row.is-user {
    justify-content: flex-end;
}

.ijx-agent-bubble {
    position: relative;
    max-width: 84%;
    padding: 11px 14px;
    border-radius: 22px;
    word-break: break-word;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ijx-agent-message-row.is-bot .ijx-agent-bubble {
    background: rgba(255, 255, 255, 0.52);
    color: var(--ijx-agent-text-1);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-top-left-radius: 10px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.ijx-agent-message-row.is-user .ijx-agent-bubble {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.78), rgba(0, 210, 255, 0.62));
    color: #fff;
    border-top-right-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.ijx-agent-bubble-meta {
    font-size: 11px;
    color: rgba(71, 85, 105, 0.76);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ijx-agent-message-row.is-user .ijx-agent-bubble-meta {
    color: rgba(255, 255, 255, 0.78);
}

.ijx-agent-bubble-text {
    font-size: 13.5px;
    line-height: 1.6;
}

.ijx-agent-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px 12px;
}

.ijx-agent-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.36);
    animation: ijx-agent-typing 1.2s infinite ease-in-out;
}

.ijx-agent-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.ijx-agent-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

.ijx-agent-confirm-bar {
    margin: 0 14px 12px;
    padding: 13px 14px;
    border-radius: 20px;
    background: rgba(8, 16, 32, 0.68);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(5, 12, 24, 0.14);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.ijx-agent-confirm-copy strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.ijx-agent-confirm-copy span {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.84);
}

.ijx-agent-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ijx-agent-confirm-btn {
    flex: 1;
    height: 36px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ijx-agent-confirm-btn:hover {
    transform: translateY(-1px);
}

.ijx-agent-confirm-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.ijx-agent-confirm-btn.primary {
    background: linear-gradient(135deg, #0077ff, #00d2ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 119, 255, 0.24);
}

.ijx-agent-composer {
    padding: 0 14px 14px;
    background: linear-gradient(180deg, rgba(247, 249, 253, 0), rgba(247, 249, 253, 0.42));
}

.ijx-agent-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ijx-agent-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ijx-agent-shortcut {
    border: 1px solid rgba(0, 119, 255, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(239, 247, 255, 0.34));
    color: rgba(15, 23, 42, 0.86);
    border-radius: 999px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ijx-agent-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 119, 255, 0.24);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        0 0 18px rgba(0, 210, 255, 0.08);
}

.ijx-agent-composer-shell {
    display: flex;
    align-items: flex-end;
    flex: 1 1 auto;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 10px 20px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.ijx-agent-input {
    width: 100%;
    min-height: 22px;
    max-height: 120px;
    border: none;
    resize: none;
    background: transparent;
    color: var(--ijx-agent-text-1);
    font-size: 13.5px;
    line-height: 1.5;
    outline: none;
    font-family: inherit;
}

.ijx-agent-input::placeholder {
    color: rgba(100, 116, 139, 0.72);
}

.ijx-agent-voice,
.ijx-agent-send {
    width: 42px;
    height: 42px;
    margin-top: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ijx-agent-voice {
    position: relative;
    flex: 0 0 auto;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.36), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(223, 238, 255, 0.22));
    color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 12px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.ijx-agent-voice:hover:not(:disabled),
.ijx-agent-send:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ijx-agent-voice:hover:not(:disabled) {
    border-color: rgba(0, 119, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 14px 26px rgba(15, 23, 42, 0.12),
        0 0 18px rgba(0, 210, 255, 0.12);
}

.ijx-agent-voice:focus-visible,
.ijx-agent-send:focus-visible {
    outline: 2px solid rgba(0, 119, 255, 0.34);
    outline-offset: 2px;
}

.ijx-agent-voice:disabled,
.ijx-agent-send:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.ijx-agent-voice svg,
.ijx-agent-send svg {
    width: 18px;
    height: 18px;
}

.ijx-agent-voice-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.28), transparent 70%);
    opacity: 0;
    transform: scale(0.82);
    pointer-events: none;
}

.ijx-agent-voice.is-recording {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.92), rgba(0, 210, 255, 0.9));
    box-shadow:
        0 16px 28px rgba(0, 119, 255, 0.24),
        0 0 24px rgba(0, 210, 255, 0.18);
}

.ijx-agent-voice.is-recording .ijx-agent-voice-pulse {
    opacity: 1;
    animation: ijx-agent-voice-pulse 1.35s ease-out infinite;
}

.ijx-agent-voice.is-loading {
    color: rgba(15, 23, 42, 0.7);
    background:
        linear-gradient(135deg, rgba(229, 239, 255, 0.92), rgba(209, 230, 255, 0.82));
}

.ijx-agent-send {
    margin-left: 0;
    background: linear-gradient(135deg, #0077ff, #00d2ff);
    color: #fff;
    box-shadow: 0 14px 26px rgba(0, 119, 255, 0.2);
}

.ijx-agent-send:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ijx-agent-voice-status {
    margin-top: 8px;
    padding: 0 4px;
    min-height: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(71, 85, 105, 0.82);
}

.ijx-agent-voice-status[data-state="recording"] {
    color: rgba(0, 119, 255, 0.88);
}

.ijx-agent-voice-status[data-state="loading"] {
    color: rgba(3, 105, 161, 0.9);
}

.ijx-agent-voice-status[data-state="success"] {
    color: rgba(3, 105, 161, 0.88);
}

.ijx-agent-voice-status[data-state="error"] {
    color: rgba(220, 38, 38, 0.88);
}

.ijx-agent-voice-status[data-state="muted"] {
    color: rgba(100, 116, 139, 0.78);
}

.ijx-agent-action-ring {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ijx-ring-size, 112px);
    height: var(--ijx-ring-size, 112px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid rgba(167, 236, 255, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.26),
        0 0 26px rgba(0, 210, 255, 0.32),
        inset 0 0 16px rgba(255, 255, 255, 0.08);
    animation: ijx-agent-ring-pop 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 2147483646;
}

.ijx-agent-action-ring::before,
.ijx-agent-action-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.54);
    opacity: 0.58;
}

.ijx-agent-action-ring::after {
    inset: -10px;
    border-color: rgba(0, 210, 255, 0.4);
    opacity: 0.42;
}

.ijx-agent-action-ring-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 16, 32, 0.88);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 26px rgba(5, 12, 24, 0.2);
}

@keyframes ijx-agent-typing {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.48;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes ijx-agent-orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.04);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes ijx-agent-orbit-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-180deg) scale(0.98);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg) scale(1);
    }
}

@keyframes ijx-agent-ring-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.64);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.22);
    }
}

@keyframes ijx-agent-voice-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.72);
    }
    100% {
        opacity: 0;
        transform: scale(1.34);
    }
}

@media (max-width: 768px) {
    #ijx-agent-root {
        width: 64px;
        height: 64px;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
    }

    .ijx-agent-panel {
        width: min(344px, calc(100vw - 32px));
        height: min(560px, calc(100vh - 108px));
        right: 0;
        bottom: calc(100% + 12px);
        border-radius: 28px;
    }

    .ijx-agent-shortcuts {
        gap: 6px;
    }

    .ijx-agent-shortcut {
        width: 100%;
        justify-content: center;
    }

    .ijx-agent-composer-row {
        gap: 8px;
    }

    .ijx-agent-voice,
    .ijx-agent-send {
        width: 40px;
        height: 40px;
    }

    .ijx-agent-confirm-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ijx-agent-launcher,
    .ijx-agent-panel,
    .ijx-agent-launcher-orbit.orbit-a,
    .ijx-agent-launcher-orbit.orbit-b,
    .ijx-agent-voice.is-recording .ijx-agent-voice-pulse {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

