html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    background: #f8fafc;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.person-header {
    text-align: center;
    padding: 24px 16px 8px;
}

    .person-header h1 {
        margin: 0;
        font-size: 2rem;
    }

    .person-header .title {
        margin: 8px 0 4px;
        font-weight: bold;
    }

    .person-header .bio {
        max-width: 720px;
        margin: 0 auto;
        color: #444;
    }

.stage {
    position: relative;
    flex: 1;
    padding: 16px;
}

.viewer-section {
    height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer3d {
    width: min(900px, 90vw);
    height: min(700px, 70vh);
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: #fff;
}

.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 64px;
    width: 360px;
    height: 560px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 14px 16px;
    font-weight: bold;
    background: #111827;
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f9fafb;
}

.msg {
    max-width: 85%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.4;
}

    .msg.assistant {
        background: #e5e7eb;
        color: #111827;
    }

    .msg.user {
        background: #dbeafe;
        color: #111827;
        margin-left: auto;
    }

.chat-form {
    display: flex;
    gap: 18px;
    padding: 42px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

    .chat-form input[type="text"] {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
    }

    .chat-form button {
        border: none;
        border-radius: 10px;
        padding: 10px 14px;
        cursor: pointer;
        background: #111827;
        color: white;
    }
.form-label {
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.form-control {
    border-color: #7faecc;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.3125rem;
    width: 100%;
}
.form-control2 {
    border-color: #7faecc;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.3125rem;
    height: 10rem;
    width: 100%;
}
