/* ===== Expert consultation structured points ===== */
.expert-consultation-card__intro {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px dashed rgba(147, 197, 253, 0.22);
    color: rgba(203, 213, 225, 0.86);
    font-size: 13px;
    line-height: 1.45;
}

.expert-profile-info > summary {
    cursor: pointer;
    user-select: none;
}

.expert-profile-info > summary:hover {
    opacity: 0.9;
}

.expert-consultation-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 14px;
}

.expert-consultation-point {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.45;
    text-decoration: none;
}

.expert-consultation-point--clickable {
    position: relative;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.expert-consultation-point--clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.28);
    background: rgba(15, 23, 42, 0.48);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.07);
}

.expert-consultation-point--clickable::after {
    content: "↗";
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(219, 234, 254, 0.52);
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.expert-consultation-point--clickable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.expert-consultation-point__source {
    display: flex;
    align-items: center;
    gap: 5px 7px;
    flex-wrap: wrap;
    padding-right: 18px;
}

.expert-consultation-point__source-label {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: rgba(253, 230, 138, 0.94);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.expert-consultation-point__source strong {
    flex: 0 0 100%;
    min-width: 0;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.25;
    text-wrap: pretty;
}

.expert-consultation-point__source-meta {
    color: rgba(203, 213, 225, 0.70);
    font-size: 12px;
    line-height: 1.25;
}

.expert-consultation-point__block {
    display: grid;
    gap: 4px;
}

.expert-consultation-point__block span {
    color: rgba(147, 197, 253, 0.82);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expert-consultation-point__block p {
    margin: 0;
    color: rgba(226, 232, 240, 0.94);
    font-size: 14px;
    line-height: 1.45;
}

.expert-consultation-point__block--check {
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.expert-consultation-point__block--check span {
    color: rgba(196, 181, 253, 0.86);
}

.expert-consultation-point--clickable[data-tooltip] {
    overflow: visible;
}

.expert-consultation-point--clickable[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    max-width: min(260px, calc(100vw - 32px));
    width: max-content;

    background: rgba(20, 30, 50, 0.96);
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;

    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
    z-index: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.expert-consultation-point--clickable[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.expert-consultation-point__context-note {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed rgba(147, 197, 253, 0.22);
    background: rgba(15, 23, 42, 0.22);
    color: rgba(203, 213, 225, 0.82);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .expert-consultation-points {
        grid-template-columns: 1fr;
    }
}


/* ===== Expert screen ===== */

.expert-screen {
    display: grid;
    gap: 18px;
}

.expert-grid.expert-grid--overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.expert-grid--overview .expert-section-card {
    padding: 14px 12px;
}

.expert-grid--overview .expert-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.07em;    
}

.expert-grid--overview .expert-section-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.18;
}

.expert-grid--overview .expert-chip-list {
    gap: 8px;
}

.expert-grid--overview .expert-chip {
    padding: 9px 10px;
    border-radius: 12px;
}

.expert-grid--overview .expert-chip strong {
    font-size: 14px;
    line-height: 1.26;
}

.expert-grid--overview .expert-chip span {
    font-size: 12px;
    line-height: 1.32;
}

.expert-grid--overview .expert-chip__reason {
    margin-top: 3px;
    padding-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}

.expert-grid--overview .expert-section-card h3 {
    text-wrap: balance;
}

.expert-grid--overview .expert-chip strong {
    text-wrap: pretty;
}
.expert-chip--clickable {
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.expert-chip--clickable:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.expert-chip--clickable::after {
    content: "↗";
    position: absolute;
    top: 8px;
    right: 9px;
    color: rgba(219, 234, 254, 0.52);
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.expert-chip--clickable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.expert-chip--clickable:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(191, 219, 254, 0.42),
        0 12px 24px rgba(0, 0, 0, 0.24);
}

.expert-chip--clickable[data-tooltip] {
    overflow: visible;
}

.expert-chip--clickable[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;

    /* По умолчанию подсказка показывается сверху */
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    max-width: min(260px, calc(100vw - 32px));
    width: max-content;

    background: rgba(20, 30, 50, 0.96);
    color: #fff;

    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;

    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
    z-index: 500;

    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Для верхних карточек в скролл-блоке показываем подсказку вниз,
   чтобы её не обрезало верхней границей списка */
.expert-section-card--scroll .expert-chip-list > .expert-chip--clickable:nth-child(-n + 2)::before {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.expert-chip--clickable[data-tooltip]:hover {
    z-index: 120;
}

.expert-chip--clickable[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.expert-section-card--scroll .expert-chip-list > .expert-chip--clickable:nth-child(-n + 2):hover::before {
    transform: translateX(-50%) translateY(0);
}

.expert-chip--clickable[data-tooltip=""]::before {
    display: none;
}
@media (max-width: 1100px) {
    .expert-grid.expert-grid--overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .expert-grid.expert-grid--overview {
        grid-template-columns: 1fr;
    }

    .expert-section-card--scroll {
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .expert-section-card--scroll .expert-chip-list,
    .expert-section-card--scroll .expert-list {
        overflow: visible;
        padding-right: 0;
    }
}

.expert-grid--overview .expert-chip span.expert-chip-submeta,
.expert-chip span.expert-chip-submeta {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.62);
}

.expert-card--life {
    border: 2px solid rgba(245, 158, 11, 0.42);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(120, 53, 15, 0.34), rgba(15, 23, 42, 0.92));
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.09) inset,
        0 12px 34px rgba(0, 0, 0, 0.22);    
}

.expert-card--life .expert-chip {
    border-color: rgba(245, 158, 11, 0.40);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.74));
}

.expert-card--resource {
    border: 2px solid rgba(34, 197, 94, 0.38);
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(20, 83, 45, 0.32), rgba(15, 23, 42, 0.92));
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.09) inset,
        0 12px 34px rgba(0, 0, 0, 0.22);
}

.expert-card--resource .expert-chip {
    border-color: rgba(34, 197, 94, 0.38);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.74));
}

