/* ==========================================================================
   INFOPATH V3 — PATHIE AI DARK LIQUID GLASS FLOATING ASSISTANT
   Synchronized 100% with Dashboard & Landing Page Dark Ocean Glass Palette.
   ========================================================================== */
.ip-pathie {
    color-scheme: dark;
    --pathie-font: "Be Vietnam Pro", Inter, system-ui, -apple-system, sans-serif;
    --pathie-mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
    --pathie-motion: 220ms cubic-bezier(.22, .68, .28, 1);

    /* Core Dark Ocean Liquid Glass Tokens */
    --pathie-ocean: #071C2C;
    --pathie-deep: #0B293D;
    --pathie-surface: rgba(12, 40, 58, 0.88);
    --pathie-surface-strong: rgba(8, 28, 43, 0.95);
    --pathie-bubble-ai: rgba(16, 52, 74, 0.88);
    --pathie-tint: rgba(36, 182, 199, 0.16);
    --pathie-tint-hover: rgba(67, 205, 218, 0.24);

    --pathie-teal: #1EA1AE;
    --pathie-teal-deep: #137882;
    --pathie-cyan: #43CDDA;
    --pathie-ice: #C8F3FA;

    --pathie-border: rgba(125, 218, 236, 0.22);
    --pathie-control-border: rgba(125, 218, 236, 0.34);
    --pathie-text: #EFF8FD;
    --pathie-muted: #A9C9D8;
    --pathie-link: #67E8F9;

    --pathie-success: #34D399;
    --pathie-success-text: #6EE7B7;
    --pathie-warning: #FBBF24;
    --pathie-warning-text: #FDE68A;
    --pathie-warning-bg: rgba(120, 68, 12, 0.34);

    position: fixed;
    z-index: 48;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    color: var(--pathie-text);
    font: 400 .875rem/1.55 var(--pathie-font);
}

.ip-pathie .ip-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.ip-pathie [hidden],
.ip-pathie[hidden] {
    display: none;
}

.ip-pathie button,
.ip-pathie textarea {
    font: inherit;
}

.ip-pathie button {
    cursor: pointer;
}

.ip-pathie button:disabled {
    cursor: default;
    opacity: .55;
}

.ip-pathie :is(h2, h3, h4) {
    color: var(--pathie-text);
    letter-spacing: -0.015em;
}

.ip-pathie-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Floating 3D Glass Water-Droplet Launcher (Mascot Pathie Preserved) */
.ip-pathie-launcher {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1.5px solid rgba(165, 243, 252, 0.62);
    border-radius: 50%;
    background: radial-gradient(
        circle at 28% 24%,
        rgba(235, 252, 255, 0.68) 0%,
        rgba(103, 232, 249, 0.38) 28%,
        rgba(20, 155, 165, 0.80) 64%,
        rgba(7, 28, 44, 0.94) 100%
    );
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow:
        0 14px 34px rgba(2, 10, 18, 0.56),
        0 0 0 4px rgba(67, 205, 218, 0.18),
        0 0 28px rgba(67, 205, 218, 0.44),
        inset 0 2px 3px rgba(255, 255, 255, 0.78),
        inset 0 -6px 14px rgba(67, 205, 218, 0.38);
    overflow: hidden;
}

.ip-pathie-launcher::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 11px;
    width: 24px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    transform: rotate(-26deg);
    filter: blur(1px);
    pointer-events: none;
}

.ip-pathie-launcher img {
    filter: drop-shadow(0 2px 6px rgba(3, 14, 24, 0.4));
}

.ip-pathie-launcher-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 13px;
    height: 13px;
    border: 2px solid #081D2C;
    border-radius: 50%;
    background: var(--pathie-success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.78);
}

/* Dark Frosted Glass Greeting Toast */
.ip-pathie-greeting {
    position: absolute;
    right: 74px;
    bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: .36rem;
    width: max-content;
    max-width: min(17.5rem, calc(100vw - 110px));
    padding: .6rem .52rem .6rem .88rem;
    border: 1px solid rgba(125, 218, 236, 0.38);
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(145deg, rgba(11, 38, 56, 0.94), rgba(7, 24, 38, 0.96));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    color: var(--pathie-text);
    box-shadow:
        0 14px 34px rgba(2, 10, 18, 0.52),
        inset 0 1px 0 rgba(200, 243, 250, 0.22);
    font-size: .78rem;
}

.ip-pathie-greeting p {
    margin: .22rem 0;
    color: var(--pathie-text);
}

