.patient-wellbeing,
.patient-wellbeing * {
    box-sizing: border-box;
}

.patient-wellbeing {
    --pwd-navy: #173f68;
    --pwd-blue: #4b98e6;
    --pwd-blue-dark: #246aa9;
    --pwd-sky: #edf7ff;
    --pwd-orange: #ef9223;
    --pwd-orange-soft: #fff3e2;
    --pwd-green: #238875;
    --pwd-green-soft: #eaf8f4;
    --pwd-red: #c94b4b;
    --pwd-red-soft: #fff1f0;
    --pwd-line: #d9e9f7;
    --pwd-copy: #617c98;
    width: 100%;
    max-width: 100%;
    overflow: clip;
    color: var(--pwd-navy);
    font-family: Vazirmatn, sans-serif;
    text-align: right;
}

.patient-wellbeing button,
.patient-wellbeing input,
.patient-wellbeing textarea,
.patient-wellbeing select,
.patient-wellbeing output,
.patient-wellbeing time,
.patient-wellbeing b {
    font-family: Vazirmatn, sans-serif;
}

.patient-wellbeing__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
    align-items: center;
    gap: clamp(18px, 4vw, 46px);
    min-height: 300px;
    padding: clamp(26px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(113, 174, 226, .42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 177, 65, .2), transparent 12rem),
        radial-gradient(circle at 88% 12%, rgba(80, 164, 233, .2), transparent 17rem),
        linear-gradient(135deg, #fafdff 0%, #eef8ff 58%, #fff8ed 100%);
    box-shadow: 0 22px 48px rgba(37, 101, 158, .12);
    isolation: isolate;
}

.patient-wellbeing__hero::before,
.patient-wellbeing__hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(69, 146, 213, .17);
    border-radius: 50%;
    content: '';
}

.patient-wellbeing__hero::before {
    width: 300px;
    height: 300px;
    inset: -165px auto auto -90px;
}

.patient-wellbeing__hero::after {
    width: 210px;
    height: 210px;
    inset: auto 42% -155px auto;
}

.patient-wellbeing__hero-copy {
    min-width: 0;
}

.patient-wellbeing__badge,
.patient-wellbeing__hero-points span,
.patient-wellbeing__time,
.patient-wellbeing__private {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
}

.patient-wellbeing__badge {
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid #f0b66b;
    background: rgba(255, 246, 232, .88);
    color: #a85b09;
    font-size: .73rem;
    font-weight: 900;
}

.patient-wellbeing__badge svg,
.patient-wellbeing__notice svg,
.patient-wellbeing__urgent-title svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.patient-wellbeing__hero h3 {
    margin: 16px 0 10px;
    color: var(--pwd-navy);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 950;
    line-height: 1.35;
}

.patient-wellbeing__hero p {
    max-width: 680px;
    margin: 0;
    color: var(--pwd-copy);
    font-size: clamp(.88rem, 1.6vw, 1rem);
    font-weight: 650;
    line-height: 2;
}

.patient-wellbeing__hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.patient-wellbeing__hero-points span {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #cfe4f7;
    background: rgba(255, 255, 255, .78);
    color: #3f719f;
    font-size: .7rem;
    font-weight: 850;
}

.patient-wellbeing__hero-points span::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pwd-orange);
    content: '';
}

.patient-wellbeing__illustration {
    display: grid;
    min-width: 0;
    place-items: center;
}

.patient-wellbeing__illustration svg {
    display: block;
    width: min(100%, 310px);
    height: auto;
    filter: drop-shadow(0 16px 20px rgba(39, 100, 155, .12));
}

.patient-wellbeing__notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #f3d39f;
    border-radius: 16px;
    background: #fffaf1;
    color: #875818;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.9;
}

.patient-wellbeing__notice svg {
    flex: 0 0 20px;
    margin-top: 3px;
}

