#childdetail_page .intervention-plan {
    --intervention-ink: #203548;
    --intervention-muted: #617583;
    --intervention-border: #b8cbd3;
    --intervention-panel: #dcecf1;
    --intervention-card: #f6fbfc;
    display: flex;
    width: calc(100% - 1vw);
    box-sizing: border-box;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0.5vw 1.5rem;
    color: var(--intervention-ink);
}

#childdetail_page .clientMaintenanceForm div.intervention-plan__intro,
#childdetail_page .clientMaintenanceForm div.intervention-plan__notice,
#childdetail_page .clientMaintenanceForm div.intervention-plan__focus,
#childdetail_page .clientMaintenanceForm div.intervention-plan__focus-identity,
#childdetail_page .clientMaintenanceForm div.intervention-plan__work-row,
#childdetail_page .clientMaintenanceForm div.intervention-plan__activity-groups,
#childdetail_page .clientMaintenanceForm div.intervention-plan__activity-options,
#childdetail_page .clientMaintenanceForm div.intervention-plan__rating-controls,
#childdetail_page .clientMaintenanceForm div.intervention-plan__overview-heading,
#childdetail_page .clientMaintenanceForm div.intervention-plan__targets,
#childdetail_page .clientMaintenanceForm div.intervention-plan__secondary-actions {
    margin-bottom: 0;
}

#childdetail_page .intervention-plan h1,
#childdetail_page .intervention-plan h2,
#childdetail_page .intervention-plan h3,
#childdetail_page .intervention-plan h4,
#childdetail_page .intervention-plan p {
    color: var(--intervention-ink);
}

#childdetail_page .intervention-plan h1,
#childdetail_page .intervention-plan h2,
#childdetail_page .intervention-plan h3,
#childdetail_page .intervention-plan h4 {
    margin: 0;
}

#childdetail_page .intervention-plan .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#childdetail_page .intervention-plan__detail-navigation {
    display: flex;
    align-items: center;
}

#childdetail_page .intervention-plan__back-to-overview {
    min-height: 34px;
}

#childdetail_page .intervention-plan__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    padding: 0.5rem 1rem;
    border: 1px solid var(--intervention-border);
    border-radius: 18px;
    background: linear-gradient(120deg, #f2fbfb 0%, #f7f4fc 100%);
}

#childdetail_page .intervention-plan__intro h1 {
    margin: 0.15vh 0 0.3vh;
    color: #172545;
    font-size: 1.45em;
}

#childdetail_page .intervention-plan__intro > div:first-child {
    min-width: 0;
}

#childdetail_page .intervention-plan__intro > div:first-child > p {
    max-width: 52em;
    margin: 0;
    color: var(--intervention-muted);
    font-size: 0.78em;
    line-height: 1.45;
}

#childdetail_page .intervention-plan__completion-practice-summary {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.75rem;
    color: #31545a;
}

#childdetail_page .intervention-plan__completion-practice-summary strong {
    font-size: 0.82em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__completion-practice-summary span {
    color: var(--intervention-muted);
    font-size: 0.7em;
}

#childdetail_page .intervention-plan__eyebrow {
    color: #008f8c;
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__details {
    display: flex;
    flex: 0 0 auto;
    gap: 0.55vw;
    margin: 0;
}

#childdetail_page .intervention-plan__intro-aside {
    display: grid;
    flex: 0 0 auto;
    gap: 0.65rem;
    justify-items: end;
}

#childdetail_page .intervention-plan__completion-report-action {
    min-width: 178px;
    margin: 0;
}

#childdetail_page .intervention-plan__activity-history-action {
    min-width: 156px;
}

#childdetail_page .intervention-plan__details > div {
    min-width: 92px;
    padding: 0.65vh 0.8vw;
    border: 1px solid #d1e0e5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

#childdetail_page .intervention-plan__details dt,
#childdetail_page .intervention-plan__details dd {
    margin: 0;
}

#childdetail_page .intervention-plan__details dt {
    margin-bottom: 0.15vh;
    color: var(--intervention-muted);
    font-size: 0.62em;
    font-weight: 700;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__details dd {
    color: #172545;
    font-size: 0.78em;
    font-weight: 750;
}

#childdetail_page .intervention-plan__focus-context {
    margin: 0;
    color: #456371;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__notice {
    padding: 0.65vh 1vw;
    border-left: 5px solid #168e8b;
    border-radius: 6px;
    background: #eef9f8;
    color: #254b50;
    font-size: 0.8em;
}

#childdetail_page .intervention-plan__working-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(360px, 1fr);
    gap: 1rem;
    align-items: start;
}

#childdetail_page .intervention-plan__working-main,
#childdetail_page .intervention-plan__working-aside {
    min-width: 0;
}

#childdetail_page .intervention-plan__working-aside {
    display: grid;
    position: sticky;
    top: 0.75rem;
    gap: 1rem;
}

#childdetail_page .intervention-plan__recent-sessions,
#childdetail_page .intervention-plan__target-progress-card {
    box-sizing: border-box;
    padding: 1rem 1.1rem;
    border: 1px solid #c5d7dd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 66, 83, 0.06);
}

#childdetail_page .intervention-plan__recent-sessions h2,
#childdetail_page .intervention-plan__target-progress-card h2 {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #dbe6e9;
    color: #172545;
    font-size: 1em;
}

#childdetail_page .intervention-plan__recent-intro {
    margin: 0.55rem 0 0.85rem;
    color: var(--intervention-muted) !important;
    font-size: 0.7em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__recent-empty {
    margin: 0.8rem 0 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f5fafb;
    color: var(--intervention-muted) !important;
    font-size: 0.72em;
}

#childdetail_page .intervention-plan__recent-other-targets {
    margin: 0 0 0.8rem;
    color: #31545a !important;
    font-size: 0.68em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__recent-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.66em;
}

#childdetail_page .intervention-plan__recent-table th,
#childdetail_page .intervention-plan__recent-table td {
    padding: 0.65rem 0.32rem;
    border-bottom: 1px solid #e0e8eb;
    text-align: left;
    vertical-align: middle;
}