.ip-pathie-icon-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--pathie-ice);
    transition: background-color var(--pathie-motion), border-color var(--pathie-motion), color var(--pathie-motion);
}

.ip-pathie-icon-button:hover {
    border-color: var(--pathie-control-border);
    background: var(--pathie-tint);
    color: #FFFFFF;
}

.ip-pathie-icon-button .ip-icon {
    width: 17px;
    height: 17px;
}

.ip-pathie-greeting .ip-pathie-icon-button {
    width: 30px;
    height: 30px;
}

/* Dark Liquid Glass Chat Dialog Window */
.ip-pathie-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(440px, calc(100vw - 44px));
    height: min(630px, calc(100dvh - 116px));
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(135, 226, 240, 0.30);
    border-radius: 24px;
    background: linear-gradient(
        162deg,
        rgba(9, 31, 47, 0.94) 0%,
        rgba(11, 39, 58, 0.95) 52%,
        rgba(7, 24, 37, 0.97) 100%
    );
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
    box-shadow:
        0 28px 68px rgba(2, 10, 18, 0.68),
        0 0 0 1px rgba(67, 205, 218, 0.10),
        inset 0 1px 0 rgba(210, 245, 255, 0.22);
}

.ip-pathie-panel.is-expanded {
    width: min(700px, calc(100vw - 44px));
    height: min(790px, calc(100dvh - 112px));
}

.ip-pathie-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .85rem .95rem;
    border-bottom: 1px solid rgba(135, 226, 240, 0.22);
    background: linear-gradient(135deg, rgba(13, 47, 68, 0.96) 0%, rgba(16, 70, 92, 0.94) 56%, rgba(24, 128, 142, 0.86) 100%);
    color: #FFFFFF;
}

.ip-pathie-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(67, 205, 218, 0.38));
}

.ip-pathie-heading {
    flex: 1 1 0;
    min-width: 0;
}

.ip-pathie-header .ip-pathie-heading h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.25;
}

.ip-pathie-header .ip-pathie-heading p {
    margin: .12rem 0 0;
    color: var(--pathie-ice);
    font-size: .74rem;
    line-height: 1.4;
}

.ip-pathie-window-actions {
    display: flex;
    gap: .2rem;
}

.ip-pathie-header .ip-pathie-icon-button {
    color: var(--pathie-ice);
}

.ip-pathie-header .ip-pathie-icon-button:hover {
    border-color: rgba(200, 243, 250, 0.38);
    background: rgba(200, 243, 250, 0.14);
    color: #FFFFFF;
}

/* Status & Thread Toolbar */
.ip-pathie-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 .45rem;
    padding: .3rem .85rem;
    border-bottom: 1px solid var(--pathie-border);
    background: rgba(7, 23, 36, 0.78);
}

.ip-pathie-connection {
    display: inline-flex;
    align-items: center;
    gap: .36rem;
    color: var(--pathie-muted);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ip-pathie-connection::before {
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    background: var(--pathie-muted);
    content: "";
}

.ip-pathie-connection[data-state="ready"] {
    color: var(--pathie-success-text);
}

.ip-pathie-connection[data-state="ready"]::before {
    background: var(--pathie-success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.72);
}

.ip-pathie-connection[data-state="unavailable"] {
    color: var(--pathie-warning-text);
}

.ip-pathie-connection[data-state="unavailable"]::before {
    background: var(--pathie-warning);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.65);
}

.ip-pathie-thread-actions {
    display: flex;
    gap: .18rem;
}

.ip-pathie-text-button {
    min-height: 32px;
    padding: .28rem .52rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--pathie-link);
    font-size: .72rem !important;
    font-weight: 600 !important;
    transition: background-color var(--pathie-motion), border-color var(--pathie-motion), color var(--pathie-motion);
}

.ip-pathie-text-button:hover:not(:disabled) {
    border-color: rgba(103, 232, 249, 0.25);
    background: var(--pathie-tint);
    color: #E0FBFF;
}

/* Conversation Scroll Area & Custom Dark Scrollbar */
.ip-pathie-scroll {
    min-width: 0;
    overflow: auto;
    padding: .9rem .95rem;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(67, 205, 218, 0.36) transparent;
}

.ip-pathie-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ip-pathie-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ip-pathie-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(67, 205, 218, 0.32);
}

.ip-pathie-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 205, 218, 0.54);
}

.ip-pathie-scroll:focus-visible {
    outline: 2px solid var(--pathie-cyan);
    outline-offset: -2px;
}

/* Welcome View */
.ip-pathie-welcome {
    margin: .15rem auto 0;
    max-width: 27rem;
    text-align: center;
}