.expert-card--tension {
    border: 2px solid rgba(239, 68, 68, 0.38);
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(127, 29, 29, 0.34), rgba(15, 23, 42, 0.92));
    box-shadow:
        0 0 0 1px rgba(239, 68, 68, 0.09) inset,
        0 12px 34px rgba(0, 0, 0, 0.22);
}

.expert-card--tension .expert-chip {
    border-color: rgba(239, 68, 68, 0.38);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(15, 23, 42, 0.74));
}

.expert-card--psychosomatic {
    border: 2px solid rgba(129, 140, 248, 0.42);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(49, 46, 129, 0.36), rgba(15, 23, 42, 0.92));
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.10) inset,
        0 12px 34px rgba(0, 0, 0, 0.22);
}

.expert-card--psychosomatic .expert-chip {
    border-color: rgba(129, 140, 248, 0.38);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(15, 23, 42, 0.74));
}

.expert-card--courses {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 36%),
        rgba(30, 41, 59, 0.72);
}

.expert-card--courses .expert-chip {
    border-color: rgba(96, 165, 250, 0.24);
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(255,255,255,0.02));
}

.expert-card--courses .expert-chip__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.expert-card--courses .expert-chip__topline strong {
    min-width: 0;
}

.expert-course-toggle-form {
    flex: 0 0 auto;
    margin-left: auto;
}

.expert-card--courses .therapy-action-btn {
    white-space: nowrap;
}

