.dolff-chatbot {
    --bot-ink: #1d1920;
    --bot-muted: #706674;
    --bot-line: rgba(41, 29, 45, 0.13);
    --bot-paper: rgba(255, 253, 252, 0.97);
    --bot-berry: #9b2f68;
    --bot-coral: #ef664f;
    --bot-gold: #eca941;
    --bot-plum: #6e3f94;
    position: fixed;
    left: auto;
    right: clamp(0.9rem, 2.2vw, 1.75rem);
    bottom: calc(clamp(0.9rem, 2.2vw, 1.6rem) + env(safe-area-inset-bottom));
    z-index: 190;
    display: block;
    width: 82px;
    height: 88px;
    pointer-events: none;
    isolation: isolate;
}

.dolff-chatbot > * {
    pointer-events: auto;
}

.dolff-chatbot-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 82px;
    height: 88px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dolff-chatbot-toggle:focus-visible,
.dolff-chatbot-close:focus-visible,
.dolff-chatbot-reset:focus-visible,
.dolff-chatbot-send:focus-visible,
.dolff-chatbot-suggestion:focus-visible,
.dolff-chatbot-bubble a:focus-visible,
.dolff-chatbot-input:focus-visible {
    outline: 3px solid rgba(239, 102, 79, 0.25);
    outline-offset: 3px;
}

.dolff-chatbot-mascot {
    position: relative;
    display: block;
    width: 82px;
    height: 88px;
    overflow: visible;
    border: 1px solid rgba(61, 37, 66, 0.16);
    border-radius: 28px 31px 39px 22px;
    background:
        radial-gradient(circle at 27% 18%, rgba(255, 255, 255, 0.98), transparent 28%),
        linear-gradient(148deg, #fffefd 0%, #fff7f2 52%, #f8edf8 100%);
    box-shadow: 0 18px 42px rgba(57, 37, 63, 0.17), inset 0 1px 0 #fff;
    transform-origin: 58% 100%;
    animation: dolffGuideFloat 3.8s cubic-bezier(0.42, 0, 0.28, 1) infinite;
}

.dolff-chatbot-mascot::before {
    content: '';
    position: absolute;
    inset: 8px auto 8px 7px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--bot-berry), var(--bot-coral) 56%, var(--bot-gold));
    box-shadow: 0 0 20px rgba(239, 102, 79, 0.24);
}

.dolff-chatbot-mascot::after {
    content: '';
    position: absolute;
    right: 7px;
    bottom: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bot-gold);
    box-shadow: -9px 5px 0 -3px var(--bot-coral), 3px -10px 0 -4px var(--bot-berry);
}

.dolff-chatbot-orbit {
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 1px solid rgba(155, 47, 104, 0.13);
    border-radius: 36% 64% 61% 39% / 53% 45% 55% 47%;
    animation: dolffGuideOrbit 9s linear infinite;
}

.dolff-chatbot-face {
    position: absolute;
    top: 16px;
    left: 28px;
    z-index: 3;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dolff-chatbot-eye {
    position: relative;
    width: 8px;
    height: 11px;
    border-radius: 50%;
    background: var(--bot-ink);
    animation: dolffGuideBlink 5.2s ease-in-out infinite;
}

.dolff-chatbot-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 1px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
}

.dolff-chatbot-glyph {
    position: absolute;
    inset: 20px 0 0;
    display: grid;
    place-items: center;
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 3.45rem;
    font-weight: 790;
    line-height: 1;
    letter-spacing: -0.11em;
    transform: translateX(-1px);
}

.dolff-chatbot-hint {
    position: absolute;
    top: 6px;
    right: calc(100% + 13px);
    display: grid;
    gap: 0.08rem;
    width: max-content;
    max-width: min(250px, calc(100vw - 120px));
    padding: 0.68rem 0.88rem 0.66rem;
    border: 1px solid var(--bot-line);
    border-radius: 20px 20px 5px 20px;
    background: rgba(255, 253, 252, 0.95);
    box-shadow: 0 15px 34px rgba(57, 37, 63, 0.13);
    color: var(--bot-ink);
    text-align: left;
    transform-origin: 100% 100%;
    animation: dolffGuideHint 4.4s ease-in-out infinite;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dolff-chatbot-hint::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 9px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--bot-line);
    border-right: 1px solid var(--bot-line);
    background: inherit;
    transform: rotate(45deg);
}