#childdetail_page .intervention-plan__recent-table th {
    color: var(--intervention-muted);
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__recent-table th:nth-child(1) {
    width: 24%;
}

#childdetail_page .intervention-plan__recent-table th:nth-child(2) {
    width: 22%;
}

#childdetail_page .intervention-plan__recent-table th:nth-child(3) {
    width: 31%;
}

#childdetail_page .intervention-plan__recent-table th:nth-child(4) {
    width: 18%;
}

#childdetail_page .intervention-plan__recent-table th:last-child {
    width: 5%;
}

#childdetail_page .intervention-plan__recent-table tbody tr {
    cursor: pointer;
    transition: background 120ms ease;
}

#childdetail_page .intervention-plan__recent-table tbody tr:hover,
#childdetail_page .intervention-plan__recent-table tbody tr:focus-visible {
    background: #f1faf9;
    outline: none;
}

#childdetail_page .intervention-plan__recent-table tbody tr:focus-visible {
    box-shadow: inset 0 0 0 2px #00aaa6;
}

#childdetail_page .intervention-plan__recent-result {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 750;
    line-height: 1.25;
}

#childdetail_page .intervention-plan__recent-result-icon {
    display: inline-grid;
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    place-items: center;
    border-radius: 50%;
    font-size: 0.72rem;
}

#childdetail_page .intervention-plan__recent-result--successful .intervention-plan__recent-result-icon {
    background: #138f88;
    color: #fff;
}

#childdetail_page .intervention-plan__recent-result--needs-practice .intervention-plan__recent-result-icon {
    border: 2px solid #e1a625;
    color: #8b6515;
}

#childdetail_page .intervention-plan__recent-result--in-progress .intervention-plan__recent-result-icon {
    background: #e9f1f4;
    color: #526b78;
}

#childdetail_page .intervention-plan__recent-result--not-completed .intervention-plan__recent-result-icon {
    border: 1px solid #aebdc3;
    background: #f2f5f6;
    color: #526b78;
}

#childdetail_page .intervention-plan__recent-open {
    color: #147c86;
    font-size: 1.45em;
    font-weight: 800;
    text-align: right !important;
}

#childdetail_page .intervention-plan__view-session-history {
    display: block;
    min-width: 178px;
    margin: 0.9rem auto 0;
}

#childdetail_page .intervention-plan__target-progress-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.9rem;
    padding-top: 1rem;
}

#childdetail_page .intervention-plan__target-progress-success,
#childdetail_page .intervention-plan__target-progress-time {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

#childdetail_page .intervention-plan__target-progress-time {
    padding-left: 0.9rem;
    border-left: 1px solid #dbe6e9;
}

#childdetail_page .intervention-plan__target-progress-ring {
    display: grid;
    width: 74px;
    min-width: 74px;
    height: 74px;
    box-sizing: border-box;
    place-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 56%, transparent 58%),
        conic-gradient(#078d76 var(--target-progress), #e5ebeb 0);
    color: #172545;
    text-align: center;
}

#childdetail_page .intervention-plan__target-progress-ring strong,
#childdetail_page .intervention-plan__target-progress-ring span {
    display: block;
    line-height: 1;
}

#childdetail_page .intervention-plan__target-progress-ring strong {
    font-size: 1.25em;
}

#childdetail_page .intervention-plan__target-progress-ring span {
    margin-top: 0.2rem;
    font-size: 0.62em;
    font-weight: 750;
}

#childdetail_page .intervention-plan__target-progress-success > div:last-child,
#childdetail_page .intervention-plan__target-progress-time > div {
    display: grid;
    gap: 0.22rem;
}

#childdetail_page .intervention-plan__target-progress-success > div:last-child > strong,
#childdetail_page .intervention-plan__target-progress-time strong {
    color: #172545;
    font-size: 0.72em;
    text-transform: none;
}

#childdetail_page .intervention-plan__target-progress-success > div:last-child > span,
#childdetail_page .intervention-plan__target-progress-time span {
    color: var(--intervention-muted);
    font-size: 0.62em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__target-progress-clock {
    display: inline-grid;
    width: 54px;
    min-width: 54px;
    height: 54px;
    place-items: center;
    border: 8px solid #e4f3f1;
    border-radius: 50%;
    background: #f5fbfa;
    color: #008f8c !important;
    font-size: 1.7em !important;
}

#childdetail_page .intervention-plan__target-progress-time b {
    color: #172545;
    font-size: 0.92em;
}

#childdetail_page .intervention-plan__next-steps,
#childdetail_page .intervention-plan__overview,
#childdetail_page .intervention-plan__history {
    padding: 1.35vh 1.4vw;
    border: 1px solid var(--intervention-border);
    border-radius: 26px;
    background: var(--intervention-panel);
}

#childdetail_page .intervention-plan__next-steps {
    padding: 0;
    overflow: hidden;
    border: 1px solid #a8d6d3;
    border-left: 7px solid #00aaa6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 66, 83, 0.1);
}

#childdetail_page .intervention-plan__next-steps > h2 {
    margin: 1.1vh 1.25vw 0.8vh;
    color: #172545;
    font-size: 1.15em;
    font-weight: 700;
}

#childdetail_page .intervention-plan__next-steps--active > h2 {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.8rem 1rem;
    overflow: visible;
    border-bottom: 1px solid #d9e7e9;
    clip: auto;
    white-space: normal;
    font-size: 1em;
}

#childdetail_page .intervention-plan__overview h2 {
    margin: 0;
    font-size: 1em;
}

#childdetail_page .intervention-plan__focus {
    padding: 0 0.8rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: #fff;
}

#childdetail_page .intervention-plan__focus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 -0.8rem;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(90deg, #effaf9, #fff);
}

#childdetail_page .intervention-plan__focus-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.65rem;
}

#childdetail_page .intervention-plan__focus-identity > img {
    width: 42px;
    min-width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(36, 66, 79, 0.1);
}

#childdetail_page .intervention-plan__focus-identity h2 {
    margin: 0.1vh 0 0.2vh;
    font-size: 1.05em;
}

