/* Final cascade for the screenshot-based Child Detail layout. */

#childdetail_page.childdetail-redesign #childdetail_child_summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 62px;
    margin-bottom: 0;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid #e1e8ea;
    border-radius: 15px 15px 0 0;
    background: #fff;
}

#childdetail_page.childdetail-redesign .childdetail_summary_avatar {
    width: 48px;
    height: 48px;
}

#childdetail_page.childdetail-redesign .childdetail_summary_avatar svg {
    width: 30px;
    height: 30px;
}

#childdetail_page.childdetail-redesign #editClientBtn,
#childdetail_page.childdetail-redesign #deleteClientBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    margin: 0;
    padding: 9px 17px;
    border: 1px solid #d6dfe3;
    border-radius: 9px;
    background: #fff;
    color: #344052;
    font-size: 0.95em;
}

#childdetail_page .clientMaintenanceForm .childdetail_overview_experience {
    gap: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_section {
    margin: 0;
    padding: 12px clamp(22px, 2.6vw, 40px) 10px;
    border: 0;
    border-bottom: 1px solid #e1e8ea;
    border-radius: 0;
    background: #fff;
}

#childdetail_page .childdetail_response_section legend {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 2px;
    font-size: 1.08em;
}

#childdetail_page .childdetail_response_prompt {
    margin: 0 0 8px 45px;
    font-size: 0.9em;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_option {
    grid-template-columns: 18px 64px minmax(0, 1fr);
    min-height: 82px;
    gap: 10px;
    padding: 10px 15px;
    border-color: #d7e0e4;
    border-radius: 11px;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-style: normal;
}

#childdetail_page .childdetail_response_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 58px;
    font-style: normal;
}

#childdetail_page .childdetail_response_option_verbal .childdetail_response_icon {
    color: #18C8C8;
}

#childdetail_page .childdetail_response_option_nonverbal .childdetail_response_icon {
    color: #6E56CF;
}

#childdetail_page .childdetail_response_icon svg {
    display: block;
    width: 62px;
    height: 56px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
    vector-effect: non-scaling-stroke;
}

#childdetail_page .childdetail_response_option_nonverbal .childdetail_response_icon svg {
    width: 52px;
    height: 56px;
}

#childdetail_page .childdetail_response_copy,
#childdetail_page .childdetail_response_heading,
#childdetail_page .childdetail_response_heading strong,
#childdetail_page .childdetail_response_description {
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-style: normal;
}

#childdetail_page .childdetail_response_copy {
    gap: 4px;
    font-size: 1em;
}

#childdetail_page .childdetail_response_heading {
    font-size: 1em;
}

#childdetail_page .childdetail_response_heading strong {
    color: #172036;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
}

#childdetail_page .childdetail_response_description {
    color: #4f5c6c;
    font-size: 0.94em;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_information {
    margin: 6px 0 0;
    padding: 3px 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_nonverbal_option_group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    margin: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_options {
    align-items: start;
}

#childdetail_page .childdetail_nonverbal_option_group > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

#childdetail_page .childdetail_nonverbal_option_group .childdetail_response_information {
    align-items: flex-start;
    margin: 2px 8px 0;
    padding: 3px 0;
    color: #66727c;
    font-size: 0.78em;
}

#childdetail_page .childdetail_nonverbal_option_group .childdetail_response_information p {
    margin: 1px 0 0;
    line-height: 1.3;
}

#childdetail_page .clientMaintenanceForm .childdetail_check_introduction .childdetail_overview_features {
    margin-left: 0;
}

#childdetail_page .childdetail_overview_resting_message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #b8dec8;
    border-radius: 12px;
    background: #f2fbf6;
    color: #243b2d;
}

#childdetail_page .childdetail_overview_resting_mark {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #238653;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
}

#childdetail_page .childdetail_overview_resting_message h3 {
    margin: 0 0 4px;
    color: #17462b;
    font-size: 1.04em;
}

#childdetail_page .childdetail_overview_resting_message p {
    margin: 3px 0 0;
    color: #405649;
    line-height: 1.4;
}

#childdetail_page.childdetail-redesign
#childdetail_screen_content.childdetail_overview_mode.childdetail_overview_resting_mode {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#childdetail_page .clientMaintenanceForm .childdetail_process_panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: auto 0 0;
    padding: 12px 16px;
    border: 1px solid #dce6e9;
    border-radius: 12px;
    background: linear-gradient(110deg, #fbfdfd, #f6fafa);
}

#childdetail_page .childdetail_process_panel h3 {
    margin: 0;
    color: #263244;
    font-size: 0.95em;
}

#childdetail_page .clientMaintenanceForm .childdetail_process_flow {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr) auto minmax(110px, 1fr) auto minmax(110px, 1fr);
    gap: 7px;
    align-items: center;
    margin: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_process_step {
    display: flex;
    position: relative;
    min-width: 0;
    min-height: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 8px 7px;
    border: 1.5px solid;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

#childdetail_page .childdetail_process_step strong {
    font-size: 0.78em;
    line-height: 1.25;
}

#childdetail_page .childdetail_process_step > span:not(.childdetail_process_marker) {
    color: #536071;
    font-size: 0.68em;
    line-height: 1.25;
}

#childdetail_page .clientMaintenanceForm .childdetail_process_step_overview {
    border-color: #0086cd;
    color: #0086cd;
    background: rgba(0, 134, 205, 0.05);
}

#childdetail_page .clientMaintenanceForm .childdetail_process_step_outcome {
    border-color: #00b1ad;
    color: #00b1ad;
    background: rgba(0, 177, 173, 0.05);
}

#childdetail_page .clientMaintenanceForm .childdetail_process_step_detailed {
    border-color: #fdc652;
    color: #263244;
    background: rgba(253, 198, 82, 0.09);
}

#childdetail_page .clientMaintenanceForm .childdetail_process_step_programme {
    border-color: #5e4f9c;
    color: #5e4f9c;
    background: rgba(94, 79, 156, 0.05);
}

#childdetail_page .childdetail_process_marker {
    position: absolute;
    top: -10px;
    left: 50%;
    padding: 3px 9px;
    border-radius: 10px;
    background: #0086cd;
    color: #fff;
    font-size: 0.58em;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
}

#childdetail_page .childdetail_process_arrow {
    color: #273549;
    font-size: 1.2em;
    font-weight: 700;
}

#childdetail_page .clientMaintenanceForm .childdetail_overview_action {
    display: grid;
    grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 88px;
    margin: 0;
    padding: 11px clamp(22px, 2.6vw, 40px);
    border: 0;
    border-bottom: 1px solid #e1e8ea;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-align: left;
}

#childdetail_page .clientMaintenanceForm .childdetail_action_main {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(120px, auto);
    align-items: center;
    column-gap: 24px;
    margin: 0;
}

#childdetail_page .childdetail_action_main .childdetail_overview_start {
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    min-width: 0;
    max-width: 560px;
    padding: 12px 24px;
}

#childdetail_page .childdetail_action_main > p {
    grid-column: 1;
    margin: 4px 0 0;
    text-align: center;
}

#childdetail_page .clientMaintenanceForm .childdetail_action_main .childdetail_overview_action_time {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    gap: 10px;
    align-items: center;
    max-width: none;
    color: var(--ct-teal);
}

@media (max-width: 1050px) {
    #childdetail_page .clientMaintenanceForm .childdetail_process_flow {
        gap: 4px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_process_step {
        min-height: 64px;
        padding-right: 4px;
        padding-left: 4px;
    }

    #childdetail_page .childdetail_process_step strong {
        font-size: 0.7em;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_overview_action {
        grid-template-columns: 170px minmax(0, 1fr);
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 800px) {
    #childdetail_page.childdetail-redesign #childdetail_child_summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #childdetail_page.childdetail-redesign .childdetail_summary_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_overview_action,
    #childdetail_page .clientMaintenanceForm .childdetail_action_main {
        grid-template-columns: 1fr;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_process_flow {
        display: flex;
        overflow-x: auto;
        padding-top: 10px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_process_step {
        flex: 0 0 130px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_action_main .childdetail_overview_action_time {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        margin-top: 8px;
    }
}

/* Completed overview: green outcome */

#childdetail_page .childdetail_green_result {
    --green-outcome: #22a447;
    display: grid;
    grid-template-columns: clamp(205px, 22%, 270px) minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 34px);
    min-height: 0;
    padding: clamp(14px, 1.8vh, 24px) clamp(14px, 1.8vw, 28px);
    color: #172545;
}

#childdetail_page .childdetail_green_progress {
    min-width: 0;
    padding: 2px clamp(12px, 1.3vw, 20px) 0 0;
    border-right: 1px solid #dce4ea;
}

#childdetail_page .childdetail_green_progress h2 {
    margin: 0 0 20px;
    font-size: 1.05em;
}

#childdetail_page .childdetail_green_progress_steps,
#childdetail_page .childdetail_green_progress_step > div,
#childdetail_page .childdetail_green_recommendation > div,
#childdetail_page .childdetail_green_main {
    display: flex;
    flex-direction: column;
}

#childdetail_page .childdetail_green_progress_step {
    display: grid;
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 102px;
}

#childdetail_page .childdetail_green_progress_step::after {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 16px;
    width: 3px;
    background: var(--green-outcome);
    content: '';
}

#childdetail_page .childdetail_green_progress_step.is-muted::after {
    background: repeating-linear-gradient(to bottom, #b9c2d2 0, #b9c2d2 8px, transparent 8px, transparent 14px);
}

#childdetail_page .childdetail_green_progress_marker {
    display: inline-flex;
    z-index: 1;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--green-outcome);
    border-radius: 50%;
    background: var(--green-outcome);
    color: #fff;
}

#childdetail_page .childdetail_green_progress_marker svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

#childdetail_page .childdetail_green_progress_step.is-muted {
    color: #8b94a7;
}

#childdetail_page .childdetail_green_progress_step.is-muted .childdetail_green_progress_marker {
    border-color: #b9c2d2;
    background: #fff;
}

#childdetail_page .childdetail_green_progress_step > div,
#childdetail_page .childdetail_green_recommendation > div {
    min-width: 0;
    gap: 4px;
    padding-top: 4px;
}

#childdetail_page .childdetail_green_progress_step strong,
#childdetail_page .childdetail_green_recommendation strong {
    font-size: 0.9em;
    line-height: 1.25;
}

#childdetail_page .childdetail_green_progress_step span,
#childdetail_page .childdetail_green_recommendation span {
    font-size: 0.76em;
    line-height: 1.35;
}

#childdetail_page .childdetail_green_progress_step b {
    color: var(--green-outcome);
    font-size: 1em;
}

#childdetail_page .childdetail_green_recommendation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin-top: -2px;
    padding: 12px 10px;
    border: 1.5px solid var(--green-outcome);
    border-radius: 12px;
    background: #fff;
}

#childdetail_page .childdetail_green_recommendation_dot {
    width: 22px;
    height: 22px;
    margin: 2px 0 0 5px;
    border: 3px solid var(--green-outcome);
    border-radius: 50%;
    background: #8dc63f;
}

#childdetail_page .childdetail_green_recommendation .childdetail_green_here {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin: 3px 0 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-outcome);
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

#childdetail_page .childdetail_green_recommendation .childdetail_green_here::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

#childdetail_page .childdetail_green_main {
    min-width: 0;
    gap: clamp(10px, 1.2vh, 16px);
}

#childdetail_page .childdetail_green_status {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    color: var(--ct-teal);
}

#childdetail_page .childdetail_green_status > span,
#childdetail_page .childdetail_green_status > span svg {
    display: block;
    width: 24px;
    height: 24px;
}

#childdetail_page .childdetail_green_status svg,
#childdetail_page .childdetail_green_disclaimer svg,
#childdetail_page .childdetail_green_calendar svg,
#childdetail_page .childdetail_green_meaning svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#childdetail_page .childdetail_green_status strong {
    font-size: 0.95em;
}

#childdetail_page .loginSubmit.childdetail_green_report {
    margin: 0 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--ct-teal);
    border-radius: 16px;
    background: #fff;
    color: #087f7c;
    font-size: 0.78em;
}

#childdetail_page .childdetail_green_message {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr) 130px;
    grid-template-rows: auto auto;
    gap: 12px 20px;
    align-items: center;
    padding: clamp(20px, 2.4vh, 32px) clamp(22px, 2.4vw, 38px) 18px;
    border: 1.5px solid #62bb78;
    border-radius: 15px;
    background: linear-gradient(120deg, #fbfffc, #f4fbf6);
}

#childdetail_page .childdetail_green_star {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #28a648, #61bd54);
    color: #fff;
}

#childdetail_page .childdetail_green_star svg {
    width: 66px;
    height: 66px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

#childdetail_page .childdetail_green_message_copy h2 {
    margin: 0 0 12px;
    color: var(--green-outcome);
    font-size: clamp(25px, 2.1vw, 34px);
}

#childdetail_page .childdetail_green_message_copy p {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.45;
}

#childdetail_page .childdetail_green_message_copy .childdetail_green_message_emphasis {
    margin: 0;
    font-size: clamp(14px, 1.08vw, 18px);
}

#childdetail_page .childdetail_green_person {
    color: #172545;
}

#childdetail_page .childdetail_green_person svg {
    display: block;
    width: 105px;
    height: 105px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

#childdetail_page .childdetail_green_meaning {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #bfe3c8;
}

#childdetail_page .childdetail_green_meaning > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f4e7;
    color: var(--green-outcome);
}

#childdetail_page .childdetail_green_meaning svg {
    width: 25px;
    height: 25px;
}

#childdetail_page .childdetail_green_meaning p,
#childdetail_page .childdetail_green_reminder p,
#childdetail_page .childdetail_green_disclaimer p {
    margin: 0;
    font-size: 0.82em;
    line-height: 1.4;
}

#childdetail_page .childdetail_green_meaning strong,
#childdetail_page .childdetail_green_reminder strong,
#childdetail_page .childdetail_green_disclaimer strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}

#childdetail_page .childdetail_green_reminder {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(180px, 0.35fr);
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid #dce4ea;
    border-radius: 12px;
    background: #fff;
}

#childdetail_page .childdetail_green_calendar {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f7ec;
    color: var(--green-outcome);
}

#childdetail_page .childdetail_green_calendar svg {
    width: 27px;
    height: 27px;
}

#childdetail_page .childdetail_green_next_check {
    padding-left: 22px;
    border-left: 1px solid #dce4ea;
}

#childdetail_page .childdetail_green_next_check span,
#childdetail_page .childdetail_green_next_check strong {
    display: block;
}

#childdetail_page .childdetail_green_next_check strong {
    margin: 2px 0 0;
    font-size: 1.05em;
}

#childdetail_page .childdetail_green_disclaimer {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #eef9fb;
}

#childdetail_page .childdetail_green_disclaimer > span {
    color: var(--ct-teal);
}

#childdetail_page .childdetail_green_disclaimer svg {
    width: 29px;
    height: 29px;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_green_result {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
        padding-right: 12px;
        padding-left: 12px;
    }

    #childdetail_page .childdetail_green_message {
        grid-template-columns: 105px minmax(0, 1fr);
        padding: 18px;
    }

    #childdetail_page .childdetail_green_star {
        width: 88px;
        height: 88px;
    }

    #childdetail_page .childdetail_green_person {
        display: none;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_green_result {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_green_progress {
        display: none;
    }

    #childdetail_page .childdetail_green_reminder {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_green_next_check {
        grid-column: 2;
        padding: 8px 0 0;
        border-top: 1px solid #dce4ea;
        border-left: 0;
    }
}

/* Completed overview: red outcome */

#childdetail_page .childdetail_red_result {
    display: grid;
    grid-template-columns: clamp(205px, 22%, 270px) minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 34px);
    min-height: 0;
    padding: clamp(14px, 1.8vh, 24px) clamp(14px, 1.8vw, 28px);
    color: #172545;
}

#childdetail_page .childdetail_red_progress {
    min-width: 0;
    padding: 2px clamp(12px, 1.3vw, 20px) 0 0;
    border-right: 1px solid #dce4ea;
}

#childdetail_page .childdetail_red_progress h2 {
    margin: 0 0 20px;
    font-size: 1.05em;
}

#childdetail_page .childdetail_red_progress_steps,
#childdetail_page .childdetail_red_progress_step > div,
#childdetail_page .childdetail_red_main {
    display: flex;
    flex-direction: column;
}

#childdetail_page .childdetail_red_progress_step {
    display: grid;
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 93px;
}

#childdetail_page .childdetail_red_progress_step::after {
    position: absolute;
    z-index: 0;
    top: 34px;
    bottom: 0;
    left: 16px;
    width: 3px;
    content: '';
}

#childdetail_page .childdetail_red_progress_step.is-complete::after {
    background: var(--ct-teal);
}

#childdetail_page .childdetail_red_progress_step.is-outcome-complete::after {
    background: var(--ct-red);
}

#childdetail_page .childdetail_red_progress_step.is-recommended::after,
#childdetail_page .childdetail_red_progress_step.is-future::after {
    background: repeating-linear-gradient(to bottom, #b9c2d2 0, #b9c2d2 8px, transparent 8px, transparent 14px);
}

#childdetail_page .childdetail_red_progress_step:last-child::after {
    display: none;
}

#childdetail_page .childdetail_red_progress_marker {
    display: inline-flex;
    z-index: 1;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 3px solid #b9c2d2;
    border-radius: 50%;
    background: #fff;
    color: #fff;
}

#childdetail_page .childdetail_red_progress_marker svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

#childdetail_page .childdetail_red_progress_step.is-complete .childdetail_red_progress_marker {
    border-color: var(--ct-teal);
    background: var(--ct-teal);
}

#childdetail_page .childdetail_red_progress_step.is-outcome-complete .childdetail_red_progress_marker {
    border-color: var(--ct-red);
    background: var(--ct-red);
}

#childdetail_page .childdetail_red_progress_step.is-programme .childdetail_red_progress_marker {
    border-color: var(--ct-purple);
}

#childdetail_page .childdetail_red_progress_step.is-recommended {
    min-height: 118px;
    margin: 0 0 18px;
    padding: 12px 10px;
    border: 1.5px solid var(--ct-red);
    border-radius: 12px;
    background: #fff;
}

#childdetail_page .childdetail_red_progress_step.is-recommended .childdetail_red_progress_marker {
    width: 22px;
    height: 22px;
    margin: 2px 0 0 5px;
    border-color: var(--ct-red);
    background: rgba(231, 51, 82, 0.14);
}

#childdetail_page .childdetail_red_progress_step.is-recommended::after {
    top: 36px;
    bottom: -19px;
}

#childdetail_page .childdetail_red_progress_step > div {
    min-width: 0;
    gap: 4px;
    padding-top: 4px;
}

#childdetail_page .childdetail_red_progress_step strong {
    font-size: 0.9em;
    line-height: 1.25;
}

#childdetail_page .childdetail_red_progress_step span {
    font-size: 0.76em;
    line-height: 1.35;
}

#childdetail_page .childdetail_red_progress_step b {
    color: var(--ct-red);
    font-size: 1em;
}

#childdetail_page .childdetail_red_progress_step.is-future,
#childdetail_page .childdetail_red_progress_step.is-programme {
    color: #707b91;
}

#childdetail_page .childdetail_red_progress_step .childdetail_red_here {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin-top: 3px;
    color: var(--ct-red);
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.04em;
}

#childdetail_page .childdetail_red_here::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

#childdetail_page .childdetail_red_main {
    min-width: 0;
    gap: clamp(10px, 1.2vh, 16px);
}

#childdetail_page .childdetail_red_top {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    min-height: 48px;
    align-items: center;
    gap: 18px;
}

#childdetail_page .childdetail_red_status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ct-teal);
}

#childdetail_page .childdetail_red_status > span,
#childdetail_page .childdetail_red_status > span svg {
    display: block;
    width: 25px;
    height: 25px;
}

#childdetail_page .childdetail_red_status svg,
#childdetail_page .childdetail_red_adaptive svg,
#childdetail_page .childdetail_red_clipboard svg,
#childdetail_page .childdetail_red_disclaimer svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#childdetail_page .childdetail_red_status p {
    display: flex;
    flex-direction: column;
    margin: 0;
}

#childdetail_page .childdetail_red_status strong {
    font-size: 0.92em;
}

#childdetail_page .childdetail_red_status p span {
    color: #5a6678;
    font-size: 0.68em;
}

#childdetail_page .childdetail_red_adaptive {
    display: grid;
    max-width: 315px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef8fa;
    color: var(--ct-teal);
    justify-self: end;
}

#childdetail_page .childdetail_red_adaptive > span,
#childdetail_page .childdetail_red_adaptive svg {
    display: block;
    width: 33px;
    height: 33px;
}

#childdetail_page .childdetail_red_adaptive p {
    margin: 0;
    color: #33425b;
    font-size: 0.68em;
    line-height: 1.35;
}

#childdetail_page .childdetail_red_adaptive strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1.08em;
}

#childdetail_page .childdetail_red_message {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px 22px;
    align-items: center;
    padding: clamp(18px, 2vh, 27px) clamp(20px, 2.2vw, 34px);
    border: 1.5px solid rgba(231, 51, 82, 0.45);
    border-radius: 15px;
    background: rgba(231, 51, 82, 0.035);
}

#childdetail_page .childdetail_red_alert {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 50%;
    background: var(--ct-red);
    color: #fff;
    font-size: 3.1em;
    font-weight: 700;
    line-height: 1;
}

#childdetail_page .childdetail_red_message_copy h2 {
    display: inline;
    margin: 0 10px 5px 0;
    font-size: clamp(22px, 1.8vw, 29px);
}

#childdetail_page .childdetail_red_outcome_label {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(231, 51, 82, 0.12);
    color: var(--ct-red);
    font-size: 0.72em;
    font-weight: 700;
}

#childdetail_page .childdetail_red_message_copy p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

#childdetail_page .childdetail_red_meaning {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-top: 15px;
    border-top: 1px solid rgba(231, 51, 82, 0.28);
}

#childdetail_page .childdetail_red_meaning > span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231, 51, 82, 0.12);
    color: var(--ct-red);
    font-size: 1.35em;
    font-weight: 700;
}

#childdetail_page .childdetail_red_meaning p {
    margin: 0;
    font-size: 0.82em;
    line-height: 1.45;
}

#childdetail_page .childdetail_red_meaning strong,
#childdetail_page .childdetail_red_meaning b {
    display: block;
}

#childdetail_page .childdetail_red_meaning strong {
    margin-bottom: 4px;
    font-size: 1.08em;
}

#childdetail_page .childdetail_red_meaning b {
    margin-top: 9px;
}

#childdetail_page .childdetail_red_areas {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    padding-top: 4px;
}

#childdetail_page .childdetail_red_areas > strong {
    font-size: 0.78em;
}

#childdetail_page .childdetail_red_areas > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_red_areas span {
    padding: 3px 9px;
    border: 1px solid rgba(231, 51, 82, 0.32);
    border-radius: 12px;
    background: #fff;
    color: #8f263b;
    font-size: 0.7em;
    font-weight: 600;
}

#childdetail_page .childdetail_red_action {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px 22px;
    align-items: center;
    padding: 16px clamp(20px, 2.2vw, 34px);
    border: 1px solid #e0e5e8;
    border-radius: 15px;
    background: #fff;
}

#childdetail_page .childdetail_red_clipboard {
    display: inline-flex;
    grid-row: 1 / 3;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231, 51, 82, 0.1);
    color: var(--ct-red);
}

#childdetail_page .childdetail_red_clipboard svg {
    width: 50px;
    height: 50px;
}

#childdetail_page .childdetail_red_action h2 {
    margin: 0 0 7px;
    font-size: clamp(17px, 1.35vw, 22px);
}

#childdetail_page .childdetail_red_action p {
    margin: 0;
    font-size: 0.82em;
    line-height: 1.4;
}

#childdetail_page .loginSubmit.childdetail_red_start {
    grid-column: 2;
    width: 100%;
    margin: 2px 0 0;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--ct-teal);
    color: #fff;
    font-weight: 700;
}

#childdetail_page .loginSubmit.childdetail_red_start:hover,
#childdetail_page .loginSubmit.childdetail_red_start:active {
    background: #008f8c;
}

#childdetail_page .loginSubmit.childdetail_red_report {
    white-space: nowrap;
}

#childdetail_page .childdetail_red_disclaimer {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #eef9fb;
}

#childdetail_page .childdetail_red_disclaimer > span {
    color: var(--ct-teal);
}

#childdetail_page .childdetail_red_disclaimer svg {
    width: 29px;
    height: 29px;
}

#childdetail_page .childdetail_red_disclaimer p {
    margin: 0;
    font-size: 0.76em;
    line-height: 1.35;
}

#childdetail_page .childdetail_red_disclaimer strong {
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_red_result {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
        padding-right: 12px;
        padding-left: 12px;
    }

    #childdetail_page .childdetail_red_adaptive {
        max-width: 250px;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_red_result {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_red_progress {
        display: none;
    }

    #childdetail_page .childdetail_red_top {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    #childdetail_page .childdetail_red_adaptive {
        max-width: none;
        justify-self: stretch;
    }

    #childdetail_page .loginSubmit.childdetail_red_report {
        justify-self: start;
        margin-left: 0;
    }

    #childdetail_page .childdetail_red_message,
    #childdetail_page .childdetail_red_action {
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 16px;
    }

    #childdetail_page .childdetail_red_alert,
    #childdetail_page .childdetail_red_clipboard {
        width: 58px;
        height: 58px;
    }
}

/* Shared, child-friendly overview outcome screens.
   The coloured centre dot is intentionally the only traffic-light result marker. */
#childdetail_page .childdetail_outcome_screen {
    --outcome-accent: #00b1ad;
    --outcome-tint: rgba(0, 177, 173, 0.07);
    display: grid;
    grid-template-columns: minmax(205px, 245px) minmax(0, 1fr);
    gap: clamp(18px, 2.6vw, 34px);
    min-height: 100%;
    padding: 16px clamp(18px, 2.7vw, 38px) 18px;
    color: #283646;
}