.expert-advice-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.expert-advice-section__title {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.expert-advice-section__title h3 {
    margin-bottom: 0;
}

.expert-advice-section__title .muted {
    font-size: 13px;
    line-height: 1.35;
}

.expert-advice-section__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.expert-advice-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.expert-advice-card-btn {
    appearance: none;
    width: 100%;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.90);

    font: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;

    cursor: pointer;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.expert-advice-card-btn:hover {
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.expert-advice-card-btn--preview {
    background: rgba(59, 131, 246, 0.5);
}

.expert-advice-card-btn--preview:hover {
    background: rgba(59, 131, 246, 0.966);
}

.expert-advice-card-btn--select {
    background: rgba(19, 172, 27, 0.788);
}

.expert-advice-card-btn--select:hover,
.expert-advice-card-btn--select.is-active {
    background: rgba(23, 207, 32, 0.788);
}

.expert-advice-card-btn--select.is-active {
    background: rgba(85, 59, 51, 0.78);
}

.expert-card--courses.expert-advice-section {
    overflow: visible;
    padding-bottom: 22px;
}

.expert-advice-candidates-grid {
    margin-bottom: 4px;
}

.expert-advice-head-form {
    margin: 0;
}

.expert-advice-head-btn {
    appearance: none;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.88);

    font: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;

    cursor: pointer;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.expert-advice-head-btn--primary {
    background: rgba(19, 172, 27, 0.788);
}

.expert-advice-head-btn--primary:hover {
    background: rgba(23, 207, 32, 0.788);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.expert-advice-head-btn--secondary {
    background: rgba(85, 59, 51, 0.78);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.88);
}

.expert-advice-head-btn--secondary:hover {
    background: rgba(104, 73, 62, 0.88);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.expert-advice-head-btn:disabled,
.expert-advice-head-btn.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.2);
    transform: none;
}

.expert-advice-head-btn:disabled:hover,
.expert-advice-head-btn.is-disabled:hover {
    color: rgba(255,255,255,0.88);
    transform: none;
}

.expert-advice-section__help {
    flex: 0 0 auto;
}

.expert-advice-section__intro {

    margin: 0;
    color: rgba(226, 232, 240);
    font-size: 14px;
    line-height: 1.45;
}

body.has-expert-advice-preview-modal {
    overflow: hidden;
}

.expert-advice-preview-modal[hidden] {
    display: none;
}

.expert-advice-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 28px;
}

.expert-advice-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.74);
    backdrop-filter: blur(8px);
}

.expert-advice-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(860px, calc(100vh - 56px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(111, 145, 255, 0.16), transparent 34%),
        rgba(28, 36, 50, 0.96);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 28px 90px rgba(0,0,0,0.48),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.expert-advice-preview-modal__head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    background: rgba(15, 23, 42, 0.28);
}

.expert-advice-preview-modal__eyebrow {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.expert-advice-preview-modal__title {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.98);
    font-size: 24px;
    line-height: 1.2;
}

.expert-advice-preview-modal__close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.expert-advice-preview-modal__close:hover {
    background: rgba(255,255,255,0.11);
    color: #ffffff;
}

.expert-advice-preview-modal__body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px 22px 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.expert-advice-preview-modal__loading,
.expert-advice-preview-modal__empty,
.expert-advice-preview-content__empty {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    line-height: 1.5;
}

.expert-advice-preview-content {
    display: grid;
    gap: 16px;
}

.expert-advice-preview-content__head {
    display: grid;
    gap: 7px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.expert-advice-preview-content__eyebrow {
    color: rgba(147, 197, 253, 0.86);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.expert-advice-preview-content__head h3 {
    margin: 0;
    color: rgba(255,255,255,0.96);
    font-size: 20px;
    line-height: 1.25;
}

.expert-advice-preview-content__head p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

.expert-advice-preview-modal .journey-course-advice {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* ===== Expert advice preview: course advice cards ===== */

.expert-advice-preview-modal .journey-course-advice {
    --journey-accent-rgb: 242, 190, 99;
    --journey-accent-solid: #F2BE63;

    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.expert-advice-preview-modal .journey-course-advice__title {
    margin: 0;
    color: rgba(255,255,255,0.96);
    font-size: 22px;
    line-height: 1.25;
}

.expert-advice-preview-modal .journey-course-advice__intro {
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    line-height: 1.55;
}

.expert-advice-preview-modal .journey-course-advice__groups {
    display: grid;
    gap: 16px;
}

.expert-advice-preview-modal .journey-course-advice-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.expert-advice-preview-modal .journey-course-advice-group__title {
    margin: 0;
    color: rgba(255,255,255,0.96);
    font-size: 18px;
    line-height: 1.35;
}

.expert-advice-preview-modal .journey-course-advice-group__meta {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.45;
}

.expert-advice-preview-modal .journey-course-advice-group__meta strong {
    color: rgba(255,255,255,0.88);
}

.expert-advice-preview-modal .journey-course-advice-themes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.expert-advice-preview-modal .journey-course-advice-theme {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 8px 20px rgba(0,0,0,0.10);
}

.expert-advice-preview-modal .journey-course-advice-theme::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(var(--journey-accent-rgb), 0.72);
}

.expert-advice-preview-modal .journey-course-advice-theme__summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
}

.expert-advice-preview-modal .journey-course-advice-theme__summary::-webkit-details-marker {
    display: none;
}

.expert-advice-preview-modal .journey-course-advice-theme__summary-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.expert-advice-preview-modal .journey-course-advice-theme__title {
    color: rgba(255,255,255,0.96);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.expert-advice-preview-modal .journey-course-advice-theme__lead {
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    line-height: 1.55;
}

.expert-advice-preview-modal .journey-course-advice-theme__periods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.expert-advice-preview-modal .journey-course-advice-theme__period-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.25;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.78);
}

.expert-advice-preview-modal .journey-course-advice-theme__period-tag--now {
    color: rgba(187, 247, 208, 0.96);
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.24);
}