#childdetail_page .intervention-plan__focus-outcome {
    margin: 0.1vh 0 0.25vh;
    color: #485f77 !important;
    font-size: 0.8em;
}

#childdetail_page .intervention-plan__focus-words {
    margin: 0.25vh 0 0;
    color: var(--intervention-muted) !important;
    font-size: 0.7em;
}

#childdetail_page .intervention-plan__weekly-plan {
    flex: 0 0 auto;
    padding: 0.4rem 0.55rem;
    border-radius: 11px;
    background: #fff;
    color: #36546c;
    font-size: 0.68em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(26, 66, 77, 0.1);
}

#childdetail_page .intervention-plan__practice-context {
    display: grid;
    min-width: 15rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#childdetail_page .intervention-plan__actual-practice {
    display: flex;
    padding: 0.4rem 0.55rem;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #cce3e2;
    border-radius: 11px;
    background: #f4fbfb;
    color: #36546c;
    font-size: 0.68em;
    text-align: center;
}

#childdetail_page .intervention-plan__weekly-plan small,
#childdetail_page .intervention-plan__actual-practice small {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--intervention-muted);
    font-size: 0.78em;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__weekly-plan strong,
#childdetail_page .intervention-plan__weekly-plan span,
#childdetail_page .intervention-plan__actual-practice strong,
#childdetail_page .intervention-plan__actual-practice span {
    display: block;
}

#childdetail_page .intervention-plan__weekly-plan strong {
    color: #008f8c;
    font-size: 1.15em;
}

#childdetail_page .intervention-plan__actual-practice strong {
    color: #007f7c;
    font-size: 1.1em;
}

#childdetail_page .intervention-plan__today-heading {
    display: flex;
    align-items: baseline;
    gap: 0.6vw;
    margin: 0.4rem 0 0.3rem;
}

#childdetail_page .intervention-plan__today-heading h3 {
    font-size: 1em;
}

#childdetail_page .intervention-plan__today-heading span {
    color: var(--intervention-muted);
    font-size: 0.68em;
}

#childdetail_page .intervention-plan__work-row {
    display: grid;
    grid-template-columns: minmax(0, 2.45fr) minmax(15rem, 1.08fr);
    gap: 0.75vw;
    align-items: stretch;
}

#childdetail_page .intervention-plan__activity-groups {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 0.75vw;
    align-items: stretch;
}

#childdetail_page .intervention-plan__activity-group {
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #d9e5e9;
    border-radius: 13px;
    background: #f6fafb;
}

#childdetail_page .intervention-plan__activity-group + .intervention-plan__activity-group {
    padding-left: 0.8vw;
}

#childdetail_page .intervention-plan__activity-group h4 {
    display: inline-block;
    margin: 0 0 0.2vh 0.35vw;
    vertical-align: middle;
    font-size: 0.9em;
}

#childdetail_page .intervention-plan__step-label {
    display: inline-grid;
    width: 25px;
    height: 25px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #00aaa6;
    color: #fff;
    font-size: 0;
    font-weight: 800;
}

#childdetail_page .intervention-plan__step-label::after {
    font-size: 12px;
}

#childdetail_page .intervention-plan__activity-group--step-1 .intervention-plan__step-label::after {
    content: '1';
}

#childdetail_page .intervention-plan__activity-group--step-2 .intervention-plan__step-label::after {
    content: '2';
}

#childdetail_page .intervention-plan__rating .intervention-plan__step-label::after {
    content: '3';
}

#childdetail_page .intervention-plan__step-description {
    min-height: 0;
    margin: 0.25rem 0 0.35rem;
    color: var(--intervention-muted) !important;
    font-size: 0.68em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__activity-options {
    display: flex;
    gap: 0.7vw;
    flex-wrap: wrap;
}

#childdetail_page button.intervention-plan__activity {
    display: flex;
    flex: 1 1 7.5vw;
    min-width: 92px;
    max-width: 150px;
    min-height: 7vh;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35vh;
    padding: 0.65vh 0.55vw;
    border: 2px solid transparent;
    border-radius: 15px;
    background: #fff;
    color: var(--intervention-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.78em;
}

#childdetail_page .intervention-plan__activity-group--step-1 .intervention-plan__activity-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65vw;
}

#childdetail_page .intervention-plan__activity-group--step-1 button.intervention-plan__activity {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 76px;
    aspect-ratio: auto;
    flex: none;
    flex-direction: column;
    border: 1px solid #dfe9ec;
    border-radius: 15px;
    background: #fff;
    color: var(--intervention-ink);
    font-weight: 750;
    padding: 0.35vh 0.3vw;
    box-shadow: 0 2px 7px rgba(32, 53, 72, 0.06);
}

#childdetail_page .intervention-plan__activity-group--step-1 button.intervention-plan__activity:hover,
#childdetail_page .intervention-plan__activity-group--step-1 button.intervention-plan__activity:focus-visible {
    border-color: #00aaa6;
    background: #f4fbfb;
    box-shadow: 0 3px 10px rgba(32, 53, 72, 0.12);
}

#childdetail_page .intervention-plan__activity-group--step-1 .intervention-plan__activity img {
    width: min(50px, 55%);
    min-width: 42px;
    height: auto;
    aspect-ratio: 1;
}

#childdetail_page .intervention-plan__activity-group--step-2 .intervention-plan__activity-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65vh 0.65vw;
}

#childdetail_page .intervention-plan__activity-group--step-2 button.intervention-plan__activity {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 76px;
    padding: 0.4vh 0.45vw;
    border: 1px solid #e3ebee;
    box-shadow: 0 2px 7px rgba(32, 53, 72, 0.05);
}

#childdetail_page .intervention-plan__activity-group--step-2 .intervention-plan__activity img {
    width: 48px;
    min-width: 48px;
    height: 48px;
}

#childdetail_page .intervention-plan__activity-group--step-2 .intervention-plan__activity > span {
    display: flex;
    min-height: 2.35em;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    text-align: center;
}

#childdetail_page button.intervention-plan__activity:hover,
#childdetail_page button.intervention-plan__activity:focus-visible {
    border-color: #0aa7a1;
    outline: none;
    box-shadow: 0 2px 8px rgba(32, 53, 72, 0.13);
}