#childdetail_page .childdetail_result_green {
    --outcome-accent: #55a96b;
    --outcome-tint: rgba(85, 169, 107, 0.08);
}

#childdetail_page .childdetail_result_amber {
    --outcome-accent: #d29b24;
    --outcome-tint: rgba(253, 198, 82, 0.12);
}

#childdetail_page .childdetail_result_red {
    --outcome-accent: #e73352;
    --outcome-tint: rgba(231, 51, 82, 0.07);
}

#childdetail_page .childdetail_outcome_progress {
    min-width: 0;
    padding: 5px 0 0;
}

#childdetail_page .childdetail_outcome_progress > h2 {
    margin: 0 0 13px;
    color: #344052;
    font-size: 1.05em;
    font-weight: 750;
}

#childdetail_page .childdetail_outcome_progress_steps {
    position: relative;
    padding-left: 1px;
}

#childdetail_page .childdetail_outcome_progress_step {
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    min-height: 52px;
}

#childdetail_page .childdetail_outcome_progress_step:not(:last-child)::after {
    position: absolute;
    top: 24px;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: #dfe6e9;
    content: "";
}

#childdetail_page .childdetail_outcome_progress_step > div {
    display: flex;
    min-width: 0;
    padding: 2px 0 12px;
    flex-direction: column;
}

#childdetail_page .childdetail_outcome_progress_step strong,
#childdetail_page .childdetail_outcome_recommendation strong,
#childdetail_page .childdetail_outcome_branch strong {
    color: #344052;
    font-size: 0.88em;
    line-height: 1.25;
}

#childdetail_page .childdetail_outcome_progress_step span:not(.childdetail_outcome_progress_check):not(.childdetail_outcome_progress_future_marker) {
    color: #71808c;
    font-size: 0.73em;
    line-height: 1.3;
}

#childdetail_page .childdetail_outcome_progress_check,
#childdetail_page .childdetail_outcome_progress_future_marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00b1ad;
    color: #fff;
}

#childdetail_page .childdetail_outcome_progress_check svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_progress_future_marker {
    box-sizing: border-box;
    border: 2px solid #cbd5da;
    background: #fff;
}

#childdetail_page .childdetail_outcome_progress_step.is-future strong,
#childdetail_page .childdetail_outcome_progress_step.is-future span {
    color: #84919a;
}

#childdetail_page .childdetail_outcome_recommendation {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    margin: 2px 0 14px;
    padding: 11px 10px;
    overflow: hidden;
    border: 1px solid #e0e6e9;
    border-radius: 10px;
    background: var(--outcome-tint);
    box-shadow: 0 3px 10px rgba(40, 54, 70, 0.055);
}

#childdetail_page .childdetail_outcome_recommendation::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--outcome-accent);
    content: "";
}

#childdetail_page .childdetail_outcome_recommendation > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#childdetail_page .childdetail_outcome_recommendation > div > span:last-child {
    color: #65747f;
    font-size: 0.75em;
    line-height: 1.3;
}

#childdetail_page .childdetail_outcome_here {
    margin: 2px 0 3px;
    color: #687681 !important;
    font-size: 0.6em !important;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#childdetail_page .childdetail_outcome_marker {
    display: inline-flex;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1.5px solid #cfd8dc;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(40, 54, 70, 0.08);
}

#childdetail_page .childdetail_outcome_marker > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--outcome-accent);
}

#childdetail_page .childdetail_outcome_marker.is-large {
    width: 29px;
    height: 29px;
}

#childdetail_page .childdetail_outcome_marker.is-large > span {
    width: 11px;
    height: 11px;
}

#childdetail_page .childdetail_outcome_marker.is-small {
    width: 18px;
    height: 18px;
}

#childdetail_page .childdetail_outcome_marker.is-small > span {
    width: 6px;
    height: 6px;
}

#childdetail_page .childdetail_outcome_branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 14px;
}

#childdetail_page .childdetail_outcome_fork {
    position: absolute;
    top: 0;
    right: 24%;
    left: 24%;
    height: 13px;
    border-top: 2px solid #dfe6e9;
}

#childdetail_page .childdetail_outcome_fork i {
    position: absolute;
    top: -1px;
    width: 2px;
    height: 12px;
    background: #dfe6e9;
}

#childdetail_page .childdetail_outcome_fork i:first-child {
    left: 0;
}

#childdetail_page .childdetail_outcome_fork i:last-child {
    right: 0;
}

#childdetail_page .childdetail_outcome_branch {
    display: flex;
    min-width: 0;
    padding: 9px 6px;
    align-items: center;
    flex-direction: column;
    border: 1px solid #e3e8ea;
    border-radius: 9px;
    background: #fff;
    text-align: center;
}

#childdetail_page .childdetail_outcome_branch_icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    margin-bottom: 3px;
    color: #00b1ad;
}

#childdetail_page .childdetail_outcome_branch.is-assessment .childdetail_outcome_branch_icon {
    color: #5e4f9c;
}

#childdetail_page .childdetail_outcome_branch_icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_branch > span:last-of-type {
    color: #7b8892;
    font-size: 0.68em;
}

#childdetail_page .childdetail_outcome_branch .childdetail_outcome_progress_step {
    width: 100%;
    min-height: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e7ecee;
    grid-template-columns: 18px minmax(0, 1fr);
    text-align: left;
}

#childdetail_page .childdetail_outcome_branch .childdetail_outcome_progress_step::after {
    display: none;
}

#childdetail_page .childdetail_outcome_branch .childdetail_outcome_progress_future_marker {
    width: 17px;
    height: 17px;
}

#childdetail_page .childdetail_outcome_main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#childdetail_page .childdetail_outcome_status {
    display: flex;
    min-height: 36px;
    margin-bottom: 10px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e6ebed;
}

#childdetail_page .childdetail_outcome_status > strong {
    color: #4d5b67;
    font-size: 0.84em;
}

#childdetail_page .childdetail_outcome_status_actions {
    display: flex;
    margin: 0 0 7px auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

#childdetail_page .loginSubmit.childdetail_outcome_report {
    min-height: 0;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #00a6a3;
    border-radius: 7px;
    background: #fff;
    color: #008f8c;
    font-size: 0.75em;
    box-shadow: none;
}

#childdetail_page .loginSubmit.childdetail_outcome_report:hover {
    background: rgba(0, 177, 173, 0.07);
}

#childdetail_page .childdetail_outcome_summary {
    display: grid;
    grid-template-columns: 67px minmax(0, 1fr);
    gap: 5px 17px;
    padding: 15px 18px;
    border: 1px solid #e1e7e9;
    border-left: 3px solid var(--outcome-accent);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(40, 54, 70, 0.06);
}

#childdetail_page .childdetail_outcome_summary_icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    border-radius: 50%;
    background: var(--outcome-tint);
    color: var(--outcome-accent);
}

#childdetail_page .childdetail_outcome_summary_icon svg {
    width: 39px;
    height: 39px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_summary_copy h2,
#childdetail_page .childdetail_outcome_choice h2,
#childdetail_page .childdetail_outcome_action h2 {
    margin: 0 0 3px;
    color: #2f3d4b;
    font-size: 1.12em;
}

#childdetail_page .childdetail_outcome_summary_copy p,
#childdetail_page .childdetail_outcome_choice p,
#childdetail_page .childdetail_outcome_action p {
    margin: 0;
    color: #596874;
    font-size: 0.84em;
    line-height: 1.4;
}

#childdetail_page .childdetail_outcome_meaning {
    display: grid;
    grid-column: 2;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin-top: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f6f8f9;
}

#childdetail_page .childdetail_outcome_meaning > span {
    display: inline-flex;
    color: #00a5a1;
}

#childdetail_page .childdetail_outcome_meaning svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_meaning p {
    margin: 0;
    color: #52616d;
    font-size: 0.76em;
    line-height: 1.35;
}

#childdetail_page .childdetail_outcome_meaning strong {
    display: block;
    margin-bottom: 1px;
    color: #364552;
}

#childdetail_page .childdetail_outcome_areas {
    grid-column: 2;
    margin-top: 3px;
}

#childdetail_page .childdetail_outcome_areas > strong {
    display: block;
    margin-bottom: 5px;
    color: #53626e;
    font-size: 0.73em;
}

#childdetail_page .childdetail_outcome_areas > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_outcome_areas span {
    padding: 4px 9px;
    border: 1px solid #dce4e7;
    border-radius: 999px;
    background: #fff;
    color: #55646f;
    font-size: 0.7em;
}

#childdetail_page .childdetail_outcome_support,
#childdetail_page .childdetail_outcome_action {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 11px;
    padding: 12px 15px;
    align-items: center;
    border: 1px solid #dfe7e9;
    border-radius: 10px;
    background: #fff;
}

#childdetail_page .childdetail_outcome_support_icon,
#childdetail_page .childdetail_outcome_action_icon,
#childdetail_page .childdetail_outcome_choice_icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 177, 173, 0.08);
    color: #00a6a2;
}

#childdetail_page .childdetail_outcome_support_icon svg,
#childdetail_page .childdetail_outcome_action_icon svg,
#childdetail_page .childdetail_outcome_choice_icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_support > p {
    margin: 0;
    color: #5d6b76;
    font-size: 0.79em;
    line-height: 1.35;
}

#childdetail_page .childdetail_outcome_support > p strong {
    display: block;
    margin-bottom: 2px;
    color: #33424f;
}

#childdetail_page .childdetail_outcome_next_check {
    padding-left: 14px;
    border-left: 1px solid #e0e6e8;
}

#childdetail_page .childdetail_outcome_next_check span,
#childdetail_page .childdetail_outcome_next_check strong {
    display: block;
}

#childdetail_page .childdetail_outcome_choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 11px;
}

#childdetail_page .childdetail_outcome_choice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 13px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background: #fff;
}

#childdetail_page .childdetail_outcome_choice.is-assess .childdetail_outcome_choice_icon {
    background: rgba(94, 79, 156, 0.08);
    color: #5e4f9c;
}

#childdetail_page .childdetail_outcome_saved {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid #e7ecee;
}

#childdetail_page .childdetail_outcome_saved > span {
    color: #00a6a2;
}

#childdetail_page .childdetail_outcome_saved svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_saved p {
    font-size: 0.7em;
}

#childdetail_page .childdetail_outcome_saved strong {
    display: block;
    color: #3e4d59;
}

#childdetail_page .childdetail_outcome_action {
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

#childdetail_page .childdetail_outcome_action_icon {
    background: rgba(94, 79, 156, 0.08);
    color: #5e4f9c;
}

#childdetail_page .loginSubmit.childdetail_outcome_start {
    min-width: 174px;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: #00a9a5;
    color: #fff;
    font-size: 0.78em;
    box-shadow: 0 3px 8px rgba(0, 137, 134, 0.18);
}

#childdetail_page .loginSubmit.childdetail_outcome_start:hover {
    background: #008f8c;
}

#childdetail_page .childdetail_outcome_choice .childdetail_outcome_start {
    grid-column: 1 / -1;
    justify-self: start;
}

#childdetail_page .childdetail_outcome_disclaimer {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    margin-top: 10px;
    padding: 8px 12px;
    align-items: center;
    border-radius: 8px;
    background: #f1f8f8;
}

#childdetail_page .childdetail_outcome_disclaimer > span {
    display: inline-flex;
    color: #00a6a2;
}

#childdetail_page .childdetail_outcome_disclaimer svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_outcome_disclaimer p {
    margin: 0;
    color: #5b6974;
    font-size: 0.69em;
    line-height: 1.35;
}

#childdetail_page .childdetail_outcome_disclaimer strong {
    display: block;
    color: #34434f;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_outcome_screen {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 17px;
        padding-right: 14px;
        padding-left: 14px;
    }

    #childdetail_page .childdetail_outcome_summary {
        padding: 13px 14px;
    }

    #childdetail_page .childdetail_outcome_support,
    #childdetail_page .childdetail_outcome_action {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_outcome_next_check,
    #childdetail_page .childdetail_outcome_action .childdetail_outcome_start {
        grid-column: 2;
        justify-self: start;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_outcome_screen {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_outcome_progress {
        display: none;
    }

    #childdetail_page .childdetail_outcome_summary {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_outcome_summary_icon {
        width: 49px;
        height: 49px;
    }

    #childdetail_page .childdetail_outcome_summary_icon svg {
        width: 31px;
        height: 31px;
    }

    #childdetail_page .childdetail_outcome_choices {
        grid-template-columns: 1fr;
    }
}

/* Outcome-screen mock-up fidelity pass. */
#childdetail_page .childdetail_outcome_screen {
    grid-template-columns: minmax(225px, 255px) minmax(0, 1fr);
    gap: clamp(26px, 3vw, 46px);
    padding: 22px clamp(22px, 2.2vw, 32px) 28px;
    background: #fff;
}

#childdetail_page .childdetail_outcome_progress {
    min-height: 100%;
    padding: 3px 28px 24px 0;
    border-right: 1px solid #dbe3e7;
}

#childdetail_page .childdetail_outcome_progress > h2 {
    margin-bottom: 26px;
    color: #1f2945;
    font-size: 1.02em;
}

#childdetail_page .childdetail_outcome_progress_step {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
}

#childdetail_page .childdetail_outcome_progress_step:last-child {
    min-height: 0;
}

#childdetail_page .childdetail_outcome_progress_step:not(:last-child)::after {
    top: 38px;
    left: 17px;
    width: 3px;
    background: #00b1ad;
}

#childdetail_page .childdetail_outcome_progress_step.is-future {
    min-height: 0;
}

#childdetail_page .childdetail_outcome_progress_step.is-future::after {
    background: repeating-linear-gradient(
        to bottom,
        #adb8cb 0,
        #adb8cb 7px,
        transparent 7px,
        transparent 13px
    );
}

#childdetail_page .childdetail_outcome_progress_step > div {
    padding-top: 5px;
}

#childdetail_page .childdetail_outcome_progress_step strong,
#childdetail_page .childdetail_outcome_recommendation strong {
    color: #202a49;
    font-size: 0.9em;
}

#childdetail_page .childdetail_outcome_progress_step span:not(.childdetail_outcome_progress_check):not(.childdetail_outcome_progress_future_marker),
#childdetail_page .childdetail_outcome_recommendation > div > span:last-child {
    color: #3e4964;
    font-size: 0.75em;
}

#childdetail_page .childdetail_outcome_progress_check,
#childdetail_page .childdetail_outcome_progress_future_marker {
    width: 36px;
    height: 36px;
}

#childdetail_page .childdetail_outcome_progress_check svg {
    width: 23px;
    height: 23px;
}

#childdetail_page .childdetail_outcome_progress_future_marker {
    border: 3px solid #5e4f9c;
}

#childdetail_page .childdetail_outcome_recommendation {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    min-height: 122px;
    margin: -7px 0 62px -10px;
    padding: 20px 14px 18px 16px;
    overflow: visible;
    border: 1.5px solid #5e4f9c;
    border-left: 3px solid #e73352;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

#childdetail_page .childdetail_outcome_recommendation::before {
    display: none;
}

#childdetail_page .childdetail_outcome_recommendation::after {
    position: absolute;
    top: 100%;
    bottom: auto;
    left: 29px;
    width: 3px;
    height: 63px;
    background: repeating-linear-gradient(
        to bottom,
        #adb8cb 0,
        #adb8cb 7px,
        transparent 7px,
        transparent 13px
    );
    content: "";
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation {
    margin-bottom: 18px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation::after,
#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation::after {
    display: none;
}

#childdetail_page .childdetail_outcome_here {
    margin: 7px 0 9px;
    color: #5e4f9c !important;
    font-size: 0.67em !important;
}

#childdetail_page .childdetail_outcome_here::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 7px 1px 0;
    border-radius: 50%;
    background: #5e4f9c;
    content: "";
}

#childdetail_page .childdetail_outcome_marker.is-large {
    width: 38px;
    height: 38px;
}

#childdetail_page .childdetail_outcome_marker.is-large > span {
    width: 12px;
    height: 12px;
}

#childdetail_page .childdetail_outcome_main {
    gap: 0;
}

#childdetail_page .childdetail_outcome_status {
    min-height: 51px;
    margin: 0 0 14px;
    border-bottom: 0;
}

#childdetail_page .childdetail_outcome_status > strong {
    color: #00a6a3;
    font-size: 0.88em;
}

#childdetail_page .childdetail_outcome_marker.is-small {
    width: 30px;
    height: 30px;
}

#childdetail_page .childdetail_outcome_marker.is-small > span {
    width: 8px;
    height: 8px;
}

#childdetail_page .loginSubmit.childdetail_outcome_report {
    display: inline-flex;
    min-height: 42px;
    margin-bottom: 0;
    padding: 8px 17px;
    align-items: center;
    gap: 8px;
    font-size: 0.78em;
}

#childdetail_page .loginSubmit.childdetail_outcome_report svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#childdetail_page .childdetail_outcome_summary {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 13px 24px;
    min-height: 270px;
    padding: 27px 35px 24px;
    align-content: start;
    border: 1.5px solid #dbe4e8;
    border-left: 1.5px solid #dbe4e8;
    border-radius: 15px;
    background: #fbfefe;
    box-shadow: none;
}

#childdetail_page .childdetail_outcome_summary_icon {
    width: 94px;
    height: 94px;
    grid-row: auto;
    background: rgba(0, 177, 173, 0.09);
    color: #00aaa6;
}

#childdetail_page .childdetail_outcome_summary_icon svg {
    width: 59px;
    height: 59px;
}

#childdetail_page .childdetail_outcome_summary_copy {
    align-self: center;
}

#childdetail_page .childdetail_outcome_summary_copy h2 {
    margin-bottom: 8px;
    color: #182345;
    font-size: 1.45em;
    font-weight: 500;
}

#childdetail_page .childdetail_outcome_summary_copy p {
    color: #303c5a;
}

#childdetail_page .childdetail_outcome_meaning {
    grid-column: 1 / -1;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 24px;
    margin-top: 4px;
    padding: 21px 0 4px;
    align-items: center;
    border-top: 1px solid #dbe4e8;
    border-radius: 0;
    background: transparent;
}

#childdetail_page .childdetail_outcome_meaning > span {
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 50%;
    background: rgba(0, 177, 173, 0.09);
}

#childdetail_page .childdetail_outcome_meaning svg {
    width: 42px;
    height: 42px;
}

#childdetail_page .childdetail_outcome_meaning p {
    color: #303c5a;
    font-size: 0.82em;
}

#childdetail_page .childdetail_outcome_meaning strong {
    margin-bottom: 6px;
    color: #182345;
    font-size: 1.02em;
}

#childdetail_page .childdetail_outcome_areas {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 24px;
    margin-top: 5px;
    align-items: center;
}

#childdetail_page .childdetail_outcome_areas > strong {
    margin: 0;
    color: #202a49;
    font-size: 0.78em;
}

#childdetail_page .childdetail_outcome_areas span {
    padding: 5px 14px;
    border-color: #00b1ad;
    color: #009c99;
}

#childdetail_page .childdetail_outcome_action,
#childdetail_page .childdetail_outcome_support {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 5px 24px;
    min-height: 185px;
    margin-top: 17px;
    padding: 22px 35px;
    align-content: center;
    border: 1.5px solid #dbe4e8;
    border-radius: 15px;
}

#childdetail_page .childdetail_outcome_action_icon,
#childdetail_page .childdetail_outcome_support_icon {
    width: 94px;
    height: 94px;
    grid-row: 1 / span 2;
    background: rgba(94, 79, 156, 0.08);
    color: #5e4f9c;
}

#childdetail_page .childdetail_outcome_action_icon svg,
#childdetail_page .childdetail_outcome_support_icon svg {
    width: 56px;
    height: 56px;
}

#childdetail_page .childdetail_outcome_action h2,
#childdetail_page .childdetail_outcome_choice h2 {
    color: #182345;
    font-size: 1.18em;
    font-weight: 500;
}

#childdetail_page .loginSubmit.childdetail_outcome_start,
#childdetail_page .childdetail_outcome_action .childdetail_outcome_start {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    grid-column: 2;
    justify-self: stretch;
    margin-top: 12px;
    font-size: 0.86em;
}

#childdetail_page .childdetail_outcome_disclaimer {
    min-height: 68px;
    margin-top: 17px;
    padding: 11px 18px;
    background: #effafa;
}

#childdetail_page .childdetail_outcome_disclaimer svg {
    width: 32px;
    height: 32px;
}

#childdetail_page .childdetail_outcome_disclaimer p {
    font-size: 0.73em;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_outcome_screen {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 20px;
        padding-right: 14px;
        padding-left: 14px;
    }

    #childdetail_page .childdetail_outcome_progress {
        padding-right: 18px;
    }

    #childdetail_page .childdetail_outcome_summary,
    #childdetail_page .childdetail_outcome_action,
    #childdetail_page .childdetail_outcome_support {
        grid-template-columns: 88px minmax(0, 1fr);
        padding-right: 22px;
        padding-left: 22px;
    }

    #childdetail_page .childdetail_outcome_meaning,
    #childdetail_page .childdetail_outcome_areas {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_outcome_summary_icon,
    #childdetail_page .childdetail_outcome_action_icon,
    #childdetail_page .childdetail_outcome_support_icon {
        width: 76px;
        height: 76px;
    }

    #childdetail_page .childdetail_outcome_action .childdetail_outcome_start,
    #childdetail_page .childdetail_outcome_next_check {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_outcome_screen {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_outcome_summary,
    #childdetail_page .childdetail_outcome_action,
    #childdetail_page .childdetail_outcome_support {
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 0;
        padding: 17px;
    }

    #childdetail_page .childdetail_outcome_summary_icon,
    #childdetail_page .childdetail_outcome_action_icon,
    #childdetail_page .childdetail_outcome_support_icon {
        width: 54px;
        height: 54px;
    }

    #childdetail_page .childdetail_outcome_meaning,
    #childdetail_page .childdetail_outcome_areas {
        grid-template-columns: 62px minmax(0, 1fr);
    }
}