.expert-advice-preview-modal .journey-course-advice-theme__period-tag--week {
    color: rgba(253, 230, 138, 0.96);
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.24);
}

.expert-advice-preview-modal .journey-course-advice-theme__period-tag--month {
    color: rgba(191, 219, 254, 0.96);
    background: rgba(59, 130, 246, 0.13);
    border-color: rgba(59, 130, 246, 0.24);
}

.expert-advice-preview-modal .journey-course-advice-theme__period-tag--neutral {
    color: rgba(226, 232, 240, 0.88);
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.20);
}

.expert-advice-preview-modal .journey-course-advice-theme__toggle {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    color: rgba(255,255,255,0.74);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 6px 10px;
}

.expert-advice-preview-modal .journey-course-advice-theme[open] .journey-course-advice-theme__toggle {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.94);
}

.expert-advice-preview-modal .journey-course-advice-theme__body {
    padding: 0 18px 16px;
    display: grid;
    gap: 10px;
}

.expert-advice-preview-modal .journey-course-advice-theme__period {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
}

.expert-advice-preview-modal .journey-course-advice-theme__period-label {
    margin-bottom: 6px;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.expert-advice-preview-modal .journey-course-advice-theme__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
    color: rgba(226, 232, 240, 0.88);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .expert-advice-preview-modal .journey-course-advice-themes {
        grid-template-columns: 1fr;
    }
}

body.has-expert-advice-preview-modal footer {
    display: none !important;
}

@media (max-width: 760px) {
    .expert-advice-section__head {
        align-items: stretch;
        flex-direction: column;
    }

    .expert-advice-section__actions {
        justify-content: flex-start;
    }

    .expert-advice-head-btn,
    .expert-advice-head-form {
        width: 100%;
    }

    .expert-advice-head-btn {
        min-height: 38px;
    }

    .expert-advice-section__help {
        width: 42px;
    }
}

.expert-chip-list.expert-advice-candidates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
    column-gap: 12px;
    align-items: start;
    grid-auto-rows: auto;
}

.expert-chip-list.expert-advice-candidates-grid .expert-chip {
    height: auto;
    min-height: 0;
    align-content: start;
}

.expert-card--courses .expert-advice-candidates-grid .expert-chip.expert-advice-source--brain {
    border-color: rgba(96, 165, 250, 0.38);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(15, 23, 42, 0.58));
}

.expert-card--courses .expert-advice-candidates-grid .expert-chip.expert-advice-source--life {
    border-color: rgba(245, 158, 11, 0.40);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 42%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.58));
}

.expert-card--courses .expert-advice-candidates-grid .expert-chip.expert-advice-source--tension {
    border-color: rgba(239, 68, 68, 0.38);
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.58));
}

