.st-seginho {
    position: fixed;
    left: 20px;
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 1390;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    pointer-events: none;
}
.st-seginho__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1385;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgb(10 33 72 / 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.st-seginho__backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
.st-seginho__teaser {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    margin: 0;
    width: max-content;
    min-width: 196px;
    max-width: min(248px, calc(100vw - 112px));
    padding: 12px 16px;
    border-radius: 16px 16px 16px 6px;
    background: #fff;
    border: 1px solid #e4eaf1;
    box-shadow: 0 8px 24px rgb(8 36 80 / 0.12);
    color: #0a2148;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    animation: st-seginho-teaser 0.5s ease 1.2s forwards;
    text-wrap: balance;
}
.st-seginho__teaser strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}
.st-seginho__teaser span {
    display: block;
    margin-top: 4px;
    color: #4a627c;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}
.st-seginho.is-open .st-seginho__teaser,
.st-seginho.is-teaser-done .st-seginho__teaser {
    animation: none;
    opacity: 0;
    visibility: hidden;
}
.st-seginho__panel {
    width: min(360px, calc(100vw - 40px));
    max-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e2e9f2;
    background: #fff;
    box-shadow: 0 20px 50px rgb(8 36 80 / 0.18);
    opacity: 0;
    transform: translateX(-12px) translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.st-seginho.is-open .st-seginho__panel {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    pointer-events: auto;
}
.st-seginho__head {
    display: grid;
    grid-template-columns: 48px 1fr 38px;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: linear-gradient(135deg, #0a2148 0%, #143566 100%);
    color: #fff;
}
.st-seginho__avatar {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgb(255 255 255 / 0.35);
    background: #0a2148;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}
.st-seginho__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    transform: scale(1.35);
    mix-blend-mode: lighten;
}
.st-seginho__head-text {
    min-width: 0;
}
.st-seginho__head-text h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.st-seginho__head-text p {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
}
.st-seginho__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.st-seginho__close:hover {
    background: rgb(255 255 255 / 0.16);
}
.st-seginho__messages {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(46vh, 380px);
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f6f8fb;
}
.st-seginho__msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.st-seginho__msg--bot {
    align-self: flex-start;
    background: #fff;
    color: #2d4560;
    border: 1px solid #e6ecf3;
    border-bottom-left-radius: 4px;
}
.st-seginho__msg--user {
    align-self: flex-end;
    background: #0a2148;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.st-seginho__msg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.st-seginho__msg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d4dde8;
    background: #f4f7fb;
    color: #0a2148;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.st-seginho__msg-link:hover {
    background: #fff8d6;
    border-color: #f5c400;
}
.st-seginho__typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    background: #fff;
    border: 1px solid #e6ecf3;
}
.st-seginho__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9eb4cb;
    animation: st-seginho-dot 1.1s ease-in-out infinite;
}
.st-seginho__typing span:nth-child(2) { animation-delay: 0.15s; }
.st-seginho__typing span:nth-child(3) { animation-delay: 0.3s; }
.st-seginho__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 4px;
    background: #f6f8fb;
    border-top: 1px solid #e8edf4;
}
.st-seginho__chip {
    padding: 7px 11px;
    border: 1px solid #d8e1eb;
    border-radius: 999px;
    background: #fff;
    color: #0a2148;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.st-seginho__chip:hover {
    background: #fff8d6;
    border-color: #f5c400;
}
.st-seginho__form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    background: #fff;
    border-top: 1px solid #e8edf4;
}
.st-seginho__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #dce3ec;
    border-radius: 999px;
    background: #f9fafc;
    color: #0a2148;
    font-size: 0.875rem;
}
.st-seginho__input:focus {
    outline: 2px solid #f5c400;
    outline-offset: 1px;
    border-color: #f5c400;
    background: #fff;
}
.st-seginho__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #f5c400;
    color: #0a2148;
    font-size: 1rem;
    cursor: pointer;
}
.st-seginho__send:hover {
    background: #ffd84a;
}
.st-seginho__launcher {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 112px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0a2148;
    cursor: pointer;
    pointer-events: auto;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.st-seginho__launcher:hover .st-seginho__launcher-img {
    filter: drop-shadow(0 14px 22px rgb(10 33 72 / 0.38));
}
.st-seginho.is-open .st-seginho__launcher {
    opacity: 0.85;
    transform: scale(0.96);
}
.st-seginho__launcher-bg {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 30px;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff 0%, #f3f7fb 45%, #e6edf5 100%);
    border: 3px solid #f5c400;
    box-shadow:
        0 10px 22px rgb(10 33 72 / 0.2),
        inset 0 -6px 14px rgb(10 33 72 / 0.06);
    pointer-events: none;
}
.st-seginho__launcher-ring {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    border: 2px solid rgb(245 196 0 / 0.55);
    animation: st-seginho-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
.st-seginho.is-open .st-seginho__launcher-ring {
    animation: none;
    opacity: 0;
}
.st-seginho__launcher-figure {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 112px;
    height: 118px;
    margin: 0;
    pointer-events: none;
}
.st-seginho__launcher-img {
    display: block;
    width: 108px;
    height: 118px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 14px rgb(10 33 72 / 0.28));
    animation: st-seginho-bob 3.2s ease-in-out infinite;
    transform-origin: center bottom;
}
.st-seginho.is-open .st-seginho__launcher-img {
    animation: none;
}
.st-seginho__launcher-name {
    position: relative;
    z-index: 3;
    padding: 4px 12px;
    border-radius: 999px;
    background: #0a2148;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgb(10 33 72 / 0.25);
}
.st-seginho__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes st-seginho-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes st-seginho-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.12); opacity: 0; }
    100% { opacity: 0; }
}
@keyframes st-seginho-teaser {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes st-seginho-dot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
@media (max-width: 700px) {
    .st-seginho {
        left: 10px;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }
    .st-seginho__launcher {
        width: 96px;
        gap: 4px;
    }
    .st-seginho__launcher-bg,
    .st-seginho__launcher-ring {
        bottom: 26px;
        width: 78px;
        height: 78px;
        margin-left: -39px;
        border-width: 2px;
    }
    .st-seginho__launcher-figure {
        width: 96px;
        height: 100px;
    }
    .st-seginho__launcher-img {
        width: 92px;
        height: 100px;
    }
    .st-seginho__launcher-name {
        padding: 3px 10px;
        font-size: 0.6875rem;
    }
    .st-seginho__panel {
        width: min(360px, calc(100vw - 24px));
        max-height: min(70vh, 520px);
    }
    .st-seginho__teaser {
        min-width: 168px;
        max-width: min(220px, calc(100vw - 120px));
        padding: 10px 14px;
    }
    .st-seginho__teaser strong {
        font-size: 0.8125rem;
    }
    .st-seginho__teaser span {
        font-size: 0.75rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .st-seginho__launcher,
    .st-seginho__launcher-ring,
    .st-seginho__launcher-img,
    .st-seginho__teaser,
    .st-seginho__typing span { animation: none; }
    .st-seginho__teaser {
        opacity: 1;
        transform: none;
    }
    .st-seginho__panel { transition: opacity 0.15s ease; }
}