/* Approved Everyday Support (green) pathway. */
#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step:nth-child(2) .childdetail_outcome_progress_check {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    margin: 3px;
    border: 2px solid #00aaa6;
    background: #fff;
    color: #00aaa6;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step:nth-child(2) .childdetail_outcome_progress_check svg {
    width: 18px;
    height: 18px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-future {
    min-height: 142px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-future .childdetail_outcome_progress_future_marker {
    border-color: #b8c1d0;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation {
    margin: -8px 0 0 -10px;
    border: 1.5px solid #55a96b;
    background: #fff;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation::before {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 4px;
    border-radius: 10px 10px 0 0;
    background: #55a96b;
    content: "";
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation strong,
#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation > div > span:last-child {
    color: #202a49;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation > div {
    margin-left: -14px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation strong {
    font-size: 1em;
    font-weight: 750;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_recommendation > div > span:last-child {
    font-size: 0.82em;
    font-weight: 550;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_here {
    color: #55a96b !important;
    font-size: 0.72em !important;
    font-weight: 800;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_here::before {
    background: #55a96b;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_summary {
    min-height: 0;
    grid-template-columns: 136px minmax(0, 1fr);
    padding: 26px 32px;
    border-color: #00aaa6;
    background: linear-gradient(135deg, #fbfefe 0%, #f3fbfb 100%);
}

#childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon {
    width: 116px;
    height: 116px;
    align-self: center;
    justify-self: center;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon svg {
    width: 72px;
    height: 72px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_summary_copy h2 {
    color: #009f9c;
    font-size: 1.65em;
    font-weight: 600;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_summary_copy p {
    color: #293653;
    font-size: 0.95em;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_meaning > span {
    width: 76px;
    height: 76px;
    align-self: center;
    justify-self: center;
    color: #00aaa6;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_meaning {
    grid-template-columns: 136px minmax(0, 1fr);
}

#childdetail_page .childdetail_result_green .childdetail_outcome_meaning p {
    font-size: 0.9em;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_meaning strong {
    font-size: 1.08em;
    font-weight: 750;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_support {
    grid-template-columns: 136px minmax(0, 1fr) minmax(175px, 215px);
    gap: 5px 24px;
    min-height: 0;
    padding: 18px 32px;
    border-color: #dbe4e8;
    background: #fff;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_support_icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    background: rgba(94, 79, 156, 0.08);
    color: #5e4f9c;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_support_icon svg {
    width: 62px;
    height: 62px;
    stroke-width: 2.15;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_support > p:not(.childdetail_outcome_next_check) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: #303c5a;
    font-size: 0.84em;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_support > p:not(.childdetail_outcome_next_check) strong {
    margin-bottom: 8px;
    color: #182345;
    font-size: 1.2em;
    font-weight: 600;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_next_check {
    display: flex;
    min-height: 94px;
    padding: 0 0 0 24px;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    border-left: 1px solid #dbe3e7;
    color: #303c5a;
    text-align: center;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_next_check::before {
    display: none;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_next_check > svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    fill: none;
    stroke: #5e4f9c;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_next_check span {
    margin-bottom: 5px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_disclaimer > span {
    color: #0086cd;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_disclaimer {
    min-height: 0;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_result_green .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_green .childdetail_outcome_meaning {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_summary {
        padding: 16px 18px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon {
        width: 84px;
        height: 84px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon svg {
        width: 54px;
        height: 54px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_support {
        grid-template-columns: 96px minmax(0, 1fr) minmax(145px, 175px);
        padding: 16px 18px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_next_check {
        padding-left: 16px;
        grid-column: 3;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_result_green .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_green .childdetail_outcome_meaning {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon {
        width: 54px;
        height: 54px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_summary_icon svg {
        width: 35px;
        height: 35px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_support {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_support_icon svg {
        width: 38px;
        height: 38px;
    }

    #childdetail_page .childdetail_result_green .childdetail_outcome_next_check {
        min-height: 0;
        margin-top: 10px;
        padding: 12px 0 0;
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 1px solid #dbe3e7;
        border-left: 0;
    }
}

/* Carry the approved green result template into amber and red outcomes. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation,
#childdetail_page .childdetail_result_red .childdetail_outcome_recommendation {
    border: 1.5px solid var(--outcome-accent);
    background: #fff;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child {
    display: flex;
    min-height: 190px;
    padding-left: 0;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child::after {
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child > div {
    order: 1;
    margin: 0 0 12px;
    padding: 0;
    align-items: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child .childdetail_outcome_progress_check {
    order: 2;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation::before,
#childdetail_page .childdetail_result_red .childdetail_outcome_recommendation::before {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 4px;
    border-radius: 10px 10px 0 0;
    background: var(--outcome-accent);
    content: "";
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation > div,
#childdetail_page .childdetail_result_red .childdetail_outcome_recommendation > div {
    margin-left: -14px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation strong,
#childdetail_page .childdetail_result_red .childdetail_outcome_recommendation strong {
    color: #202a49;
    font-size: 1em;
    font-weight: 750;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation > div > span:last-child,
#childdetail_page .childdetail_result_red .childdetail_outcome_recommendation > div > span:last-child {
    color: #202a49;
    font-size: 0.82em;
    font-weight: 550;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_here,
#childdetail_page .childdetail_result_red .childdetail_outcome_here {
    color: var(--outcome-accent) !important;
    font-size: 0.72em !important;
    font-weight: 800;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_here::before,
#childdetail_page .childdetail_result_red .childdetail_outcome_here::before {
    background: var(--outcome-accent);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary,
#childdetail_page .childdetail_result_red .childdetail_outcome_summary {
    grid-template-columns: 136px minmax(0, 1fr);
    min-height: 0;
    padding: 26px 32px;
    border-color: #dbe4e8;
    background: linear-gradient(135deg, #fbfefe 0%, #f5fafb 100%);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon,
#childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon {
    width: 116px;
    height: 116px;
    align-self: center;
    justify-self: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon svg,
#childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon svg {
    width: 72px;
    height: 72px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary_copy h2,
#childdetail_page .childdetail_result_red .childdetail_outcome_summary_copy h2 {
    color: #182345;
    font-size: 1.65em;
    font-weight: 600;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary_copy p,
#childdetail_page .childdetail_result_red .childdetail_outcome_summary_copy p {
    color: #293653;
    font-size: 0.95em;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_meaning,
#childdetail_page .childdetail_result_red .childdetail_outcome_meaning {
    grid-template-columns: 136px minmax(0, 1fr);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_meaning > span,
#childdetail_page .childdetail_result_red .childdetail_outcome_meaning > span {
    width: 76px;
    height: 76px;
    align-self: center;
    justify-self: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_meaning p,
#childdetail_page .childdetail_result_red .childdetail_outcome_meaning p {
    font-size: 0.9em;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_meaning strong,
#childdetail_page .childdetail_result_red .childdetail_outcome_meaning strong {
    font-size: 1.08em;
    font-weight: 750;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_areas,
#childdetail_page .childdetail_result_red .childdetail_outcome_areas {
    grid-template-columns: 136px minmax(0, 1fr);
}

#childdetail_page .childdetail_result_red .childdetail_outcome_action {
    grid-template-columns: 136px minmax(0, 1fr);
    min-height: 0;
    padding: 20px 32px;
    border-color: #dbe4e8;
    background: #fff;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_action_icon {
    align-self: center;
    justify-self: center;
}

#childdetail_page .childdetail_outcome_summary_heading {
    display: flex;
    margin-bottom: 3px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

#childdetail_page .childdetail_outcome_summary_heading h2 {
    margin: 0;
}

#childdetail_page .childdetail_outcome_summary_header_actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

#childdetail_page .childdetail_outcome_summary_header_actions .childdetail_outcome_marker {
    flex: 0 0 auto;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon {
    grid-row: 1;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action {
    display: grid;
    margin: 18px -32px 4px;
    padding: 20px 32px;
    align-items: center;
    grid-column: 1 / -1;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    border-top: 1px solid #f1d7dc;
    border-bottom: 1px solid #f1d7dc;
    background: #fff5f7;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_action_icon {
    width: 72px;
    height: 72px;
    background: rgba(94, 79, 156, 0.08);
    color: #5e4f9c;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_action_icon svg {
    width: 44px;
    height: 44px;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_label {
    display: block;
    margin-bottom: 3px;
    color: #008f8c;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action h2 {
    margin: 0 0 4px;
    color: #182345;
    font-size: 1.15em;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action p {
    max-width: 43em;
    margin: 0;
    color: #53626e;
    font-size: 0.8em;
    line-height: 1.45;
}

#childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_start {
    min-height: 44px;
    min-width: 230px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 18px;
    align-content: start;
    background: #fff;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon {
    width: 50px;
    height: 50px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.1;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice h2 {
    font-weight: 700;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice p {
    max-width: 34em;
    line-height: 1.45;
}

#childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
    width: auto;
    min-width: 220px;
    min-height: 42px;
    margin-top: 14px;
    padding: 8px 18px;
    grid-column: 2;
    justify-self: start;
    border: 1.5px solid #00aaa6;
    background: #fff;
    color: #008f8c;
    box-shadow: none;
}

#childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start:hover {
    background: rgba(0, 177, 173, 0.08);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 16px;
    padding-top: 32px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches::before {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 2px;
    height: 31px;
    background: #cfd9dd;
    content: "";
    transform: translateX(-50%);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_fork {
    top: 12px;
    right: 25%;
    left: 25%;
    height: 20px;
    border-color: #cfd9dd;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_fork i {
    height: 20px;
    background: #cfd9dd;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branch {
    min-height: 122px;
    padding: 14px 8px;
    justify-content: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 92px;
    margin: 0;
    padding: 12px 6px 4px;
    align-items: center;
    grid-column: 2;
    flex-direction: column;
    text-align: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme::before {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 2px;
    height: 18px;
    background: #cfd9dd;
    content: "";
    transform: translateX(-50%);
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme::after {
    display: none;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme .childdetail_outcome_progress_future_marker {
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
    border-color: #5e4f9c;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme > div {
    padding: 0;
    align-items: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme strong {
    color: #536071;
    text-align: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme span {
    text-align: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_disclaimer,
#childdetail_page .childdetail_result_red .childdetail_outcome_disclaimer {
    min-height: 0;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_amber .childdetail_outcome_meaning,
    #childdetail_page .childdetail_result_red .childdetail_outcome_meaning,
    #childdetail_page .childdetail_result_amber .childdetail_outcome_areas,
    #childdetail_page .childdetail_result_red .childdetail_outcome_areas,
    #childdetail_page .childdetail_result_red .childdetail_outcome_action {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary {
        padding: 16px 18px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action {
        margin: 16px -18px 4px;
        padding: 18px;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_action_icon {
        width: 62px;
        height: 62px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_start {
        width: 100%;
        grid-column: 2;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon {
        width: 84px;
        height: 84px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon svg,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon svg {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary,
    #childdetail_page .childdetail_result_amber .childdetail_outcome_meaning,
    #childdetail_page .childdetail_result_red .childdetail_outcome_meaning,
    #childdetail_page .childdetail_result_amber .childdetail_outcome_areas,
    #childdetail_page .childdetail_result_red .childdetail_outcome_areas,
    #childdetail_page .childdetail_result_red .childdetail_outcome_action {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon {
        width: 54px;
        height: 54px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon svg,
    #childdetail_page .childdetail_result_red .childdetail_outcome_summary_icon svg {
        width: 35px;
        height: 35px;
    }

    #childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1;
    }

    #childdetail_page .childdetail_outcome_summary_heading {
        flex-wrap: wrap;
    }

    #childdetail_page .childdetail_outcome_summary_header_actions {
        width: 100%;
        justify-content: flex-end;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_action_icon {
        width: 48px;
        height: 48px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_action_icon svg {
        width: 30px;
        height: 30px;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_recommended_action .childdetail_outcome_start {
        min-width: 0;
        grid-column: 1 / -1;
    }
}

/* Approved amber choice presentation. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps {
    margin: 18px -32px 4px;
    padding: 18px 32px 20px;
    grid-column: 1 / -1;
    border-top: 1px solid #eadfca;
    border-bottom: 1px solid #eadfca;
    background: #fffaf0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon {
    grid-row: 1;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps .childdetail_outcome_choice_intro {
    margin: 0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_intro {
    margin: 15px 0 0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_intro h2 {
    margin: 0 0 4px;
    color: #182345;
    font-size: 1.12em;
    font-weight: 700;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_intro p {
    margin: 0;
    color: #596874;
    font-size: 0.8em;
    line-height: 1.4;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choices {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 12px;
    margin-top: 11px;
    align-items: stretch;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
    height: 100%;
    min-height: 210px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 16px;
    padding: 20px;
    align-content: start;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon {
    width: 60px;
    height: 60px;
    align-self: start;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon svg {
    width: 38px;
    height: 38px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice h2 {
    margin-bottom: 4px;
    font-size: 1.06em;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_condition {
    display: block;
    margin-bottom: 9px;
    color: #009c99;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.35;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice.is-assess .childdetail_outcome_choice_condition {
    color: #5e4f9c;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice p {
    margin: 0;
    color: #4f5e6b;
    font-size: 0.78em;
    line-height: 1.45;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_or {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    border: 1px solid #cfd9dd;
    border-radius: 50%;
    background: #fff;
    color: #536071;
    font-size: 0.72em;
    font-weight: 800;
}

#childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
    min-width: 0;
    margin: 0 0 12px;
    align-self: start;
}

@media (max-width: 1000px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps {
        margin: 16px -18px 4px;
        padding: 16px 18px 18px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choices {
        grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
        gap: 8px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 8px 11px;
        padding: 16px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon {
        width: 48px;
        height: 48px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon svg {
        width: 31px;
        height: 31px;
    }
}

@media (max-width: 780px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_choices {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_or {
        width: 36px;
        height: 36px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
        min-height: 0;
    }

    #childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
        width: 100%;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps {
        padding: 15px 18px 17px;
    }
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_areas_unlabelled > div {
    grid-column: 2;
}

/* Child-scoped navigation sits outside the identity summary so record content
   is not presented as a child-maintenance action. */

#childdetail_page.childdetail-redesign .childdetail_local_nav {
    display: flex;
    min-width: 0;
    gap: 4px;
    margin: 0;
    padding: 0 18px;
    overflow-x: auto;
    border-bottom: 1px solid #dfe7e9;
    background: #fff;
    scrollbar-width: thin;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button {
    display: inline-flex;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    margin: 0;
    padding: 3px 15px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #536176;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.88em;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: '';
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button:hover,
#childdetail_page.childdetail-redesign .childdetail_local_nav button:focus-visible {
    outline: none;
    background: #f2f8f7;
    color: #007d79;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button.is-active {
    background: linear-gradient(to top, rgba(0, 170, 165, 0.07), transparent 70%);
    color: #007d79;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button.is-active::after {
    background: #00aaa5;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button:disabled {
    color: #9aa6b3;
    cursor: not-allowed;
}

#childdetail_page.childdetail-redesign #editClientBtn {
    min-width: 154px;
}

#childdetail_page.childdetail-redesign.childdetail-programme-mode .childdetail_summary_actions {
    display: none;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_mode {
    width: 100%;
    padding: 0;
}

#childdetail_page .childdetail_documents_page {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 18px;
    padding: clamp(22px, 3vw, 38px);
    background: linear-gradient(180deg, #f7fbfb 0%, #f1f7f7 100%);
    color: #172036;
}

#childdetail_page .childdetail_documents_page_header {
    padding: 0 2px;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_page_header .childdetail_documents_eyebrow {
    margin: 0 0 6px;
    padding: 0;
    color: #008f8c;
    font-size: 0.75em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_documents_page_header h1 {
    margin: 0;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: clamp(1.6em, 2.4vw, 2.25em);
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_page_header > p:last-child {
    max-width: 760px;
    margin: 10px 0 0;
    color: #59677a;
    font-size: 0.94em;
    line-height: 1.55;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_page_section {
    box-sizing: border-box;
    margin: 0;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid #d8e3e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(20, 43, 52, 0.08);
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_page_section_heading {
    margin: 0 0 16px;
}

#childdetail_page .childdetail_documents_page_section_heading h2 {
    margin: 0;
    color: #26364b;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 1.18em;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_page_section_heading p {
    margin: 5px 0 0;
    color: #687689;
    font-size: 0.84em;
}

#childdetail_page .childdetail_documents_page #childdetail_documents_panel {
    max-height: none;
    padding: 0;
    overflow-x: auto;
}

#childdetail_page .childdetail_documents_page #childdetail_programme_documents {
    width: 100%;
}

@media (max-width: 780px) {
    #childdetail_page.childdetail-redesign .childdetail_local_nav {
        padding: 0 8px;
    }

    #childdetail_page.childdetail-redesign .childdetail_local_nav button {
        min-height: 47px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 0.82em;
    }

    #childdetail_page .childdetail_documents_page {
        padding: 18px 12px 28px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_documents_page_section {
        padding: 14px;
    }
}

/* Keep the optional amber pathway compact and keep its diagnosis note visually
   separate from both choices, as on the approved green result screen. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_disclaimer {
    flex: 0 0 auto;
    margin-top: 18px;
    border: 0;
    background: #effafa;
}

@media (min-width: 781px) {
    #childdetail_page .childdetail_result_amber {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_status {
        min-height: 42px;
        margin-bottom: 9px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 9px 20px;
        padding: 18px 26px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps {
        margin: 14px -26px 4px;
        padding: 16px 26px 18px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon {
        width: 88px;
        height: 88px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_icon svg {
        width: 55px;
        height: 55px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_summary_copy h2 {
        margin-bottom: 5px;
        font-size: 1.45em;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_meaning {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 20px;
        margin-top: 1px;
        padding: 13px 0 2px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_meaning > span {
        width: 60px;
        height: 60px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_meaning svg {
        width: 35px;
        height: 35px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_areas {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 20px;
        margin-top: 2px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_intro {
        margin-top: 10px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_amber_next_steps .childdetail_outcome_choice_intro {
        margin-top: 0;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choices {
        margin-top: 7px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
        height: auto;
        min-height: 0;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 7px 13px;
        padding: 14px 16px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon {
        width: 50px;
        height: 50px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_icon svg {
        width: 32px;
        height: 32px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice_condition {
        margin-bottom: 5px;
    }

    #childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
        min-height: 38px;
        margin-top: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (min-width: 781px) and (max-height: 900px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child {
        min-height: 142px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child::after {
        top: 94px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation {
        margin-bottom: 8px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_branches {
        row-gap: 10px;
        padding-top: 27px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_branches::before {
        top: -13px;
        height: 27px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_fork,
    #childdetail_page .childdetail_result_amber .childdetail_outcome_fork i {
        height: 16px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_branch {
        min-height: 96px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme {
        min-height: 68px;
        padding-top: 8px;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_disclaimer {
        min-height: 54px;
        margin-top: 14px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Use the same left-aligned progress rail for green and amber. The amber fork
   remains centred only where the pathway genuinely divides into two options. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child {
    display: grid;
    min-height: 112px;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 12px;
    padding-left: 0;
    align-items: initial;
    text-align: left;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child::after {
    top: 38px;
    left: 17px;
    transform: none;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child > div {
    order: initial;
    margin: 0;
    padding: 5px 0 12px;
    align-items: initial;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step:first-child .childdetail_outcome_progress_check {
    order: initial;
}

/* Amber pathway alignment polish. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation {
    min-height: 104px;
    margin-left: -10px;
    margin-bottom: 8px;
    padding: 14px 14px 13px 8px;
    align-content: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_recommendation > div {
    margin-left: -6px;
    justify-content: center;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches {
    padding-top: 26px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches::before {
    top: -9px;
    height: 23px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_fork {
    top: 12px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_fork i {
    height: 15px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme::before {
    top: -11px;
    height: 20px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme .childdetail_outcome_progress_future_marker {
    margin-bottom: 3px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_branches > .childdetail_outcome_progress_step.is-programme > div {
    gap: 1px;
}

/* Outcome-screen control hierarchy:
   solid teal = primary action, pale teal rectangle = secondary action,
   outlined pill = non-interactive result information. */
#childdetail_page .loginSubmit.childdetail_outcome_report {
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 177, 173, 0.42);
    border-radius: 8px;
    background: #eaf8f7;
    color: #007f7c;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(40, 54, 70, 0.1);
}

#childdetail_page .childdetail_outcome_status_actions .loginSubmit.childdetail_outcome_start {
    min-height: 42px;
}

#childdetail_page .loginSubmit.childdetail_outcome_report:hover {
    border-color: #00a6a3;
    background: #dcf3f2;
    color: #006f6d;
    box-shadow: 0 3px 8px rgba(40, 54, 70, 0.14);
}

#childdetail_page .loginSubmit.childdetail_outcome_report:active {
    background: #d2efed;
    box-shadow: 0 1px 3px rgba(40, 54, 70, 0.12);
}

#childdetail_page .loginSubmit.childdetail_outcome_report:focus-visible,
#childdetail_page .loginSubmit.childdetail_outcome_start:focus-visible {
    outline: 3px solid rgba(0, 134, 205, 0.28);
    outline-offset: 2px;
}

#childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start {
    border-color: #00a6a3;
    background: #00a6a3;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 137, 134, 0.2);
}

@media (max-width: 760px) {
    #childdetail_page .childdetail_outcome_status {
        padding-bottom: 8px;
        flex-wrap: wrap;
    }

    #childdetail_page .childdetail_outcome_status_actions {
        width: 100%;
        margin: 0;
        flex-wrap: wrap;
    }

    #childdetail_page .childdetail_result_red .childdetail_outcome_status_actions > .loginSubmit {
        min-width: 0;
        flex: 1 1 190px;
    }
}

#childdetail_page .childdetail_result_amber .loginSubmit.childdetail_outcome_start:hover {
    border-color: #008f8c;
    background: #008f8c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 137, 134, 0.25);
}

#childdetail_page .childdetail_outcome_areas span {
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    box-shadow: none;
    cursor: default;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_areas > strong {
    white-space: nowrap;
}

/* The green pathway is complete: orient the user with two concise steps and
   end the rail at everyday support rather than implying a scheduled review. */
#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current {
    min-height: 0;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker {
    width: 36px;
    height: 36px;
    border: 2px solid #cfd8dc;
    box-shadow: none;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker > span {
    width: 11px;
    height: 11px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current > div {
    padding-top: 5px;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current .childdetail_outcome_here {
    margin: 6px 0 0;
}

#childdetail_page .childdetail_result_green .childdetail_outcome_progress_step.is-current .childdetail_outcome_here::before {
    display: none;
}

/* Amber and red use the same compact current-position treatment. Explanations
   and choices live in the main content rather than being repeated in the rail. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current {
    min-height: 112px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current:last-child,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current:last-child {
    min-height: 0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker {
    width: 36px;
    height: 36px;
    border: 2px solid #cfd8dc;
    box-shadow: none;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker > span,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current .childdetail_outcome_marker > span {
    width: 11px;
    height: 11px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current > div,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current > div {
    padding-top: 5px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current .childdetail_outcome_here,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current .childdetail_outcome_here {
    margin: 6px 0 0;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_progress_step.is-current .childdetail_outcome_here::before,
#childdetail_page .childdetail_result_red .childdetail_outcome_progress_step.is-current .childdetail_outcome_here::before {
    display: none;
}

/* Child landing page: assessment journey or direct activity choice. */

#childdetail_page .childdetail_summary_tags {
    display: flex;
    min-height: 20px;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#childdetail_page .childdetail_summary_groups {
    display: flex;
    align-items: center;
    gap: 7px;
}

#childdetail_page .childdetail_summary_groups[hidden] {
    display: none;
}

#childdetail_page .childdetail_summary_groups_label {
    color: #68777d;
    font-size: 0.7em;
    font-weight: 700;
}

#childdetail_page .childdetail_summary_tags[hidden] {
    display: none;
}

#childdetail_page .childdetail_summary_tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e8f7f6;
    color: #007d79;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.2;
}

#childdetail_page .childdetail_summary_tag_cohort {
    background: #eaf1ff;
    color: #2863a8;
}

#childdetail_page #childdetail_screen_content.childdetail_landing_mode {
    padding: 12px clamp(8px, 1.1vw, 18px) 16px;
    overflow-y: scroll;
    scrollbar-color: #86bfbc #e9f1f0;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    background: #f8fbfb;
}

#childdetail_page #childdetail_screen_content.childdetail_landing_mode::-webkit-scrollbar {
    width: 11px;
}

#childdetail_page #childdetail_screen_content.childdetail_landing_mode::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e9f1f0;
}

#childdetail_page #childdetail_screen_content.childdetail_landing_mode::-webkit-scrollbar-thumb {
    border: 2px solid #e9f1f0;
    border-radius: 999px;
    background: #86bfbc;
}

#childdetail_page .childdetail_landing {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 16px;
    color: #172036;
}

#childdetail_page .childdetail_new_child_confirmation {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #a9ddd2;
    border-radius: 12px;
    background: #eefaf6;
    color: #235246;
}

#childdetail_page .childdetail_new_child_confirmation_mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #16886d;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

#childdetail_page .childdetail_new_child_confirmation_copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

#childdetail_page .childdetail_new_child_confirmation_copy strong {
    font-size: 0.86rem;
}

#childdetail_page .childdetail_new_child_confirmation_copy small {
    color: #527168;
    font-size: 0.72rem;
}

#childdetail_page .childdetail_new_child_confirmation button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #496a61;
    font-size: 1.25rem;
    cursor: pointer;
}

#childdetail_page .childdetail_new_child_confirmation button:hover,
#childdetail_page .childdetail_new_child_confirmation button:focus-visible {
    background: #dcefe8;
    outline: 2px solid rgba(0, 143, 140, 0.22);
}

#childdetail_page .clientMaintenanceForm .childdetail_landing section,
#childdetail_page .clientMaintenanceForm .childdetail_landing div {
    box-sizing: border-box;
    margin-bottom: 0;
}

#childdetail_page .childdetail_landing h2,
#childdetail_page .childdetail_landing h3,
#childdetail_page .childdetail_landing p {
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
}

#childdetail_page .childdetail_landing_focus {
    display: grid;
    grid-template-columns: minmax(92px, 0.25fr) minmax(330px, 1.35fr) minmax(250px, 0.72fr);
    gap: clamp(16px, 1.7vw, 26px);
    align-items: center;
    min-height: 230px;
    padding: clamp(16px, 1.8vw, 26px);
    border: 1px solid #d8e5e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(32, 69, 76, 0.05);
}

#childdetail_page .childdetail_landing_focus_art {
    display: flex;
    align-items: center;
    justify-content: center;
}

#childdetail_page .childdetail_landing_avatar {
    display: inline-flex;
    position: relative;
    width: clamp(104px, 8.3vw, 126px);
    height: clamp(104px, 8.3vw, 126px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 1px solid #cde9e6;
    border-radius: 50%;
    background: linear-gradient(145deg, #edf9f7 0%, #dff3f1 100%);
    color: #172451;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.34);
}

#childdetail_page .childdetail_landing_avatar::before,
#childdetail_page .childdetail_landing_avatar::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 170, 165, 0.09);
    content: '';
}

#childdetail_page .childdetail_landing_avatar::before {
    top: -26%;
    right: -18%;
    width: 72%;
    height: 72%;
}

#childdetail_page .childdetail_landing_avatar::after {
    bottom: -32%;
    left: -20%;
    width: 82%;
    height: 82%;
}

#childdetail_page .childdetail_landing_avatar_initial {
    position: relative;
    z-index: 1;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: clamp(2.9em, 4.2vw, 4em);
    font-weight: 700;
    line-height: 1;
}

#childdetail_page .childdetail_landing_focus_art svg {
    width: min(100%, 180px);
    overflow: visible;
    fill: none;
    stroke: #008f8c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

#childdetail_page .childdetail_landing_focus_art circle {
    fill: #00aaa5;
    stroke: #00aaa5;
}

#childdetail_page .childdetail_landing_focus_art .childdetail_landing_focus_blob {
    fill: #e6f6f4;
    stroke: none;
}

#childdetail_page .childdetail_landing_focus_copy {
    min-width: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_eyebrow {
    margin: 0 0 8px;
    color: #008f8c;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_landing_focus_copy h2 {
    margin: 0 0 10px;
    color: #172451;
    font-size: clamp(1.35em, 2vw, 2.05em);
    line-height: 1.15;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_focus_copy > p:not(.childdetail_landing_eyebrow) {
    max-width: 680px;
    margin: 0 0 18px;
    color: #4f5d72;
    font-size: 1rem;
    line-height: 1.55;
}

#childdetail_page .childdetail_landing_response_mode {
    width: min(430px, 100%);
    min-width: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

#childdetail_page .childdetail_landing_response_mode legend {
    margin: 0 0 6px;
    padding: 0;
    color: #526176;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 750;
}

#childdetail_page .childdetail_landing_response_mode_choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#childdetail_page .childdetail_landing_response_mode_choice {
    display: flex;
    min-width: 0;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #d5e0e3;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-style: normal;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

#childdetail_page .childdetail_landing_response_mode_choice:hover {
    border-color: #74c5c1;
    background: #f8fcfb;
    box-shadow: 0 3px 9px rgba(0, 138, 134, 0.07);
}

#childdetail_page .childdetail_landing_response_mode_choice.is-selected {
    border-color: #00aaa5;
    background: #f0faf9;
    box-shadow: inset 0 0 0 1px #00aaa5;
}

#childdetail_page .childdetail_landing_response_mode_choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

#childdetail_page .childdetail_landing_response_mode_mark {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid #b9c8cc;
    border-radius: 50%;
    background: #fff;
}

#childdetail_page .is-selected .childdetail_landing_response_mode_mark {
    border-color: #00aaa5;
}

#childdetail_page .is-selected .childdetail_landing_response_mode_mark::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00aaa5;
    content: '';
}