#childdetail_page .intervention-plan__activity img {
    width: 42px;
    min-width: 42px;
    height: 42px;
    object-fit: contain;
}

#childdetail_page .intervention-plan__rating {
    min-width: 0;
    margin-top: 0;
    padding: 0.5rem;
    border: 1px solid #d9e5e9;
    border-radius: 13px;
    background: #f6fafb;
}

#childdetail_page .intervention-plan__rating--priority {
    border-color: #d8bc72;
    background: #fff9ec;
    box-shadow: 0 3px 10px rgba(133, 102, 28, 0.08);
}

#childdetail_page .intervention-plan__rating--outcome-needed {
    border-color: #cfab4f;
    box-shadow:
        inset 0 0 0 1px rgba(217, 191, 120, 0.18),
        0 3px 10px rgba(133, 102, 28, 0.1);
}

#childdetail_page .intervention-plan__rating--session-recorded {
    border-color: #c8ab61;
    background: #fff9ec;
}

#childdetail_page .intervention-plan__outcome-needed-status {
    display: table;
    margin: 0 0 0.28rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #f3e7c5;
    color: #69551f;
    font-size: 0.62em;
    font-weight: 800;
    letter-spacing: 0.02em;
}

#childdetail_page .intervention-plan__outcome-needed-status--recorded {
    background: #e3f2ec;
    color: #246651;
}

#childdetail_page .intervention-plan__completed-session-outcome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#childdetail_page .intervention-plan__completed-session-outcome h4 {
    margin: 0;
    font-size: 0.9em;
}

#childdetail_page .intervention-plan__completed-session-check {
    display: inline-grid;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: 50%;
    background: #168a72;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
}

#childdetail_page .intervention-plan__completed-session-message,
#childdetail_page .intervention-plan__completed-session-supporting,
#childdetail_page .intervention-plan__completed-session-next-action {
    margin: 0.38rem 0 0;
    color: #3f5964 !important;
    font-size: 0.68em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__completed-session-supporting {
    margin-top: 0.18rem;
}

#childdetail_page .intervention-plan__completed-session-next-action {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(180, 144, 54, 0.25);
    color: #69551f !important;
    font-weight: 750;
}

#childdetail_page .intervention-plan__no-activities {
    margin: 1.1vh 0 0;
    padding: 0.8vh 0.9vw;
    border-radius: 10px;
    background: #fff6dc;
    color: #6c5310;
    font-size: 0.75em;
}

#childdetail_page .intervention-plan__rating-heading {
    display: flex;
    position: relative;
    align-items: center;
    gap: 0.35rem;
}

#childdetail_page .intervention-plan__rating h4 {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    font-size: 0.9em;
}

#childdetail_page button.intervention-plan__outcome-help-button {
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin-left: auto;
    place-items: center;
    border: 1px solid #75aaa9;
    border-radius: 50%;
    background: #fff;
    color: #087f7c;
    cursor: pointer;
    font: inherit;
    font-size: 0.66em;
    font-weight: 850;
}

#childdetail_page button.intervention-plan__outcome-help-button:hover,
#childdetail_page button.intervention-plan__outcome-help-button:focus-visible {
    background: #eaf8f7;
    outline: 2px solid rgba(0, 170, 166, 0.25);
    outline-offset: 2px;
}

#childdetail_page .intervention-plan__outcome-help-popover {
    position: relative;
    z-index: 2;
    margin: 0.45rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #b8d7d5;
    border-radius: 9px;
    background: #fff;
    color: #3d5962 !important;
    font-size: 0.65em;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(31, 66, 83, 0.1);
}

#childdetail_page .intervention-plan__rating-question {
    min-height: 0;
    margin: 0.25rem 0 0.35rem;
    color: var(--intervention-muted);
    font-size: 0.72em;
}

#childdetail_page .intervention-plan__rating-question strong,
#childdetail_page .intervention-plan__rating-question span {
    display: block;
}

#childdetail_page .intervention-plan__rating-question strong {
    margin-bottom: 0;
    color: var(--intervention-ink);
    font-size: 1.04em;
}

#childdetail_page .intervention-plan__rating-question span {
    line-height: 1.4;
}

#childdetail_page .intervention-plan__rating-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

#childdetail_page button.intervention-plan__abandon-session {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.38rem 0.45rem;
    border: 1px solid #b9c9ce;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    color: #405965;
    cursor: pointer;
    font: inherit;
    font-size: 0.64em;
    font-weight: 700;
}

#childdetail_page button.intervention-plan__abandon-session:hover,
#childdetail_page button.intervention-plan__abandon-session:focus-visible {
    border-color: #678894;
    background: #fff;
    outline: 2px solid #00aaa6;
    outline-offset: 2px;
}

#childdetail_page button.intervention-plan__abandon-session:disabled {
    cursor: wait;
    opacity: 0.65;
}

#childdetail_page .intervention-plan__success-progress {
    display: flex;
    align-items: center;
    gap: 0.55vw;
    margin: 0.35rem 0 0;
    padding: 0.35rem 0.45rem;
    border: 1px solid #cfe2e4;
    border-radius: 9px;
    background: #eef8f7;
    color: #315568;
    font-size: 0.68em;
}

#childdetail_page .intervention-plan__success-progress-dots {
    display: inline-flex;
    gap: 0.25rem;
}

#childdetail_page .intervention-plan__success-progress-dots i {
    display: inline-grid;
    width: 1rem;
    height: 1rem;
    box-sizing: border-box;
    border: 2px solid #8daeb4;
    border-radius: 50%;
    background: #fff;
    place-items: center;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
}

#childdetail_page .intervention-plan__success-progress-dots i.is-successful {
    border-color: #00aaa6;
    background: #00aaa6;
    color: #fff;
}

#childdetail_page .intervention-plan__success-progress-dots i.is-needs-practice {
    border-color: #d2a344;
    background: #fff8e7;
    color: #8a671e;
}

