.pmu-ai-standalone {
    margin: 0;
    min-height: 100vh;
    background: #07111f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pmu-ai-shell {
    width: min(100%, 780px);
    margin: 32px auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(2, 8, 23, 0.22);
    overflow: hidden;
}

.pmu-ai-shell-standalone {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.pmu-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #07111f 0%, #12345f 58%, #1d4ed8 100%);
}

.pmu-ai-eyebrow {
    margin: 0 0 4px;
    color: #bfdbfe;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.pmu-ai-header h1 {
    margin: 0;
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.05;
    color: #ffffff;
}

.pmu-ai-status {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border: 1px solid rgba(187, 247, 208, 0.32);
    font-weight: 800;
    font-size: 12px;
}

.pmu-ai-intro {
    padding: 16px 22px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #dbeafe;
}

.pmu-ai-messages {
    flex: 1;
    height: 440px;
    overflow-y: auto;
    padding: 20px;
    background:
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%);
}

.pmu-ai-shell-standalone .pmu-ai-messages {
    height: auto;
}

.pmu-ai-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.55;
    font-size: 15px;
}

.pmu-ai-message p {
    margin: 6px 0 0;
}

.pmu-ai-message-ai {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pmu-ai-message-user {
    margin-left: auto;
    background: #1d4ed8;
    color: #ffffff;
}

.pmu-ai-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.pmu-ai-form textarea {
    width: 100%;
    min-height: 64px;
    max-height: 180px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 13px 14px;
    font: inherit;
    line-height: 1.4;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.pmu-ai-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pmu-ai-form button,
.pmu-ai-notice a {
    border: 0;
    border-radius: 18px;
    padding: 0 22px;
    min-height: 52px;
    background: linear-gradient(135deg, #1d4ed8, #12345f);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmu-ai-form button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.pmu-ai-footnote {
    margin: 0;
    padding: 0 18px 16px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.pmu-ai-notice {
    width: min(92vw, 520px);
    margin: 48px auto;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.16);
    text-align: center;
}

.pmu-ai-notice h2 {
    margin-top: 0;
    color: #0f172a;
}

@media (max-width: 620px) {
    .pmu-ai-shell {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }

    .pmu-ai-form {
        grid-template-columns: 1fr;
    }

    .pmu-ai-form button {
        width: 100%;
    }

    .pmu-ai-message {
        max-width: 94%;
    }
}