#childdetail_page .childdetail_landing_response_mode_choice:focus-within {
    outline: 3px solid rgba(0, 170, 165, 0.22);
    outline-offset: 2px;
}

#childdetail_page .childdetail_landing_response_mode_copy strong,
#childdetail_page .childdetail_landing_response_mode_copy small,
#childdetail_page .childdetail_landing_response_mode_copy em {
    display: block;
    font-style: normal;
}

#childdetail_page .childdetail_landing_response_mode_copy {
    display: block;
    min-width: 0;
}

#childdetail_page .childdetail_landing_response_mode_heading {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    white-space: nowrap;
}

#childdetail_page .childdetail_landing_response_mode_copy strong {
    margin: 0;
    color: #172451;
    font-size: 0.84rem;
    line-height: 1.2;
}

#childdetail_page .childdetail_landing_response_mode_default {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 2px 5px;
    border-radius: 999px;
    background: #d8f1ee;
    color: #007d79;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
}

#childdetail_page .childdetail_landing_response_mode_copy small {
    color: #657386;
    font-size: 0.82rem;
    line-height: 1.42;
}

#childdetail_page .childdetail_landing_response_mode_copy em {
    align-self: end;
    margin-top: 9px;
    color: #008782;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.3;
}

#childdetail_page .clientMaintenanceForm #childdetail_landing_response_mode_hint {
    margin: 7px 1px 0;
    color: #728092;
    font-size: 0.7rem;
    line-height: 1.35;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_response_mode_summary {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 5px 6px 5px 10px;
    border-radius: 999px;
    background: #eaf7f6;
    color: #466174;
    font-size: 0.72em;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_response_mode_summary p {
    margin: 0;
}

#childdetail_page .childdetail_landing_response_mode_summary strong {
    color: #087f7c;
}

#childdetail_page .childdetail_detailed_response_mode_summary em {
    margin-left: 3px;
    color: #6b788a;
    font-size: 0.9em;
    font-style: normal;
}

#childdetail_page .childdetail_landing_response_mode_summary button {
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #76c4c0;
    border-radius: 999px;
    background: #fff;
    color: #087f7c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#childdetail_page .childdetail_landing_response_mode_summary button:hover,
#childdetail_page .childdetail_landing_response_mode_summary button:focus-visible {
    border-color: #008f8c;
    background: #f5fbfa;
}

#childdetail_page .childdetail_response_mode_restart_overlay {
    display: grid;
    position: fixed;
    z-index: 10020;
    inset: 0;
    padding: 24px;
    place-items: center;
    background: rgba(20, 32, 52, 0.58);
}

#childdetail_page .childdetail_response_mode_restart_dialog {
    box-sizing: border-box;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    color: #172451;
    box-shadow: 0 20px 55px rgba(16, 31, 48, 0.28);
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
}

#childdetail_page .childdetail_response_mode_restart_eyebrow {
    margin: 0 0 7px;
    color: #008f8c;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_response_mode_restart_dialog h2 {
    margin: 0 0 10px;
    color: #172451;
    font-size: 1.45rem;
    line-height: 1.2;
}

#childdetail_page .childdetail_response_mode_restart_description,
#childdetail_page #childdetail_response_mode_restart_description {
    margin: 0;
    color: #526176;
    font-size: 0.92rem;
    line-height: 1.55;
}

#childdetail_page .childdetail_response_mode_restart_change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 14px;
    padding: 13px;
    border-radius: 10px;
    background: #edf8f7;
    color: #44536a;
    font-size: 0.92rem;
}

#childdetail_page .childdetail_response_mode_restart_change strong {
    color: #007d79;
}

#childdetail_page .childdetail_response_mode_restart_warning {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #e8c881;
    border-radius: 9px;
    background: #fff9ec;
    color: #79520e;
    font-size: 0.82rem;
    line-height: 1.45;
}

#childdetail_page .childdetail_response_mode_restart_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

#childdetail_page .childdetail_response_mode_restart_actions button {
    min-height: 42px;
    margin: 0;
    padding: 9px 15px;
    border: 1px solid #9cb8bd;
    border-radius: 8px;
    background: #fff;
    color: #405168;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .childdetail_response_mode_restart_actions .is-confirm {
    border-color: #008f8c;
    background: #008f8c;
    color: #fff;
}

#childdetail_page .childdetail_response_mode_restart_actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

#childdetail_page .childdetail_overview_refresh_dialog {
    position: relative;
    box-sizing: border-box;
    width: min(540px, 100%);
    padding: 24px;
}

#childdetail_page .childdetail_overview_refresh_close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #edf4f3;
    color: #315158;
    font: 400 24px/1 Arial, sans-serif;
    cursor: pointer;
}

#childdetail_page .childdetail_overview_refresh_close:hover,
#childdetail_page .childdetail_overview_refresh_close:focus-visible {
    background: #dff2f0;
    outline: 3px solid rgba(0, 177, 173, 0.22);
}

#childdetail_page .childdetail_overview_refresh_date {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    margin: 2px 0 15px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e9f6f4;
    color: #176e6b;
    font-size: 0.7rem;
    font-weight: 800;
}

#childdetail_page .clientMaintenanceForm #childdetail_overview_refresh_description,
#childdetail_page .clientMaintenanceForm .childdetail_overview_refresh_supporting {
    margin: 0;
    padding-right: 20px;
    color: #526176;
    font-size: 0.88rem;
    line-height: 1.42;
}

#childdetail_page .clientMaintenanceForm #childdetail_overview_refresh_description {
    margin-bottom: 6px;
    color: #273b50;
    font-weight: 800;
}

#childdetail_page .childdetail_overview_refresh_actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 19px;
}

#childdetail_page .childdetail_overview_refresh_actions button {
    min-height: 42px;
    margin: 0;
    padding: 8px 15px;
    border-radius: 9px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

#childdetail_page .childdetail_overview_refresh_primary {
    border: 1px solid #008f8c;
    background: #00aaa5;
    color: #fff;
}

#childdetail_page .childdetail_overview_refresh_secondary {
    border: 1px solid #72c2be;
    background: #fff;
    color: #087f7c;
}

#childdetail_page .childdetail_overview_refresh_primary:hover,
#childdetail_page .childdetail_overview_refresh_primary:focus-visible {
    background: #008f8c;
    outline: 3px solid rgba(0, 170, 165, 0.22);
    outline-offset: 2px;
}

#childdetail_page .childdetail_overview_refresh_secondary:hover,
#childdetail_page .childdetail_overview_refresh_secondary:focus-visible {
    border-color: #008f8c;
    background: #f0faf9;
    outline: 3px solid rgba(0, 170, 165, 0.18);
    outline-offset: 2px;
}

@media (max-width: 620px) {
    #childdetail_page .childdetail_overview_refresh_overlay {
        padding: 12px;
    }

    #childdetail_page .childdetail_overview_refresh_dialog {
        max-height: calc(100vh - 24px);
        padding: 21px;
        overflow-y: auto;
    }

    #childdetail_page .childdetail_overview_refresh_actions {
        flex-direction: column-reverse;
    }

    #childdetail_page .childdetail_overview_refresh_actions button {
        width: 100%;
    }
}

#childdetail_page .childdetail_landing_focus_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_landing_secondary_action {
    min-height: 40px;
    flex: 1 1 150px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #86cac7;
    border-radius: 8px;
    background: #fff;
    color: #087f7c;
    font: inherit;
    font-size: 0.8em;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .childdetail_landing_secondary_action:hover,
#childdetail_page .childdetail_landing_secondary_action:focus-visible {
    border-color: #009d99;
    background: #edf8f7;
}

#childdetail_page .childdetail_landing_detailed_results {
    width: 100%;
    flex: 1 0 100%;
    color: #405168;
    font-size: 0.78em;
}

#childdetail_page .childdetail_landing_detailed_results summary {
    padding: 6px 2px;
    color: #087f7c;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .childdetail_landing_detailed_results > div {
    display: flex;
    gap: 7px;
    padding-top: 6px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_landing_detailed_results button {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #c8dcdd;
    border-radius: 999px;
    background: #fff;
    color: #34445a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#childdetail_page .loginSubmit.childdetail_landing_primary_action {
    display: inline-flex;
    min-width: 245px;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #009d99;
    border-radius: 9px;
    background: #009d99;
    color: #fff;
    font-size: 0.92em;
    font-weight: 750;
    box-shadow: 0 4px 10px rgba(0, 133, 129, 0.16);
}

#childdetail_page .loginSubmit.childdetail_landing_primary_action:hover {
    border-color: #008581;
    background: #008581;
}

#childdetail_page .childdetail_landing_journey {
    padding: 18px 20px;
    border: 1px solid #dce6e8;
    border-radius: 14px;
    background: #fbfdfd;
}

#childdetail_page .childdetail_landing_journey h3 {
    margin: 0 0 14px;
    color: #172451;
    font-size: 0.92em;
}

#childdetail_page .childdetail_landing_journey ol {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#childdetail_page .childdetail_landing_journey li {
    display: grid;
    position: relative;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    min-height: 53px;
    color: #445267;
}

#childdetail_page .childdetail_landing_journey li:not(:last-child)::after {
    position: absolute;
    top: 18px;
    bottom: -2px;
    left: 7px;
    width: 2px;
    background: #d5e1e3;
    content: '';
}

#childdetail_page .childdetail_landing_journey_marker {
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 3px solid #c9d5d8;
    border-radius: 50%;
    background: #fff;
}

#childdetail_page .childdetail_landing_journey_stage_copy {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: start;
}

#childdetail_page .childdetail_landing_journey_stage_summary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

#childdetail_page .childdetail_landing_journey strong {
    color: #26334a;
    font-size: 0.83em;
}

#childdetail_page .childdetail_landing_journey small {
    color: #697589;
    font-size: 0.73em;
}

#childdetail_page .childdetail_landing_journey_result_action {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 4px;
    margin: -3px 0 0;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    background: #e8f7f5;
    color: #007f7b;
    font: inherit;
    font-size: 0.68em;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

#childdetail_page .childdetail_landing_journey_result_action:hover,
#childdetail_page .childdetail_landing_journey_result_action:focus-visible {
    background: #d5efec;
    color: #006b68;
}

#childdetail_page .childdetail_landing_journey_result_action span {
    font-size: 1.25em;
    line-height: 0.8;
}

#childdetail_page .childdetail_landing_journey_result_panel {
    grid-column: 1 / -1;
    padding: 8px 9px;
    border: 1px solid #d5e5e5;
    border-radius: 8px;
    background: #f8fbfb;
}

#childdetail_page .childdetail_landing_journey_result_panel[hidden] {
    display: none;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_journey_result_panel p {
    margin: 0 0 6px;
    color: #657286;
    font-size: 0.68em;
}

#childdetail_page .childdetail_landing_journey_result_panel > div {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_landing_journey_result_panel button {
    margin: 0;
    padding: 5px 8px;
    border: 1px solid #bfd8d8;
    border-radius: 999px;
    background: #fff;
    color: #34445a;
    font: inherit;
    font-size: 0.66em;
    font-weight: 700;
    cursor: pointer;
}

#childdetail_page .childdetail_landing_journey_result_panel button:hover,
#childdetail_page .childdetail_landing_journey_result_panel button:focus-visible {
    border-color: #66bdb9;
    background: #edf8f7;
}

#childdetail_page .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker {
    border-color: #009d77;
    background: #009d77;
    box-shadow: inset 0 0 0 3px #fff;
}

#childdetail_page .childdetail_landing_journey .is-in-progress .childdetail_landing_journey_marker,
#childdetail_page .childdetail_landing_journey .is-ready .childdetail_landing_journey_marker {
    border-color: #008f8c;
    background: #e5f7f6;
}

#childdetail_page .childdetail_landing_journey .is-not-required .childdetail_landing_journey_marker {
    border-color: #9aa7b4;
    background: #edf1f3;
}

#childdetail_page .childdetail_summary_name_row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_outcome_status_pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid #bcdcb8;
    border-radius: 999px;
    background: #f1f8ef;
    color: #397c3e;
    font-size: 0.72em;
    font-weight: 750;
    line-height: 1.2;
}

#childdetail_page .childdetail_outcome_status_pill > span {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcefd9;
    font-size: 0.8em;
}

#childdetail_page .childdetail_outcome_status_pill.is-amber {
    border-color: #e6ca91;
    background: #fff8e9;
    color: #9a6812;
}

#childdetail_page .childdetail_outcome_status_pill.is-amber > span {
    background: #f8e8c5;
    font-family: Georgia, serif;
    font-weight: 800;
}

#childdetail_page .childdetail_outcome_status_pill.is-red {
    border-color: #e5b7b7;
    background: #fff3f2;
    color: #9c3f3f;
}

#childdetail_page .childdetail_outcome_status_pill.is-red > span {
    background: #f7d8d6;
    color: #a33e3e;
    font-weight: 800;
}

#childdetail_page .childdetail_landing_focus.is-green-outcome {
    border-color: #cfe3cc;
    background: linear-gradient(110deg, #f5faf3 0%, #fff 62%);
}

#childdetail_page .is-green-outcome .childdetail_landing_focus_art svg {
    width: 96px;
    height: 96px;
    stroke: #589d55;
    stroke-width: 2.6;
}

#childdetail_page .is-green-outcome .childdetail_landing_focus_art circle {
    fill: #eef7ec;
    stroke: #b8d9b4;
}

#childdetail_page .is-green-outcome .childdetail_landing_green_mark {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(232, 244, 229, 0.72);
}

#childdetail_page .clientMaintenanceForm .is-green-outcome .childdetail_landing_eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid #c6dfc2;
    border-radius: 999px;
    background: #eef7ec;
    color: #397c3e;
    letter-spacing: 0.055em;
}

#childdetail_page .is-green-outcome .childdetail_landing_journey {
    border-color: #d4e5d1;
    background: rgba(255, 255, 255, 0.78);
}

#childdetail_page .is-green-outcome .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker {
    border-color: #69a965;
    background: #eef7ec;
    box-shadow: none;
}

#childdetail_page .is-green-outcome .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c9149;
    font-size: 0.67em;
    font-weight: 900;
    line-height: 1;
    content: '✓';
}

#childdetail_page .childdetail_landing_journey_actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #dce8da;
}

#childdetail_page .childdetail_landing_journey_actions .childdetail_landing_primary_action {
    width: 100%;
    min-width: 0;
    justify-content: center;
    background: #fff;
    color: #087f7c;
    box-shadow: none;
}

#childdetail_page .childdetail_landing_journey_actions .childdetail_landing_primary_action:hover,
#childdetail_page .childdetail_landing_journey_actions .childdetail_landing_primary_action:focus-visible {
    border-color: #008581;
    background: #edf8f7;
    color: #006f6c;
}

#childdetail_page .childdetail_landing_focus.is-amber-monitoring {
    border-color: #ead3a3;
    background: linear-gradient(110deg, #fffbf2 0%, #fff 62%);
}

#childdetail_page .childdetail_landing_focus.is-amber-decision {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    align-items: start;
}

#childdetail_page .is-amber-decision .childdetail_landing_focus_art {
    display: none;
}

#childdetail_page .childdetail_landing_amber_choices {
    margin-top: 22px;
}

#childdetail_page .childdetail_landing_amber_choices h3 {
    margin: 0 0 10px;
    color: #172451;
    font-size: 0.98em;
    font-weight: 800;
}

#childdetail_page .childdetail_landing_amber_choice_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#childdetail_page .childdetail_landing_amber_choice {
    display: flex;
    min-width: 0;
    min-height: 190px;
    padding: 18px;
    flex-direction: column;
    border: 1px solid #d6e1e3;
    border-radius: 13px;
    background: #fff;
}

#childdetail_page .childdetail_landing_amber_choice.is-recommended {
    padding: 17px;
    border: 2px solid #00aaa5;
    box-shadow: 0 4px 12px rgba(0, 151, 147, 0.1);
}

#childdetail_page .childdetail_landing_amber_choice_heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#childdetail_page .childdetail_landing_amber_choice h4 {
    margin: 0;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.2;
}

#childdetail_page .childdetail_landing_amber_recommended {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #d8f1ee;
    color: #007d79;
    font-size: 0.58em;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_amber_choice p {
    margin: 10px 0 16px;
    color: #5b687b;
    font-size: 0.8em;
    line-height: 1.48;
}

#childdetail_page .childdetail_landing_amber_choice_action {
    width: 100%;
    min-height: 42px;
    margin: auto 0 0;
    padding: 8px 12px;
    border: 1px solid #00a39e;
    border-radius: 8px;
    background: #fff;
    color: #008581;
    font: inherit;
    font-size: 0.8em;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .is-recommended .childdetail_landing_amber_choice_action {
    background: #00aaa5;
    color: #fff;
}

#childdetail_page .childdetail_landing_amber_choice_action:hover,
#childdetail_page .childdetail_landing_amber_choice_action:focus-visible {
    border-color: #008581;
    background: #edf8f7;
    color: #006f6c;
}

#childdetail_page .is-recommended .childdetail_landing_amber_choice_action:hover,
#childdetail_page .is-recommended .childdetail_landing_amber_choice_action:focus-visible {
    background: #008581;
    color: #fff;
}

#childdetail_page .is-amber-decision-actions {
    justify-content: center;
    margin-top: 12px;
}

#childdetail_page .is-amber-decision-actions .childdetail_landing_overview_result {
    flex: 0 0 auto;
    min-height: 0;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    text-decoration: underline;
}

#childdetail_page .childdetail_landing_journey .is-decision-needed .childdetail_landing_journey_marker {
    border-color: #c58a20;
    background: #fff8e8;
}

#childdetail_page .childdetail_landing_journey .is-decision-needed .childdetail_landing_journey_marker::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a66f10;
    font-size: 0.68em;
    font-weight: 900;
    content: '!';
}

#childdetail_page .childdetail_landing_journey .is-decision-needed strong,
#childdetail_page .childdetail_landing_journey .is-decision-needed small {
    color: #95620b;
}

#childdetail_page .is-amber-monitoring-plan .childdetail_landing_focus_copy {
    align-self: center;
}

#childdetail_page .is-amber-monitoring-plan .childdetail_landing_primary_action {
    min-width: 270px;
}

#childdetail_page .childdetail_landing_focus.is-red-outcome {
    border-color: #e9bcbc;
    background: linear-gradient(110deg, #fff5f4 0%, #fff 62%);
}

#childdetail_page .is-red-outcome .childdetail_landing_focus_art svg {
    width: 96px;
    height: 96px;
    stroke: #ad4848;
    stroke-width: 2.6;
}

#childdetail_page .is-red-outcome .childdetail_landing_focus_art circle {
    fill: #fff3f2;
    stroke: #df9f9f;
}

#childdetail_page .is-red-outcome .childdetail_landing_red_mark {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 222, 220, 0.58);
}

#childdetail_page .clientMaintenanceForm .is-red-outcome .childdetail_landing_eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid #dfaaaa;
    border-radius: 999px;
    background: #fff2f1;
    color: #9b3d3d;
    letter-spacing: 0.055em;
}

#childdetail_page .is-red-outcome .childdetail_landing_journey {
    border-color: #e7c7c7;
    background: rgba(255, 255, 255, 0.82);
}

#childdetail_page .is-red-outcome .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker,
#childdetail_page .is-red-outcome .childdetail_landing_journey .is-ready .childdetail_landing_journey_marker,
#childdetail_page .is-red-outcome .childdetail_landing_journey .is-in-progress .childdetail_landing_journey_marker {
    border-color: #bd5b5b;
    background: #fff2f1;
    box-shadow: none;
}

#childdetail_page .is-red-outcome .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a33f3f;
    font-size: 0.67em;
    font-weight: 900;
    line-height: 1;
    content: '✓';
}

#childdetail_page .is-red-outcome .childdetail_landing_journey_actions {
    border-top-color: #ead0d0;
}

#childdetail_page .is-red-outcome .childdetail_landing_journey_actions .childdetail_landing_primary_action {
    border-color: #d98f8f;
    background: #bd5555;
    color: #fff;
    box-shadow: 0 4px 10px rgba(160, 63, 63, 0.16);
}

#childdetail_page .is-red-outcome .childdetail_landing_journey_actions .childdetail_landing_primary_action:hover,
#childdetail_page .is-red-outcome .childdetail_landing_journey_actions .childdetail_landing_primary_action:focus-visible {
    border-color: #b64e4e;
    background: #a94444;
    color: #fff;
}

#childdetail_page .is-amber-monitoring .childdetail_landing_focus_art svg {
    width: 96px;
    height: 96px;
    stroke: #bd821b;
    stroke-width: 2.6;
}

#childdetail_page .is-amber-monitoring .childdetail_landing_focus_art circle {
    fill: #fff8e8;
    stroke: #e7c987;
}

#childdetail_page .is-amber-monitoring .childdetail_landing_amber_mark {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 240, 209, 0.6);
}

#childdetail_page .clientMaintenanceForm .is-amber-monitoring .childdetail_landing_eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid #e3c483;
    border-radius: 999px;
    background: #fff8e8;
    color: #99650d;
    letter-spacing: 0.055em;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_decision {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #e5c57f;
    border-radius: 8px;
    background: #fff9ec;
    color: #24324a;
    font-size: 0.78em;
}

#childdetail_page .childdetail_landing_decision strong {
    color: #9a6812;
    font-size: 0.86em;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_landing_decision strong::after {
    margin-left: 10px;
    color: #d0ae69;
    content: '·';
}

#childdetail_page .is-amber-monitoring .childdetail_landing_journey {
    border-color: #e6d6b5;
    background: rgba(255, 255, 255, 0.8);
}

#childdetail_page .is-amber-monitoring .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker,
#childdetail_page .is-amber-monitoring .childdetail_landing_journey .is-monitoring .childdetail_landing_journey_marker,
#childdetail_page .is-amber-monitoring .childdetail_landing_journey .is-ready .childdetail_landing_journey_marker,
#childdetail_page .is-amber-monitoring .childdetail_landing_journey .is-in-progress .childdetail_landing_journey_marker {
    border-color: #c58a20;
    background: #fff8e8;
    box-shadow: none;
}

#childdetail_page .is-amber-monitoring .childdetail_landing_journey .is-complete .childdetail_landing_journey_marker::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a66f10;
    font-size: 0.67em;
    font-weight: 900;
    line-height: 1;
    content: '✓';
}

#childdetail_page .loginSubmit.childdetail_outcome_monitor_action {
    min-width: 0;
    margin: 14px 0 0;
    padding: 9px 14px;
    border: 1px solid #c58a20;
    background: #fff8e8;
    color: #895c0d;
    box-shadow: none;
}

#childdetail_page .loginSubmit.childdetail_outcome_monitor_action:hover {
    border-color: #aa7314;
    background: #fcebc5;
    color: #704a08;
}

#childdetail_page .clientMaintenanceForm .childdetail_outcome_choice_error {
    margin: 8px 0 0;
    color: #a13030;
    font-size: 0.76em;
    line-height: 1.35;
}

#childdetail_page .childdetail_landing_other_options > h2 {
    margin: 0 0 10px 3px;
    color: #008f8c;
    font-size: 0.83em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_landing_other_options {
    scroll-margin-top: 12px;
}

#childdetail_page .childdetail_landing_option_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

#childdetail_page .childdetail_landing_option {
    display: grid;
    min-width: 0;
    min-height: 144px;
    grid-template-columns: 88px minmax(0, 1fr) 32px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px 14px 14px;
    border: 1px solid #d9e4e6;
    border-radius: 16px;
    background: #fff;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(32, 69, 76, 0.035);
    transition: border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

#childdetail_page .childdetail_landing_option:hover,
#childdetail_page .childdetail_landing_option:focus-visible {
    border-color: #60c2bf;
    outline: none;
    box-shadow: 0 7px 18px rgba(0, 120, 116, 0.1);
    transform: translateY(-2px);
}

#childdetail_page .childdetail_landing_option.is-selected {
    border-color: #4abbb7;
    background: linear-gradient(135deg, #f4fbfa 0%, #fff 72%);
    outline: none;
    box-shadow: 0 5px 16px rgba(0, 120, 116, 0.09);
}

#childdetail_page .childdetail_landing_option_icon_well {
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dcefed;
    border-radius: 16px;
    background: linear-gradient(145deg, #f5fbfa, #eaf7f5);
    box-sizing: border-box;
}

#childdetail_page .childdetail_landing_option_icon_well img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
}

#childdetail_page .childdetail_landing_option[data-activity-module-ids="speech"] img {
    width: 72px;
    height: 72px;
}

#childdetail_page .childdetail_landing_option[data-activity-module-ids="emo"] img {
    width: 74px;
    height: 74px;
}

#childdetail_page .childdetail_landing_option[data-activity-module-ids="ce"] img {
    width: 80px;
    height: 80px;
}

#childdetail_page .childdetail_landing_option[data-activity-module-ids="cs"] img {
    width: 78px;
    height: 78px;
}

#childdetail_page .childdetail_landing_option_copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

#childdetail_page .childdetail_landing_option_copy strong {
    color: #172451;
    font-size: 0.92em;
    line-height: 1.25;
}

#childdetail_page .childdetail_landing_option_copy small {
    color: #58667a;
    font-size: 0.76em;
    line-height: 1.4;
}

#childdetail_page .childdetail_landing_option_arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f6f5;
    color: #007f7b;
    font-size: 1.45em;
    font-weight: 500;
    line-height: 1;
    transition: background-color 130ms ease, color 130ms ease, transform 130ms ease;
}

#childdetail_page .childdetail_landing_option:hover .childdetail_landing_option_arrow,
#childdetail_page .childdetail_landing_option:focus-visible .childdetail_landing_option_arrow,
#childdetail_page .childdetail_landing_option.is-selected .childdetail_landing_option_arrow {
    background: #009f9b;
    color: #fff;
    transform: translateX(2px);
}

#childdetail_page .clientMaintenanceForm .childdetail_activity_selection_feedback {
    margin: 9px 3px 0;
    padding: 8px 11px;
    border-radius: 8px;
    background: #eef8f7;
    color: #146966;
    font-size: 0.78em;
}