#childdetail_page button.intervention-plan__rating-button {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    min-height: 44px;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.42rem 2rem 0.42rem 0.58rem;
    border: 1px solid #c8c1a9;
    border-radius: 10px;
    background: #fff;
    color: var(--intervention-ink);
    cursor: pointer;
    font: inherit;
    position: relative;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

#childdetail_page .intervention-plan__session-tip {
    margin: 0.3rem 0 0;
    color: #4e6377 !important;
    font-size: 0.68em;
}

#childdetail_page button.intervention-plan__rating-button::before {
    display: block;
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid #82989d;
    border-radius: 50%;
    background: #fff;
    content: '';
    transform: translateY(-50%);
}

#childdetail_page button.intervention-plan__rating-button--red::before {
    background: #fff;
}

#childdetail_page button.intervention-plan__rating-button--amber::before {
    background: #efa51d;
}

#childdetail_page button.intervention-plan__rating-button--green::before {
    background: #fff;
}

#childdetail_page button.intervention-plan__rating-button:hover,
#childdetail_page button.intervention-plan__rating-button:focus-visible,
#childdetail_page button.intervention-plan__rating-button[aria-pressed='true'] {
    border-color: #00aaa6;
    background: #f5fbfb;
    outline: none;
    box-shadow: 0 3px 10px rgba(32, 83, 88, 0.14);
}

#childdetail_page button.intervention-plan__rating-button:focus-visible {
    outline: 3px solid rgba(0, 170, 166, 0.24);
    outline-offset: 2px;
}

#childdetail_page button.intervention-plan__rating-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

#childdetail_page button.intervention-plan__rating-button[aria-pressed='true'] {
    background: #edf5f7;
    box-shadow: inset 0 0 0 1px #fff;
}

#childdetail_page button.intervention-plan__rating-button[aria-pressed='true']::before {
    border-color: #008f8c;
    background: #00aaa6;
    box-shadow: inset 0 0 0 3px #fff;
}

#childdetail_page .intervention-plan__rating-name {
    flex: 0 0 auto;
    font-size: 0.78em;
    font-weight: 700;
}

#childdetail_page .intervention-plan__rating-explanation,
#childdetail_page .intervention-plan__rating-supporting {
    min-width: 0;
    color: var(--intervention-muted);
    font-size: 0.68em;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

#childdetail_page .intervention-plan__rating-explanation {
    margin-top: 0.08rem;
    color: #3f5964;
    font-weight: 650;
}

#childdetail_page .intervention-plan__rating-supporting {
    margin-top: 0.12rem;
    font-size: 0.62em;
}

#childdetail_page .intervention-plan__finish-session-cue {
    min-height: 0;
    margin: 0.35rem 0 0;
    color: #3f5964 !important;
    font-size: 0.66em;
    font-weight: 750;
}

#childdetail_page .intervention-plan__overview {
    padding: 0.45rem 0.75rem;
    border-radius: 16px;
    background: #f2f8fa;
}

#childdetail_page .intervention-plan__overview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1vw;
}

#childdetail_page .intervention-plan__overview-heading p {
    margin: 0 0 0 auto;
    color: var(--intervention-muted);
    font-size: 0.72em;
    text-align: right;
}

#childdetail_page button.intervention-plan__view-all {
    padding: 0.45vh 0.75vw;
    border: 1px solid #00aaa6;
    border-radius: 999px;
    background: #fff;
    color: #008f8c;
    cursor: pointer;
    font: inherit;
    font-size: 0.68em;
    font-weight: 750;
}

#childdetail_page button.intervention-plan__view-all:hover,
#childdetail_page button.intervention-plan__view-all:focus-visible {
    background: #eaf8f7;
    outline: none;
}

#childdetail_page .intervention-plan__target-groups {
    display: grid;
    gap: 1vh;
}

#childdetail_page .intervention-plan__target-group {
    min-width: 0;
}

#childdetail_page .intervention-plan__target-group + .intervention-plan__target-group {
    padding-top: 0.9vh;
    border-top: 1px solid #d4e2e6;
}

#childdetail_page .intervention-plan__target-group > h3 {
    display: inline-flex;
    margin: 0 0 0.55vh;
    align-items: center;
    gap: 0.45vw;
    color: #172545;
    font-size: 0.86em;
    font-weight: 800;
}

#childdetail_page .intervention-plan__target-group > h3::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #00aaa6;
    content: '';
}

#childdetail_page .intervention-plan__targets {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

#childdetail_page button.intervention-plan__target {
    display: grid;
    position: relative;
    min-width: 0;
    min-height: 64px;
    box-sizing: border-box;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 2px solid #d6e2e6;
    border-radius: 15px;
    background: #fff;
    color: var(--intervention-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

#childdetail_page .intervention-plan__overview .intervention-plan__target-words {
    display: none;
}

#childdetail_page .intervention-plan__overview button.intervention-plan__target {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
}

#childdetail_page .intervention-plan__overview .intervention-plan__target-identity {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
}

#childdetail_page .intervention-plan__overview .intervention-plan__target-identity img {
    width: 38px;
    height: 38px;
}

#childdetail_page .intervention-plan__overview .intervention-plan__target-status {
    margin: 0;
    padding: 0.15rem 0.35rem;
    grid-column: 2;
    background: transparent;
    font-size: 0.58em;
}

#childdetail_page button.intervention-plan__target--current {
    border-color: #0aa7a1;
    background: #f5fbfb;
    box-shadow: 0 2px 8px rgba(32, 53, 72, 0.12);
}

#childdetail_page button.intervention-plan__target--completed {
    border-color: #c8ddd0;
    background: #f5faf7;
}

#childdetail_page .intervention-plan__target-number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00aaa6;
    color: #fff;
    font-size: 0.72em;
    font-weight: 800;
}

#childdetail_page .intervention-plan__target-identity {
    display: grid;
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.6vw;
    align-items: center;
}

#childdetail_page button.intervention-plan__target:disabled,
#childdetail_page button.intervention-plan__target--unavailable {
    cursor: not-allowed;
    opacity: 0.7;
}

#childdetail_page .intervention-plan__target-identity img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f9fa;
}

