.chat-helper-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10001;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffefe9 0%, #ffffff 100%);
    box-shadow: 0 18px 44px rgba(45, 18, 12, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-helper-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(45, 18, 12, 0.3);
}

.chat-helper-launcher-ring {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(224, 57, 57, 0.14) 0%, rgba(224, 57, 57, 0) 72%);
}

.chat-helper-launcher-icon-wrap {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ff645f 0%, #c22422 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.chat-helper-launcher-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-helper-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-helper-panel {
    position: fixed;
    right: 22px;
    bottom: 98px;
    z-index: 10000;
    width: min(420px, calc(100vw - 28px));
    height: min(680px, calc(100vh - 126px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(194, 36, 34, 0.16);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 112, 86, 0.12), transparent 34%),
        linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 28px 80px rgba(33, 14, 10, 0.24);
    backdrop-filter: blur(18px);
}

.chat-helper-panel.hidden {
    display: none;
}

.chat-helper-header {
    padding: 20px 22px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(150, 79, 67, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.chat-helper-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chat-helper-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ff6f5a 0%, #cf2d29 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(207, 45, 41, 0.25);
}

.chat-helper-title {
    margin: 0;
    color: #231412;
    font-size: 1rem;
    font-weight: 700;
}

.chat-helper-subtitle {
    display: block;
    margin-top: 4px;
    color: #7f5b54;
    font-size: 0.83rem;
    line-height: 1.35;
}

.chat-helper-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-helper-reset,
.chat-helper-close {
    border: 0;
    border-radius: 999px;
    background: rgba(194, 36, 34, 0.08);
    color: #7c3530;
    cursor: pointer;
}

.chat-helper-reset {
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-helper-close {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
}

.chat-helper-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-helper-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-helper-intro {
    padding-top: 6px;
}

.chat-helper-kicker {
    margin: 0 0 10px;
    color: #c43a33;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chat-helper-hero-title {
    margin: 0;
    font-size: 2.35rem;
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #231412;
}

.chat-helper-hero-copy {
    margin: 12px 0 0;
    color: #5f413b;
    font-size: 0.98rem;
    line-height: 1.55;
}

.chat-helper-page-tip {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(150, 79, 67, 0.14);
    color: #7b5a54;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-helper-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.chat-helper-suggestion {
    border: 1px solid rgba(150, 79, 67, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(38, 17, 12, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chat-helper-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(38, 17, 12, 0.11);
    border-color: rgba(194, 36, 34, 0.28);
}

.chat-helper-suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 111, 90, 0.14), rgba(194, 36, 34, 0.14));
    color: #bf302a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.chat-helper-suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.chat-helper-suggestion-text strong {
    color: #271513;
    font-size: 0.93rem;
}

.chat-helper-suggestion-text span {
    color: #7a5b54;
    font-size: 0.84rem;
    line-height: 1.45;
}

.chat-helper-note {
    margin: -2px 0 0;
    color: #8a6961;
    font-size: 0.84rem;
    line-height: 1.45;
}

.chat-helper-conversation {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-helper-message {
    max-width: 84%;
    padding: 14px 15px;
    border-radius: 20px;
    border: 1px solid rgba(150, 79, 67, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(38, 17, 12, 0.05);
}

.chat-helper-message.assistant {
    align-self: flex-start;
}

.chat-helper-message.self {
    align-self: flex-end;
    background: linear-gradient(145deg, #ff6658 0%, #cf2d29 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(207, 45, 41, 0.22);
}

.chat-helper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    font-size: 0.76rem;
    color: #8c6d66;
}

.chat-helper-message.self .chat-helper-meta {
    color: rgba(255, 255, 255, 0.82);
}

.chat-helper-author {
    font-weight: 700;
}

.chat-helper-text {
    color: #32211f;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.52;
    font-size: 0.95rem;
}

.chat-helper-message.self .chat-helper-text {
    color: #ffffff;
}

.chat-helper-form {
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(150, 79, 67, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.chat-helper-composer {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    border-radius: 24px;
    border: 1px solid rgba(150, 79, 67, 0.15);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.chat-helper-input {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    padding: 8px 0;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #251412;
    font: inherit;
    line-height: 1.5;
}

.chat-helper-input::placeholder {
    color: #9a7b74;
}

.chat-helper-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ff6658 0%, #cf2d29 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(207, 45, 41, 0.22);
}

.chat-helper-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.chat-helper-send:hover {
    transform: translateY(-1px);
}

.chat-helper-input:disabled,
.chat-helper-send:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.chat-helper-form-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.chat-helper-status,
.chat-helper-hint {
    font-size: 0.78rem;
    line-height: 1.4;
}

.chat-helper-status {
    color: #6e4c46;
}

.chat-helper-status.error {
    color: #c22422;
}

.chat-helper-hint {
    color: #9a7b74;
    text-align: right;
}

@media (max-width: 640px) {
    .chat-helper-launcher {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
    }

    .chat-helper-panel {
        right: 14px;
        bottom: 84px;
        width: calc(100vw - 28px);
        height: min(74vh, 660px);
        border-radius: 24px;
    }

    .chat-helper-header {
        padding: 18px 18px 14px;
    }

    .chat-helper-messages {
        padding: 18px;
    }

    .chat-helper-hero-title {
        font-size: 2rem;
    }

    .chat-helper-suggestions {
        grid-template-columns: 1fr;
    }

    .chat-helper-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-helper-hint {
        text-align: left;
    }
}