#childdetail_page .childdetail_landing_progress {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(240px, 0.65fr) minmax(330px, 1fr);
    gap: clamp(16px, 2vw, 32px);
    align-items: center;
    padding: 17px 20px;
    border: 1px solid #d9e4e6;
    border-radius: 14px;
    background: linear-gradient(110deg, #fff, #f7fbfb);
}

#childdetail_page .childdetail_landing_progress h2 {
    margin: 0 0 5px;
    color: #172451;
    font-size: 1em;
}

#childdetail_page .clientMaintenanceForm .childdetail_landing_progress p:not(.childdetail_landing_eyebrow) {
    margin: 0;
    color: #5b687a;
    font-size: 0.75em;
    line-height: 1.45;
}

#childdetail_page .childdetail_landing_progress_chart svg {
    display: block;
    width: 100%;
    max-height: 80px;
    overflow: visible;
}

#childdetail_page .childdetail_landing_progress_grid {
    fill: none;
    stroke: #e0e9eb;
    stroke-width: 1;
}

#childdetail_page .childdetail_landing_progress_line {
    fill: none;
    stroke: #009d99;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

#childdetail_page .childdetail_landing_progress_chart circle {
    fill: #fff;
    stroke: #009d99;
    stroke-width: 3;
}

#childdetail_page .childdetail_landing_progress_metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#childdetail_page .childdetail_landing_progress_metrics span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-left: 3px solid #cce9e7;
}

#childdetail_page .childdetail_landing_progress_metrics strong {
    color: #008f8c;
    font-size: 1.05em;
}

#childdetail_page .childdetail_landing_progress_metrics small {
    color: #5b687a;
    font-size: 0.68em;
    line-height: 1.35;
}

#childdetail_page #childdetail_screen_content.childdetail_programme_handoff_mode {
    display: flex;
    min-height: 430px;
    align-items: center;
    padding: clamp(18px, 3vw, 42px);
    background: #f8fbfb;
}

#childdetail_page .childdetail_programme_handoff {
    width: 100%;
    color: #172036;
}

#childdetail_page .childdetail_programme_handoff_card {
    display: grid;
    grid-template-columns: 116px minmax(340px, 1fr) minmax(240px, 0.62fr);
    gap: clamp(20px, 2.8vw, 42px);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 44px);
    border: 1px solid #e5c988;
    border-radius: 20px;
    background: linear-gradient(115deg, #fffaf0 0%, #fff 67%);
    box-shadow: 0 10px 28px rgba(50, 67, 78, 0.08);
}

#childdetail_page .childdetail_programme_handoff_card.is-red-status {
    border-color: #e1aaaa;
    background: linear-gradient(115deg, #fff5f4 0%, #fff 67%);
}

#childdetail_page .childdetail_programme_handoff_mark {
    display: inline-flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff2d4;
}

#childdetail_page .childdetail_programme_handoff_mark svg {
    width: 82px;
    height: 82px;
    fill: none;
    stroke: #b8780b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.8;
}

#childdetail_page .childdetail_programme_handoff_mark circle {
    fill: #fff9eb;
    stroke: #dfbc70;
}

#childdetail_page .is-red-status .childdetail_programme_handoff_mark {
    background: #fbe2e0;
}

#childdetail_page .is-red-status .childdetail_programme_handoff_mark svg {
    stroke: #a94444;
}

#childdetail_page .is-red-status .childdetail_programme_handoff_mark circle {
    fill: #fff5f4;
    stroke: #d98f8f;
}

#childdetail_page .childdetail_programme_handoff_copy,
#childdetail_page .childdetail_programme_handoff_copy div {
    box-sizing: border-box;
    margin-bottom: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_programme_handoff_eyebrow {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 5px 10px;
    border: 1px solid #e2c27c;
    border-radius: 999px;
    background: #fff7e5;
    color: #96610b;
    font-size: 0.75em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#childdetail_page .clientMaintenanceForm .is-red-status .childdetail_programme_handoff_eyebrow {
    border-color: #dfaaaa;
    background: #fff2f1;
    color: #9b3d3d;
}

#childdetail_page .childdetail_programme_handoff_copy h1 {
    margin: 0 0 10px;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: clamp(1.55em, 2.25vw, 2.25em);
    line-height: 1.15;
}

#childdetail_page .clientMaintenanceForm .childdetail_programme_handoff_copy > p:not(.childdetail_programme_handoff_eyebrow) {
    max-width: 650px;
    margin: 0;
    color: #4f5d72;
    font-size: 0.94em;
    line-height: 1.55;
}

#childdetail_page .childdetail_programme_handoff_next {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #009d99;
    border-radius: 0 12px 12px 0;
    background: #f0f9f8;
}

#childdetail_page .childdetail_programme_handoff_next_label {
    color: #008581;
    font-size: 0.72em;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_programme_handoff_next h2 {
    margin: 5px 0 5px;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 1.15em;
}

#childdetail_page .clientMaintenanceForm .childdetail_programme_handoff_next p {
    margin: 0;
    color: #536175;
    font-size: 0.84em;
    line-height: 1.45;
}

#childdetail_page .childdetail_programme_handoff_actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

#childdetail_page .loginSubmit.childdetail_programme_handoff_primary {
    display: inline-flex;
    min-width: 255px;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #009d99;
    border-radius: 9px;
    background: #009d99;
    color: #fff;
    font-weight: 750;
    box-shadow: 0 4px 10px rgba(0, 133, 129, 0.16);
}

#childdetail_page .childdetail_programme_handoff_dashboard {
    margin: 0;
    padding: 7px 4px;
    border: 0;
    background: transparent;
    color: #087f7c;
    font: inherit;
    font-size: 0.82em;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

#childdetail_page .childdetail_programme_handoff_results_toggle {
    min-height: 42px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #86cac7;
    border-radius: 8px;
    background: #fff;
    color: #087f7c;
    font: inherit;
    font-size: 0.82em;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .childdetail_programme_handoff_results_toggle:hover,
#childdetail_page .childdetail_programme_handoff_results_toggle:focus-visible {
    border-color: #009d99;
    background: #eaf8f7;
}

#childdetail_page .childdetail_programme_handoff_results {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #cfe5e3;
}

#childdetail_page .childdetail_programme_handoff_results[hidden] {
    display: none;
}

#childdetail_page .childdetail_programme_handoff_results h3 {
    margin: 0 0 4px;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.94em;
}

#childdetail_page .clientMaintenanceForm .childdetail_programme_handoff_results > p {
    margin: 0 0 10px;
    color: #5b687a;
    font-size: 0.78em;
}

#childdetail_page .childdetail_programme_handoff_results > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#childdetail_page .childdetail_programme_handoff_result {
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #c8dcdd;
    border-radius: 999px;
    background: #fff;
    color: #34445a;
    font: inherit;
    font-size: 0.76em;
    font-weight: 700;
    cursor: pointer;
}

#childdetail_page .childdetail_programme_handoff_result:hover,
#childdetail_page .childdetail_programme_handoff_result:focus-visible {
    border-color: #009d99;
    color: #087f7c;
}

#childdetail_page .childdetail_programme_handoff_journey {
    padding: 20px;
    border: 1px solid #e3d5b7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
}

#childdetail_page .childdetail_programme_handoff_journey h2 {
    margin: 0 0 16px;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.94em;
}

#childdetail_page .childdetail_programme_handoff_journey ol {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

#childdetail_page .childdetail_programme_handoff_journey li {
    display: grid;
    position: relative;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    min-height: 58px;
}

#childdetail_page .childdetail_programme_handoff_journey li:not(:last-child)::after {
    position: absolute;
    top: 18px;
    bottom: -2px;
    left: 7px;
    width: 2px;
    background: #dfd5bf;
    content: '';
}

#childdetail_page .childdetail_programme_handoff_step_mark {
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 3px solid #c4a966;
    border-radius: 50%;
    background: #fff;
}

#childdetail_page .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark {
    background: #fff5da;
}

#childdetail_page .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a76d0d;
    font-size: 0.66em;
    font-weight: 900;
    content: '✓';
}

#childdetail_page .childdetail_programme_handoff_journey .is-current .childdetail_programme_handoff_step_mark {
    border-color: #009d99;
    background: #e8f8f7;
}

#childdetail_page .childdetail_programme_handoff_journey li > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#childdetail_page .childdetail_programme_handoff_journey strong {
    color: #27344b;
    font-size: 0.84em;
}

#childdetail_page .childdetail_programme_handoff_journey small {
    color: #6b7688;
    font-size: 0.74em;
}

/* A programme can follow either an amber or red overview outcome. Keep the
   handoff neutral overall, while carrying that outcome through the small
   journey markers and connector only. */
#childdetail_page .childdetail_programme_handoff.is-amber-outcome {
    --childdetail-handoff-outcome: #b77d18;
    --childdetail-handoff-outcome-soft: #fff7e6;
    --childdetail-handoff-outcome-line: #e6d1a7;
}

#childdetail_page .childdetail_programme_handoff.is-red-outcome {
    --childdetail-handoff-outcome: #b6535f;
    --childdetail-handoff-outcome-soft: #fff1f3;
    --childdetail-handoff-outcome-line: #e7c4ca;
}

#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_journey,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_journey {
    border-color: var(--childdetail-handoff-outcome-line);
}

#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_journey li:not(:last-child)::after,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_journey li:not(:last-child)::after {
    background: var(--childdetail-handoff-outcome-line);
}

#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_step_mark,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_step_mark,
#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_journey .is-current .childdetail_programme_handoff_step_mark,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_journey .is-current .childdetail_programme_handoff_step_mark {
    border-color: var(--childdetail-handoff-outcome);
    background: var(--childdetail-handoff-outcome-soft);
}

#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark {
    background: var(--childdetail-handoff-outcome-soft);
}

#childdetail_page .childdetail_programme_handoff.is-amber-outcome .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark::after,
#childdetail_page .childdetail_programme_handoff.is-red-outcome .childdetail_programme_handoff_journey .is-complete .childdetail_programme_handoff_step_mark::after {
    color: var(--childdetail-handoff-outcome);
}

@media (max-width: 1120px) {
    #childdetail_page .childdetail_landing_focus {
        grid-template-columns: 110px minmax(280px, 1fr) minmax(230px, 0.8fr);
    }

    #childdetail_page .childdetail_landing_option_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #childdetail_page .childdetail_landing_progress {
        grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
    }

    #childdetail_page .childdetail_landing_progress_metrics {
        grid-column: 1 / -1;
    }

    #childdetail_page .childdetail_programme_handoff_card {
        grid-template-columns: 92px minmax(300px, 1fr) minmax(220px, 0.62fr);
    }

    #childdetail_page .childdetail_programme_handoff_mark {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 780px) {
    #childdetail_page.childdetail-redesign #childdetail_child_summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #childdetail_page.childdetail-redesign .childdetail_summary_actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    #childdetail_page .childdetail_summary_meta {
        flex-wrap: wrap;
    }

    #childdetail_page .childdetail_landing_focus {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_landing_focus.is-amber-decision {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_landing_journey {
        grid-column: 1 / -1;
    }

    #childdetail_page .childdetail_landing_option_grid,
    #childdetail_page .childdetail_landing_progress {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_landing_progress_metrics {
        grid-column: auto;
    }

    #childdetail_page .childdetail_programme_handoff_card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    #childdetail_page .childdetail_programme_handoff_journey {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    #childdetail_page .childdetail_landing_focus {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_landing_focus_art {
        display: none;
    }

    #childdetail_page .childdetail_landing_amber_choice_grid {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_response_mode_restart_actions {
        flex-direction: column-reverse;
    }

    #childdetail_page .childdetail_response_mode_restart_actions button {
        width: 100%;
    }

    #childdetail_page .loginSubmit.childdetail_landing_primary_action {
        width: 100%;
        min-width: 0;
    }

    #childdetail_page .childdetail_landing_progress_metrics {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_programme_handoff_card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    #childdetail_page .childdetail_programme_handoff_mark {
        display: none;
    }

    #childdetail_page .loginSubmit.childdetail_programme_handoff_primary {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    #childdetail_page .childdetail_landing_response_mode_choices {
        grid-template-columns: 1fr;
    }
}

/* Client document access shared by the landing and assessment views. */

#childdetail_page.childdetail-redesign #documentsBtn {
    display: inline-flex;
    min-width: 128px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 9px 17px;
    border: 1px solid #d6dfe3;
    border-radius: 9px;
    background: #fff;
    color: #344052;
    font-size: 0.95em;
}

#childdetail_page.childdetail-redesign #documentsBtn svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#childdetail_page.childdetail-redesign #documentsBtn:hover {
    background: #f3f7f8;
}

#childdetail_page.childdetail-redesign #previousAssessmentsBtn {
    display: inline-flex;
    min-width: 174px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 9px 17px;
    border: 1px solid #d6dfe3;
    border-radius: 9px;
    background: #fff;
    color: #344052;
    font-size: 0.95em;
}

#childdetail_page.childdetail-redesign #previousAssessmentsBtn svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#childdetail_page.childdetail-redesign #previousAssessmentsBtn:hover {
    background: #f3f7f8;
}

#childdetail_page.childdetail-redesign .childdetail_summary_actions {
    flex-wrap: wrap;
}

#childdetail_page .childdetail_documents_overlay {
    display: flex;
    position: fixed;
    z-index: 5000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 35, 45, 0.42);
}

#childdetail_page .childdetail_documents_overlay[hidden] {
    display: none;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_dialog {
    box-sizing: border-box;
    width: min(720px, 94vw);
    max-height: min(680px, 88vh);
    overflow: hidden;
    padding: 0;
    border: 1px solid #d8e3e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(20, 43, 52, 0.24);
}

#childdetail_page .childdetail_documents_dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e0e8ea;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_dialog header > div {
    margin: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_eyebrow {
    margin: 0 0 4px;
    color: #008f8c;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_documents_dialog h2 {
    margin: 0;
    color: #172451;
    font-size: 1.28em;
}

#childdetail_page #childdetail_documents_close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf4f4;
    color: #344052;
    font: inherit;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
}

#childdetail_page #childdetail_documents_close:hover {
    background: #dfeaea;
}

#childdetail_page .clientMaintenanceForm .childdetail_documents_description {
    margin: 0;
    padding: 14px 22px;
    color: #59677a;
    font-size: 0.85em;
    line-height: 1.45;
}

#childdetail_page .clientMaintenanceForm #childdetail_documents_panel {
    box-sizing: border-box;
    min-width: 0;
    max-height: 480px;
    margin: 0;
    padding: 0 22px 22px;
    overflow-y: auto;
}

#childdetail_page #childdetail_programme_documents {
    overflow: hidden;
    border: 1px solid #dce6e8;
    border-radius: 10px;
    background: #fff;
}

#childdetail_page #childdetail_programme_documents th,
#childdetail_page #childdetail_programme_documents td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2eaec;
    color: #344052;
    font-size: 0.84em;
}

#childdetail_page #childdetail_programme_documents th {
    background: #f1f7f7;
    color: #26364b;
    font-weight: 750;
}

#childdetail_page #childdetail_programme_document_list tr:last-child td {
    border-bottom: 0;
}

#childdetail_page #childdetail_programme_document_list tr:hover td,
#childdetail_page #childdetail_programme_document_list tr:focus td {
    background: #eaf7f6;
}

#childdetail_page #childdetail_programme_document_list tr:focus {
    outline: 2px solid #008f8c;
    outline-offset: -2px;
}

#childdetail_page .clientMaintenanceForm #childdetail_programme_empty {
    margin: 12px 0 0;
    padding: 13px 14px;
    border-radius: 9px;
    background: #f5f8f8;
    color: #5a6878;
    font-size: 0.84em;
    font-style: normal;
}

@media (max-width: 780px) {
    #childdetail_page.childdetail-redesign #documentsBtn {
        min-width: 112px;
    }

    #childdetail_page .childdetail_documents_overlay {
        padding: 12px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_documents_dialog {
        width: 100%;
        max-height: 92vh;
    }
}

/* Assessment history is a full client-scoped page so it can grow to include
   previous assessment plans as well as the existing legacy assessments. */

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_mode {
    width: 100%;
    padding: 0;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(18px, 2.4vw, 30px);
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_header {
    margin: 0 0 16px;
}

#childdetail_page #childdetail_assessment_history_back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #087d7a;
    font: inherit;
    font-size: 0.86em;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page #childdetail_assessment_history_back:hover {
    color: #005f5d;
    text-decoration: underline;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_eyebrow {
    margin: 0 0 6px;
    color: #008f8c;
    font-size: 0.75em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_assessment_history_header h1 {
    margin: 0;
    color: #172451;
    font-size: clamp(1.6em, 2.4vw, 2.25em);
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_header > p:last-child {
    max-width: 760px;
    margin: 5px 0 0;
    color: #59677a;
    font-size: 0.94em;
    line-height: 1.55;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_section {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_section_heading {
    margin: 0 0 16px;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_section_heading > div {
    margin: 0;
}

#childdetail_page .childdetail_assessment_history_section_heading h2 {
    margin: 0;
    color: #26364b;
    font-size: 1.18em;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history_section_heading p {
    margin: 5px 0 0;
    color: #687689;
    font-size: 0.84em;
}

#childdetail_page .childdetail_assessment_history #childdetail_older_assessment_list {
    width: 100%;
    padding: 0;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_module {
    margin: 10px 0;
    padding: 12px;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table_wrap {
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d8e3e6;
    border-radius: 14px;
    background: #fff;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    background: #fff;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table th,
#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table td {
    padding: 12px 11px;
    font-size: 0.79em;
    line-height: 1.35;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table th {
    border-bottom: 1px solid #d8e3e6;
    background: #f3f8f7;
    color: #445466;
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 0.025em;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table td {
    border-bottom: 1px solid #e5ecee;
    color: #4d5c6f;
    vertical-align: middle;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_date_col {
    width: 15%;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_description_col {
    width: 25%;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_result_col {
    width: 45%;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessments_actions_col {
    width: 15%;
}

#childdetail_page .childdetail_screening_history_date {
    display: inline-block;
    color: #34475a;
    font-weight: 740;
}

#childdetail_page .childdetail_screening_history_name {
    color: #253950 !important;
    font-weight: 800;
}

#childdetail_page .childdetail_screening_history_result {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4e5d6c;
    font-weight: 800;
}

#childdetail_page .childdetail_screening_history_result::before {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid #89979e;
    border-radius: 50%;
    background: #aab5ba;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    content: '';
}

#childdetail_page .childdetail_screening_history_result.is-green::before {
    border-color: #18864f;
    background: #24a862;
}

#childdetail_page .childdetail_screening_history_result.is-amber::before {
    border-color: #b97800;
    background: #e5a400;
}

#childdetail_page .childdetail_screening_history_result.is-red::before {
    border-color: #b72d3d;
    background: #dc4050;
}

#childdetail_page .childdetail_screening_history_result.is-neutral::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #9cabad;
    border-radius: 4px;
    background: #edf2f2;
    box-shadow: none;
    color: #52676b;
    content: '✓';
    font-size: 10px;
    line-height: 1;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessment_action_button {
    min-width: 0;
    min-height: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #087d79;
    font-weight: 800;
}

#childdetail_page .childdetail_assessment_history .childdetail_older_assessment_action_button:hover,
#childdetail_page .childdetail_assessment_history .childdetail_older_assessment_action_button:focus-visible {
    background: transparent;
    outline: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#childdetail_page .childdetail_assessment_history .childdetail_screening_history_row.is-expanded td {
    border-bottom-color: transparent;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_detail_row[hidden] {
    display: none !important;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_detail_row > td {
    padding: 0 12px 14px;
    border-bottom: 1px solid #d8e3e6;
    background: #fbfdfd;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_panel {
    padding: 14px;
    border: 1px solid #dce7e8;
    border-radius: 12px;
    background: #f5f9f9;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_heading strong {
    display: block;
    color: #253950;
    font-size: 0.98em;
    font-weight: 850;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_heading p {
    max-width: 660px;
    margin: 3px 0 0;
    color: #607082;
    font-size: 0.84em;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_count {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e6f3f2;
    color: #087d79;
    font-size: 0.75em;
    font-weight: 850;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
    border: 1px solid #dbe5e7;
    border-radius: 10px;
    background: #fff;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_name {
    overflow: hidden;
    color: #2b4056;
    font-size: 0.9em;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_status {
    color: #59697a;
    font-size: 0.76em;
    font-weight: 800;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_status.is-complete {
    color: #286846;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_status.is-in-progress {
    color: #735817;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_date {
    color: #7a8794;
    font-size: 0.72em;
}

#childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area .childdetail_older_assessment_action_button {
    min-width: 86px;
}

#childdetail_page .clientMaintenanceForm .childdetail_assessment_history
#childdetail_older_assessments_empty {
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 9px;
    background: #f5f8f8;
    color: #5a6878;
    font-size: 0.86em;
    font-style: normal;
}

#childdetail_page.childdetail-redesign #previousAssessmentsBtn[aria-current="page"] {
    border-color: #cbd8da;
    background: #edf4f4;
    color: #5b6878;
}

@media (max-width: 780px) {
    #childdetail_page.childdetail-redesign #previousAssessmentsBtn {
        min-width: 158px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_assessment_history {
        padding: 18px 12px 28px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_assessment_history_section {
        padding: 0;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table_wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table,
    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table tbody,
    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table tr,
    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table td {
        display: block;
        width: 100%;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table tr {
        box-sizing: border-box;
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid #d8e3e6;
        border-radius: 12px;
        background: #fff;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table td {
        display: grid;
        box-sizing: border-box;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        border: 0;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessments_table td::before {
        color: #71808c;
        content: attr(data-label);
        font-size: 0.82em;
        font-weight: 800;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_older_assessment_action_group {
        justify-content: flex-start;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_screening_history_row.is-expanded {
        margin-bottom: 0;
        border-bottom: 0;
        border-radius: 12px 12px 0 0;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_detailed_history_detail_row {
        margin-top: 0;
        padding: 0 10px 10px;
        border-top: 0;
        border-radius: 0 0 12px 12px;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_detailed_history_detail_row > td {
        display: block;
        padding: 0;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_detailed_history_detail_row > td::before {
        display: none;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_detailed_history_heading {
        flex-direction: column;
        gap: 8px;
    }

    #childdetail_page .childdetail_assessment_history .childdetail_detailed_history_area_list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Final local-navigation overrides for the legacy header button rules above. */
#childdetail_page.childdetail-redesign .childdetail_local_nav {
    min-height: 50px;
    align-items: center;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav #childdetailOverviewBtn,
#childdetail_page.childdetail-redesign .childdetail_local_nav #previousAssessmentsBtn,
#childdetail_page.childdetail-redesign .childdetail_local_nav #supportPlansBtn,
#childdetail_page.childdetail-redesign .childdetail_local_nav #documentsBtn {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 3px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #536176;
    font-size: 0.88em;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button:hover,
#childdetail_page.childdetail-redesign .childdetail_local_nav button:focus-visible {
    background: #f2f8f7;
    color: #007d79;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button.is-active,
#childdetail_page.childdetail-redesign .childdetail_local_nav #previousAssessmentsBtn[aria-current="page"] {
    border: 0;
    background: #e5f6f4;
    color: #007d79;
    font-weight: 800;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button.is-active::after {
    right: 8px;
    bottom: -4px;
    left: 8px;
    height: 3px;
    background: #00aaa5;
}

#childdetail_page .childdetail_documents_page #childdetail_documents_panel {
    max-height: none;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
}

@media (max-width: 780px) {
    #childdetail_page.childdetail-redesign .childdetail_local_nav #childdetailOverviewBtn,
    #childdetail_page.childdetail-redesign .childdetail_local_nav #previousAssessmentsBtn,
    #childdetail_page.childdetail-redesign .childdetail_local_nav #supportPlansBtn,
    #childdetail_page.childdetail-redesign .childdetail_local_nav #documentsBtn {
        min-width: 0;
        min-height: 36px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 0.82em;
    }

    .update-client-danger-zone {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .update-client-danger-zone .update-client-delete {
        width: 100%;
    }
}

/* Keep the two amber decisions directly comparable: matching content rows and
   fixed action sizing align the suitability labels and buttons across cards. */
#childdetail_page .childdetail_result_amber .childdetail_outcome_choices {
    align-items: stretch;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
    min-height: 225px;
    grid-template-rows: 1fr;
    align-items: stretch;
    align-content: stretch;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice > div {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice h2 {
    display: flex;
    min-height: 2.7em;
    align-items: flex-start;
    margin: 0 0 6px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice_condition {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f8f5;
    line-height: 1.2;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice.is-assess .childdetail_outcome_choice_condition {
    background: #f1eef9;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice p {
    margin: 0 0 16px;
}

#childdetail_page .childdetail_result_amber .childdetail_outcome_choice .loginSubmit.childdetail_outcome_monitor_action,
#childdetail_page .childdetail_result_amber .childdetail_outcome_choice .loginSubmit.childdetail_outcome_start {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin: auto 0 0;
    padding: 7px 14px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 780px) {
    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice {
        min-height: 0;
    }

    #childdetail_page .childdetail_result_amber .childdetail_outcome_choice h2 {
        min-height: 0;
    }
}

/* Child profile overview: uses the compact, image-led card rhythm established
   by the Early Language selectors while retaining the existing child shell. */
#allaround:has(#childdetail_page) #current_user_details {
    display: none !important;
}

#childdetail_page.childdetail-redesign .childdetail_summary_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#childdetail_page.childdetail-redesign .childdetail_summary_actions #editClientBtn {
    display: inline-flex;
    min-width: 145px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #72c2be;
    border-radius: 9px;
    background: #fff;
    color: #087f7c;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: none;
}

#childdetail_page.childdetail-redesign .childdetail_summary_actions #editClientBtn:hover,
#childdetail_page.childdetail-redesign .childdetail_summary_actions #editClientBtn:focus-visible {
    border-color: #008f8c;
    background: #f0faf9;
}

#childdetail_page.childdetail-redesign .childdetail_summary_actions #editClientBtn:focus-visible {
    outline: 3px solid rgba(0, 170, 165, .22);
    outline-offset: 2px;
}

#childdetail_page #childdetail_screen_content.childdetail_landing_mode.childprofile_dashboard_mode {
    padding: 7px clamp(10px, 1.4vw, 20px) 10px;
    overflow-y: auto;
    scrollbar-gutter: auto;
    background: #f7faf9;
}

#childdetail_page .childprofile_dashboard {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 9px;
    color: #172451;
}

#childdetail_page .childprofile_section {
    padding: clamp(10px, 1.15vw, 14px);
    border: 1px solid #dbe5e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 54, 62, 0.055);
}

#childdetail_page .childprofile_section_header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

#childdetail_page .clientMaintenanceForm .childprofile_section_header h2 {
    margin: 0 0 2px;
    color: #172451;
    font-size: clamp(1.15rem, 1.55vw, 1.42rem);
    line-height: 1.15;
}

#childdetail_page .clientMaintenanceForm .childprofile_section_header p {
    margin: 0;
    color: #647184;
    font-size: 0.82rem;
    line-height: 1.35;
}

#childdetail_page .childprofile_early_card {
    display: grid;
    min-height: 126px;
    grid-template-columns: clamp(96px, 9vw, 112px) minmax(0, 1fr) minmax(160px, 0.3fr);
    gap: clamp(11px, 1.25vw, 18px);
    align-items: center;
    padding: clamp(9px, 1.05vw, 13px);
    border: 1px solid #8fcfcb;
    border-radius: 15px;
    background: linear-gradient(110deg, #f1fbfa 0%, #fff 58%);
    box-shadow: 0 4px 12px rgba(0, 143, 140, 0.07);
}

#childdetail_page .childprofile_early_card.is-under-two-guidance {
    min-height: 220px;
    align-items: start;
    border-color: #79c9c4;
    background: linear-gradient(110deg, #ecfaf8 0%, #fff 68%);
}

#childdetail_page .childprofile_early_card.is-under-two-guidance > .childprofile_area_icon {
    align-self: center;
}

#childdetail_page .childprofile_early_card.is-under-two-guidance .childprofile_status {
    border-color: #9bd4cf;
    background: #e9f7f5;
    color: #17645f;
}

#childdetail_page .childprofile_early_card.is-under-two-guidance #childprofile_early_actions .childprofile_primary_action {
    min-height: 48px;
    white-space: normal;
    text-align: center;
}

#childdetail_page .childprofile_early_card.is-under-two-guidance .childprofile_early_result_heading {
    margin-top: 7px;
    color: #173c4a;
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    line-height: 1.25;
}

#childdetail_page .clientMaintenanceForm .childprofile_under_two_toolbox {
    margin: 8px 0 0;
    color: #226b68;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
}

#childdetail_page .childprofile_under_two_toolbox[hidden],
#childdetail_page .childprofile_under_two_guidance[hidden] {
    display: none;
}

#childdetail_page .childprofile_under_two_guidance {
    margin-top: 9px;
    padding: 9px 11px;
    border-left: 4px solid #36aaa5;
    border-radius: 8px;
    background: #e9f7f5;
    color: #405e68;
}

#childdetail_page .childprofile_under_two_guidance strong {
    display: block;
    margin-bottom: 3px;
    color: #17645f;
    font-size: 0.75rem;
}

#childdetail_page .clientMaintenanceForm .childprofile_under_two_guidance p {
    margin: 0;
    font-size: 0.71rem;
    line-height: 1.4;
}

#childdetail_page .childprofile_area_icon {
    display: flex;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    align-items: center;
    justify-content: center;
}

