.assistant-result {
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    text-align: left;
}

.assistant-result-panel {
    position: relative;
    margin: 1.5rem 0 1.25rem 4rem;
    max-width: 760px;
    padding: 1.5rem 2rem;
    background: #111827;
    border: 1px solid #38bdf8;
    border-radius: 18px;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.assistant-result-panel h2,
.speech-bubble h2 {
    margin: 0 0 1rem;
    color: #4dd0e1;
    font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    font-weight: 600;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.hero-stage {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.hidden {
    display: none;
}

.speech-bubble {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.98),
        rgba(17, 24, 39, 0.98)
    );
    border: 1px solid #38bdf8;
    border-radius: 24px;
    position: relative;
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.12),
        inset 0 0 40px rgba(56, 189, 248, 0.03);
    text-align: left;
}

.speech-bubble-title {
    text-align: left;
    font-weight: 700;
    color: #67e8f9;
    margin-bottom: 1rem;
}

.speech-bubble-content {
    text-align: left;
    line-height: 1.6;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    left: 72%;
    bottom: -18px;
    width: 34px;
    height: 34px;
    background: #111827;
    border-right: 1px solid #38bdf8;
    border-bottom: 1px solid #38bdf8;
    transform: translateX(-50%) rotate(45deg);
}

.speech-bubble-space {
    height: clamp(260px, 32vw, 380px);
    position: relative;
}

.studley-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.studley-modal-avatar {
    position: absolute;
    top: -48px;
    left: 32px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #020617;
    border: 3px solid #38bdf8;
    box-shadow:
        0 0 24px rgba(56,189,248,.45),
        0 12px 30px rgba(0,0,0,.45);
}

.studley-modal-avatar img {
    width: 100%;
    height: auto;
    object-fit: initial;

    transform: translateY(-32px) scale(2);
    transform-origin: top center;
}

.studley-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.studley-modal-body {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #ffffff;
    max-height: 60vh;
    overflow: auto;
    text-align: left;
}

.studley-modal-card {
    position: relative;
    width: min(90vw, 860px);
    max-height: 80vh;
    margin: 8vh auto 0;
    padding: 1.5rem;
    padding-top: 4rem;
    overflow: visible;
    background: #111827;
    border: 1px solid #38bdf8;
    border-radius: 22px;

    box-shadow:
        0 0 40px rgba(56, 189, 248, 0.2),
        0 24px 80px rgba(0, 0, 0, 0.55);
}

.studley-modal-close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.studley-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.studley-modal-header h2 {
    flex: 1;
    margin: 0;
    color: #4dd0e1;
}

.studley-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 0.35rem;
    background: #020617;
    border: 2px solid #38bdf8;
    box-shadow:
        0 0 22px rgba(56, 189, 248, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.45);
}

/*.studley-more-button {
    display: inline-block;
    background: transparent;
    color: #4dd0e1;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    margin-top: 0.5rem;
}*/
.studley-more-button {
    display: block;
    margin-top: 0.75rem;
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(77,208,225,.85);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}
/*.studley-more-button {
    background: transparent;
    border: none;
    color: #4dd0e1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}*/
