* {
    box-sizing: border-box;
}

:root {
    --navy: #18324a;
    --navy-dark: #102538;
    --blue: #426b8a;
    --light-blue: #edf3f7;
    --background: #f3f5f6;
    --card: #ffffff;
    --text: #17212b;
    --muted: #5e6b76;
    --border: #d8e0e5;
    --accent: #b98b4a;
    --notice: #fff7e5;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.brand strong {
    display: block;
    color: var(--navy-dark);
    font-size: 18px;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.card {
    background: var(--card);
    border-radius: 22px;
    padding: 44px;
    box-shadow: 0 12px 35px rgba(16, 37, 56, 0.08);
}

.eyebrow {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

h1 {
    color: var(--navy-dark);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -1px;
}

.intro {
    color: var(--muted);
    font-size: 18px;
    max-width: 720px;
    margin: 0 0 38px;
}

h2 {
    color: var(--navy-dark);
    font-size: 23px;
    margin: 0 0 18px;
}

.choice {
    width: 100%;
    display: block;
    text-align: left;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 14px;
    color: var(--text);
    cursor: pointer;
    transition: 0.15s ease;
    font: inherit;
}

.choice:hover {
    background: var(--light-blue);
    border-color: #aebfca;
    transform: translateY(-1px);
}

.choice:active {
    transform: translateY(0);
}

.choice strong {
    display: block;
    color: var(--navy-dark);
    font-size: 19px;
    margin-bottom: 3px;
}

.choice span {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.notice {
    margin-top: 24px;
    padding: 16px 18px;
    background: var(--notice);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    color: #473a27;
}

.notice strong {
    color: var(--navy-dark);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 6px 0;
    color: var(--muted);
    font-size: 13px;
}

footer strong {
    color: var(--navy);
}

@media (max-width: 650px) {
    .shell {
        width: min(100% - 20px, 920px);
        padding-top: 20px;
    }

    .brand {
        margin-bottom: 20px;
    }

    .mark {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }

    .card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    h1 {
        font-size: 34px;
    }

    .intro {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .choice {
        padding: 18px;
    }

    footer {
        display: block;
        text-align: center;
    }

    footer span {
        display: block;
        margin-top: 3px;
    }
}
/* =====================================================
   REPORT ASSISTANT — INTERVIEW + RESULTS
   ===================================================== */

.hidden {
    display: none !important;
}

/* Top bar inside interview/results */

.chat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #d8e0e7;
}

.chat-top span {
    font-weight: 700;
    color: #17344d;
}

.text-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #356f9d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


/* Interview conversation */

.messages {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.message {
    max-width: 85%;
    padding: 16px 18px;
    border-radius: 16px;
    line-height: 1.55;
}

.message.assistant {
    align-self: flex-start;
    background: #eef3f6;
    color: #152b3d;
    border-bottom-left-radius: 5px;
}

.message.user {
    align-self: flex-end;
    background: #17344d;
    color: white;
    border-bottom-right-radius: 5px;
}


/* Answer box */

#composer {
    border-top: 1px solid #d8e0e7;
    padding-top: 24px;
}

#answer {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 16px;
    border: 1px solid #cbd6de;
    border-radius: 12px;
    background: white;
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
    color: #142a3c;
}

#answer:focus {
    outline: 3px solid rgba(53, 111, 157, .15);
    border-color: #356f9d;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}


/* Buttons */

.primary,
.secondary {
    border-radius: 10px;
    padding: 13px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    border: 1px solid #17344d;
    background: #17344d;
    color: white;
}

.primary:hover {
    background: #214965;
}

.secondary {
    border: 1px solid #cbd6de;
    background: white;
    color: #17344d;
}

.secondary:hover {
    background: #f3f6f8;
}


/* Loading indicator */

.busy {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff5dc;
    color: #6a4a13;
    font-size: 15px;
}


/* Results */

.result-heading {
    margin-bottom: 28px;
}

.result-heading h2 {
    margin-top: 8px;
    margin-bottom: 10px;
}

.result-heading p {
    color: #596b7a;
    line-height: 1.6;
}

.answer-item {
    padding: 20px 0;
    border-bottom: 1px solid #dce3e8;
}

.answer-item:first-child {
    border-top: 1px solid #dce3e8;
}

.answer-item h3 {
    margin: 0 0 8px;
    color: #17344d;
    font-size: 17px;
}

.answer-item p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.copy-all {
    width: 100%;
    margin-top: 26px;
}

.official-report {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid #c6923d;
    border-radius: 8px;
    background: #fff7e5;
}

.official-report p {
    margin: 6px 0 0;
    line-height: 1.55;
}


/* Mobile */

@media (max-width: 650px) {

    .message {
        max-width: 92%;
    }

    .composer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .primary,
    .secondary {
        width: 100%;
    }

    #answer {
        font-size: 16px;
    }

    .chat-top {
        align-items: flex-start;
    }
}