/* Keep a therapist's established colour visible wherever that therapist appears. */
:is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card){
    background:linear-gradient(135deg,color-mix(in srgb,var(--therapist-soft) 78%,#fff),var(--therapist-soft));
    border:1px solid color-mix(in srgb,var(--therapist-color) 42%,#dce5f0);
    box-shadow:inset 5px 0 var(--therapist-color),0 9px 24px rgba(25,48,88,.07);
}
:is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card) :is(h2,h3,.directory-therapist__identity h3){
    color:color-mix(in srgb,var(--therapist-color) 88%,#172e55);
}
.accounting-person__totals div,.accounting-person__month,.finance-ledger-row dl div{
    background:color-mix(in srgb,var(--therapist-soft) 54%,#fff);
    border-color:color-mix(in srgb,var(--therapist-color) 25%,#e2e9f2);
}
.accounting-person__month-grid span,.accounting-session{
    border-color:color-mix(in srgb,var(--therapist-color) 23%,#e2e9f2);
}
.accounting-person :is(.accounting-person__month h4,.accounting-person__totals dd,.accounting-session h4),
.finance-ledger-row :is(.finance-ledger-row__identity h3,.finance-ledger-row dd){
    color:color-mix(in srgb,var(--therapist-color) 74%,#253b60);
}
.finance-ledger-row .payment-entry-form button,.finance-ledger-row .finance-inline-action button{
    background:var(--therapist-color);border-color:var(--therapist-color);color:#fff;
}
.therapist-portal-page .therapist-portal-hero{background:linear-gradient(115deg,color-mix(in srgb,var(--therapist-color) 72%,#142c58),var(--therapist-color))}
.therapist-portal-page :is(.therapist-metrics>div,.therapist-panel-grid>a,.therapist-next){border-color:color-mix(in srgb,var(--therapist-color) 35%,#dce5f0);box-shadow:inset 4px 0 var(--therapist-color)}
.therapist-portal-page .therapist-metrics>div{background:linear-gradient(135deg,#fff,var(--therapist-soft))}
.therapist-portal-page .therapist-panel-grid>a b{color:var(--therapist-color);background:var(--therapist-soft)}
.directory-therapist__actions a:hover{border-color:var(--therapist-color);color:var(--therapist-color)}
.calendar-statusbar__legend button,.appointment-card,.parallel-chip,.month-booking,.parallel-drawer__item{
    border-color:color-mix(in srgb,var(--therapist-color) 45%,#dce5f0);
    border-inline-start:4px solid var(--therapist-color);
    background:color-mix(in srgb,var(--therapist-soft) 86%,#fff);
}
.appointment-card{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--therapist-color) 25%,transparent),0 3px 8px rgba(27,42,79,.1)}
.calendar-statusbar__legend button{color:color-mix(in srgb,var(--therapist-color) 78%,#263b5f);font-weight:850}
.appointment-card :is(.appointment-card__time,.appointment-card__therapist,.appointment-card__provider),
.month-booking,.parallel-chip{color:color-mix(in srgb,var(--therapist-color) 72%,#263b5f)}
html[dir="rtl"] :is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card){box-shadow:inset -5px 0 var(--therapist-color),0 9px 24px rgba(25,48,88,.07)}
html[data-theme="dark"] :is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card){
    color:var(--theme-text);
    background:linear-gradient(135deg,color-mix(in srgb,var(--therapist-color) 26%,var(--theme-surface)),color-mix(in srgb,var(--therapist-color) 15%,var(--theme-surface)));
    border-color:color-mix(in srgb,var(--therapist-color) 58%,var(--theme-border));
    box-shadow:inset 5px 0 var(--therapist-color),0 9px 24px rgba(0,0,0,.2);
}
html[data-theme="dark"] :is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card) :is(h2,h3,.directory-therapist__identity h3),
html[data-theme="dark"] .accounting-person :is(.accounting-person__month h4,.accounting-person__totals dd,.accounting-session h4),
html[data-theme="dark"] .finance-ledger-row :is(.finance-ledger-row__identity h3,.finance-ledger-row dd){color:color-mix(in srgb,var(--therapist-color) 60%,#fff)}
html[data-theme="dark"] :is(.accounting-person__totals div,.accounting-person__month,.finance-ledger-row dl div){background:color-mix(in srgb,var(--therapist-color) 13%,#111a2a);border-color:color-mix(in srgb,var(--therapist-color) 38%,#35445e)}
html[data-theme="dark"] .therapist-portal-page :is(.therapist-metrics>div,.therapist-panel-grid>a,.therapist-next){background:linear-gradient(135deg,var(--theme-surface),color-mix(in srgb,var(--therapist-color) 20%,var(--theme-surface)));border-color:color-mix(in srgb,var(--therapist-color) 48%,var(--theme-border))}
html[data-theme="dark"] :is(.calendar-statusbar__legend button,.appointment-card,.parallel-chip,.month-booking,.parallel-drawer__item){background:color-mix(in srgb,var(--therapist-color) 23%,#121e31);border-color:color-mix(in srgb,var(--therapist-color) 54%,#35445e);border-inline-start-color:var(--therapist-color)}
html[data-theme="dark"] .calendar-statusbar__legend button,html[data-theme="dark"] :is(.month-booking,.parallel-chip){color:color-mix(in srgb,var(--therapist-color) 58%,#fff)}
html[data-theme="dark"][dir="rtl"] :is(.resource-card--therapist.therapist-identity-card,.directory-therapist.therapist-identity-card,.evaluation-person.therapist-identity-card,.accounting-person,.finance-ledger-row.therapist-identity-card){box-shadow:inset -5px 0 var(--therapist-color),0 9px 24px rgba(0,0,0,.2)}
