/* FORM_VERSION: 20260530_160533_wedo_trial_topbar_actions */

.wedo-entry-page .wedo-trial-card {
    padding: 0;
    overflow: hidden;
}

.wedo-entry-page .wedo-trial-chat {
    --free-input-height: 64px;
    --free-blue-bg: linear-gradient(135deg, rgba(31, 78, 121, 0.82), rgba(74, 141, 184, 0.64));
    --free-line: rgba(226, 232, 240, 0.95);
    --free-text: #111827;
    --baize-blue-message-bg: linear-gradient(145deg, rgba(31, 78, 121, 0.12) 0%, rgba(74, 141, 184, 0.18) 100%);
    --baize-blue-message-border: rgba(31, 78, 121, 0.24);
    --baize-blue-message-shadow: 0 8px 24px rgba(31, 78, 121, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    width: 100%;
    height: min(72vh, 760px);
    min-height: 520px;
    color: var(--free-text);
    overflow: hidden;
}

.wedo-entry-page .wedo-trial-chat :where(button, a, [role="button"], input, textarea) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.wedo-entry-page .wedo-trial-chat .free-main,
.wedo-entry-page .wedo-trial-chat .free-layout,
.wedo-entry-page .wedo-trial-chat .free-chat-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
}

.wedo-entry-page .wedo-trial-chat .free-layout {
    display: block;
}

.wedo-entry-page .wedo-trial-chat .free-chat-wrapper {
    display: flex !important;
    max-width: none;
    border: 0;
    box-shadow: none;
}