.patient-wellbeing__form,
.patient-wellbeing__history {
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid var(--pwd-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(37, 94, 145, .09);
}

.patient-wellbeing__form {
    position: relative;
}

.patient-wellbeing__form::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(90deg, var(--pwd-blue) 0 70%, var(--pwd-orange) 70%);
    content: '';
}

.patient-wellbeing__form-head,
.patient-wellbeing__history-head,
.patient-wellbeing__range-head,
.patient-wellbeing__nav,
.patient-wellbeing__history-score,
.patient-wellbeing__history-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.patient-wellbeing__eyebrow,
.patient-wellbeing__history-head > div > span {
    color: var(--pwd-orange);
    font-size: .72rem;
    font-weight: 900;
}

.patient-wellbeing__form-head h4,
.patient-wellbeing__history-head h4 {
    margin: 5px 0 0;
    color: var(--pwd-navy);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 950;
}

.patient-wellbeing__form-head h4,
.patient-wellbeing__history-date strong,
.patient-wellbeing__history-score > b {
    font-family: Vazirmatn, sans-serif;
}

.patient-wellbeing__time,
.patient-wellbeing__private {
    min-height: 34px;
    padding: 6px 12px;
    background: var(--pwd-sky);
    color: #3e75a7;
    font-size: .69rem;
    font-weight: 850;
}

.patient-wellbeing__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 10px;
    padding: 0;
    list-style: none;
}

.patient-wellbeing__steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #8498ad;
    font-size: .72rem;
    font-weight: 800;
}

.patient-wellbeing__steps b {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid #d4e3ef;
    border-radius: 11px;
    background: #f7fafc;
    color: #738ba1;
    font-size: .73rem;
}

.patient-wellbeing__steps li.is-active,
.patient-wellbeing__steps li.is-complete {
    color: var(--pwd-blue-dark);
}

.patient-wellbeing__steps li.is-active b {
    border-color: var(--pwd-blue);
    background: var(--pwd-blue);
    color: #fff;
    box-shadow: 0 7px 16px rgba(75, 152, 230, .24);
}

.patient-wellbeing__steps li.is-complete b {
    border-color: #92d4c5;
    background: var(--pwd-green-soft);
    color: var(--pwd-green);
}

.patient-wellbeing__progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf0f5;
}

.patient-wellbeing__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pwd-blue), #78bdf1, var(--pwd-orange));
    transition: width .24s ease;
}