.expert-card--courses .expert-advice-candidates-grid .expert-chip.expert-advice-source--psychosomatic {
    border-color: rgba(129, 140, 248, 0.42);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(99, 102, 241, 0.17), rgba(15, 23, 42, 0.58));
}

.expert-card--courses .expert-advice-candidates-grid .expert-chip.expert-advice-source--neutral {
    border-color: rgba(148, 163, 184, 0.24);
}

@media (max-width: 1180px) {
    .expert-chip-list.expert-advice-candidates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .expert-chip-list.expert-advice-candidates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .expert-card--courses .expert-chip__topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .expert-course-toggle-form {
        margin-left: 0;
    }
}

.expert-section-card--scroll {
    height: 680px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expert-section-card--scroll .expert-chip-list,
.expert-section-card--scroll .expert-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 4px;

    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
}

.expert-card--resource .expert-chip-list {
    margin-bottom: 0;
}

.expert-section-card--scroll .expert-chip-list,
.expert-section-card--scroll .expert-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.expert-section-card--scroll .expert-chip-list::-webkit-scrollbar,
.expert-section-card--scroll .expert-list::-webkit-scrollbar {
    width: 10px;
}

.expert-section-card--scroll .expert-chip-list::-webkit-scrollbar-track,
.expert-section-card--scroll .expert-list::-webkit-scrollbar-track {
    background: transparent;
}

.expert-section-card--scroll .expert-chip-list::-webkit-scrollbar-thumb,
.expert-section-card--scroll .expert-list::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.08)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.expert-section-card--scroll .expert-chip-list::-webkit-scrollbar-thumb:hover,
.expert-section-card--scroll .expert-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.28),
        rgba(255,255,255,0.14)
    );
    border: 2px solid transparent;
    background-clip: padding-box;
}

.expert-grid--overview .expert-chip {
    padding: 10px 12px;
    gap: 4px;
}

.expert-grid--overview .expert-chip strong {
    font-size: 15px;
    line-height: 1.28;
}

.expert-grid--overview .expert-chip span {
    font-size: 13px;
    line-height: 1.35;
}

.expert-grid--overview .expert-chip__reason {
    font-size: 12px;
    line-height: 1.42;
    padding-top: 7px;
}

.expert-eyebrow {
    margin-bottom: 8px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.expert-picker-card {
    display: grid;
    gap: 16px;
}

.expert-picker-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.expert-picker-form__field {
    min-width: 0;
}

.expert-picker-form__field select {
    margin-bottom: 0;
}

.expert-picker-form__action .btn {
    height: 46px;
    white-space: nowrap;
}

.expert-direction-note {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(255,255,255,0.08);
    line-height: 1.55;
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.expert-section-card {
    margin-bottom: 0;
}

.expert-section-card--wide {
    grid-column: 1 / -1;
}

.expert-consultation-card {
    border: 2px solid rgba(245, 158, 11, 0.36);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.11), transparent 42%),
        linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(30, 41, 59, 0.78));
}

.expert-consultation-card .expert-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    display: grid;
    gap: 10px 18px;
}

.expert-consultation-card .expert-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(255,255,255,0.07);
}

.expert-consultation-card__intro {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px dashed rgba(147, 197, 253, 0.22);
    color: rgba(203, 213, 225, 0.86);
    font-size: 13px;
    line-height: 1.45;
}

.expert-consultation-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 14px;
}

.expert-consultation-point {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.45;
}

.expert-section-card__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.expert-section-card h3 {
    margin-bottom: 10px;
    color: #f8fafc;
}

.expert-lead {
    margin: 0;
    color: rgba(226, 232, 240, 0.90);
    line-height: 1.65;
}

.expert-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 9px;
    color: rgba(226, 232, 240, 0.90);
    line-height: 1.55;
}

.expert-chip-list {
    display: grid;
    gap: 10px;
}

.expert-chip {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 400;
}

.expert-chip strong {
    color: #f8fafc;
    line-height: 1.35;
}

.expert-chip span {
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.expert-chip--danger {
    border-color: rgba(239, 68, 68, 0.28);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(255,255,255,0.025));
}