#childdetail_page .childprofile_area_icon_large {
    width: clamp(96px, 9vw, 112px);
    height: clamp(96px, 9vw, 112px);
}

#childdetail_page .childprofile_area_icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#childdetail_page .childprofile_card_topline {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

#childdetail_page .childprofile_recommended_label {
    color: #008782;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

#childdetail_page .childprofile_early_heading {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#childdetail_page .childprofile_status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #d6dfe2;
    border-radius: 999px;
    background: #f4f7f7;
    color: #536174;
    font-size: 0.66rem;
    font-weight: 780;
    line-height: 1.15;
    white-space: nowrap;
}

#childdetail_page .childprofile_status.is-ready {
    border-color: #cbdadd;
    background: #f4f8f8;
    color: #536174;
}

#childdetail_page .childprofile_status.is-progress,
#childdetail_page .childprofile_status.is-monitor {
    border-color: #ead18d;
    background: #fff8df;
    color: #765913;
}

#childdetail_page .childprofile_status.is-complete {
    border-color: #abd9c0;
    background: #eff9f3;
    color: #246c45;
}

#childdetail_page .childprofile_status.is-support {
    border-color: #efbbc5;
    background: #fff1f4;
    color: #a62b43;
}

#childdetail_page .childprofile_status.is-support-plan {
    border-color: #b7cad9;
    background: #eef4f8;
    color: #3f6077;
}

#childdetail_page .childprofile_status.is-support-plan.is-support-in-progress {
    border-color: #e5c566;
    background: #fff4c7;
    color: #755600;
}

#childdetail_page .clientMaintenanceForm .childprofile_early_card h3,
#childdetail_page .clientMaintenanceForm .childprofile_area_card h3 {
    margin: 0;
    color: #172451;
    font-size: 1.08rem;
    line-height: 1.18;
}

#childdetail_page .clientMaintenanceForm .childprofile_early_card h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

#childdetail_page .clientMaintenanceForm .childprofile_card_subtitle {
    margin: 3px 0 0;
    color: #008782;
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.25;
}

#childdetail_page .childprofile_card_subtitle[hidden],
#childdetail_page .childprofile_domain_chips[hidden],
#childdetail_page .childprofile_card_description[hidden],
#childdetail_page .childprofile_amber_decision[hidden] {
    display: none;
}

#childdetail_page .clientMaintenanceForm .childprofile_card_description {
    margin: 4px 0 0;
    color: #5b6879;
    font-size: 0.76rem;
    line-height: 1.4;
}

#childdetail_page .childprofile_early_message {
    min-width: 0;
}

#childdetail_page .childprofile_early_result_heading {
    display: block;
    margin-top: 5px;
    color: #31545a;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
}

#childdetail_page .childprofile_early_card.is-green-result .childprofile_early_result_heading {
    color: #246c45;
}

#childdetail_page .childprofile_early_card.is-amber-result .childprofile_early_result_heading {
    color: #765913;
}

#childdetail_page .childprofile_early_result_heading[hidden] {
    display: none;
}

#childdetail_page .childprofile_early_future_note {
    display: block;
    margin-top: 2px;
    color: #647184;
}

#childdetail_page .childprofile_early_message .childprofile_card_description strong {
    color: #455467;
    font-weight: 800;
}

#childdetail_page .childprofile_early_card.is-amber-result .childprofile_early_message .childprofile_card_description strong {
    color: #765913;
}

#childdetail_page .childprofile_early_card.is-red-result .childprofile_early_result_heading {
    color: #9b2f45;
}

#childdetail_page .childprofile_amber_decision {
    min-width: 0;
    margin-top: 5px;
}

#childdetail_page .childprofile_overview_due[hidden] {
    display: none;
}

#childdetail_page .childprofile_overview_due {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-top: 5px;
    padding: 14px;
    border: 1px solid #c5ccd0;
    border-radius: 10px;
    background: #f7f9fb;
}

#childdetail_page .childprofile_overview_due_icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0c983;
    border-radius: 50%;
    background: #fff6e8;
    color: #bd6900;
}

#childdetail_page .childprofile_overview_due_icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#childdetail_page .childprofile_overview_due_copy {
    min-width: 0;
}

#childdetail_page .clientMaintenanceForm .childprofile_overview_due h4 {
    margin: 0;
    color: #233a4c;
    font-size: 0.92rem;
    line-height: 1.25;
}

#childdetail_page .clientMaintenanceForm .childprofile_overview_due p {
    margin: 5px 0 0;
    color: #5c697b;
    font-size: 0.72rem;
    line-height: 1.4;
}

#childdetail_page .childprofile_overview_due_action {
    margin-top: 12px;
}

#childdetail_page .childprofile_overview_due_action .childprofile_primary_action {
    min-height: 38px;
}

#childdetail_page .childprofile_support_plan_next[hidden] {
    display: none;
}

#childdetail_page .childprofile_support_plan_next {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #d7e1e5;
}

#childdetail_page .clientMaintenanceForm .childprofile_support_plan_next h4 {
    margin: 0;
    color: #233a4c;
    font-size: 0.82rem;
    line-height: 1.25;
}

#childdetail_page .clientMaintenanceForm .childprofile_support_plan_next p {
    margin: 4px 0 8px;
    color: #5c697b;
    font-size: 0.72rem;
    line-height: 1.4;
}

#childdetail_page .childprofile_support_plan_next .childprofile_secondary_action {
    min-height: 34px;
}

#childdetail_page .childprofile_early_card.is-amber-result > .childprofile_area_icon {
    align-self: start;
}

#childdetail_page .childprofile_early_card.is-amber-result > .childprofile_card_actions {
    align-self: start;
}

#childdetail_page .clientMaintenanceForm .childprofile_amber_decision h4 {
    margin: 0 0 7px;
    color: #172451;
    font-size: 0.92rem;
    line-height: 1.25;
}

#childdetail_page .childprofile_amber_age_test {
    display: block;
    min-height: 32px;
    margin: 0 0 6px;
    padding: 0;
    border: 1px dashed #9aa9b0;
    border-radius: 8px;
    background: #f5f7f7;
    color: #455467;
    font-size: 0.66rem;
}

#childdetail_page .childprofile_amber_age_test[hidden] {
    display: none;
}

#childdetail_page .childprofile_amber_age_test label {
    flex: 0 0 auto;
    font-weight: 800;
}

#childdetail_page .childprofile_lifecycle_test {
    margin-top: 8px;
}

#childdetail_page .childprofile_lifecycle_test > summary {
    padding: 7px 10px;
    color: #455467;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

#childdetail_page .childprofile_lifecycle_test > summary:focus-visible {
    border-radius: 7px;
    outline: 3px solid var(--ct-focus);
    outline-offset: 2px;
}

#childdetail_page .childprofile_lifecycle_test_controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 8px;
    border-top: 1px dashed #c3cdd1;
}

#childdetail_page .childprofile_lifecycle_test.is-active {
    border-color: #7a3d78;
    background: #fbf5fb;
}

#childdetail_page .childprofile_lifecycle_test button {
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid #8e9da4;
    border-radius: 7px;
    background: #fff;
    color: #26394a;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

#childdetail_page .childprofile_lifecycle_test button:focus-visible {
    outline: 3px solid var(--ct-focus);
    outline-offset: 2px;
}

#childdetail_page .childdetail_screening_history_result.is-expired {
    color: #75531b;
    font-weight: 750;
}

#childdetail_page .childprofile_amber_age_test select {
    min-height: 28px;
    padding: 3px 28px 3px 7px;
    border: 1px solid #b8c5c9;
    border-radius: 7px;
    background-color: #fff;
    color: #26394a;
    font: inherit;
}

#childdetail_page .childprofile_amber_age_test small {
    color: #667582;
    font-size: inherit;
}

@media (max-width: 820px) {
    #childdetail_page .childprofile_lifecycle_test_controls {
        flex-wrap: wrap;
    }
}

#childdetail_page .childprofile_amber_pathways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

#childdetail_page .childprofile_amber_pathway {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    min-height: 142px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #a0a3a9;
    border-radius: 10px;
    background: #f7f9fb;
}

#childdetail_page .childprofile_amber_pathway_detailed {
    border-color: #a0a3a9;
    background: #f7f9fb;
}

#childdetail_page .childprofile_amber_pathway_body {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

#childdetail_page .childprofile_amber_pathway_icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #9fd3cf;
    border-radius: 50%;
    background: #edf8f7;
    color: #008f8c;
}

#childdetail_page .childprofile_amber_pathway_detailed .childprofile_amber_pathway_icon {
    border-color: #f0c983;
    background: #fff6e8;
    color: #de7d00;
}

#childdetail_page .childprofile_amber_pathway_icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#childdetail_page .childprofile_amber_pathway_copy {
    min-width: 0;
}

#childdetail_page .childprofile_amber_pathway_eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #008782;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

#childdetail_page .childprofile_amber_pathway_detailed .childprofile_amber_pathway_eyebrow {
    color: #d66d00;
}

#childdetail_page .childprofile_amber_pathway_copy > strong {
    display: block;
    color: #233a4c;
    font-size: 0.9rem;
    line-height: 1.2;
}

#childdetail_page .clientMaintenanceForm .childprofile_amber_pathway p {
    margin: 5px 0 0;
    color: #5c697b;
    font-size: 0.7rem;
    line-height: 1.35;
}

#childdetail_page .childprofile_amber_pathway_action {
    display: flex;
    width: 100%;
    justify-content: stretch;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #dfe5e7;
}

#childdetail_page .childprofile_amber_monitor_note {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #dfe5e7;
    color: #5c697b;
    font-size: 0.68rem;
    line-height: 1.35;
}

#childdetail_page .childprofile_amber_monitor_note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: #43817e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#childdetail_page .childprofile_amber_pathway_action .childprofile_amber_choice_action {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border-color: #00a39a;
    background: #fff;
    color: #008581;
}

#childdetail_page .childprofile_amber_pathway_action .childprofile_amber_choice_action:hover,
#childdetail_page .childprofile_amber_pathway_action .childprofile_amber_choice_action:focus-visible {
    border-color: #008581;
    background: #edf8f7;
    color: #006f6c;
}

#childdetail_page .childprofile_early_card.is-amber-result > .childprofile_card_actions {
    align-self: start;
}

#childdetail_page .childprofile_compact_result_action {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.69rem;
    white-space: nowrap;
}

#childdetail_page .childprofile_domain_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

#childdetail_page .childprofile_domain_chips span {
    padding: 3px 8px;
    border: 1px solid #cfe7e5;
    border-radius: 999px;
    background: #fff;
    color: #31706d;
    font-size: 0.66rem;
    font-weight: 740;
}

#childdetail_page .childprofile_domain_chips span.is-secure {
    border-color: #abd9c0;
    background: #eff9f3;
    color: #246c45;
}

#childdetail_page .childprofile_card_actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    align-self: end;
}

/* Keep the Early Language actions visually grouped instead of allowing each
   label to create a different-width button in the card's narrow action rail. */
#childdetail_page #childprofile_early_actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
}

#childdetail_page #childprofile_early_actions .childprofile_primary_action,
#childdetail_page #childprofile_early_actions .childprofile_secondary_action {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    white-space: nowrap;
}

#childdetail_page .loginSubmit.childprofile_primary_action,
#childdetail_page .childprofile_secondary_action {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 12px;
    border-radius: 9px;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
}

#childdetail_page .loginSubmit.childprofile_primary_action {
    min-width: 145px;
    border: 1px solid #008f8c;
    background: #00aaa5;
    color: #fff;
    box-shadow: 0 3px 7px rgba(0, 143, 140, 0.16);
}

#childdetail_page .childprofile_secondary_action {
    border: 1px solid #72c2be;
    background: #fff;
    color: #087f7c;
}

#childdetail_page .loginSubmit.childprofile_primary_action:hover,
#childdetail_page .loginSubmit.childprofile_primary_action:focus-visible {
    background: #008f8c;
}

#childdetail_page .childprofile_secondary_action:hover,
#childdetail_page .childprofile_secondary_action:focus-visible {
    border-color: #008f8c;
    background: #f0faf9;
}

#childdetail_page .childprofile_tertiary_action {
    min-height: 30px;
    padding: 4px 6px;
    border-color: transparent;
    background: transparent;
    color: #39706f;
    box-shadow: none;
    font-size: 0.7rem;
    text-decoration: underline;
    text-decoration-color: rgba(57, 112, 111, 0.45);
    text-underline-offset: 2px;
}

#childdetail_page .childprofile_tertiary_action:hover,
#childdetail_page .childprofile_tertiary_action:focus-visible {
    border-color: transparent;
    background: #edf8f7;
}

#childdetail_page .loginSubmit.childprofile_primary_action:focus-visible,
#childdetail_page .childprofile_secondary_action:focus-visible {
    outline: 3px solid rgba(0, 170, 165, 0.22);
    outline-offset: 2px;
}

#childdetail_page .childprofile_area_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

#childdetail_page .childprofile_early_card.is-under-two-guidance ~ .childprofile_area_grid {
    margin-top: 8px;
}

#childdetail_page .childprofile_area_card {
    display: grid;
    box-sizing: border-box;
    min-width: 0;
    min-height: 132px;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 5px 9px;
    align-items: start;
    padding: 8px 10px;
    border: 1px solid #d9e3e5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 9px rgba(23, 54, 62, 0.045);
}

#childdetail_page .childprofile_area_card_body {
    min-width: 0;
    height: 100%;
}

#childdetail_page .childprofile_area_card > .childprofile_area_icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
}

#childdetail_page .childprofile_area_card .childprofile_card_topline {
    justify-content: flex-start;
    min-height: 20px;
    margin-bottom: 2px;
}

#childdetail_page .clientMaintenanceForm .childprofile_area_card .childprofile_card_description {
    margin-top: 4px;
    color: #087f7c;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.28;
}

#childdetail_page .childprofile_area_card .childprofile_card_actions {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 34px;
}

#childdetail_page .childprofile_area_card .childprofile_primary_action,
#childdetail_page .childprofile_area_card .childprofile_secondary_action {
    min-width: 0;
    min-height: 34px;
    flex: 1 1 auto;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance {
    min-height: 176px;
    border-color: #b5deda;
    background: linear-gradient(135deg, #f3fbfa 0%, #fff 76%);
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_status {
    border-color: #9bd4cf;
    background: #e9f7f5;
    color: #17645f;
}

#childdetail_page .clientMaintenanceForm .childprofile_area_card.is-under-two-guidance .childprofile_card_description {
    color: #536776;
    font-weight: 500;
    line-height: 1.36;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_card_description strong,
#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_card_description span {
    display: block;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_card_description strong {
    color: #173c4a;
    font-size: 0.79rem;
    line-height: 1.3;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_card_description span {
    margin-top: 3px;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_card_actions {
    flex-wrap: wrap;
}

#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_primary_action,
#childdetail_page .childprofile_area_card.is-under-two-guidance .childprofile_secondary_action {
    white-space: normal;
    text-align: center;
}

#childdetail_page .childdetail_screening_age_guidance {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #9bd4cf;
    border-radius: 999px;
    background: #e9f7f5;
    color: #17645f;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
}

#childdetail_page .childprofile_curriculum {
    display: grid;
    grid-template-columns: minmax(270px, 0.95fr) minmax(0, 1.35fr) minmax(145px, 0.35fr);
    gap: 10px 14px;
    align-items: center;
    padding-block: 7px;
}

#childdetail_page .childprofile_curriculum_header {
    grid-column: 1;
    margin-bottom: 0;
}

#childdetail_page .childprofile_curriculum_heading_group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

#childdetail_page .childprofile_curriculum_icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
}

#childdetail_page .childprofile_curriculum_empty {
    display: flex;
    box-sizing: border-box;
    min-height: 35px;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #f7f9f9;
    color: #687587;
    font-size: 0.73rem;
}

#childdetail_page .childprofile_curriculum_actions {
    grid-column: 3;
    width: 100%;
    min-height: 35px;
    align-self: center;
    justify-content: flex-end;
}

#childdetail_page .childprofile_curriculum_actions #childprofile_curriculum_open {
    width: 100%;
    min-width: 145px;
    min-height: 35px;
}

#childdetail_page .childprofile_curriculum_empty strong {
    color: #425064;
}

@media (max-width: 920px) {
    #childdetail_page .childprofile_early_card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    #childdetail_page .childprofile_early_card > .childprofile_card_actions {
        grid-column: 1 / -1;
    }

    #childdetail_page .childprofile_early_card > .childprofile_card_actions,
    #childdetail_page .childprofile_area_card .childprofile_card_actions {
        justify-content: flex-start;
    }

    #childdetail_page #childprofile_early_actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        align-items: stretch;
    }

    #childdetail_page .childprofile_area_card {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    #childdetail_page .childprofile_area_card .childprofile_area_icon {
        width: 68px;
        height: 68px;
    }

    #childdetail_page .childprofile_curriculum {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 0.3fr);
    }

    #childdetail_page .childprofile_curriculum_header {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    #childdetail_page .childprofile_curriculum_actions {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    #childdetail_page #childprofile_early_actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    #childdetail_page .childprofile_amber_pathways {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childprofile_area_grid {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childprofile_curriculum_header,
    #childdetail_page .childprofile_curriculum_empty {
        align-items: flex-start;
        flex-direction: column;
    }

    #childdetail_page .childprofile_curriculum {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childprofile_curriculum_header,
    #childdetail_page .childprofile_curriculum_empty,
    #childdetail_page .childprofile_curriculum_actions {
        grid-column: 1;
    }

}

/* Child overview pathways share one visual structure while retaining their
   own assessment journeys. Early Language alone can expand to show its
   Overview-to-Detailed decision content. */
#childdetail_page .childprofile_pathway_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

#childdetail_page .childprofile_pathway_grid .childprofile_area_grid {
    display: contents;
}

#childdetail_page .childprofile_pathway_grid .childprofile_pathway_card {
    min-width: 0;
    min-height: 248px;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    align-items: start;
    gap: 7px 10px;
    padding: 9px 10px;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card > .childprofile_area_icon {
    width: 72px;
    height: 72px;
    align-self: start;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card > .childprofile_card_actions {
    grid-column: 1 / -1;
    width: 100%;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card .childprofile_early_content {
    min-width: 0;
}

#childdetail_page .clientMaintenanceForm .childprofile_pathway_grid > .childprofile_early_card h3 {
    font-size: 1.08rem;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card .childprofile_recommended_label {
    font-size: 0.59rem;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card .childprofile_card_topline {
    min-height: 20px;
    margin-bottom: 2px;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card .childprofile_card_subtitle {
    font-size: 0.74rem;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])),
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) {
    grid-column: 1 / -1;
    min-height: 180px;
    grid-template-columns: clamp(96px, 9vw, 112px) minmax(0, 1fr) minmax(170px, 0.3fr);
    grid-template-rows: auto;
    align-items: center;
    gap: clamp(11px, 1.25vw, 18px);
    padding: clamp(9px, 1.05vw, 13px);
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_area_icon,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])) > .childprofile_area_icon,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_area_icon {
    width: clamp(96px, 9vw, 112px);
    height: clamp(96px, 9vw, 112px);
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_card_actions,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])) > .childprofile_card_actions,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_card_actions {
    grid-column: 3;
}

#childdetail_page .childprofile_support_summary_header {
    align-items: flex-start;
}

#childdetail_page .childprofile_support_summary_header > button {
    flex: 0 0 auto;
}

#childdetail_page .childprofile_support_summary_body {
    display: grid;
    grid-template-columns: minmax(145px, 0.22fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

#childdetail_page .childprofile_support_metric {
    display: flex;
    min-height: 94px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 13px;
    border-radius: 11px;
    background: linear-gradient(135deg, #e7f8f6 0%, #f5fbfa 100%);
    color: #17645f;
}

#childdetail_page .childprofile_support_metric > span {
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#childdetail_page .childprofile_support_metric > strong {
    margin: 4px 0 2px;
    color: #008f8c;
    font-size: 2rem;
    line-height: 1;
}

#childdetail_page .childprofile_support_metric > small {
    color: #587274;
    font-size: 0.72rem;
}

#childdetail_page .childprofile_support_target_list {
    min-width: 0;
    max-height: 174px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dce5e7;
    border-radius: 11px;
    background: #fff;
}

#childdetail_page .childprofile_support_target_row {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    grid-template-columns: 15px minmax(150px, 1fr) auto auto 10px;
    align-items: center;
    gap: 9px;
    padding: 3px 8px;
    border: 0;
    border-bottom: 1px solid #e6ecee;
    background: #fff;
    color: #35475b;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#childdetail_page .childprofile_support_target_row:last-of-type {
    border-bottom: 0;
}

#childdetail_page .childprofile_support_target_row:hover,
#childdetail_page .childprofile_support_target_row:focus-visible {
    background: #f4faf9;
}

#childdetail_page .childprofile_support_target_row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(0, 170, 165, 0.22);
    outline-offset: -3px;
}

#childdetail_page .childprofile_support_target_mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #00aaa5;
}

#childdetail_page .childprofile_support_target_mark.is-emotions {
    background: #ed5d7b;
}

#childdetail_page .childprofile_support_target_mark.is-blank {
    background: #8d65c5;
}

#childdetail_page .childprofile_support_target_mark.is-speech {
    background: #e4a329;
}

#childdetail_page .childprofile_support_target_title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#childdetail_page .childprofile_support_target_area,
#childdetail_page .childprofile_support_target_status {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 760;
    white-space: nowrap;
}

#childdetail_page .childprofile_support_target_area {
    background: #e8f6f8;
    color: #287183;
}

#childdetail_page .childprofile_support_target_area.is-emotions {
    background: #fff0f3;
    color: #b43b55;
}

#childdetail_page .childprofile_support_target_area.is-blank {
    background: #f1ebfa;
    color: #6f4ba5;
}

#childdetail_page .childprofile_support_target_area.is-speech {
    background: #fff6df;
    color: #8a6318;
}

#childdetail_page .childprofile_support_target_status.is-on-track,
#childdetail_page .childprofile_support_target_status.is-achieved {
    background: #edf8f1;
    color: #267047;
}

#childdetail_page .childprofile_support_target_status.is-practice {
    background: #fff5dc;
    color: #865d0e;
}

#childdetail_page .childprofile_support_target_status.is-ready {
    background: #f1f4f5;
    color: #596778;
}

#childdetail_page .childprofile_support_target_arrow {
    color: #65788a;
    font-size: 1.05rem;
}