.patient-wellbeing__panel {
    min-width: 0;
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.patient-wellbeing__panel[hidden] {
    display: none !important;
}

.patient-wellbeing__panel legend {
    width: 100%;
    padding: 0;
    color: var(--pwd-navy);
    font-size: clamp(1rem, 2vw, 1.23rem);
    font-weight: 950;
}

.patient-wellbeing__hint {
    margin: 7px 0 20px;
    color: var(--pwd-copy);
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.85;
}

.patient-wellbeing__moods {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.patient-wellbeing__moods label,
.patient-wellbeing__chips label,
.patient-wellbeing__segmented label,
.patient-wellbeing__urgent-list label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.patient-wellbeing__moods input,
.patient-wellbeing__chips input,
.patient-wellbeing__segmented input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.patient-wellbeing__moods label > span,
.patient-wellbeing__moods label > strong {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.patient-wellbeing__moods label {
    display: grid;
    min-height: 104px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 12px 6px;
    border: 1px solid #dce9f3;
    border-radius: 17px;
    background: #fbfdff;
    color: #6b8197;
    text-align: center;
}

.patient-wellbeing__moods label:hover {
    border-color: #9bc9ef;
}

.patient-wellbeing__moods label:has(input:focus-visible) {
    outline: 3px solid rgba(75, 152, 230, .22);
    outline-offset: 2px;
}

.patient-wellbeing__moods label:has(input:checked) {
    border-color: var(--pwd-blue);
    background: var(--pwd-sky);
    color: var(--pwd-blue-dark);
    box-shadow: inset 0 0 0 1px rgba(75, 152, 230, .12), 0 8px 18px rgba(63, 134, 200, .1);
}

.patient-wellbeing__mood-face {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: #8ba3b8;
}

.patient-wellbeing__mood-face::before,
.patient-wellbeing__mood-face::after {
    position: absolute;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.patient-wellbeing__mood-face::before { right: 9px; }
.patient-wellbeing__mood-face::after { left: 9px; }

.patient-wellbeing__mood-face i {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 14px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 10px 10px;
}

.patient-wellbeing__moods label:nth-child(-n+2) .patient-wellbeing__mood-face i {
    bottom: 6px;
    border-top: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.patient-wellbeing__moods label:nth-child(3) .patient-wellbeing__mood-face i {
    bottom: 10px;
    height: 1px;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
}

.patient-wellbeing__moods strong {
    font-size: .68rem;
    font-weight: 850;
}

.patient-wellbeing__ranges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.patient-wellbeing__range {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dfebf4;
    border-radius: 17px;
    background: #fff;
}

.patient-wellbeing__range-head strong {
    color: #335b82;
    font-size: .78rem;
    font-weight: 900;
}

.patient-wellbeing__range output {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--range-accent) 13%, white);
    color: var(--range-accent);
    font-size: .8rem;
    font-weight: 950;
}

.patient-wellbeing__range input[type='range'] {
    width: 100%;
    height: 30px;
    margin: 8px 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--range-accent);
    cursor: pointer;
    touch-action: pan-y;
}

.patient-wellbeing__range input[type='range']::-webkit-slider-runnable-track {
    height: 7px;
    border-radius: 999px;
    background: #e8eff5;
}

.patient-wellbeing__range input[type='range']::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--range-accent);
    box-shadow: 0 2px 8px rgba(26, 65, 97, .22);
    -webkit-appearance: none;
}

.patient-wellbeing__range input[type='range']::-moz-range-track {
    height: 7px;
    border-radius: 999px;
    background: #e8eff5;
}

.patient-wellbeing__range input[type='range']::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--range-accent);
    box-shadow: 0 2px 8px rgba(26, 65, 97, .22);
}

.patient-wellbeing__range small,
.patient-wellbeing__notes small {
    display: block;
    color: #8496a8;
    font-size: .63rem;
    font-weight: 650;
    line-height: 1.6;
}

.patient-wellbeing__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.patient-wellbeing__chips label span,
.patient-wellbeing__segmented label span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #fbfdff;
    color: #57738d;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.patient-wellbeing__chips label:has(input:checked) span,
.patient-wellbeing__segmented label:has(input:checked) span {
    border-color: #77b4e8;
    background: var(--pwd-sky);
    color: var(--pwd-blue-dark);
    box-shadow: inset 0 0 0 1px rgba(75, 152, 230, .09);
}

.patient-wellbeing__chips label:has(input:focus-visible) span,
.patient-wellbeing__segmented label:has(input:focus-visible) span {
    outline: 3px solid rgba(75, 152, 230, .2);
    outline-offset: 2px;
}

.patient-wellbeing__two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.patient-wellbeing__choice-group {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e0ebf4;
    border-radius: 18px;
    background: #fff;
}

.patient-wellbeing__choice-group h5 {
    margin: 0 0 12px;
    color: #345d84;
    font-size: .78rem;
    font-weight: 900;
}

.patient-wellbeing__segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.patient-wellbeing__urgent {
    padding: 17px;
    border: 1px solid #efb5b0;
    border-radius: 18px;
    background: var(--pwd-red-soft);
}

.patient-wellbeing__urgent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #a43c3c;
    font-size: .8rem;
    font-weight: 950;
}

.patient-wellbeing__urgent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.patient-wellbeing__urgent-list label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 46px;
    padding: 10px;
    border: 1px solid rgba(201, 75, 75, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .68);
    color: #764949;
    font-size: .68rem;
    font-weight: 780;
    line-height: 1.65;
}