.expert-chip--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255,255,255,0.025));
}

.expert-chip--safe {
    border-color: rgba(34, 197, 94, 0.26);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.13), rgba(255,255,255,0.025));
}

.expert-chip--neutral {
    border-color: rgba(148, 163, 184, 0.22);
}

.expert-section-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.expert-section-link {
    display: grid;
    gap: 7px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(96, 165, 250, 0.18);
    text-decoration: none;
    color: inherit;
    transition: 0.18s ease;
}

.expert-section-link:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(96, 165, 250, 0.10);
}

.expert-section-link strong {
    color: #dbeafe;
}

.expert-section-link span {
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
    line-height: 1.45;
}

.expert-actions {
    margin-top: 16px;
}

.expert-notes-form textarea {
    min-height: 168px;
    margin-bottom: 12px;
}

.expert-notes-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.expert-notes-form__footer .btn {
    flex: 0 0 auto;
}

.expert-future-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-size: 14px;
    line-height: 1.55;
}

.expert-picker-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.expert-direction-form {
    display: grid;
    gap: 8px;
}

.expert-direction-form select {
    margin-bottom: 0;
}

.expert-task-panel {
    display: grid;
    gap: 10px;
}

.expert-task-panel__label {
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}

.expert-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expert-task-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 999px;

    text-decoration: none;
    color: #dbeafe;

    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);

    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.expert-task-tag:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(96, 165, 250, 0.42);
    transform: translateY(-1px);
}

.expert-task-tag.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-color: rgba(191, 219, 254, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 10px 26px rgba(37, 99, 235, 0.30);
}

.expert-task-tag.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
    color: rgba(203, 213, 225, 0.72);
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
    filter: grayscale(0.2);
}

.expert-task-tag.is-disabled::after {
    content: "скоро";
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(203, 213, 225, 0.72);
    font-size: 11px;
    font-weight: 700;
}

.expert-chip__reason {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(226, 232, 240, 0.82);
    font-size: 13px;
    line-height: 1.5;
}

.expert-block-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: rgba(219, 234, 254, 0.92);
    font-size: 14px;
    line-height: 1.55;
}

.expert-block-note.expert-block-note--compact {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(203, 213, 225, 0.78);
}

.expert-block-note.expert-block-note--footer {
    flex: 0 0 auto;
    margin: 8px 0 0;
    background: rgba(15, 23, 42, 0.38);
    border: 1px dashed rgba(147, 197, 253, 0.22);
}

.expert-card--resource .expert-block-note--footer {
    box-shadow: none;
}