.ip-pathie-welcome-avatar {
    display: block;
    margin: 0 auto .4rem;
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 0 18px rgba(67, 205, 218, 0.42));
}

.ip-pathie-welcome h3 {
    margin: .14rem 0 .34rem;
    color: #FFFFFF;
    font-size: 1.04rem;
    font-weight: 700;
}

.ip-pathie-welcome p {
    margin: .28rem auto;
    color: var(--pathie-muted);
    font-size: .8rem;
    line-height: 1.55;
}

.ip-pathie-welcome .ip-pathie-tagline {
    color: var(--pathie-link);
    font-size: .72rem;
    font-weight: 700;
}

.ip-pathie-welcome .ip-pathie-suggestions-label {
    margin: .78rem auto .44rem;
    color: var(--pathie-ice);
    font-weight: 600;
}

.ip-pathie-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .46rem;
    margin: 0 auto;
}

.ip-pathie-suggestions button {
    min-height: 44px;
    padding: .5rem .62rem;
    border: 1px solid rgba(125, 218, 236, 0.24);
    border-radius: 12px;
    background: rgba(15, 50, 72, 0.74);
    color: #E2F6FD;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    transition: border-color var(--pathie-motion), background-color var(--pathie-motion), transform var(--pathie-motion), box-shadow var(--pathie-motion);
}

.ip-pathie-suggestions button:hover:not(:disabled) {
    border-color: var(--pathie-cyan);
    background: rgba(24, 82, 108, 0.86);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 14, 24, 0.36);
}

.ip-pathie-suggestions button:disabled {
    opacity: .6;
    cursor: default;
}

.ip-pathie-followups .ip-pathie-suggestions {
    width: 100%;
}

/* Message Bubbles — Clear Visual Distinction Between User and Pathie AI */
.ip-pathie-messages {
    display: grid;
    gap: .82rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-pathie-message {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    min-width: 0;
}

.ip-pathie-message--user {
    justify-content: flex-end;
}

.ip-pathie-bubble {
    max-width: calc(100% - 34px);
    min-width: 0;
}

.ip-pathie-message--user .ip-pathie-bubble {
    max-width: 88%;
}

.ip-pathie-message img {
    flex: none;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(67, 205, 218, 0.32));
}

.ip-pathie-answer,
.ip-pathie-question {
    padding: .72rem .88rem;
    border: 1px solid var(--pathie-border);
    border-radius: 4px 16px 16px 16px;
    background: var(--pathie-bubble-ai);
    color: var(--pathie-text);
    overflow-wrap: anywhere;
    font-size: .85rem;
    line-height: 1.62;
    box-shadow: inset 0 1px 0 rgba(200, 243, 250, 0.10);
}