.patient-wellbeing__urgent-list input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 1px 0 0;
    accent-color: var(--pwd-red);
}

.patient-wellbeing__urgent > p {
    margin: 12px 0 0;
    color: #8f5959;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.8;
}

.patient-wellbeing__notes {
    display: block;
    margin-top: 17px;
}

.patient-wellbeing__notes > span {
    display: block;
    margin-bottom: 8px;
    color: #345d84;
    font-size: .77rem;
    font-weight: 900;
}

.patient-wellbeing__notes em {
    color: #899cad;
    font-size: .65rem;
    font-style: normal;
    font-weight: 650;
}

.patient-wellbeing__notes textarea {
    display: block;
    width: 100%;
    min-height: 116px;
    padding: 13px 14px;
    border: 1px solid #d4e4f0;
    border-radius: 15px;
    background: #fbfdff;
    color: #264e75;
    font-size: 16px;
    line-height: 1.85;
    resize: vertical;
}

.patient-wellbeing__notes textarea:focus {
    border-color: var(--pwd-blue);
    outline: 3px solid rgba(75, 152, 230, .14);
}

.patient-wellbeing__notes small {
    margin-top: 6px;
    text-align: left;
}

.patient-wellbeing__contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #a9d9cf;
    border-radius: 16px;
    background: var(--pwd-green-soft);
    cursor: pointer;
}

.patient-wellbeing__contact > input {
    position: absolute;
    opacity: 0;
}

.patient-wellbeing__contact-check {
    position: relative;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 2px solid #6ab6a5;
    border-radius: 8px;
    background: #fff;
}

.patient-wellbeing__contact:has(input:checked) .patient-wellbeing__contact-check {
    border-color: var(--pwd-green);
    background: var(--pwd-green);
}

.patient-wellbeing__contact:has(input:checked) .patient-wellbeing__contact-check::after {
    position: absolute;
    top: 4px;
    right: 7px;
    width: 7px;
    height: 11px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
    content: '';
}

.patient-wellbeing__contact:has(input:focus-visible) {
    outline: 3px solid rgba(35, 136, 117, .18);
    outline-offset: 2px;
}

.patient-wellbeing__contact strong,
.patient-wellbeing__contact small {
    display: block;
}

.patient-wellbeing__contact strong {
    color: #1e725f;
    font-size: .77rem;
    font-weight: 950;
}

.patient-wellbeing__contact small {
    margin-top: 3px;
    color: #527e75;
    font-size: .65rem;
    font-weight: 650;
    line-height: 1.7;
}

.patient-wellbeing__nav {
    margin-top: 24px;
}

.patient-wellbeing__nav--end {
    justify-content: flex-end;
}

.patient-wellbeing__next,
.patient-wellbeing__back,
.patient-wellbeing__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.patient-wellbeing__next,
.patient-wellbeing__submit {
    border: 1px solid var(--pwd-blue);
    background: linear-gradient(135deg, var(--pwd-blue), var(--pwd-blue-dark));
    color: #fff;
    box-shadow: 0 9px 20px rgba(47, 117, 179, .2);
}

.patient-wellbeing__back {
    border: 1px solid #cfe0ed;
    background: #fff;
    color: #51708d;
}

.patient-wellbeing__next:hover,
.patient-wellbeing__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 117, 179, .28);
}

.patient-wellbeing__next:focus-visible,
.patient-wellbeing__back:focus-visible,
.patient-wellbeing__submit:focus-visible {
    outline: 3px solid rgba(75, 152, 230, .24);
    outline-offset: 3px;
}

.patient-wellbeing__submit.is-loading {
    pointer-events: none;
    opacity: .78;
}

.patient-wellbeing__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: patient-wellbeing-spin .75s linear infinite;
}

.patient-wellbeing__submit.is-loading .patient-wellbeing__spinner {
    display: block;
}