.expert-chip__secondary {
    display: block;
    margin-top: 8px;
    color: rgba(203, 213, 225, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .expert-picker-layout {
        grid-template-columns: 1fr;
    }

    .expert-task-tags {
        gap: 8px;
    }

    .expert-task-tag {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 980px) {
    .expert-picker-form,
    .expert-grid,
    .expert-grid--main {
        grid-template-columns: 1fr;
    }

    .expert-picker-form__action .btn {
        width: 100%;
    }

    .expert-notes-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .expert-notes-form__footer .btn {
        width: 100%;
    }
}

.expert-screen {
    gap: 14px;
}

.expert-picker-card {
    gap: 12px;
    padding: 16px 18px;
}

.expert-picker-intro {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.expert-picker-intro .expert-eyebrow {
    margin-bottom: 5px;
}

.expert-picker-intro h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.expert-picker-intro p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.45;
}

.expert-picker-layout {
    grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
    gap: 16px;
}

.expert-direction-note--compact {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px dashed rgba(147, 197, 253, 0.20);
    font-size: 12px;
    line-height: 1.35;
    color: rgba(203, 213, 225, 0.82);
}

.expert-direction-note--compact strong {
    color: rgba(219, 234, 254, 0.92);
}

.expert-direction-note--compact .expert-direction-note__text {
    flex-basis: 100%;
    color: rgba(148, 163, 184, 0.88);
}

.expert-notes-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.expert-notes-card__summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(30, 41, 59, 0.72);
    border-radius: 12px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.expert-notes-card__summary::-webkit-details-marker {
    display: none;
}

.expert-notes-card__summary:hover {
    background: rgba(51, 65, 85, 0.82);
}

.expert-notes-card__summary .expert-eyebrow {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
}

.expert-notes-card__summary strong {
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.2;
}

.expert-notes-card__hint {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.20);
    color: rgba(191, 219, 254, 0.86);
    font-size: 12px;
    line-height: 1;
}

.expert-notes-card__summary::after {
    content: "▾";
    color: rgba(203, 213, 225, 0.72);
    font-size: 16px;
    transition: transform 0.18s ease;
}

.expert-notes-card[open] .expert-notes-card__summary::after {
    transform: rotate(180deg);
}

.expert-notes-card[open] .expert-notes-card__summary {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.expert-notes-card.diagnostic-viewer-notes-card {
    margin-bottom: 14px;
}

.expert-notes-form--compact {
    padding: 14px 16px 16px;
    background: rgba(30, 41, 59, 0.62);
}

.expert-notes-form--compact textarea {
    min-height: 132px;
    margin-bottom: 10px;
}

.is-expert-focused {
    position: relative;
    z-index: 40;
    animation: expertFocusPulse 3.6s ease;
}

@keyframes expertFocusPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(191, 219, 254, 0),
            0 0 0 0 rgba(96, 165, 250, 0);
        transform: scale(1);
    }

    16% {
        box-shadow:
            0 0 0 3px rgba(191, 219, 254, 0.75),
            0 0 28px rgba(96, 165, 250, 0.50);
        transform: scale(1.015);
    }

    70% {
        box-shadow:
            0 0 0 2px rgba(191, 219, 254, 0.34),
            0 0 18px rgba(96, 165, 250, 0.24);
        transform: scale(1);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(191, 219, 254, 0),
            0 0 0 0 rgba(96, 165, 250, 0);
        transform: scale(1);
    }
}

/* ===== Expert current request notice ===== */

.expert-current-request {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(147, 197, 253, 0.20);
}

.expert-current-request__eyebrow {
    color: rgba(147, 197, 253, 0.86);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.expert-current-request__main {
    display: grid;
    gap: 4px;
}

.expert-current-request__main span {
    color: rgba(203, 213, 225, 0.78);
    font-size: 13px;
    line-height: 1.3;
}

.expert-current-request__main strong {
    color: #f8fafc;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 700;
}

.expert-current-request__text {
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== Expert advice: specialist text ===== */

.expert-advice-form {
    display: grid;
    gap: 18px;
}

.expert-specialist-recommendations,
.expert-generated-recommendations {
    display: grid;
    gap: 12px;
}

.expert-specialist-recommendations {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(59, 130, 246, 0.08);
}

.expert-specialist-recommendations__head,
.expert-generated-recommendations__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.expert-specialist-recommendations__head h4,
.expert-generated-recommendations__head h4 {
    margin: 0;
    color: rgba(255,255,255,0.96);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
}

.expert-specialist-recommendations__head p,
.expert-generated-recommendations__head p {
    margin: 5px 0 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.expert-specialist-recommendations__head > span,
.expert-generated-recommendations__head > span {
    flex: 0 0 auto;
    color: rgba(203, 213, 225, 0.62);
    font-size: 12px;
    line-height: 1.35;
}

.expert-specialist-recommendations__field {
    width: 100%;
    min-height: 150px;
    box-sizing: border-box;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15, 23, 42, 0.46);
    color: rgba(255,255,255,0.94);
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    outline: none;
}

.expert-specialist-recommendations__field::placeholder {
    color: rgba(203, 213, 225, 0.46);
}

.expert-specialist-recommendations__field:focus {
    border-color: rgba(96, 165, 250, 0.48);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.expert-generated-recommendations {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.expert-generated-recommendations__empty {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .expert-specialist-recommendations__head,
    .expert-generated-recommendations__head {
        flex-direction: column;
    }

    .expert-specialist-recommendations__head > span,
    .expert-generated-recommendations__head > span {
        flex: none;
    }
}