.wedo-entry-page .wedo-trial-chat .free-chat-container {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.wedo-entry-page .wedo-trial-chat .free-chat-topbar {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(237, 247, 255, 0.5)),
        rgba(255, 255, 255, 0.42);
    border-bottom: 1px solid rgba(31, 78, 121, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 8px 18px rgba(31, 78, 121, 0.06);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

.wedo-entry-page .wedo-trial-chat .chat-topbar__identity {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: #12263a;
}

.wedo-entry-page .wedo-trial-chat .chat-topbar__logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(31, 78, 121, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 18px rgba(31, 78, 121, 0.12);
    background: rgba(255, 255, 255, 0.62);
}

.wedo-entry-page .wedo-trial-chat .chat-topbar__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: 0;
}

.wedo-entry-page .wedo-trial-chat .chat-topbar__actions .button-area {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.wedo-entry-page .wedo-trial-chat .chat-action-icon-btn {
    min-height: 40px;
    min-width: 40px;
    margin: 0;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(42, 91, 126, 0.18);
    border-radius: 16px;
    color: #12263a;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(237, 247, 255, 0.54));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 8px 18px rgba(15, 42, 64, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.wedo-entry-page .wedo-trial-chat .chat-messages {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    padding: 16px 0 20px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.wedo-entry-page .wedo-trial-chat .message {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
    gap: 12px;
}

.wedo-entry-page .wedo-trial-chat .message.user-message,
.wedo-entry-page .wedo-trial-chat .message.bot-message {
    flex-direction: row;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.wedo-entry-page .wedo-trial-chat .ai-avatar-external {
    position: absolute;
    top: -8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    color: #2c3e50;
    border: 2px solid rgba(52, 73, 94, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wedo-entry-page .wedo-trial-chat .ai-avatar-external img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wedo-entry-page .wedo-trial-chat .message-content {
    flex: 1;
    position: relative;
    max-width: 100%;
    padding: 25px 12px 35px;
    border-radius: 16px;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wedo-entry-page .wedo-trial-chat .bot-message .message-content {
    border-bottom-left-radius: 4px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    border: 1px solid rgba(52, 73, 94, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(52, 73, 94, 0.05);
}

.wedo-entry-page .wedo-trial-chat .user-message .message-content {
    border-bottom-right-radius: 4px;
    color: #2c3e50;
    background: var(--baize-blue-message-bg);
    border: 1px solid var(--baize-blue-message-border);
    box-shadow: var(--baize-blue-message-shadow);
    font-weight: 500;
}

.wedo-entry-page .wedo-trial-input-area {
    flex: 0 0 auto;
    min-height: var(--free-input-height);
    padding: 8px 0 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
}

.wedo-entry-page .wedo-trial-chat .free-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--free-line);
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
}

.wedo-entry-page .wedo-trial-chat .message-input {
    flex: 1;
    min-height: 24px;
    max-height: 118px;
    border: 0;
    outline: none;
    resize: none;
    color: #111;
    background: transparent;
    font-size: 1rem;
    line-height: 1.6;
}

.wedo-entry-page .wedo-trial-chat .message-input::placeholder {
    color: rgba(17, 24, 39, 0.48);
    font-weight: 400;
}

.wedo-entry-page .wedo-trial-chat .send-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(31, 111, 160, 0.36);
    background: var(--free-blue-bg);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 9px 20px rgba(31, 111, 160, 0.18);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.wedo-entry-page .wedo-trial-chat .send-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, rgba(80, 90, 100, 0.76), rgba(108, 118, 128, 0.62));
}

.wedo-entry-page .wedo-trial-chat .message-buttons {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: flex;
    gap: 5px;
}

.wedo-entry-page .wedo-trial-chat .message-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(52, 73, 94, 0.2);
    border-radius: 50%;
    padding: 5px;
    color: #2c3e50;
    background: rgba(52, 73, 94, 0.1);
    cursor: pointer;
}

.wedo-entry-page .wedo-trial-chat .thinking-block {
    margin: 8px 0 12px;
}

.wedo-entry-page .wedo-trial-chat .thinking-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 0;
    color: rgba(31, 78, 121, 0.78);
    font-size: 0.9em;
    font-weight: 700;
    list-style: none;
    user-select: none;
}

.wedo-entry-page .wedo-trial-chat .thinking-summary::-webkit-details-marker {
    display: none;
}

.wedo-entry-page .wedo-trial-chat .thinking-icon,
.wedo-entry-page .wedo-trial-chat .thinking-icon svg {
    width: 16px;
    height: 16px;
}

.wedo-entry-page .wedo-trial-chat .thinking-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wedo-entry-page .wedo-trial-chat .thinking-chevron {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.wedo-entry-page .wedo-trial-chat .thinking-block[open] .thinking-chevron {
    transform: rotate(90deg);
}

.wedo-entry-page .wedo-trial-chat .thinking-text {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(31, 78, 121, 0.18);
    color: rgba(17, 24, 39, 0.72);
    font-size: 0.88em;
    line-height: 1.65;
    word-break: break-word;
}

.wedo-entry-page .wedo-trial-chat .message-content :where(p, ul, ol, blockquote, pre, table) {
    margin-top: 8px;
    margin-bottom: 8px;
}

.wedo-entry-page .wedo-trial-chat .message-content :where(ul, ol) {
    padding-left: 20px;
}

.wedo-entry-page .wedo-trial-chat .message-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(52, 73, 94, 0.1);
    border: 1px solid rgba(52, 73, 94, 0.2);
}

.wedo-entry-page .wedo-trial-chat .message-content pre {
    padding: 16px;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(52, 73, 94, 0.2);
}

.wedo-entry-page .wedo-trial-chat .message-content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid rgba(52, 73, 94, 0.2);
}

.wedo-entry-page .wedo-trial-chat .message-content th,
.wedo-entry-page .wedo-trial-chat .message-content td {
    padding: 6px 8px;
    border: 1px solid rgba(52, 73, 94, 0.15);
    word-break: break-word;
}

@media (min-width: 769px) {
    .wedo-entry-page .wedo-trial-card {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .wedo-entry-page[data-wedo-section="trial"] .bgimg-1 {
        padding: var(--wedo-topbar-height) 0 var(--wedo-bottom-nav-height);
    }

    .wedo-entry-page[data-wedo-section="trial"] .page {
        width: 100%;
        height: calc(100dvh - var(--wedo-topbar-height) - var(--wedo-bottom-nav-height));
        gap: 0;
        grid-template-rows: minmax(0, 1fr);
    }

    .wedo-entry-page[data-wedo-section="trial"] .wedo-hero {
        display: none;
    }

    .wedo-entry-page[data-wedo-section="trial"] .wedo-trial-card {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        height: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .wedo-entry-page[data-wedo-section="trial"] .wedo-trial-chat {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    .wedo-entry-page[data-wedo-section="trial"] .free-chat-topbar {
        display: none !important;
    }

    .wedo-entry-page[data-wedo-section="trial"] .free-chat-container {
        border-radius: 0;
        background: #fff;
    }

    .wedo-entry-page[data-wedo-section="trial"] .message-content {
        font-size: 0.98rem;
    }
}