@keyframes patient-wellbeing-spin {
    to { transform: rotate(360deg); }
}

.patient-wellbeing__result {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.8;
}

.patient-wellbeing__result.is-visible { display: block; }
.patient-wellbeing__result.is-success { border: 1px solid #9dd8ca; background: var(--pwd-green-soft); color: #1f715f; }
.patient-wellbeing__result.is-error { border: 1px solid #efb5b0; background: var(--pwd-red-soft); color: #a33e3e; }
.patient-wellbeing__result.is-urgent { border-color: #e79b94; background: #ffebe9; color: #913535; }

.patient-wellbeing__history {
    margin-top: 18px;
}

.patient-wellbeing__history-list {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.patient-wellbeing__history-item {
    display: grid;
    grid-template-columns: minmax(125px, .7fr) minmax(180px, 1fr) minmax(180px, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e0ebf4;
    border-radius: 16px;
    background: #fbfdff;
}

.patient-wellbeing__history-date {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.patient-wellbeing__history-date strong {
    color: #355e85;
    font-size: .72rem;
    font-weight: 900;
}

.patient-wellbeing__history-date span {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--pwd-orange-soft);
    color: #a75c0c;
    font-size: .58rem;
    font-weight: 850;
}

.patient-wellbeing__history-score {
    display: grid;
    grid-template-columns: auto minmax(55px, 1fr) auto;
    gap: 8px;
    min-width: 0;
}

.patient-wellbeing__history-score > span,
.patient-wellbeing__history-score > b {
    color: #688198;
    font-size: .63rem;
    font-weight: 800;
}

.patient-wellbeing__history-score > div {
    height: 7px;
    min-width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eff5;
}

.patient-wellbeing__history-score i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #67b9a6, #3b9f89);
}

.patient-wellbeing__history-score.is-pain i {
    background: linear-gradient(90deg, #f5b258, #e87762);
}

.patient-wellbeing__empty {
    display: grid;
    min-height: 175px;
    place-items: center;
    align-content: center;
    gap: 7px;
    margin-top: 18px;
    padding: 20px;
    border: 1px dashed #c9deef;
    border-radius: 18px;
    background: #f9fcff;
    color: #7890a6;
    text-align: center;
}

.patient-wellbeing__empty svg {
    width: 38px;
    height: 38px;
    margin-bottom: 3px;
    fill: none;
    stroke: #70aee1;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.patient-wellbeing__empty strong { color: #3f6d98; font-size: .82rem; }
.patient-wellbeing__empty span { font-size: .67rem; font-weight: 650; }

.patient-quick-link.patient-wellbeing-trigger::before {
    background: linear-gradient(90deg, #2c9a84, #f0a032) !important;
}

.patient-quick-link.patient-wellbeing-trigger .patient-quick-link-icon {
    background: linear-gradient(135deg, #e8f8f3, #fff2df) !important;
    color: #257e6d;
}

.patient-quick-link.patient-wellbeing-trigger .patient-quick-link-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 820px) {
    .patient-wellbeing__hero {
        grid-template-columns: minmax(0, 1fr) 190px;
        min-height: 270px;
        padding: 26px;
    }

    .patient-wellbeing__moods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-bottom: 7px;
    }

    .patient-wellbeing__history-item {
        grid-template-columns: 1fr 1fr;
    }

    .patient-wellbeing__history-date {
        grid-column: 1 / -1;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .patient-form-section:has(.patient-wellbeing) {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .patient-wellbeing {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .patient-wellbeing__hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 22px 18px;
        border-radius: 21px;
    }

    .patient-wellbeing__hero h3 {
        margin-top: 12px;
        font-size: 1.65rem;
    }

    .patient-wellbeing__illustration {
        order: -1;
        max-height: 145px;
    }

    .patient-wellbeing__illustration svg {
        width: 190px;
        max-height: 145px;
    }

    .patient-wellbeing__hero-points {
        gap: 6px;
        margin-top: 14px;
    }

    .patient-wellbeing__hero-points span {
        min-height: 31px;
        padding: 5px 9px;
        font-size: .62rem;
    }

    .patient-wellbeing__notice {
        margin: 12px 0;
        padding: 12px;
        border-radius: 13px;
        font-size: .68rem;
    }

    .patient-wellbeing__form,
    .patient-wellbeing__history {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .patient-wellbeing__form-head,
    .patient-wellbeing__history-head {
        align-items: flex-start;
    }

    .patient-wellbeing__time,
    .patient-wellbeing__private {
        min-height: 30px;
        padding: 5px 9px;
        font-size: .6rem;
    }

    .patient-wellbeing__steps {
        gap: 5px;
        margin-top: 21px;
    }

    .patient-wellbeing__steps li {
        gap: 5px;
        font-size: .61rem;
    }

    .patient-wellbeing__steps b {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 9px;
    }

    .patient-wellbeing__panel {
        margin-top: 21px;
    }

    .patient-wellbeing__moods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-inline: -3px;
        padding: 3px 3px 9px;
    }

    .patient-wellbeing__moods label:nth-child(4) {
        grid-column: 1 / 2;
    }

    .patient-wellbeing__moods label:nth-child(5) {
        grid-column: 2 / 4;
    }

    .patient-wellbeing__moods label {
        min-height: 90px;
        border-radius: 14px;
    }

    .patient-wellbeing__mood-face {
        width: 34px;
        height: 34px;
    }

    .patient-wellbeing__moods strong { font-size: .61rem; }

    .patient-wellbeing__ranges,
    .patient-wellbeing__two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .patient-wellbeing__range,
    .patient-wellbeing__choice-group {
        padding: 14px;
        border-radius: 15px;
    }

    .patient-wellbeing__range input[type='range'] {
        height: 38px;
    }

    .patient-wellbeing__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .patient-wellbeing__chips label span,
    .patient-wellbeing__segmented label span {
        min-height: 50px;
        padding: 8px;
        border-radius: 12px;
        font-size: .65rem;
    }

    .patient-wellbeing__urgent {
        padding: 13px;
        border-radius: 15px;
    }

    .patient-wellbeing__urgent-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .patient-wellbeing__urgent-list label {
        min-height: 49px;
        font-size: .66rem;
    }

    .patient-wellbeing__contact {
        min-height: 62px;
    }

    .patient-wellbeing__nav {
        gap: 8px;
        margin-top: 20px;
    }

    .patient-wellbeing__next,
    .patient-wellbeing__back,
    .patient-wellbeing__submit {
        min-height: 50px;
        padding: 10px 15px;
        border-radius: 13px;
        font-size: .7rem;
    }

    .patient-wellbeing__submit,
    .patient-wellbeing__next {
        flex: 1 1 auto;
    }

    .patient-wellbeing__history-head {
        flex-direction: column;
        gap: 10px;
    }

    .patient-wellbeing__history-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        padding: 13px;
    }

    .patient-wellbeing__history-date {
        grid-column: auto;
    }

    .patient-wellbeing__history-score {
        grid-template-columns: 62px minmax(0, 1fr) 34px;
    }
}

@media (max-width: 380px) {
    .patient-wellbeing__form,
    .patient-wellbeing__history {
        padding-inline: 12px;
    }

    .patient-wellbeing__steps li span {
        display: none;
    }

    .patient-wellbeing__steps li {
        justify-content: center;
    }

    .patient-wellbeing__chips,
    .patient-wellbeing__segmented {
        grid-template-columns: minmax(0, 1fr);
    }

    .patient-wellbeing__moods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .patient-wellbeing__moods label:nth-child(4) {
        grid-column: auto;
    }

    .patient-wellbeing__moods label:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .patient-wellbeing *,
    .patient-wellbeing *::before,
    .patient-wellbeing *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