#childdetail_page .clientMaintenanceForm .childprofile_support_more_targets {
    margin: 0;
    padding: 7px 10px;
    border-top: 1px solid #e6ecee;
    color: #627183;
    font-size: 0.68rem;
    text-align: right;
}

#childdetail_page .clientMaintenanceForm .childprofile_support_summary_state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    border: 1px dashed #cbd8da;
    border-radius: 10px;
    background: #f8faf9;
    color: #5d6b7c;
    font-size: 0.76rem;
}

#childdetail_page .clientMaintenanceForm .childprofile_support_summary_state.is-error {
    border-color: #e7c6ca;
    background: #fff7f8;
    color: #8a3b49;
}

@media (max-width: 1180px) {
    #childdetail_page .childprofile_pathway_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #childdetail_page .childprofile_pathway_grid {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])),
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) {
        grid-column: 1;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
    }

    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_area_icon,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])) > .childprofile_area_icon,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_area_icon {
        width: 72px;
        height: 72px;
    }

    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_card_actions,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])) > .childprofile_card_actions,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_card_actions {
        grid-column: 1 / -1;
    }

    #childdetail_page .childprofile_support_summary_header {
        align-items: stretch;
        flex-direction: column;
    }

    #childdetail_page .childprofile_support_summary_body {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childprofile_support_metric {
        min-height: 90px;
    }

    #childdetail_page .childprofile_support_target_row {
        grid-template-columns: 15px minmax(0, 1fr) 10px;
    }

    #childdetail_page .childprofile_support_target_area,
    #childdetail_page .childprofile_support_target_status {
        display: none;
    }
}

/* The active support-plan workspace benefits from a slightly shallower child
   shell while retaining the same information and control sizes. */

/* Integrated screening and support overview -------------------------------- */
#childdetail_page .childprofile_pathway_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
}

#childdetail_page .childprofile_pathway_grid .childprofile_pathway_card,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    min-height: 278px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid #d9e3e5;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 54, 62, 0.055);
}

#childdetail_page .childprofile_pathway_grid .childprofile_pathway_card > .childprofile_area_icon,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card > .childprofile_area_icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-self: flex-start;
}

#childdetail_page .childprofile_pathway_card_body,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card .childprofile_early_content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

#childdetail_page .childprofile_pathway_card .childprofile_card_topline {
    display: flex;
    min-height: 21px;
    align-items: center;
    margin: 0 0 2px;
}

#childdetail_page .childprofile_card_topline_placeholder::after {
    content: '';
}

#childdetail_page .childprofile_recommended_label {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e7f8f6;
    color: #087f7c;
    font-size: 0.59rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.15;
}

#childdetail_page .childprofile_pathway_heading,
#childdetail_page .childprofile_early_heading {
    display: flex;
    min-height: 43px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
}

#childdetail_page .clientMaintenanceForm .childprofile_pathway_grid .childprofile_pathway_card h3,
#childdetail_page .clientMaintenanceForm .childprofile_pathway_grid > .childprofile_early_card h3 {
    min-height: 1.2em;
    font-size: 1.08rem;
    line-height: 1.18;
}

#childdetail_page .childprofile_card_progress {
    display: flex;
    box-sizing: border-box;
    min-height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 4px 0 6px;
    padding: 7px 8px;
    border-top: 1px solid #e1e8e9;
    border-bottom: 1px solid #e1e8e9;
    background: #f8faf9;
}

#childdetail_page .childprofile_card_progress_item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #536174;
    font-size: 0.71rem;
    font-weight: 690;
    line-height: 1.25;
}

#childdetail_page .childprofile_card_progress_dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 0.28em;
    border-radius: 50%;
    background: #a8b5ba;
}

#childdetail_page .childprofile_card_progress_item.is-complete .childprofile_card_progress_dot {
    background: #42a870;
}

#childdetail_page .childprofile_card_progress_item.is-progress .childprofile_card_progress_dot {
    background: #d69b21;
}

#childdetail_page .childprofile_card_progress_item.is-support .childprofile_card_progress_dot {
    background: #ed5d7b;
}

#childdetail_page .childprofile_card_progress_item.is-ready .childprofile_card_progress_dot {
    background: #63aeb1;
}

#childdetail_page .clientMaintenanceForm .childprofile_pathway_card .childprofile_card_description {
    min-height: 3em;
    margin: 0;
    color: #536174;
    font-size: 0.76rem;
    font-weight: 520;
    line-height: 1.3;
}

#childdetail_page .childprofile_pathway_grid .childprofile_domain_chips,
#childdetail_page .childprofile_pathway_grid .childprofile_early_result_heading {
    display: none;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance .childprofile_early_result_heading,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_amber_decision:not([hidden])) .childprofile_early_result_heading,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) .childprofile_early_result_heading {
    display: block;
}

#childdetail_page .childprofile_card_state_copy[hidden] {
    display: none;
}

#childdetail_page .childprofile_pathway_card > .childprofile_card_actions {
    width: 100%;
    min-height: 34px;
    margin-top: auto;
}

#childdetail_page .childprofile_pathway_card > .childprofile_card_actions > button {
    flex: 1 1 auto;
}

#childdetail_page .childprofile_early_card.is-amber-result #childprofile_early_actions {
    flex-direction: row;
    align-items: stretch;
    gap: 5px;
}

#childdetail_page .childprofile_early_card.is-amber-result .childprofile_card_topline {
    display: none;
}

#childdetail_page .childprofile_pathway_grid .childprofile_card_topline_placeholder {
    display: none;
    min-height: 0;
    margin: 0;
}

#childdetail_page .childprofile_pathway_grid:has(#childprofile_early_label:not([hidden]))
    .childprofile_card_topline_placeholder {
    display: flex;
    min-height: 22px;
    margin: 0 0 2px;
}

#childdetail_page .childprofile_early_card.is-amber-result #childprofile_early_actions > button {
    min-width: 0;
    min-height: 34px;
    flex: 1 1 0;
    padding: 4px 5px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
}

/* Readability pass for the information users need to scan repeatedly on a
   compact laptop display. Keep structural headings unchanged so the overview
   still fits without displacing the lower sections. */
#childdetail_page .childdetail_summary_meta {
    font-size: 0.82rem;
}

#childdetail_page .childdetail_summary_groups_label,
#childdetail_page .childdetail_summary_tag {
    font-size: 0.78rem;
}

#childdetail_page.childdetail-redesign .childdetail_local_nav button {
    font-size: 0.94rem;
}

#childdetail_page .clientMaintenanceForm .childprofile_section_header p {
    font-size: 0.88rem;
}

#childdetail_page .childprofile_status {
    font-size: 0.74rem;
}

#childdetail_page .childprofile_card_progress_item {
    font-size: 0.78rem;
}

#childdetail_page .clientMaintenanceForm .childprofile_pathway_card .childprofile_card_description,
#childdetail_page .clientMaintenanceForm .childprofile_support_summary_state,
#childdetail_page .childprofile_curriculum_empty {
    font-size: 0.82rem;
}

#childdetail_page .loginSubmit.childprofile_primary_action,
#childdetail_page .childprofile_secondary_action {
    font-size: 0.82rem;
}

/* Expanded Early Language guidance needs more room than the four compact
   pathway cards. Keep this after the shared flex-card rules so age guidance
   and overdue Overviews retain their intended full-width grid. */
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) {
    display: grid;
    min-height: 0;
    grid-column: 1 / -1;
    grid-template-columns: clamp(96px, 9vw, 112px) minmax(0, 1fr) minmax(170px, 0.3fr);
    grid-template-rows: auto;
    align-items: start;
    gap: clamp(11px, 1.25vw, 18px);
    padding: clamp(9px, 1.05vw, 13px);
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_area_icon,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_area_icon {
    width: clamp(96px, 9vw, 112px);
    height: clamp(96px, 9vw, 112px);
    flex-basis: auto;
}

#childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_card_actions,
#childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_card_actions {
    grid-column: 3;
    align-self: start;
}

#childdetail_page .childprofile_support_target_header {
    display: grid;
    min-height: 24px;
    grid-template-columns: 15px minmax(150px, 1fr) minmax(95px, auto) minmax(110px, auto) 10px;
    align-items: center;
    gap: 9px;
    padding: 3px 8px;
    border-bottom: 1px solid #dce5e7;
    background: #f5f8f8;
    color: #667487;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#childdetail_page .childprofile_support_target_row {
    grid-template-columns: 15px minmax(150px, 1fr) minmax(95px, auto) minmax(110px, auto) 10px;
}

@media (max-width: 980px) {
    #childdetail_page .childprofile_pathway_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
    }

    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_area_icon,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_area_icon {
        width: 72px;
        height: 72px;
    }

    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card.is-under-two-guidance > .childprofile_card_actions,
    #childdetail_page .childprofile_pathway_grid > .childprofile_early_card:has(.childprofile_overview_due:not([hidden])) > .childprofile_card_actions {
        grid-column: 1 / -1;
    }

    #childdetail_page .childprofile_support_target_row,
    #childdetail_page .childprofile_support_target_header {
        grid-template-columns: 15px minmax(0, 1fr) 10px;
    }

    #childdetail_page .childprofile_support_target_header > span:nth-child(3),
    #childdetail_page .childprofile_support_target_header > span:nth-child(4) {
        display: none;
    }
}

@media (max-width: 620px) {
    #childdetail_page .childprofile_pathway_grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 781px) {
    #childdetail_page.childdetail-redesign.childdetail-programme-mode #childdetail_child_summary {
        min-height: 54px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    #childdetail_page.childdetail-redesign.childdetail-programme-mode .childdetail_summary_avatar {
        width: 42px;
        height: 42px;
    }

    #childdetail_page.childdetail-redesign.childdetail-programme-mode .childdetail_summary_avatar svg {
        width: 27px;
        height: 27px;
    }

    #childdetail_page.childdetail-redesign.childdetail-programme-mode .childdetail_local_nav {
        min-height: 44px;
    }
}

/* In-app screening report -------------------------------------------------- */
#assessmentreport.assessment-report-page {
    box-sizing: border-box;
    width: min(1180px, 100%);
    max-height: 100%;
    margin: 0 auto;
    padding: 10px 14px 18px;
    overflow-y: auto;
    background: transparent;
    color: var(--ct-ink-strong, #172451);
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 1em;
}

#assessmentreport .assessment-report-page-card {
    box-sizing: border-box;
    min-height: 100%;
    padding: clamp(18px, 2.5vw, 30px);
    border: 1px solid #dbe5e6;
    border-radius: var(--ct-radius-card, 20px);
    background: var(--ct-surface, #fffdf8);
    box-shadow: var(--ct-shadow-panel, 0 14px 36px rgba(19, 48, 56, 0.1));
}

#assessmentreport .assessment-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e1e8e9;
}

#assessmentreport .assessment-report-back,
#assessmentreport .assessment-report-print {
    display: inline-flex;
    min-height: var(--ct-touch-target, 44px);
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: var(--ct-radius-control, 12px);
    background: transparent;
    color: #087d79;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

#assessmentreport .assessment-report-back:hover,
#assessmentreport .assessment-report-back:focus-visible,
#assessmentreport .assessment-report-print:hover,
#assessmentreport .assessment-report-print:focus-visible {
    border-color: #75c3bf;
    background: #eff9f8;
    outline: 3px solid rgba(0, 177, 173, 0.14);
}

#assessmentreport .assessment-report-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

#assessmentreport .assessment-report-print {
    border-color: #b8cecf;
    background: #fff;
    color: #344b5c;
}

#assessmentreport .assessment-report-print svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#assessmentreport.assessment-report-modern .assessment-report-prescreen {
    max-height: none;
    overflow: visible;
    padding: 0;
}

#assessmentreport .assessment-report-title-block {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

#assessmentreport .assessment-report-title-copy {
    min-width: 0;
}

#assessmentreport .clientMaintenanceForm .assessment-report-title-block p,
#assessmentreport .assessment-report-title-block p {
    margin: 3px 0 0;
    color: #667487;
    font-size: 0.82rem;
}

#assessmentreport .assessment-report-title-block .assessment-report-generated {
    margin-top: 5px;
    color: #7a8794;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: normal;
}

#assessmentreport .assessment-report-context {
    color: #008f8c !important;
    font-size: 0.68rem !important;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

#assessmentreport .assessment-report-title-block h1 {
    margin: 3px 0 7px;
    color: var(--ct-ink-strong, #172451);
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    line-height: 1.1;
}

#assessmentreport .assessment-report-subtitle {
    margin: -2px 0 13px !important;
    color: #34495d !important;
    font-size: 1rem !important;
    font-weight: 800;
}

#assessmentreport .assessment-report-title-copy > strong,
#assessmentreport .assessment-report-title-block > strong {
    display: block;
    color: #293d52;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

#assessmentreport .assessment-report-brand {
    width: clamp(148px, 18vw, 220px);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

#assessmentreport .assessment-report-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid #dce5e7;
    border-radius: var(--ct-radius-control, 12px);
    background: #f8faf9;
}

#assessmentreport .assessment-report-meta > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
}

#assessmentreport .assessment-report-meta > span + span {
    border-left: 1px solid #dce5e7;
}

#assessmentreport .assessment-report-meta small {
    color: #6b7888;
    font-size: 0.68rem;
    font-weight: 750;
}

#assessmentreport .assessment-report-meta strong {
    overflow-wrap: anywhere;
    color: #25394d;
    font-size: 0.82rem;
}

#assessmentreport .assessment-report-outcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid #c8dfd5;
    border-left: 5px solid #479a72;
    border-radius: var(--ct-radius-control, 12px);
    background: #f4faf6;
}

#assessmentreport .assessment-report-outcome.is-amber {
    border-color: #ead9aa;
    border-left-color: #c39732;
    background: #fffaf0;
}

#assessmentreport .assessment-report-outcome.is-red {
    border-color: #eccbd2;
    border-left-color: #c65b70;
    background: #fff5f6;
}

#assessmentreport .assessment-report-outcome.is-unavailable {
    border-color: #d8e0e2;
    border-left-color: #7b8a91;
    background: #f7f9f9;
}

#assessmentreport .assessment-report-outcome p,
#assessmentreport .assessment-report-next > p {
    margin: 0 0 3px;
    color: #627180;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#assessmentreport .assessment-report-outcome h2,
#assessmentreport .assessment-report-next h2 {
    margin: 0 0 4px;
    color: #22394a;
    font-size: 1.08rem;
    line-height: 1.2;
}

#assessmentreport .assessment-report-outcome span,
#assessmentreport .assessment-report-next > span {
    color: #566576;
    font-size: 0.78rem;
    line-height: 1.4;
}

#assessmentreport #assessment_report_skills_total {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #315148;
    font-size: 0.75rem;
    white-space: nowrap;
}

#assessmentreport .assessment-report-results-section {
    margin: 0 0 20px;
}

#assessmentreport .assessment-report-section-heading {
    margin-bottom: 10px;
}

#assessmentreport .assessment-report-section-heading h2,
#assessmentreport .assessment-report-progress h2 {
    margin: 0;
    color: #24394e;
    font-size: 1.05rem;
}

#assessmentreport .assessment-report-section-heading p {
    margin: 3px 0 0;
    color: #6b7888;
    font-size: 0.75rem;
}

#assessmentreport .assessment-report-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#assessmentreport .assessment-report-area-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dce5e7;
    border-radius: var(--ct-radius-control, 12px);
    background: #fff;
}

#assessmentreport .assessment-report-area-card.is-outcome-amber {
    border-color: #d8bd77;
    background: #fffdf7;
    box-shadow: inset 3px 0 0 #d9a936;
}

#assessmentreport .assessment-report-area-card.is-outcome-red {
    border-color: #d7a6af;
    background: #fffafb;
    box-shadow: inset 3px 0 0 #bf6375;
}

#assessmentreport .assessment-report-area-card.is-expanded {
    grid-column: 1 / -1;
}

#assessmentreport .assessment-report-area-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

#assessmentreport .assessment-report-area-heading h3 {
    margin: 0;
    color: #263a4f;
    font-size: 0.92rem;
}

#assessmentreport .assessment-report-area-status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eff7f2;
    color: #2b704c;
    font-size: 0.6rem;
    font-weight: 820;
    text-align: center;
}

#assessmentreport .assessment-report-area-status.is-review {
    background: #fff6dc;
    color: #735817;
}

#assessmentreport .assessment-report-area-status.is-amber {
    background: #fff3d3;
    color: #735817;
}

#assessmentreport .assessment-report-area-status.is-assess {
    background: #fff0f2;
    color: #93384b;
}

#assessmentreport .assessment-report-area-status.is-red {
    background: #fbecef;
    color: #8d3548;
}

#assessmentreport .assessment-report-area-status.is-incomplete {
    background: #f0f3f4;
    color: #687680;
}

#assessmentreport .assessment-report-area-score {
    display: block;
    margin-top: 9px;
    color: #435467;
    font-size: 0.76rem;
}

#assessmentreport .assessment-report-area-context {
    display: block;
    margin-top: 4px;
    color: #647384;
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1.35;
}

#assessmentreport .assessment-report-area-progress {
    display: block;
    height: 6px;
    margin: 8px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eeee;
}

#assessmentreport .assessment-report-area-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #00aaa5;
}

#assessmentreport .assessment-report-area-card.is-outcome-amber .assessment-report-area-progress i {
    background: #d6a32c;
}

#assessmentreport .assessment-report-area-card.is-outcome-red .assessment-report-area-progress i {
    background: #b9566b;
}

#assessmentreport .assessment-report-area-contributors {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e3e7e7;
}

#assessmentreport .assessment-report-area-contributors > strong {
    display: block;
    color: #596979;
    font-size: 0.65rem;
    line-height: 1.3;
}

#assessmentreport .assessment-report-area-contributors > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

#assessmentreport .assessment-report-area-contributors span {
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 780;
}

#assessmentreport .assessment-report-area-contributors span.is-amber {
    border-color: #e4cc8d;
    background: #fff7df;
    color: #735817;
}

#assessmentreport .assessment-report-area-contributors span.is-red {
    border-color: #e1b6bf;
    background: #fdf0f2;
    color: #8d3548;
}

#assessmentreport .assessment-report-area-toggle {
    margin: 0;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #087d79;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

#assessmentreport .assessment-report-area-toggle:hover,
#assessmentreport .assessment-report-area-toggle:focus-visible {
    text-decoration: underline;
    outline: 2px solid rgba(0, 177, 173, 0.2);
    outline-offset: 2px;
}

#assessmentreport .assessment-report-area-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3eaeb;
}

#assessmentreport .assessment-report-area-detail h4 {
    margin: 10px 0 4px;
    color: #4a5d6d;
    font-size: 0.75rem;
}

#assessmentreport .assessment-report-answer-table {
    border: 1px solid #e0e7e8;
    border-radius: 9px;
    background: #fbfcfb;
}

#assessmentreport .assessment-report-answer-heading,
#assessmentreport .assessment-report-answer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(135px, 0.45fr);
    gap: 12px;
    padding: 7px 9px;
}

#assessmentreport .assessment-report-answer-heading {
    color: #687785;
    font-size: 0.66rem;
    font-weight: 800;
}

#assessmentreport .assessment-report-answer-row {
    border-top: 1px solid #e5ebec;
    color: #465769;
    font-size: 0.72rem;
}

#assessmentreport .assessment-report-answer-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    line-height: 1.35;
}

#assessmentreport .assessment-report-answer-result i {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #7f8c91;
    color: #fff;
    font-size: 0.65rem;
    font-style: normal;
    flex: 0 0 18px;
}

#assessmentreport .assessment-report-answer-result > span {
    min-width: 0;
}

#assessmentreport .assessment-report-answer-result.is-correct {
    color: #286846;
}

#assessmentreport .assessment-report-answer-result.is-correct i {
    background: #4b9870;
}

#assessmentreport .assessment-report-answer-result.is-incorrect {
    color: #8d4050;
}

#assessmentreport .assessment-report-answer-result.is-incorrect i {
    background: #b66777;
}

#assessmentreport .assessment-report-next,
#assessmentreport .assessment-report-progress {
    padding: 14px 16px;
    border: 1px solid #dce5e7;
    border-radius: 12px;
    background: #f7faf9;
}

#assessmentreport .assessment-report-progress {
    margin-bottom: 12px;
}

#assessmentreport .assessment-report-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ct-space-4, 16px);
    margin-bottom: var(--ct-space-3, 12px);
}

#assessmentreport .assessment-report-progress-heading p {
    margin: 0 0 3px;
    color: #627180;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#assessmentreport .assessment-report-progress-heading > span {
    color: var(--ct-muted, #5e7482);
    font-size: 0.7rem;
    white-space: nowrap;
}

#assessmentreport #assessment_report_progress_summary {
    display: block;
    color: var(--ct-ink, #203548);
    font-size: 0.84rem;
    line-height: 1.4;
}

#assessmentreport .assessment-report-progress-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

#assessmentreport .assessment-report-progress-areas:empty {
    display: none;
}

#assessmentreport .assessment-report-progress-areas span {
    padding: 4px 8px;
    border: 1px solid #b9d8d5;
    border-radius: 999px;
    background: #fff;
    color: #286a67;
    font-size: 0.7rem;
    font-weight: 800;
}

#assessmentreport .assessment-report-progress-toggle {
    margin: 10px 0 0;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #087d79;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

#assessmentreport .assessment-report-progress-toggle:hover,
#assessmentreport .assessment-report-progress-toggle:focus-visible {
    text-decoration: underline;
    outline: 2px solid rgba(0, 177, 173, 0.2);
    outline-offset: 2px;
}

#assessmentreport .assessment-report-progress-detail {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #dce5e7;
    color: #566576;
    font-size: 0.74rem;
    line-height: 1.45;
}

#assessmentreport .assessment-report-progress-detail p {
    margin: 0;
}

#assessmentreport .assessment-report-progress-detail p + p {
    margin-top: 4px;
}

#assessmentreport .assessment-report-next-action {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    margin: 11px 0 0;
    padding: 6px 12px;
    border: 1px solid #72c2be;
    border-radius: 9px;
    background: #fff;
    color: #087f7c;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

#assessmentreport .assessment-report-next-action:hover,
#assessmentreport .assessment-report-next-action:focus-visible {
    border-color: #008f8c;
    background: #f0faf9;
    outline: 3px solid rgba(0, 177, 173, 0.14);
}

#assessmentreport .assessment-report-next-action[hidden] {
    display: none;
}

#assessmentreport #assessment_report_next_step_list ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

#assessmentreport #assessment_report_next_step_list li {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: #425567;
    font-size: 0.7rem;
    font-weight: 750;
}

#assessmentreport .assessment-report-next-step-group {
    margin-top: 10px;
}

#assessmentreport .assessment-report-next-step-group > strong {
    color: #526476;
    font-size: 0.7rem;
}

#assessmentreport .assessment-report-next-step-group.is-amber li {
    border: 1px solid #e4cc8d;
    background: #fffaf0;
    color: #735817;
}

#assessmentreport .assessment-report-next-step-group.is-red li {
    border: 1px solid #e1b6bf;
    background: #fff7f8;
    color: #8d3548;
}

#assessmentreport .assessment-report-load-error {
    padding: 18px;
    border: 1px solid #e4c9cf;
    border-radius: 12px;
    background: #fff5f6;
    color: #804252;
}

#assessmentreport .detailed-screener-report {
    min-width: 0;
}

#assessmentreport .detailed-screener-name {
    display: block;
    margin-top: 2px;
    color: var(--ct-muted, #5e7482);
    font-size: 0.76rem;
    font-weight: 750;
}

#assessmentreport .assessment-report-narrative-section {
    margin-bottom: var(--ct-space-5, 20px);
    padding: var(--ct-space-4, 16px);
    border: 1px solid var(--ct-border, #dce5e7);
    border-radius: var(--ct-radius-control, 12px);
    background: var(--ct-surface, #fff);
}

#assessmentreport .assessment-report-narrative-section > h2 {
    margin: 0 0 6px;
    color: var(--ct-ink-strong, #172451);
    font-size: 1rem;
}

#assessmentreport .assessment-report-narrative-section > p {
    margin: 0;
    color: var(--ct-muted, #536779);
    font-size: 0.78rem;
    line-height: 1.55;
}

#assessmentreport .detailed-screener-reason {
    border-left: 4px solid var(--ct-brand-teal, #00aaa5);
    background: var(--ct-brand-teal-soft, #f0f8f7);
}

#assessmentreport .detailed-screener-outcome-copy {
    margin-bottom: 12px !important;
}

#assessmentreport .detailed-screener-narrative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

#assessmentreport .detailed-screener-narrative-panel {
    padding: 11px 12px;
    border: 1px solid #dce5e7;
    border-radius: 9px;
    background: #f8faf9;
}

#assessmentreport .detailed-screener-narrative-panel > .detailed-screener-narrative-intro {
    margin-bottom: 9px;
}

#assessmentreport .detailed-screener-narrative-panel.is-established {
    border-color: #b9deca;
    background: #f2faf6;
}

#assessmentreport .detailed-screener-narrative-panel.is-support {
    border-color: #e5c4a5;
    background: #fff8f1;
}

#assessmentreport .detailed-screener-narrative-panel ul {
    margin: 0;
    padding-left: 18px;
    color: #536779;
    font-size: 0.74rem;
    line-height: 1.45;
}

#assessmentreport .detailed-screener-narrative-panel.is-established ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    column-gap: 24px;
    row-gap: 4px;
}

#assessmentreport .detailed-screener-demonstrated-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 9px 18px;
}

#assessmentreport .detailed-screener-demonstrated-group {
    min-width: 0;
}

#assessmentreport .detailed-screener-demonstrated-group h3 {
    margin: 0 0 3px;
    color: var(--ct-ink, #263b50);
    font-size: 0.78rem;
}

#assessmentreport .detailed-screener-demonstrated-group p {
    margin: 0;
    color: var(--ct-muted, #536779);
    font-size: 0.74rem;
    line-height: 1.45;
}

#assessmentreport .detailed-screener-next-step {
    border-color: #b9d9df;
    background: #f4fafb;
}