#childdetail_page .intervention-plan__target-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#childdetail_page .intervention-plan__target-current-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0.12rem 0.3rem;
    border-radius: 999px;
    background: #d9f2f0;
    color: #007f7c;
    font-size: 0.5em;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__target-context {
    color: #008f8c;
    font-size: 0.6em;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__target-title {
    width: 100%;
    margin: 0.1vh 0 0.2vh;
    color: #172545;
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1.2;
}

#childdetail_page .intervention-plan__target-words {
    color: var(--intervention-muted);
    font-size: 0.68em;
    line-height: 1.35;
}

#childdetail_page .intervention-plan__target-status {
    margin-left: 36px;
    padding: 0.25vh 0.55vw;
    grid-column: 1 / -1;
    justify-self: start;
    border-radius: 999px;
    background: #edf5f7;
    color: #49616c;
    font-size: 0.62em;
    font-weight: 700;
}

#childdetail_page button.intervention-plan__target--current .intervention-plan__target-status {
    background: #dff5f4;
    color: #007f7c;
}

#childdetail_page .intervention-plan__target-status--red {
    color: #a51f28;
}

#childdetail_page .intervention-plan__target-status--amber {
    color: #8c5b00;
}

#childdetail_page .intervention-plan__target-status--green {
    color: #14743d;
}

#childdetail_page .intervention-plan__target-status--progress {
    background: #e2f5f4;
    color: #007f7c;
}

#childdetail_page .intervention-plan__secondary-actions {
    display: flex;
    align-items: center;
    gap: 0.65vw;
    flex-wrap: wrap;
}

#childdetail_page .intervention-plan__secondary-actions .loginSubmit,
#childdetail_page .intervention-plan__primary-action {
    margin: 0;
}

#childdetail_page .intervention-plan__history {
    background: var(--intervention-card);
}

#childdetail_page .intervention-plan__history-overlay {
    justify-content: flex-end;
    padding: 0;
}

#childdetail_page .intervention-plan__history-dialog {
    width: min(920px, 94vw);
    height: 100vh;
    max-height: 100vh;
    padding: 1rem;
    border-radius: 18px 0 0 18px;
}

#childdetail_page .intervention-plan__history-dialog > header {
    top: -1rem;
    margin: -1rem -1rem 0;
    padding: 1rem;
}

#childdetail_page .intervention-plan__history-dialog .intervention-plan__history {
    padding: 0.9rem;
    border-radius: 14px;
}

#childdetail_page .intervention-plan__history[hidden] {
    display: none;
}

#childdetail_page .intervention-plan__history h3 {
    font-size: 0.9em;
}

#childdetail_page .intervention-plan__history-summary {
    margin: 0.35rem 0 0.75rem;
    color: #31545a !important;
    font-size: 0.78em;
    font-weight: 750;
}

#childdetail_page .intervention-plan__history-progress {
    margin: -0.45rem 0 0.75rem;
    color: var(--intervention-muted) !important;
    font-size: 0.68em;
}

#childdetail_page .intervention-plan__history-subheading {
    margin: 1.15rem 0 0.45rem;
    color: var(--intervention-navy);
    font-size: 0.76em;
}

#childdetail_page .intervention-plan__history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72em;
}

#childdetail_page .intervention-plan__history-table th,
#childdetail_page .intervention-plan__history-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #d8e5e8;
    text-align: left;
    vertical-align: top;
}

#childdetail_page .intervention-plan__history-table th {
    color: var(--intervention-muted);
    font-size: 0.9em;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__history-table th:nth-child(1),
#childdetail_page .intervention-plan__history-table td:nth-child(1),
#childdetail_page .intervention-plan__history-table th:nth-child(2),
#childdetail_page .intervention-plan__history-table td:nth-child(2),
#childdetail_page .intervention-plan__history-table th:nth-child(4),
#childdetail_page .intervention-plan__history-table td:nth-child(4),
#childdetail_page .intervention-plan__history-table th:nth-child(5),
#childdetail_page .intervention-plan__history-table td:nth-child(5) {
    white-space: nowrap;
}

#childdetail_page .intervention-plan__history-note {
    margin: 0.65rem 0 0;
    color: var(--intervention-muted) !important;
    font-size: 0.65em;
}

#childdetail_page .intervention-plan__target-list-overlay {
    display: flex;
    position: fixed;
    z-index: 10020;
    inset: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
    background: rgba(18, 35, 55, 0.5);
}

#childdetail_page .intervention-plan__target-list-dialog {
    width: min(880px, 94vw);
    max-height: 86vh;
    box-sizing: border-box;
    padding: 1.4vh 1.4vw;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(18, 35, 55, 0.28);
    overflow: auto;
}

#childdetail_page .intervention-plan__target-list-dialog > header {
    display: flex;
    position: sticky;
    top: -1.4vh;
    z-index: 1;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1vw;
    margin: -0.2vh 0 1vh;
    padding: 0.6vh 0 0.8vh;
    border-bottom: 1px solid #d7e2e6;
    background: #fff;
}

#childdetail_page .intervention-plan__target-list-dialog h2 {
    margin: 0 0 0.2vh;
    color: #172545;
    font-size: 1.15em;
}

#childdetail_page .intervention-plan__target-list-dialog header p {
    margin: 0;
    color: var(--intervention-muted);
    font-size: 0.72em;
}

#childdetail_page button.intervention-plan__target-list-close {
    padding: 0.4vh 0.8vw;
    border: 1px solid #b9cad1;
    border-radius: 999px;
    background: #fff;
    color: #294250;
    cursor: pointer;
    font: inherit;
    font-size: 0.7em;
}

#childdetail_page .intervention-plan__target-list-dialog ol {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.55vh;
    list-style: none;
}

#childdetail_page .intervention-plan__target-list-groups {
    display: grid;
    gap: 1rem;
}

#childdetail_page .intervention-plan__target-list-group + .intervention-plan__target-list-group {
    padding-top: 0.9rem;
    border-top: 1px solid #d7e2e6;
}

#childdetail_page .intervention-plan__target-list-group h3 {
    margin: 0 0 0.55rem;
    color: #172545;
    font-size: 0.88em;
}