.dolff-chatbot-hint strong {
    position: relative;
    z-index: 1;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.dolff-chatbot-hint-text {
    position: relative;
    z-index: 1;
    color: var(--bot-muted);
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dolff-chatbot-hint-text.is-changing {
    opacity: 0;
    transform: translateY(3px);
}

.dolff-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    gap: 0;
    width: min(458px, calc(100vw - 1.5rem));
    height: min(650px, calc(100dvh - 144px));
    max-height: calc(100vh - 144px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(49, 34, 54, 0.14);
    border-radius: 31px 17px 34px 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 247, 0.97) 54%, rgba(250, 244, 250, 0.98));
    box-shadow: 0 28px 80px rgba(49, 31, 57, 0.23), 0 3px 12px rgba(49, 31, 57, 0.08);
    opacity: 0;
    transform: translateY(14px) scale(0.965);
    transform-origin: 100% 100%;
    transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(22px) saturate(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.dolff-chatbot-panel[hidden] {
    display: none !important;
}

.dolff-chatbot.is-open .dolff-chatbot-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dolff-chatbot-panel-shape {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.dolff-chatbot-panel-shape.shape-one {
    top: -72px;
    right: -48px;
    width: 210px;
    height: 180px;
    background: radial-gradient(circle at 35% 42%, rgba(239, 102, 79, 0.18), rgba(236, 169, 65, 0.04) 66%, transparent 70%);
}

.dolff-chatbot-panel-shape.shape-two {
    bottom: 52px;
    left: -92px;
    width: 190px;
    height: 220px;
    background: radial-gradient(circle at 64% 48%, rgba(110, 63, 148, 0.12), transparent 68%);
}

.dolff-chatbot-panel-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1.15rem 1rem;
    border-bottom: 1px solid var(--bot-line);
}

.dolff-chatbot-identity {
    display: flex;
    min-width: 0;
    gap: 0.8rem;
    align-items: center;
}

.dolff-chatbot-mini {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(48, 33, 52, 0.13);
    border-radius: 15px 18px 19px 12px;
    background: linear-gradient(145deg, #fff, #fff4ec 58%, #f3e5f2);
}

.dolff-chatbot-mini::before {
    content: '';
    position: absolute;
    inset: 5px auto 5px 5px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(var(--bot-berry), var(--bot-coral), var(--bot-gold));
}

.dolff-chatbot-mini i {
    position: absolute;
    top: 8px;
    width: 4px;
    height: 6px;
    border-radius: 50%;
    background: var(--bot-ink);
}

.dolff-chatbot-mini i:first-child {
    left: 18px;
}

.dolff-chatbot-mini i:nth-child(2) {
    left: 28px;
}

.dolff-chatbot-mini b {
    position: absolute;
    inset: 12px 0 0;
    display: grid;
    place-items: center;
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 1.85rem;
    line-height: 1;
}

.dolff-chatbot-kicker {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0 0 0.2rem;
    color: var(--bot-muted);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.58rem;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dolff-chatbot-kicker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55a97e;
    box-shadow: 0 0 0 4px rgba(85, 169, 126, 0.12);
}

.dolff-chatbot-panel-head h2 {
    margin: 0;
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: clamp(1.08rem, 2.4vw, 1.32rem);
    font-weight: 710;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.dolff-chatbot-subline {
    margin: 0.28rem 0 0;
    color: var(--bot-muted);
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.75rem;
    line-height: 1.2;
}

.dolff-chatbot-tools {
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
}

.dolff-chatbot-close,
.dolff-chatbot-reset {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 1px solid var(--bot-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dolff-chatbot-close:hover,
.dolff-chatbot-reset:hover {
    border-color: rgba(155, 47, 104, 0.3);
    background: #fff;
    transform: rotate(5deg);
}

.dolff-chatbot-reset {
    font-size: 0.92rem;
}

.dolff-chatbot-messages {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    max-height: none;
    padding: 1.1rem 1rem 0.8rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 57, 96, 0.22) transparent;
}

.dolff-chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.dolff-chatbot-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(90, 57, 96, 0.22);
}

.dolff-chatbot-message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    animation: dolffGuideMessage 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dolff-chatbot-message.is-user {
    justify-content: flex-end;
}

.dolff-chatbot-message-mark {
    display: grid;
    flex: 0 0 27px;
    place-items: center;
    width: 27px;
    height: 29px;
    border: 1px solid rgba(49, 34, 54, 0.13);
    border-radius: 9px 11px 12px 7px;
    background: linear-gradient(145deg, #fff, #fff2e9);
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.82rem;
    font-weight: 790;
    box-shadow: inset 3px 0 0 var(--bot-coral);
}

.dolff-chatbot-message[data-accent='green'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #27785a; }
.dolff-chatbot-message[data-accent='teal'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #21849a; }
.dolff-chatbot-message[data-accent='slate'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #4b5966; }
.dolff-chatbot-message[data-accent='blue'] .dolff-chatbot-message-mark,
.dolff-chatbot-message[data-accent='cobalt'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #3056aa; }
.dolff-chatbot-message[data-accent='wine'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #8e233e; }
.dolff-chatbot-message[data-accent='plum'] .dolff-chatbot-message-mark { box-shadow: inset 3px 0 0 #722e86; }

.dolff-chatbot-bubble {
    max-width: calc(100% - 35px);
    padding: 0.88rem 0.94rem;
    border: 1px solid rgba(49, 34, 54, 0.11);
    border-radius: 7px 20px 20px 20px;
    background: rgba(255, 255, 255, 0.84);
    color: #3f3642;
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.94rem;
    line-height: 1.48;
    box-shadow: 0 8px 24px rgba(53, 34, 60, 0.055);
}

.dolff-chatbot-message.is-user .dolff-chatbot-bubble {
    max-width: 84%;
    border: 0;
    border-radius: 20px 7px 20px 20px;
    background: var(--bot-ink);
    color: #fff;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.86rem;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(38, 27, 41, 0.16);
}

.dolff-chatbot-bubble p {
    margin: 0;
}

.dolff-chatbot-bubble p + p,
.dolff-chatbot-bubble p + .dolff-chatbot-links,
.dolff-chatbot-bubble p + .dolff-chatbot-facts,
.dolff-chatbot-facts + .dolff-chatbot-links {
    margin-top: 0.62rem;
}

.dolff-chatbot-answer-label {
    margin-bottom: 0.38rem !important;
    color: var(--bot-berry);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.59rem;
    font-weight: 790;
    line-height: 1.15;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dolff-chatbot-facts {
    display: grid;
    gap: 0.36rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dolff-chatbot-facts li {
    position: relative;
    padding-left: 0.9rem;
    color: #514756;
    font-size: 0.86rem;
    line-height: 1.36;
}

.dolff-chatbot-facts li::before {
    content: '';
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bot-berry), var(--bot-coral));
}

.dolff-chatbot-links {
    display: grid;
    gap: 0.38rem;
}

.dolff-chatbot-bubble .dolff-chatbot-links {
    margin-top: 0.7rem;
}

.dolff-chatbot-bubble a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 36px;
    padding: 0.5rem 0.62rem 0.48rem 0.72rem;
    border: 1px solid rgba(57, 39, 62, 0.12);
    border-radius: 12px;
    background: rgba(255, 253, 252, 0.9);
    color: #403545;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.73rem;
    font-weight: 690;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dolff-chatbot-bubble a:hover {
    border-color: rgba(155, 47, 104, 0.28);
    background: #fff;
    transform: translateX(2px);
}

.dolff-chatbot-bubble a span {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(155, 47, 104, 0.08);
    color: var(--bot-berry);
    font-size: 0.75rem;
}

.dolff-chatbot-source {
    margin-top: 0.62rem !important;
    padding-top: 0.52rem;
    border-top: 1px solid rgba(49, 34, 54, 0.09);
    color: #8a7f8d;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.59rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
}

.dolff-chatbot-message.is-typing .dolff-chatbot-bubble {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    min-width: 58px;
    min-height: 39px;
    padding: 0.7rem 0.82rem;
}

.dolff-chatbot-message.is-typing .dolff-chatbot-bubble i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bot-berry);
    animation: dolffGuideTyping 1s ease-in-out infinite;
}

.dolff-chatbot-message.is-typing .dolff-chatbot-bubble i:nth-child(2) { animation-delay: 0.13s; }
.dolff-chatbot-message.is-typing .dolff-chatbot-bubble i:nth-child(3) { animation-delay: 0.26s; }

.dolff-chatbot-suggestions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem 1rem 0.82rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dolff-chatbot-suggestions::-webkit-scrollbar {
    display: none;
}

.dolff-chatbot-suggestion {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0.47rem 0.5rem 0.45rem 0.7rem;
    border: 1px solid rgba(56, 39, 61, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #514357;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dolff-chatbot-suggestion i {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(155, 47, 104, 0.08);
    color: var(--bot-berry);
    font-size: 0.68rem;
    font-style: normal;
}

.dolff-chatbot-suggestion:hover {
    border-color: rgba(155, 47, 104, 0.28);
    background: #fff;
    color: var(--bot-berry);
    transform: translateY(-1px);
}

.dolff-chatbot-form {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--bot-line);
    background: rgba(255, 253, 252, 0.78);
}

.dolff-chatbot-input-shell {
    position: relative;
    display: block;
    min-width: 0;
}

.dolff-chatbot-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0.72rem 3.45rem 0.72rem 0.86rem;
    border: 1px solid rgba(48, 34, 53, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bot-ink);
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.78rem;
    line-height: 1.2;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dolff-chatbot-input::placeholder {
    color: #978d99;
    opacity: 1;
}

.dolff-chatbot-input:focus {
    border-color: rgba(155, 47, 104, 0.38);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(155, 47, 104, 0.07);
    outline: 0;
}

.dolff-chatbot-key {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    padding: 0.22rem 0.38rem;
    border: 1px solid rgba(49, 34, 54, 0.12);
    border-radius: 6px;
    background: #faf7f8;
    color: #908492;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: translateY(-50%);
    pointer-events: none;
}

.dolff-chatbot-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 88px;
    height: 48px;
    padding: 0 0.72rem 0 0.88rem;
    border: 0;
    border-radius: 15px 8px 15px 15px;
    background: var(--bot-ink);
    color: #fff;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.72rem;
    font-weight: 730;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 27, 40, 0.17);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.dolff-chatbot-send i {
    font-size: 0.8rem;
    font-style: normal;
}

.dolff-chatbot-send:hover {
    background: var(--bot-berry);
    transform: translateY(-1px);
}

.dolff-chatbot-send:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

.dolff-chatbot-privacy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0 1rem 0.72rem;
    background: rgba(255, 253, 252, 0.78);
    color: #8d818f;
    font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
    font-size: 0.52rem;
    line-height: 1.2;
    text-align: center;
}

.dolff-chatbot-privacy span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #55a97e;
}

.dolff-chatbot-privacy b {
    font-weight: 700;
}

.dolff-chatbot.is-open .dolff-chatbot-hint {
    opacity: 0;
    transform: translateX(8px) scale(0.96);
    pointer-events: none;
}

.dolff-chatbot.is-open .dolff-chatbot-mascot {
    animation-play-state: paused;
}

@keyframes dolffGuideFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    45% { transform: translate3d(0, -5px, 0) rotate(2deg); }
    70% { transform: translate3d(0, -2px, 0) rotate(0deg); }
}

@keyframes dolffGuideOrbit {
    to { transform: rotate(360deg); }
}

@keyframes dolffGuideBlink {
    0%, 44%, 48%, 100% { transform: scaleY(1); }
    46% { transform: scaleY(0.12); }
}

@keyframes dolffGuideHint {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-2px, -3px, 0); }
}

@keyframes dolffGuideMessage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dolffGuideTyping {
    0%, 60%, 100% { opacity: 0.32; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 700px) {
    .dolff-chatbot {
        left: auto;
        right: 0.72rem;
        bottom: calc(0.72rem + env(safe-area-inset-bottom));
        width: 72px;
        height: 78px;
    }

    .dolff-chatbot-toggle,
    .dolff-chatbot-mascot {
        width: 72px;
        height: 78px;
    }

    .dolff-chatbot-glyph {
        inset: 18px 0 0;
        font-size: 3rem;
    }

    .dolff-chatbot-face {
        top: 14px;
        left: 24px;
        gap: 10px;
    }

    .dolff-chatbot-hint {
        top: 5px;
        right: calc(100% + 10px);
        max-width: min(210px, calc(100vw - 105px));
        padding: 0.58rem 0.72rem;
    }

    .dolff-chatbot-hint strong {
        font-size: 0.7rem;
    }

    .dolff-chatbot-hint-text {
        font-size: 0.72rem;
    }

    .dolff-chatbot-panel {
        right: 0;
        bottom: calc(100% + 10px);
        width: calc(100vw - 1.44rem);
        height: min(680px, calc(100dvh - 111px - env(safe-area-inset-top)));
        max-height: calc(100vh - 111px);
        border-radius: 24px 13px 26px 18px;
    }

    .dolff-chatbot-panel-head {
        padding: 0.88rem 0.85rem 0.78rem;
    }

    .dolff-chatbot-mini {
        flex-basis: 40px;
        width: 40px;
        height: 42px;
    }

    .dolff-chatbot-mini i:first-child { left: 15px; }
    .dolff-chatbot-mini i:nth-child(2) { left: 24px; }

    .dolff-chatbot-mini b {
        font-size: 1.58rem;
    }

    .dolff-chatbot-panel-head h2 {
        font-size: 1rem;
    }

    .dolff-chatbot-subline {
        max-width: 180px;
        font-size: 0.66rem;
    }

    .dolff-chatbot-close,
    .dolff-chatbot-reset {
        width: 30px;
        height: 30px;
    }

    .dolff-chatbot-messages {
        padding: 0.88rem 0.78rem 0.7rem;
    }

    .dolff-chatbot-bubble {
        font-size: 0.9rem;
    }

    .dolff-chatbot-suggestions {
        padding: 0.58rem 0.78rem 0.7rem;
    }

    .dolff-chatbot-form {
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 0.45rem;
        padding: 0.68rem 0.78rem;
    }

    .dolff-chatbot-input {
        height: 46px;
        padding-right: 0.82rem;
        font-size: 0.75rem;
    }

    .dolff-chatbot-key,
    .dolff-chatbot-send span {
        display: none;
    }

    .dolff-chatbot-send {
        min-width: 48px;
        width: 48px;
        height: 46px;
        padding: 0;
        border-radius: 14px 7px 14px 14px;
    }

    .dolff-chatbot-send i {
        font-size: 1rem;
    }

    .dolff-chatbot-privacy {
        padding: 0 0.72rem 0.58rem;
        font-size: 0.47rem;
    }
}

@media (max-width: 390px) {
    .dolff-chatbot-identity {
        gap: 0.55rem;
    }

    .dolff-chatbot-subline {
        max-width: 145px;
    }

    .dolff-chatbot-tools {
        gap: 0.25rem;
    }

    .dolff-chatbot-panel {
        height: calc(100dvh - 111px - env(safe-area-inset-top));
    }
}

@media (prefers-reduced-motion: reduce) {
    .dolff-chatbot-mascot,
    .dolff-chatbot-orbit,
    .dolff-chatbot-hint,
    .dolff-chatbot-eye,
    .dolff-chatbot-message,
    .dolff-chatbot-message.is-typing .dolff-chatbot-bubble i {
        animation: none !important;
    }

    .dolff-chatbot-panel,
    .dolff-chatbot-hint-text {
        transition-duration: 0.01ms !important;
    }
}