#assessmentreport .detailed-screener-next-step h3 {
    margin: 1px 0 5px;
    color: var(--ct-ink, #263b50);
    font-size: 0.82rem;
}

#assessmentreport .detailed-screener-meta em {
    color: var(--ct-muted, #5e7482);
    font-size: 0.7rem;
    font-style: normal;
    line-height: 1.3;
}

#assessmentreport .detailed-screener-summary {
    margin-bottom: var(--ct-space-5, 20px);
}

#assessmentreport .detailed-screener-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ct-space-3, 12px);
}

#assessmentreport .detailed-screener-summary-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: var(--ct-space-4, 16px);
    border: 1px solid var(--ct-border, #dce5e7);
    border-radius: var(--ct-radius-control, 12px);
    background: var(--ct-surface-soft, #f8faf9);
}

#assessmentreport .detailed-screener-summary-card > span:first-child {
    color: var(--ct-muted, #5e7482);
    font-size: 0.68rem;
    font-weight: 750;
}

#assessmentreport .detailed-screener-summary-card strong {
    color: var(--ct-ink-strong, #172451);
    font-size: 1rem;
}

#assessmentreport .detailed-screener-summary-card small {
    color: var(--ct-muted, #5e7482);
    font-size: 0.7rem;
}

#assessmentreport .detailed-screener-summary-progress,
#assessmentreport .detailed-screener-area-progress {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ct-surface-muted, #e7eeee);
}

#assessmentreport .detailed-screener-summary-progress {
    margin-top: 7px;
}

#assessmentreport .detailed-screener-summary-progress i,
#assessmentreport .detailed-screener-area-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ct-brand-teal, #00aaa5);
}

#assessmentreport .detailed-screener-results > .assessment-report-section-heading {
    align-items: flex-start;
}

#assessmentreport .detailed-screener-tabs {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--ct-border, #d7e2e4);
    border-radius: var(--ct-radius-control, 12px);
    background: var(--ct-surface-soft, #f2f6f6);
}

#assessmentreport .detailed-screener-tab {
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ct-muted, #536779);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

#assessmentreport .detailed-screener-tab[aria-selected="true"] {
    border-color: var(--ct-border, #d2dfe1);
    background: var(--ct-surface, #fff);
    color: var(--ct-brand-teal-dark, #087d79);
    box-shadow: var(--ct-shadow-control, 0 2px 6px rgba(19, 48, 56, 0.08));
}

#assessmentreport .detailed-screener-tab:hover,
#assessmentreport .detailed-screener-tab:focus-visible {
    color: var(--ct-brand-teal-dark, #087d79);
    outline: 3px solid rgba(0, 177, 173, 0.16);
}

#assessmentreport .detailed-screener-results-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
    gap: var(--ct-space-4, 16px);
    align-items: start;
}

#assessmentreport .detailed-screener-area-selector,
#assessmentreport .detailed-screener-detail {
    min-width: 0;
    border: 1px solid var(--ct-border, #dce5e7);
    border-radius: var(--ct-radius-control, 12px);
    background: var(--ct-surface, #fff);
}

#assessmentreport .detailed-screener-area-selector {
    overflow: hidden;
}

#assessmentreport .detailed-screener-area-selector > h2,
#assessmentreport .detailed-screener-area-selector > p {
    margin-right: var(--ct-space-4, 16px);
    margin-left: var(--ct-space-4, 16px);
}

#assessmentreport .detailed-screener-area-selector > h2 {
    margin-top: var(--ct-space-4, 16px);
    margin-bottom: 3px;
    color: var(--ct-ink-strong, #172451);
    font-size: 0.95rem;
}

#assessmentreport .detailed-screener-area-selector > p {
    margin-top: 0;
    margin-bottom: 11px;
    color: var(--ct-muted, #607285);
    font-size: 0.72rem;
}

#assessmentreport .detailed-screener-area-list {
    border-top: 1px solid var(--ct-border, #e1e8e9);
}

#assessmentreport .detailed-screener-area-button {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto 66px 14px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 13px;
    border: 0;
    border-bottom: 1px solid var(--ct-border, #e4eaeb);
    background: var(--ct-surface, #fff);
    color: var(--ct-ink, #263b50);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#assessmentreport .detailed-screener-area-button:last-child {
    border-bottom: 0;
}

#assessmentreport .detailed-screener-area-button:hover,
#assessmentreport .detailed-screener-area-button:focus-visible,
#assessmentreport .detailed-screener-area-button.is-selected {
    background: var(--ct-brand-teal-soft, #eff9f8);
}

#assessmentreport .detailed-screener-area-button:focus-visible {
    outline: 3px solid rgba(0, 177, 173, 0.18);
    outline-offset: -3px;
}

#assessmentreport .detailed-screener-area-button.is-selected {
    box-shadow: inset 3px 0 0 var(--ct-brand-teal, #00aaa5);
}

#assessmentreport .detailed-screener-area-name {
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#assessmentreport .detailed-screener-area-score {
    color: var(--ct-muted, #536779);
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

#assessmentreport .detailed-screener-area-score.is-not-assessed,
#assessmentreport .detailed-screener-detail-score.is-not-assessed {
    color: var(--ct-muted, #71808c);
    font-weight: 700;
}

#assessmentreport .detailed-screener-area-chevron {
    color: var(--ct-muted, #7b8b95);
    font-size: 1.25rem;
    line-height: 1;
}

#assessmentreport .detailed-screener-detail {
    padding: clamp(14px, 2vw, 20px);
}

#assessmentreport .detailed-screener-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ct-space-4, 16px);
}

#assessmentreport .detailed-screener-detail-heading p {
    margin: 0 0 2px;
    color: var(--ct-muted, #607285);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#assessmentreport .detailed-screener-detail-heading h3 {
    margin: 0;
    color: var(--ct-ink-strong, #172451);
    font-size: 1.15rem;
}

#assessmentreport .detailed-screener-detail-score {
    padding: 5px 9px;
    border: 1px solid var(--ct-border, #d7e2e4);
    border-radius: 999px;
    background: var(--ct-surface-soft, #f5f8f8);
    color: var(--ct-ink, #31485a);
    font-size: 0.72rem;
    white-space: nowrap;
}

#assessmentreport .detailed-screener-info-panel {
    display: grid;
    gap: 3px;
    margin: var(--ct-space-4, 16px) 0;
    padding: 11px 13px;
    border-left: 3px solid var(--ct-brand-teal, #00aaa5);
    border-radius: 0 9px 9px 0;
    background: var(--ct-brand-teal-soft, #f0f8f7);
}

#assessmentreport .detailed-screener-info-panel strong {
    color: var(--ct-ink, #263b50);
    font-size: 0.76rem;
}

#assessmentreport .detailed-screener-info-panel span {
    color: var(--ct-muted, #566a7b);
    font-size: 0.7rem;
    line-height: 1.42;
}

#assessmentreport .detailed-screener-items h4,
#assessmentreport .detailed-screener-about h4 {
    margin: 0 0 8px;
    color: var(--ct-ink, #263b50);
    font-size: 0.8rem;
}

#assessmentreport .detailed-screener-item-list {
    overflow: hidden;
    border: 1px solid var(--ct-border, #dce5e7);
    border-radius: 9px;
    background: var(--ct-surface, #fff);
}

#assessmentreport .detailed-screener-item-heading,
#assessmentreport .detailed-screener-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.38fr);
    align-items: center;
    gap: var(--ct-space-3, 12px);
    padding: 8px 10px;
}

#assessmentreport .detailed-screener-item-heading {
    background: var(--ct-surface-soft, #f1f5f5);
    color: var(--ct-muted, #637483);
    font-size: 0.66rem;
    font-weight: 800;
}

#assessmentreport .detailed-screener-item-row-wrap + .detailed-screener-item-row-wrap {
    border-top: 1px solid var(--ct-border, #e5ebec);
}

#assessmentreport .detailed-screener-item-row {
    color: var(--ct-ink, #354b5d);
    font-size: 0.72rem;
    line-height: 1.4;
}

#assessmentreport .detailed-screener-show-all {
    margin-top: 9px;
}

#assessmentreport .detailed-screener-about {
    margin-top: var(--ct-space-4, 16px);
    padding-top: var(--ct-space-4, 16px);
    border-top: 1px solid var(--ct-border, #e0e7e8);
}

#assessmentreport .detailed-screener-about p,
#assessmentreport .detailed-screener-empty {
    margin: 0;
    color: var(--ct-muted, #596d7e);
    font-size: 0.72rem;
    line-height: 1.45;
}

#assessmentreport .detailed-screener-print-all {
    display: none;
}

@media (max-width: 820px) {
    #assessmentreport .assessment-report-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #assessmentreport .assessment-report-meta > span:nth-child(3) {
        border-top: 1px solid #dce5e7;
        border-left: 0;
    }

    #assessmentreport .assessment-report-meta > span:nth-child(4) {
        border-top: 1px solid #dce5e7;
    }

    #assessmentreport .detailed-screener-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #assessmentreport .detailed-screener-summary-card:first-child {
        grid-column: 1 / -1;
    }

    #assessmentreport .detailed-screener-results > .assessment-report-section-heading,
    #assessmentreport .detailed-screener-results-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #assessmentreport .detailed-screener-results > .assessment-report-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    #assessmentreport .detailed-screener-tabs {
        align-self: flex-start;
    }
}

/* Child-level support-plan overview. Individual plans retain the denser
   intervention-plan presentation in interventionPlan.css. */
#childdetail_page #childdetail_screen_content.support-plan-overview-mode {
    width: 100%;
    padding: 0;
    background: #fff;
}

#childdetail_page .support-plan-overview {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(18px, 2.4vw, 30px);
    color: #203548;
}

#childdetail_page .support-plan-overview__header {
    margin: 0 0 16px;
}

#childdetail_page .support-plan-overview__header h1 {
    margin: 0;
    color: #172451;
    font-size: clamp(1.6em, 2.4vw, 2.25em);
}

#childdetail_page .clientMaintenanceForm .support-plan-overview__header > p:last-child {
    max-width: 760px;
    margin: 5px 0 0;
    color: #59677a;
    font-size: 0.94em;
    line-height: 1.55;
}

#childdetail_page .support-plan-overview__content,
#childdetail_page .support-plan-overview__section {
    display: grid;
    gap: 10px;
}

#childdetail_page .support-plan-overview__content {
    gap: 22px;
}

#childdetail_page .support-plan-overview__section > h2 {
    margin: 0;
    color: #26364b;
    font-size: 1.18em;
}

#childdetail_page .support-plan-overview__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #d8e3e6;
    border-radius: 14px;
    background: #fff;
}

#childdetail_page .support-plan-overview__card--current {
    padding: 17px 18px;
    border-color: #78cbc7;
    background: linear-gradient(120deg, #eefafa 0%, #f8fbfd 100%);
    box-shadow: 0 5px 14px rgba(0, 143, 140, 0.09);
}

#childdetail_page .support-plan-overview__card-main {
    min-width: 0;
}

#childdetail_page .support-plan-overview__status {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
}

#childdetail_page .support-plan-overview__status--current {
    background: #dff4f2;
    color: #087f7c;
}

#childdetail_page .support-plan-overview__status--completed {
    background: #e8f5ed;
    color: #267046;
}

#childdetail_page .support-plan-overview__card h3 {
    margin: 0;
    color: #172451;
    font-size: 0.95em;
}

#childdetail_page .support-plan-overview__metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 6px;
    color: #526777;
    font-size: 0.79em;
}

#childdetail_page .support-plan-overview__metadata span + span::before {
    margin-right: 14px;
    color: #9badb5;
    content: '·';
}

#childdetail_page .support-plan-overview__progress {
    width: min(100%, 460px);
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e8e9;
}

#childdetail_page .support-plan-overview__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #00aaa5;
}

#childdetail_page .support-plan-overview__previous-list {
    display: grid;
    gap: 8px;
}

#childdetail_page .support-plan-overview__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

#childdetail_page .support-plan-overview__actions .childprofile_primary_action,
#childdetail_page .support-plan-overview__actions .childprofile_secondary_action {
    min-width: 116px;
}

#childdetail_page .support-plan-overview__actions--history {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
}

#childdetail_page .support-plan-overview__actions--history
.support-plan-overview__history-link {
    width: auto;
    font-size: 0.79em;
    text-align: left;
    white-space: nowrap;
}

#childdetail_page .support-plan-overview__state {
    display: grid;
    min-height: 150px;
    padding: 24px;
    place-items: center;
    align-content: center;
    border: 1px solid #d5e3e6;
    border-radius: 14px;
    background: #fff;
    color: #617583;
    text-align: center;
}

#childdetail_page .support-plan-overview__state h2,
#childdetail_page .support-plan-overview__state p {
    margin: 0;
}

#childdetail_page .support-plan-overview__state h2 {
    color: #203548;
    font-size: 1rem;
}

#childdetail_page .clientMaintenanceForm .support-plan-overview__state p {
    margin-top: 5px;
    font-size: 0.8rem;
}

#childdetail_page .support-plan-overview__state .childprofile_secondary_action {
    margin-top: 12px;
}

#childdetail_page .support-plan-overview__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #cce5e4;
    border-top-color: #008f8c;
    border-radius: 50%;
    animation: support-plan-overview-spin 700ms linear infinite;
}

@keyframes support-plan-overview-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    #childdetail_page .support-plan-overview {
        padding: 18px 12px 28px;
    }

    #childdetail_page .support-plan-overview__card {
        grid-template-columns: 1fr;
    }

    #childdetail_page .support-plan-overview__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    #assessmentreport.assessment-report-page {
        padding: 6px 8px 14px;
    }

    #assessmentreport .assessment-report-page-card {
        padding: 15px;
        border-radius: 14px;
    }

    #assessmentreport .assessment-report-toolbar,
    #assessmentreport .assessment-report-outcome {
        align-items: flex-start;
        flex-direction: column;
    }

    #assessmentreport .assessment-report-progress-heading {
        flex-direction: column;
        gap: 4px;
    }

    #assessmentreport .assessment-report-progress-heading > span {
        white-space: normal;
    }

    #assessmentreport .assessment-report-actions,
    #assessmentreport .assessment-report-print {
        width: 100%;
    }

    #assessmentreport .assessment-report-meta,
    #assessmentreport .assessment-report-area-grid,
    #assessmentreport .detailed-screener-summary-grid {
        grid-template-columns: 1fr;
    }

    #assessmentreport .detailed-screener-summary-card:first-child {
        grid-column: auto;
    }

    #assessmentreport .detailed-screener-tabs {
        display: grid;
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr);
    }

    #assessmentreport .detailed-screener-tab {
        width: 100%;
        text-align: left;
    }

    #assessmentreport .detailed-screener-area-button {
        grid-template-columns: minmax(0, 1fr) auto 14px;
    }

    #assessmentreport .detailed-screener-area-progress {
        display: none;
    }

    #assessmentreport .detailed-screener-detail-heading {
        flex-direction: column;
        gap: 8px;
    }

    #assessmentreport .detailed-screener-item-heading {
        display: none;
    }

    #assessmentreport .detailed-screener-item-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #assessmentreport .assessment-report-meta > span + span {
        border-top: 1px solid #dce5e7;
        border-left: 0;
    }

    #assessmentreport #assessment_report_skills_total {
        white-space: normal;
    }

    #assessmentreport .assessment-report-answer-heading {
        display: none;
    }

    #assessmentreport .assessment-report-answer-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    #assessmentreport .assessment-report-title-block {
        flex-direction: column;
        gap: 12px;
    }

    #assessmentreport .assessment-report-brand {
        width: 124px;
        align-self: flex-end;
    }
}

@media print {
    body,
    #allaround,
    .centre-column,
    #shared_body {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .left-column,
    .right-column,
    .global-back-button,
    .page_title,
    #clientMaintenance,
    #assessmentreport .assessment-report-toolbar,
    #assessmentreport .assessment-report-area-toggle,
    #assessmentreport .assessment_incomplete {
        display: none !important;
    }

    #assessmentreport.assessment-report-page {
        width: 100% !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
        font-size: 10pt;
    }

    #assessmentreport .assessment-report-page-card {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #assessmentreport .assessment-report-area-card,
    #assessmentreport .assessment-report-outcome,
    #assessmentreport .assessment-report-next,
    #assessmentreport .assessment-report-progress {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    #assessmentreport .assessment-report-area-detail[hidden] {
        display: none !important;
    }
}

/* Assessment response mode is a short full-page step within the existing
   Child Profile shell. It reuses the Early Language card and action language. */
#childdetail_page #childdetail_screen_content.childdetail_response_mode_page_mode {
    display: flex;
    padding: clamp(18px, 3vh, 30px) clamp(22px, 4vw, 52px);
    overflow-y: auto;
    background: #fff;
}

#childdetail_page .childdetail_response_mode_page {
    display: flex;
    width: min(100%, 900px);
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    color: #172451;
}

#childdetail_page .childdetail_response_mode_header {
    margin: 0 auto clamp(10px, 1.8vh, 16px);
    text-align: center;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_eyebrow {
    margin: 0 0 6px;
    color: #008f8c;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_header h2 {
    margin: 0 0 6px;
    color: #172451;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.15;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_header > p:last-child {
    margin: 0;
    color: #5c697b;
    font-size: clamp(0.88rem, 1.25vw, 1rem);
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_context {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: center;
    align-self: center;
    margin: clamp(10px, 1.5vh, 14px) auto 0;
    padding: 10px 14px;
    border-left: 4px solid #00aaa5;
    border-radius: 10px;
    background: #edf7f6;
    color: #536278;
    font-size: clamp(0.82rem, 1.05vw, 0.94rem);
    line-height: 1.4;
    box-sizing: border-box;
}

#childdetail_page .childdetail_response_mode_context[hidden] {
    display: none !important;
}

#childdetail_page .childdetail_visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#childdetail_page .childdetail_response_mode_fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

#childdetail_page .childdetail_response_mode_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 20px);
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_card {
    display: grid;
    min-width: 0;
    min-height: clamp(112px, 17vh, 138px);
    grid-template-columns: 22px clamp(58px, 6vw, 72px) minmax(0, 1fr);
    gap: clamp(9px, 1vw, 13px);
    align-items: center;
    margin: 0;
    padding: clamp(12px, 1.5vw, 17px);
    border: 1px solid #d7e2e4;
    border-radius: 15px;
    background: #fff;
    color: #172451;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-style: normal;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(23, 54, 62, 0.045);
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_card:hover {
    border-color: #72c5c1;
    box-shadow: 0 5px 14px rgba(0, 143, 140, 0.08);
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_card.is-selected {
    border-color: #00aaa5;
    background: #f0faf9;
    box-shadow: inset 0 0 0 1px #00aaa5, 0 5px 14px rgba(0, 143, 140, 0.08);
}

#childdetail_page .childdetail_response_mode_card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

#childdetail_page .childdetail_response_mode_radio {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 2px solid #b9c8cc;
    border-radius: 50%;
    background: #fff;
}

#childdetail_page .is-selected .childdetail_response_mode_radio {
    border-color: #00aaa5;
}

#childdetail_page .is-selected .childdetail_response_mode_radio::after {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #00aaa5;
    content: '';
}

#childdetail_page .childdetail_response_mode_card:focus-within {
    outline: 3px solid rgba(0, 170, 165, 0.22);
    outline-offset: 3px;
}

#childdetail_page .childdetail_response_mode_symbol {
    display: flex;
    width: clamp(58px, 6vw, 72px);
    height: clamp(58px, 6vw, 72px);
    align-items: center;
    justify-content: center;
}

#childdetail_page .childdetail_response_mode_symbol img,
#childdetail_page .childdetail_response_mode_symbol svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#childdetail_page .childdetail_response_mode_symbol_spoken > path,
#childdetail_page .childdetail_response_mode_symbol_point > circle {
    fill: #008f8c;
}

#childdetail_page .childdetail_response_mode_symbol_spoken > circle {
    fill: #fff;
}

#childdetail_page .childdetail_response_mode_point_choice {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
}

#childdetail_page .childdetail_response_mode_point_choice_selected {
    fill: #fff;
}

#childdetail_page .childdetail_response_mode_point_hand {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.5;
}

#childdetail_page .childdetail_response_mode_card_copy,
#childdetail_page .childdetail_response_mode_title_row {
    display: flex;
    min-width: 0;
}

#childdetail_page .childdetail_response_mode_card_copy {
    flex-direction: column;
    gap: 5px;
}

#childdetail_page .childdetail_response_mode_title_row {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

#childdetail_page .childdetail_response_mode_title_row strong {
    color: #172451;
    font-size: clamp(1.08rem, 1.55vw, 1.32rem);
    line-height: 1.15;
}

#childdetail_page .childdetail_response_mode_title_row > span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #d9f2ef;
    color: #007d79;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#childdetail_page .childdetail_response_mode_card_copy small {
    color: #5c697b;
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    font-style: normal;
    line-height: 1.45;
}

#childdetail_page .childdetail_response_choice_count {
    margin: 10px 0 0;
    padding: 10px 13px 12px;
    border: 1px solid rgba(0, 128, 125, .22);
    border-radius: 13px;
    background: var(--ct-surface, #f8f6f0);
    box-shadow: 0 3px 10px rgba(23, 54, 62, .05);
}

#childdetail_page .childdetail_response_choice_count[hidden] {
    display: none !important;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_choice_count h3 {
    margin: 0;
    padding: 0;
    color: #172451;
    font-size: .98rem;
    font-weight: 850;
    line-height: 1.2;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_choice_count > p {
    margin: 4px 0 9px;
    color: #5c697b;
    font-size: .8rem;
    line-height: 1.35;
}

#childdetail_page .childdetail_response_choice_count_options {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 104px));
    gap: 9px;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_choice_count_options label {
    display: block;
    margin: 0;
    cursor: pointer;
}

#childdetail_page .childdetail_response_choice_count_options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

#childdetail_page .childdetail_response_choice_count_options label > span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #cddadb;
    border-radius: 10px;
    background: #fffdf8;
    color: #455467;
    box-sizing: border-box;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

#childdetail_page .childdetail_response_choice_count_options strong {
    color: #172451;
    font-size: 1.2rem;
    line-height: 1;
}

#childdetail_page .childdetail_response_choice_count_options small {
    color: #647282;
    font-size: .68rem;
    font-style: normal;
    font-weight: 750;
}

#childdetail_page #childdetail_response_choice_default[hidden] {
    display: none;
}

#childdetail_page .childdetail_response_choice_count_options input:checked + span {
    border-color: var(--ct-brand-teal, #00b1ad);
    background: #eaf8f6;
    box-shadow: inset 0 0 0 1px var(--ct-brand-teal, #00b1ad);
}

#childdetail_page .childdetail_response_choice_count_options input:focus-visible + span {
    outline: 3px solid rgba(0, 134, 205, .3);
    outline-offset: 2px;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_notice,
#childdetail_page .clientMaintenanceForm .childdetail_response_mode_warning {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 0;
    padding: 9px 12px;
    border: 1px solid #dce5e7;
    border-radius: 9px;
    background: #f7f9f9;
    color: #596779;
    font-size: 0.75rem;
    line-height: 1.35;
}

#childdetail_page .childdetail_response_mode_notice > span:first-child {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border: 1.5px solid #657486;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 850;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_warning {
    border-color: #ead18d;
    background: #fff8df;
    color: #765913;
}

#childdetail_page .clientMaintenanceForm .childdetail_response_mode_warning[hidden] {
    display: none;
}

#childdetail_page .childdetail_response_mode_actions {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(11px, 1.8vh, 17px);
}

#childdetail_page .loginSubmit.childdetail_response_mode_continue {
    display: inline-flex;
    min-width: 220px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 9px 18px;
    border: 1px solid #008f8c;
    border-radius: 10px;
    background: #00aaa5;
    color: #fff;
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 4px 9px rgba(0, 143, 140, 0.17);
}

#childdetail_page .loginSubmit.childdetail_response_mode_continue:hover,
#childdetail_page .loginSubmit.childdetail_response_mode_continue:focus-visible {
    background: #008f8c;
}

#childdetail_page .loginSubmit.childdetail_response_mode_continue:disabled {
    border-color: #b7c5c7;
    background: #d8e0e1;
    color: #6b777b;
    box-shadow: none;
    cursor: not-allowed;
}

/* The screening-setup step must present its primary action immediately on the
   landscape screens used for screening. Reduce surplus vertical card space,
   rather than making staff scroll to discover Continue. */
@media (min-width: 721px) and (max-height: 820px) {
    #childdetail_page #childdetail_screen_content.childdetail_response_mode_page_mode {
        padding: 10px clamp(22px, 3vw, 40px) 12px;
        overflow-y: auto;
    }

    #childdetail_page .childdetail_response_mode_page {
        justify-content: flex-start;
    }

    #childdetail_page .childdetail_response_mode_header {
        margin-bottom: 10px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_response_mode_card {
        min-height: 108px;
        grid-template-columns: 22px 62px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 15px;
    }

    #childdetail_page .childdetail_response_mode_symbol {
        width: 62px;
        height: 62px;
    }

    #childdetail_page .childdetail_response_choice_count {
        margin-top: 9px;
        padding: 9px 12px 10px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_response_choice_count > p {
        margin-bottom: 7px;
    }

    #childdetail_page .childdetail_response_choice_count_options label > span {
        min-height: 42px;
    }

    #childdetail_page .clientMaintenanceForm .childdetail_response_mode_notice,
    #childdetail_page .clientMaintenanceForm .childdetail_response_mode_warning {
        margin-top: 9px;
        padding-block: 7px;
    }

    #childdetail_page .childdetail_response_mode_actions {
        margin-top: 9px;
    }
}

@media (max-width: 720px) {
    #childdetail_page .childdetail_response_mode_grid {
        grid-template-columns: 1fr;
    }

    #childdetail_page .childdetail_response_mode_page {
        justify-content: flex-start;
    }

    #childdetail_page .childdetail_response_choice_count_options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #childdetail_page .childdetail_response_mode_actions,
    #childdetail_page .loginSubmit.childdetail_response_mode_continue {
        width: 100%;
    }
}