#childdetail_page .intervention-plan__target-list-dialog li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.75vw;
    align-items: center;
    padding: 0.65vh 0.7vw;
    border: 1px solid #dbe5e8;
    border-radius: 12px;
    counter-increment: programme-target;
}

#childdetail_page .intervention-plan__target-list-dialog ol {
    counter-reset: programme-target;
}

#childdetail_page .intervention-plan__target-list-dialog li::before {
    display: none;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5f7;
    color: #38515d;
    content: counter(programme-target);
    font-size: 0.68em;
    font-weight: 800;
}

#childdetail_page .intervention-plan__target-list-number {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5f7;
    color: #38515d;
    font-size: 0.68em;
    font-weight: 800;
}

#childdetail_page .intervention-plan__target-list-dialog li > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#childdetail_page .intervention-plan__target-list-dialog li strong {
    color: #172545;
    font-size: 0.82em;
}

#childdetail_page .intervention-plan__target-list-state {
    padding: 0.25vh 0.55vw;
    border-radius: 999px;
    background: #f0f2f3;
    color: #66747c;
    font-size: 0.62em;
    font-weight: 750;
}

#childdetail_page .intervention-plan__target-list-state.is-active {
    background: #dff5f4;
    color: #007f7c;
}

#childdetail_page button.intervention-plan__target-list-select {
    padding: 0.42rem 0.7rem;
    border: 1px solid #00aaa6;
    border-radius: 999px;
    background: #fff;
    color: #007f7c;
    cursor: pointer;
    font: inherit;
    font-size: 0.64em;
    font-weight: 750;
    white-space: nowrap;
}

#childdetail_page button.intervention-plan__target-list-select:hover,
#childdetail_page button.intervention-plan__target-list-select:focus-visible {
    background: #eaf8f7;
    outline: 2px solid #00aaa6;
    outline-offset: 2px;
}

#childdetail_page button.intervention-plan__target-list-select:disabled {
    border-color: #c9d5d9;
    background: #f2f5f6;
    color: #66747c;
    cursor: not-allowed;
}

#childdetail_page .intervention-plan__switch-dialog {
    width: min(560px, 92vw);
    padding: 1.5rem;
    overflow: visible;
}

#childdetail_page .intervention-plan__switch-dialog h2 {
    margin: 0.25rem 0 0.65rem;
    font-size: 1.3em;
}

#childdetail_page .intervention-plan__switch-dialog > p {
    margin: 0;
    color: #405460;
    font-size: 0.82em;
    line-height: 1.5;
}

#childdetail_page .intervention-plan__switch-eyebrow {
    color: #007f7c;
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#childdetail_page .intervention-plan__switch-dialog > p.intervention-plan__switch-note {
    margin-top: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #eef8f7;
    color: #294f52;
    font-weight: 650;
}

#childdetail_page .intervention-plan__leave-dialog {
    border: 1px solid #e3c77c;
    background: #fffdf7;
}

#childdetail_page .intervention-plan__leave-error {
    margin-top: 0.7rem;
    color: #8a3e32;
    font-weight: 700;
}

#childdetail_page .intervention-plan__switch-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

#childdetail_page .intervention-plan__switch-actions button {
    width: auto;
    min-width: 0;
    margin: 0;
}

@media (max-width: 680px) {
    #childdetail_page .intervention-plan__switch-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    #childdetail_page .intervention-plan__switch-actions button {
        width: 100%;
    }
}

#childdetail_page .intervention-plan__document-message {
    margin: 1.2vh 0;
    padding: 1.2vh 1vw;
    border: 1px solid #d7e2e6;
    border-radius: 12px;
    background: #f6fbfc;
    color: var(--intervention-muted);
    font-size: 0.78em;
}

#childdetail_page .intervention-plan__document-error p {
    margin-bottom: 0.8vh;
}

#childdetail_page .intervention-plan__document-error .loginSubmit {
    margin: 0;
}

#childdetail_page .intervention-plan__document-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.65vh;
    list-style: none;
}

#childdetail_page .intervention-plan__document-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1vw;
    padding: 0.8vh 0.8vw;
    border: 1px solid #dbe5e8;
    border-radius: 12px;
    background: #f9fcfd;
}

#childdetail_page .intervention-plan__document-list li > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15vh;
}

#childdetail_page .intervention-plan__document-list strong {
    color: #172545;
    font-size: 0.82em;
}

#childdetail_page .intervention-plan__document-list li > div span {
    color: var(--intervention-muted);
    font-size: 0.68em;
}

#childdetail_page .intervention-plan__document-download {
    flex: 0 0 auto;
    padding: 0.45vh 0.8vw;
    border: 1px solid #087f7c;
    border-radius: 999px;
    background: #e4f7f5;
    color: #056966;
    font-size: 0.7em;
    font-weight: 750;
    text-decoration: none;
}

#childdetail_page .intervention-plan__document-download:hover,
#childdetail_page .intervention-plan__document-download:focus-visible {
    background: #cceeea;
    outline: 2px solid #087f7c;
    outline-offset: 2px;
}

#childdetail_page .intervention-plan__document-unavailable {
    color: #7a4d4d;
    font-size: 0.7em;
}

#childdetail_page .intervention-plan__reassessment {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    padding: 1.2vh 1.2vw;
    border: 1px solid #96c7a9;
    border-radius: 18px;
    background: #f0f9f3;
}

#childdetail_page .intervention-plan__reassessment-mark {
    display: flex;
    width: 4.3rem;
    height: 4.3rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #249b58;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

#childdetail_page .intervention-plan__reassessment h3 {
    margin-bottom: 0.3vh;
}

#childdetail_page .intervention-plan__reassessment .loginSubmit {
    margin: 0.7vh 0 0;
}

#childdetail_page .intervention-plan__completed-targets {
    padding: 1.2vh 1.2vw;
    border: 1px solid var(--intervention-border);
    border-radius: 18px;
    background: #f7fbfc;
}

#childdetail_page .intervention-plan__completed-targets > h2 {
    font-size: 1em;
}

#childdetail_page .intervention-plan__completed-targets > p {
    margin: 0.25vh 0 1vh;
    color: var(--intervention-muted);
    font-size: 0.72em;
}