.ip-pathie-question {
    border-color: rgba(135, 226, 240, 0.44);
    border-radius: 16px 4px 16px 16px;
    background: linear-gradient(135deg, #137C88 0%, #1CA3B2 100%);
    color: #FFFFFF;
    white-space: pre-wrap;
    box-shadow:
        0 6px 18px rgba(2, 14, 24, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ip-pathie-answer[data-streaming] {
    white-space: pre-wrap;
}

.ip-pathie-answer p {
    margin: 0 0 .54rem;
    color: var(--pathie-text);
    white-space: pre-line;
}

.ip-pathie-answer strong {
    color: #FFFFFF;
    font-weight: 700;
}

.ip-pathie-answer em {
    color: #D2EFFA;
}

.ip-pathie-subhead {
    margin: .62rem 0 .34rem;
    color: #7CE8F5 !important;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.38;
}

.ip-pathie-answer :is(ul, ol) {
    margin: .42rem 0 .56rem;
    padding-inline-start: 1.25rem;
}

.ip-pathie-answer li {
    margin-bottom: .24rem;
}

.ip-pathie-answer :last-child {
    margin-bottom: 0;
}

/* Inline Code */
.ip-pathie-answer code {
    padding: .12rem .34rem;
    border: 1px solid rgba(67, 205, 218, 0.26);
    border-radius: 6px;
    background: rgba(6, 20, 32, 0.85);
    color: #8CEBF7;
    font-family: var(--pathie-mono);
    font-size: .86em;
}

/* Fenced Code Block Container with Copy Button */
.ip-pathie-code-wrap {
    margin: .56rem 0;
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 12px;
    background: rgba(5, 17, 27, 0.94);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(200, 243, 250, 0.08);
}

.ip-pathie-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .32rem .66rem;
    border-bottom: 1px solid rgba(103, 232, 249, 0.18);
    background: rgba(12, 39, 57, 0.78);
    font-size: .7rem;
    color: var(--pathie-muted);
}

.ip-pathie-code-lang {
    font-family: var(--pathie-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7CE8F5;
}

.ip-pathie-code-copy {
    padding: .16rem .46rem;
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 6px;
    background: rgba(20, 68, 92, 0.65);
    color: #DDF7FC;
    font-size: .68rem !important;
    font-weight: 600 !important;
    transition: background-color var(--pathie-motion), border-color var(--pathie-motion);
}

.ip-pathie-code-copy:hover {
    border-color: var(--pathie-cyan);
    background: rgba(36, 148, 165, 0.45);
    color: #FFFFFF;
}

.ip-pathie-code-wrap pre {
    margin: 0;
    padding: .68rem .78rem;
    overflow-x: auto;
    font-family: var(--pathie-mono);
    font-size: .78rem;
    line-height: 1.54;
    color: #E5F6FD;
    scrollbar-width: thin;
    scrollbar-color: rgba(67, 205, 218, 0.35) transparent;
}

.ip-pathie-code-wrap pre code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

/* Blockquote / Supplemental Knowledge Callout */
.ip-pathie-note {
    margin: .56rem 0 0;
    padding: .46rem .68rem;
    border-left: 3px solid var(--pathie-cyan);
    border-radius: 0 10px 10px 0;
    background: rgba(18, 63, 86, 0.58);
    color: #B9DCEB;
    font-size: .77rem;
    line-height: 1.5;
}

/* Dark Glass Markdown Tables */
.ip-pathie-table-wrap {
    max-width: 100%;
    margin: .54rem 0;
    overflow: auto;
    border: 1px solid var(--pathie-border);
    border-radius: 10px;
}

.ip-pathie-table-wrap table {
    width: 100%;
    min-width: 34ch;
    border-collapse: collapse;
    font-size: .79rem;
}

.ip-pathie-table-wrap :is(th, td) {
    padding: .38rem .52rem;
    border-bottom: 1px solid rgba(125, 218, 236, 0.16);
    border-right: 1px solid rgba(125, 218, 236, 0.14);
    text-align: left;
    color: #E2F4FC;
}

.ip-pathie-table-wrap :is(th, td):last-child {
    border-right: 0;
}

.ip-pathie-table-wrap tr:last-child td {
    border-bottom: 0;
}

.ip-pathie-table-wrap th {
    background: rgba(20, 70, 94, 0.84);
    color: #FFFFFF;
    font-weight: 700;
}

.ip-pathie-table-wrap td {
    background: rgba(9, 31, 46, 0.62);
}

/* Reference & Link Cards */
.ip-pathie-references {
    display: grid;
    gap: .36rem;
    margin-top: .5rem;
}

.ip-pathie-references h4 {
    margin: 0;
    color: var(--pathie-muted);
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ip-pathie-reference {
    padding: .46rem .62rem;
    border: 1px solid rgba(67, 205, 218, 0.24);
    border-radius: 11px;
    background: rgba(9, 32, 48, 0.84);
    font-size: .74rem;
    transition: border-color var(--pathie-motion), background-color var(--pathie-motion);
}

.ip-pathie-reference:hover {
    border-color: rgba(103, 232, 249, 0.48);
    background: rgba(14, 48, 70, 0.90);
}

.ip-pathie-reference :is(a, strong) {
    color: var(--pathie-link);
    font-weight: 700;
    text-decoration: none;
}

.ip-pathie-reference p {
    margin: .18rem 0 0;
    color: var(--pathie-muted);
    line-height: 1.45;
}

.ip-pathie-reference a:hover {
    color: #B8F4FF;
    text-decoration: underline;
}

.ip-pathie-transcript-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem;
    margin-top: .22rem;
}

.ip-pathie-transcript-actions button {
    text-align: left;
}

/* Typing / Thinking Indicator */
.ip-pathie-typing {
    display: flex;
    gap: .48rem;
    align-items: center;
    color: var(--pathie-ice);
    font-size: .78rem;
}

.ip-pathie-typing-dots {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
    height: 14px;
}

.ip-pathie-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #67E8F9, #1EA1AE);
    box-shadow: 0 0 8px rgba(67, 205, 218, 0.65);
    animation: ip-pathie-wave 1.1s ease-in-out infinite;
}

.ip-pathie-typing-dots span:nth-child(2) { animation-delay: 160ms; }
.ip-pathie-typing-dots span:nth-child(3) { animation-delay: 320ms; }

@keyframes ip-pathie-wave {
    0%, 100% { transform: translateY(0) scale(0.85); opacity: 0.45; }
    50% { transform: translateY(-4px) scale(1.15); opacity: 1; }
}

/* Dark Amber Service & Warning Notes */
.ip-pathie-service-note,
.ip-pathie-message-note {
    padding: .52rem .68rem;
    border: 1px solid rgba(251, 191, 36, 0.40);
    border-radius: 10px;
    background: var(--pathie-warning-bg);
    color: var(--pathie-warning-text);
    font-size: .77rem;
    line-height: 1.5;
}

.ip-pathie-service-note {
    margin-bottom: .68rem;
}

.ip-pathie-message-note {
    margin: .38rem 0 0;
}

/* Dark Liquid Glass Composer */
.ip-pathie-composer {
    padding: .68rem .85rem;
    border-top: 1px solid var(--pathie-border);
    background: rgba(7, 23, 36, 0.92);
}

.ip-pathie-compose-row {
    display: flex;
    gap: .48rem;
    align-items: flex-end;
}

.ip-pathie textarea {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    max-height: 6.8rem;
    padding: .6rem .82rem;
    resize: none;
    border: 1px solid var(--pathie-control-border);
    border-radius: 15px;
    background: rgba(13, 44, 64, 0.86);
    color: var(--pathie-text);
    line-height: 1.45;
    transition: border-color var(--pathie-motion), background-color var(--pathie-motion), box-shadow var(--pathie-motion);
}

.ip-pathie textarea:focus {
    outline: none;
    border-color: var(--pathie-cyan);
    background: rgba(16, 52, 74, 0.94);
    box-shadow: 0 0 0 3px rgba(67, 205, 218, 0.24);
}

.ip-pathie textarea::placeholder {
    color: #8EB2C4;
}

.ip-pathie-send {
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(103, 232, 249, 0.45);
    border-radius: 14px;
    background: linear-gradient(135deg, #137C88, #20A7B6);
    color: #FFFFFF;
    transition: background-color var(--pathie-motion), transform var(--pathie-motion), box-shadow var(--pathie-motion);
}

.ip-pathie-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #1994A2, #32C2D2);
    box-shadow: 0 6px 18px rgba(36, 182, 199, 0.36);
    transform: translateY(-1px);
}

.ip-pathie-send .ip-icon {
    width: 18px;
    height: 18px;
}

.ip-pathie-stop {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(120, 68, 12, 0.42);
    color: #FDE68A;
}

.ip-pathie-stop:hover:not(:disabled) {
    border-color: #FBBF24;
    background: rgba(146, 82, 14, 0.58);
}

.ip-pathie-feedback {
    margin: .3rem 0 0;
    color: var(--pathie-muted);
    font-size: .71rem;
}

.ip-pathie-feedback:empty {
    margin: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ip-pathie-launcher {
        transition: transform var(--pathie-motion), box-shadow var(--pathie-motion);
    }

    .ip-pathie-launcher:hover {
        transform: scale(1.06);
        box-shadow: 0 16px 38px rgba(2, 10, 18, 0.62), 0 0 32px rgba(67, 205, 218, 0.58);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ip-pathie-typing-dots span {
        animation: none;
    }

    .ip-pathie-launcher,
    .ip-pathie-suggestions button {
        transition: none;
    }
}

@media (max-width: 610px) {
    .ip-pathie {
        right: max(13px, env(safe-area-inset-right));
        bottom: max(13px, env(safe-area-inset-bottom));
    }

    .ip-pathie.is-open {
        inset: auto 0 var(--ip-pathie-keyboard-offset, 0px);
    }

    .ip-pathie.is-open .ip-pathie-launcher {
        display: none;
    }

    .ip-pathie-panel,
    .ip-pathie-panel.is-expanded {
        position: static;
        width: 100%;
        height: min(680px, calc(var(--ip-pathie-viewport-height, 100dvh) - 10px));
        border-radius: 22px 22px 0 0;
    }

    .ip-pathie-panel.is-expanded {
        height: calc(var(--ip-pathie-viewport-height, 100dvh) - 2px);
    }

    .ip-pathie-composer {
        padding-bottom: max(.6rem, env(safe-area-inset-bottom));
    }

    .ip-pathie textarea {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .ip-pathie-greeting {
        right: 0;
        bottom: 70px;
        max-width: min(15rem, calc(100vw - 35px));
    }

    .ip-pathie-suggestions {
        grid-template-columns: minmax(0, 1fr);
    }
}