#childdetail_page .intervention-plan__completed-target-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8vw;
}

#childdetail_page .intervention-plan__completed-target {
    min-width: 0;
    padding: 1vh 0.9vw;
    border: 1px solid #d2e1e5;
    border-radius: 14px;
    background: #fff;
}

#childdetail_page .intervention-plan__completed-target-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8vw;
}

#childdetail_page .intervention-plan__completed-target-heading > div:first-child {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 0.65vw;
}

#childdetail_page .intervention-plan__completed-target-heading img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
}

#childdetail_page .intervention-plan__completed-target-heading h3 {
    font-size: 0.86em;
}

#childdetail_page .intervention-plan__completed-target-status {
    flex: 0 0 auto;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: #e8f5ed;
    color: #267046;
    font-size: 0.62em;
    font-weight: 800;
}

#childdetail_page .intervention-plan__completed-target-words,
#childdetail_page .intervention-plan__completed-target-sessions,
#childdetail_page .intervention-plan__completed-target-achievement {
    margin: 0.55vh 0 0;
    color: var(--intervention-muted);
    font-size: 0.68em;
    line-height: 1.4;
}

#childdetail_page .intervention-plan__completed-target-sessions {
    color: #31545a;
}

#childdetail_page .intervention-plan__completed-target-achievement {
    margin-top: 0.15vh;
    color: #31545a;
}

#childdetail_page .intervention-plan__completed-target-activities {
    margin-top: 0.7vh;
    padding-top: 0.7vh;
    border-top: 1px solid #e2eaed;
    color: #31545a;
    font-size: 0.64em;
    line-height: 1.45;
}

#childdetail_page .intervention-plan__completed-target-activities strong {
    color: var(--intervention-muted);
}

@media (max-width: 720px) {
    #childdetail_page .intervention-plan__completed-target-list {
        grid-template-columns: 1fr;
    }
}

#childdetail_page .intervention-plan__empty {
    padding: 1.2vh 1.1vw;
    border: 1px solid #b8d4c2;
    border-radius: 18px;
    background: #f0f9f3;
}

#childdetail_page .intervention-plan__empty h3 {
    margin-bottom: 0.35vh;
}

@media (max-width: 1100px) {
    #childdetail_page .intervention-plan__intro {
        align-items: stretch;
        flex-direction: column;
    }

    #childdetail_page .intervention-plan__details {
        width: 100%;
    }

    #childdetail_page .intervention-plan__intro-aside {
        width: 100%;
        justify-items: end;
    }

    #childdetail_page .intervention-plan__details > div {
        flex: 1 1 0;
    }

    #childdetail_page .intervention-plan__work-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #childdetail_page .intervention-plan__activity-groups {
        height: auto;
        align-items: start;
    }

    #childdetail_page .intervention-plan__rating {
        margin-top: 0.4vh;
    }

    #childdetail_page .intervention-plan__targets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    #childdetail_page .intervention-plan__working-layout {
        grid-template-columns: 1fr;
    }

    #childdetail_page .intervention-plan__working-aside {
        position: static;
        grid-template-columns: 1fr;
    }

    #childdetail_page .intervention-plan__recent-table {
        font-size: 0.72em;
    }
}

@media (max-width: 900px) {
    #childdetail_page .intervention-plan__targets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #childdetail_page .intervention-plan__activity-groups {
        grid-template-columns: 1fr;
    }

    #childdetail_page .intervention-plan__activity-group + .intervention-plan__activity-group {
        padding: 0.8vh 0 0;
        border-top: 1px solid #cfdee3;
        border-left: 0;
    }

    #childdetail_page .intervention-plan__activity-group--step-1 .intervention-plan__activity-options {
        grid-template-columns: repeat(2, minmax(0, 150px));
    }
}

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

    #childdetail_page .intervention-plan__overview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #childdetail_page .intervention-plan__overview-heading p {
        margin-left: 0;
        text-align: left;
    }

    #childdetail_page .intervention-plan__working-layout {
        display: flex;
        flex-direction: column;
    }

    #childdetail_page .intervention-plan__working-main,
    #childdetail_page .intervention-plan__working-aside,
    #childdetail_page .intervention-plan__working-main .intervention-plan__next-steps,
    #childdetail_page .intervention-plan__working-main .intervention-plan__focus {
        display: contents;
    }

    #childdetail_page .intervention-plan__working-main .intervention-plan__focus-header {
        order: 1;
        margin: 0;
        padding: 1rem;
        border: 1px solid #a8d6d3;
        border-left: 7px solid #00aaa6;
        border-radius: 16px;
        box-shadow: 0 4px 14px rgba(31, 66, 83, 0.08);
    }

    #childdetail_page .intervention-plan__recent-sessions {
        order: 2;
    }

    #childdetail_page .intervention-plan__target-progress-card {
        order: 3;
    }

    #childdetail_page .intervention-plan__working-main .intervention-plan__today-heading {
        order: 4;
        margin-top: 0.35rem;
    }

    #childdetail_page .intervention-plan__working-main .intervention-plan__work-row {
        order: 5;
    }

    #childdetail_page .intervention-plan__working-main .intervention-plan__session-tip {
        order: 6;
    }

    #childdetail_page .intervention-plan__target-progress-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #childdetail_page .intervention-plan__recent-sessions,
    #childdetail_page .intervention-plan__target-progress-card {
        width: 100%;
    }

    #childdetail_page .intervention-plan__recent-table {
        font-size: 0.65em;
    }

    #childdetail_page .intervention-plan__history-dialog {
        width: 100vw;
        border-radius: 0;
    }

    #childdetail_page .intervention-plan__activity-group--step-1 .intervention-plan__activity-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #childdetail_page .intervention-plan__focus-header {
        align-items: stretch;
        flex-direction: column;
    }

    #childdetail_page .intervention-plan__practice-context {
        align-self: stretch;
    }

    #childdetail_page .intervention-plan__history {
        overflow-x: auto;
    }

    #childdetail_page .intervention-plan__today-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #childdetail_page .intervention-plan__details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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