body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #111;
}

#app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 520px;
}

/* Тёмная тема Telegram: белая карточка #app + светлый --tg-theme-text дают невидимый текст; фон — из темы */
html[data-tg-theme="dark"] body,
body.tg-dark-theme {
    background: var(--tg-theme-bg-color, #212121);
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] #app,
body.tg-dark-theme #app {
    background: var(--tg-theme-secondary-bg-color, #2b2b2b) !important;
    color: var(--tg-theme-text-color, #e2e8f0);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
html[data-tg-theme="dark"] #app h2,
html[data-tg-theme="dark"] #app h3,
body.tg-dark-theme #app h2,
body.tg-dark-theme #app h3 {
    color: var(--tg-theme-text-color, #f1f5f9);
}
html[data-tg-theme="dark"] #app .hint,
body.tg-dark-theme #app .hint {
    color: var(--tg-theme-hint-color, #94a3b8) !important;
}
html[data-tg-theme="dark"] #app .hint b,
body.tg-dark-theme #app .hint b {
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] #app #compass-instruction-section > h2,
body.tg-dark-theme #app #compass-instruction-section > h2 {
    color: var(--tg-theme-text-color, #f1f5f9);
}

h1 {
    margin: 0 0 8px;
    font-size: 22px;
    text-align: center;
}

h2, h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 18px;
}

.package-description {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    font-style: italic;
}

#packages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.package-btn,
.duration-btn,
.time-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #f5f7fb;
    color: #111;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.package-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.package-desc {
    font-size: 14px;
    color: #555;
}

.package-btn.selected,
.duration-btn.selected,
.time-btn.selected {
    background: #2a6fdb;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.4);
}

.section {
    margin-top: 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* --- Шкала Баланса: шапка и блок кнопок навигации --- */
.compass-app-hero {
    text-align: center;
    padding: 16px 16px 18px;
    margin: 0 0 4px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 130% 90% at 100% -20%, rgba(59, 130, 246, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at -10% 110%, rgba(14, 165, 233, 0.07) 0%, transparent 50%),
        linear-gradient(152deg, #f5f8fc 0%, #f3f7fb 45%, #f6f9fd 100%);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 10px 32px rgba(37, 99, 235, 0.05),
        0 4px 14px rgba(15, 23, 42, 0.05);
}
.compass-app-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.compass-app-hero-text {
    min-width: 0;
    flex: 1;
}
.compass-app-hero-eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: none;
    color: #0284c7;
}
.compass-app-hero-eyebrow-label {
    display: inline;
    font-weight: 800;
    font-size: inherit;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    /* Чуть темнее голубой для читаемости на светлом фоне */
    background: linear-gradient(
        180deg,
        #0369a1 0%,
        #0284c7 26%,
        #0ea5e9 52%,
        #38bdf8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.compass-app-hero-eyebrow-icons {
    display: inline-block;
    margin-right: 2px;
    font-size: 13px;
    letter-spacing: 0;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(37, 99, 235, 0.15));
}
.compass-app-hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}
.compass-app-hero-title {
    margin: 0;
    font-size: clamp(1.4rem, 4.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #0c1e3d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
}
.compass-hero-instruction-btn {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 5px 15px 6px;
    margin: 2px 0 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid rgba(59, 130, 246, 0.45);
    background: transparent;
    color: #1e293b;
    box-shadow: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}
.compass-hero-instruction-btn:hover {
    border-color: rgba(59, 130, 246, 0.65);
    background: transparent;
    box-shadow: none;
}
.compass-hero-instruction-btn:active {
    transform: scale(0.96);
}
.compass-hero-instruction-btn.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.compass-hero-instruction-btn.tab-btn.selected:hover {
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38);
}
.compass-hero-instruction-emoji {
    pointer-events: none;
    display: inline-block;
    font-size: 1.08em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}
.compass-hero-instruction-label {
    pointer-events: none;
    display: inline-block;
    color: inherit;
}
.compass-hero-instruction-btn.tab-btn.selected .compass-hero-instruction-emoji {
    filter: none;
}
/* Глобальный .tab-btn { flex: 1 } иначе растягивает кнопку на всю строку шапки */
.compass-app-hero .compass-hero-instruction-btn.tab-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 5px 15px 6px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    border-radius: 999px;
}
/* Как подпись «Статистика» / .compass-nav-btn--stats — глобальный .tab-btn иначе даёт #4a5568 */
.compass-app-hero .compass-hero-instruction-btn.tab-btn:not(.selected) {
    color: #1e293b;
}
html[data-tg-theme="dark"] .compass-app-hero .compass-hero-instruction-btn.tab-btn:not(.selected),
body.tg-dark-theme .compass-app-hero .compass-hero-instruction-btn.tab-btn:not(.selected) {
    color: #e2e8f0;
}
.compass-profile-wrap {
    position: relative;
    flex: 0 0 auto;
}
.compass-profile-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #312e81;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.compass-profile-toggle > span {
    display: block;
    line-height: 1;
}
.compass-profile-popover {
    position: absolute;
    top: 46px;
    right: -14px;
    min-width: 230px;
    max-width: 290px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: radial-gradient(circle at top left, #eef2ff 0, #ffffff 38%, #ffffff 100%);
    color: #0f172a;
    text-align: left;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.33);
    z-index: 20;
}
.compass-profile-popover-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.compass-profile-line {
    font-size: 13px;
    line-height: 1.35;
}
.compass-profile-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.compass-profile-status-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    line-height: 1.3;
}
.compass-profile-status-main b,
.compass-profile-status-main #compass-profile-role {
    font-weight: 700;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}
.compass-profile-id-row {
    display: block;
}
.compass-profile-id-client-hint {
    margin: 0 0 1px;
    padding: 0;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
    font-style: italic;
    color: #64748b;
}
.compass-profile-id-row-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.compass-profile-id-row-main {
    min-width: 0;
    flex: 1 1 auto;
}
.compass-profile-id-row-inner .compass-profile-copy-id {
    flex-shrink: 0;
}
.compass-profile-line + .compass-profile-line {
    margin-top: 4px;
}
.compass-profile-line span {
    color: #475569;
}
.compass-profile-status-main span {
    margin-right: 0;
}
/* «Изменить» (статус): тот же контур + лёгкий градиент, что «Мои нейротренеры» */
.compass-profile-role-edit-btn,
.compass-profile-modal-outline-btn {
    margin-top: 1px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(37, 99, 235, 0.48);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.85) 42%, rgba(219, 234, 254, 0.55) 100%);
    color: #1d4ed8;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(37, 99, 235, 0.08);
}
.compass-profile-role-edit-btn:active,
.compass-profile-modal-outline-btn:active {
    opacity: 0.9;
}
/* «Отмена» / «Закрыть» в модалках профиля — тот же силуэт, без лишнего margin */
.psychologist-contact-modal-actions .compass-profile-modal-outline-btn,
.trainer-review-modal .psychologist-contact-modal-actions .compass-profile-modal-outline-btn {
    margin-top: 0;
    font-size: 13px;
    padding: 8px 14px;
}
/* Копирование ID: тот же вид, что у кнопок «Цели» в спринте (градиент, обводка, иконка) */
.compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary {
    padding: 5px 7px;
    min-width: 0;
    font-size: 0;
    line-height: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.compass-profile-copy-id .sprint-copy-goals-icon {
    width: 16px;
    height: 16px;
}
.compass-profile-role-editor {
    margin-top: 6px;
    margin-bottom: 4px;
}
.compass-profile-role-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 2px;
    background: #ffffff;
}
.compass-profile-role-status {
    margin-top: 5px;
    min-height: 16px;
    font-size: 12px;
    color: #16a34a;
}
.compass-profile-trainer-block {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(99, 102, 241, 0.25);
}
.compass-profile-trainer-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #475569;
}
.compass-profile-trainer-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 13px;
    margin-bottom: 6px;
}
.compass-profile-trainer-status {
    margin-top: 5px;
    min-height: 16px;
    font-size: 12px;
    color: #16a34a;
}

.compass-profile-save-all {
    width: 100%;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
.compass-profile-save-all:active {
    opacity: 0.9;
}

.compass-profile-questionnaire-disclosure {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compass-profile-contacted-trainers-wrap {
    margin-top: 8px;
}

/* «Оставить отзыв» в одном ряду с «Мои нейротренеры» только у «Пользователь с нейротренером» (--pair задаётся в JS) */
.compass-profile-trainer-actions-inner--pair {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
}
.compass-profile-trainer-actions-inner--pair > .compass-profile-save-all {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    width: auto;
}
.compass-profile-trainer-actions-inner:not(.compass-profile-trainer-actions-inner--pair) > .compass-profile-save-all {
    width: 100%;
    margin-top: 0;
}

.compass-profile-nt-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}
.compass-profile-nt-actions-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
}
/* «Запросы» / «Мои клиенты» / «Отзывы»: контур + лёгкий градиент (без сплошной заливки как у «Сохранить») */
.compass-profile-nt-actions-row > .compass-profile-nt-split-btn,
.compass-profile-nt-actions-wrap > .compass-profile-nt-reviews-btn.compass-profile-nt-split-btn {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.85) 42%, rgba(219, 234, 254, 0.55) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.48);
    color: #1d4ed8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(37, 99, 235, 0.08);
}
.compass-profile-nt-actions-wrap > .compass-profile-nt-reviews-btn.compass-profile-nt-split-btn {
    flex: none;
    width: 100%;
}
.compass-profile-nt-actions-row > .compass-profile-nt-split-btn:active,
.compass-profile-nt-actions-wrap > .compass-profile-nt-reviews-btn.compass-profile-nt-split-btn:active {
    opacity: 0.9;
}

.compass-sprint-client-stat {
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(248, 250, 252, 0.92);
    font-size: 13px;
    line-height: 1.45;
    box-sizing: border-box;
}
.compass-sprint-client-stat:last-child {
    margin-bottom: 0;
}
.compass-sprint-client-stat-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.compass-sprint-client-stat-dates {
    color: #475569;
    font-size: 12px;
}
.compass-sprint-client-stat-user {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.compass-profile-my-neurotrainers-btn {
    box-sizing: border-box;
    display: block;
}
/* «Мои нейротренеры» и «Оставить отзыв»: контур + лёгкая градиентная заливка */
.compass-profile-my-neurotrainers-btn,
.compass-profile-leave-review-btn {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.85) 42%, rgba(219, 234, 254, 0.55) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.48);
    color: #1d4ed8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(37, 99, 235, 0.08);
}
.compass-profile-my-neurotrainers-btn {
    align-items: center;
}
.compass-profile-leave-review-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.compass-profile-leave-review-label {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
    line-height: 1.2;
}
.compass-profile-my-neurotrainers-btn:active,
.compass-profile-leave-review-btn:active {
    opacity: 0.9;
}

.compass-my-clients-modal-inner,
.compass-my-neurotrainers-modal-inner,
.compass-nt-reviews-modal-inner {
    max-height: 85vh;
    overflow: auto;
}

.compass-nt-review-card {
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(37, 99, 235, 0.06);
}
.compass-nt-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 6px;
}
.compass-nt-review-author {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}
.compass-nt-review-rating {
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #1d4ed8;
    font-weight: 600;
}
.compass-nt-review-body {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
    white-space: pre-wrap;
}
.compass-nt-review-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

.compass-contact-lead-card {
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(37, 99, 235, 0.06);
}

.compass-contact-lead-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #0f172a;
}

.compass-contact-lead-row {
    font-size: 13px;
    color: #334155;
    margin-bottom: 4px;
    line-height: 1.35;
}

.compass-contact-lead-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.compass-contact-lead-msg {
    font-size: 13px;
    color: #1e293b;
    white-space: pre-wrap;
    margin-top: 4px;
    line-height: 1.4;
}

.compass-contact-lead-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

a.compass-contact-tg-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.compass-contact-tg-link:active {
    opacity: 0.85;
}

.compass-my-trainer-card {
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

.compass-my-trainer-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.compass-my-trainer-card-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.compass-my-trainer-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    font-size: 22px;
}

.compass-my-trainer-card-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.compass-my-trainer-card-city {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.compass-my-trainer-card-actions {
    margin-top: 10px;
}

/* «Моя анкета»: как «Проекты (краткая версия)» — без лишней ::after у общего sprint-toggle */
.compass-profile-questionnaire-toggle.compass-sprint-short-toggle {
    margin-top: 8px;
}
.compass-profile-questionnaire-toggle.compass-sprint-short-toggle::after {
    content: none;
}
/* Иначе позже в файле .compass-sprint-short-toggle.active::after (такая же специфичность) снова рисует «▼» рядом со своей стрелкой */
.compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active::after {
    content: none;
}
.compass-profile-questionnaire-toggle.compass-sprint-short-toggle .compass-profile-questionnaire-arrow::before {
    color: #2f80ed;
}
.compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active .compass-profile-questionnaire-arrow::before {
    color: #fff;
}

.compass-profile-questionnaire-toggle:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

.compass-profile-questionnaire-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    min-height: 1.35em;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}

/* Закрыто: стрелка справа (вправо); открыто: вниз */
.compass-profile-questionnaire-arrow::before {
    content: '\25B6';
    display: block;
}

.compass-profile-questionnaire-toggle--open .compass-profile-questionnaire-arrow::before {
    content: '\25BC';
}

.compass-profile-questionnaire-text {
    display: block;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.compass-profile-panel {
    border: 1px solid rgba(37, 99, 235, 0.38);
    border-radius: 14px;
    padding: 12px 14px 14px;
    background: #ffffff;
    box-sizing: border-box;
}

#compass-tab-profile.selected {
    box-shadow: 0 0 0 2px #2563eb, 0 0 0 5px rgba(37, 99, 235, 0.18);
}

.compass-psychologist-editor-card {
    margin-top: 4px;
    padding: 0;
}

/* «Продвижение»: сворачиваемый блок над «Поднять анкету» */
.psychologist-promotion-block {
    margin: 0 0 12px;
    box-sizing: border-box;
}
.psychologist-promotion-toggle {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 10px 40px 10px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(37, 99, 235, 0.48);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.85) 42%, rgba(219, 234, 254, 0.55) 100%);
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(37, 99, 235, 0.08);
    transition: border-radius 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}
.psychologist-promotion-toggle:hover {
    border-color: #2563eb;
    background: linear-gradient(180deg, #fff 0%, #e8f0fe 48%, #dbeafe 100%);
}
.psychologist-promotion-toggle:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}
.psychologist-promotion-toggle:active {
    opacity: 0.92;
}
.psychologist-promotion-toggle[aria-expanded="true"] {
    border-radius: 14px 14px 0 0;
    border-bottom-color: rgba(37, 99, 235, 0.2);
    box-shadow: none;
}
.psychologist-promotion-toggle-text {
    display: block;
    text-align: center;
    pointer-events: none;
}
.psychologist-promotion-toggle-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    min-height: 1.35em;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    color: #2563eb;
}
.psychologist-promotion-toggle-arrow::before {
    content: "\25B6";
    display: block;
}
.psychologist-promotion-toggle[aria-expanded="true"] .psychologist-promotion-toggle-arrow::before {
    content: "\25BC";
}
.psychologist-promotion-panel {
    margin: 0;
    padding: 12px 14px 14px;
    border: 1.5px solid rgba(37, 99, 235, 0.48);
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    box-sizing: border-box;
}
.psychologist-promotion-lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: #0f172a;
}
.psychologist-promotion-item {
    margin: 0 0 12px;
}
.psychologist-promotion-item:last-of-type {
    margin-bottom: 14px;
}
.psychologist-promotion-item-title {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}
.psychologist-promotion-item-text {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
}
.psychologist-promotion-summary {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
}

/* Анкета под кнопкой «Моя анкета» — общая шапка с краткой версией спринта */
#compass-profile-questionnaire-disclosure > #compass-psychologist-form-section {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 10px 12px;
    border: 2px solid #2f80ed;
    border-top: none;
    border-radius: 0 0 16px 16px;
    background: #f8faff;
}
#compass-profile-questionnaire-disclosure > #compass-psychologist-form-section .compass-psychologist-editor-card {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
}

.psychologist-catalog-bump-block {
    margin-bottom: 0;
}

.psychologist-catalog-visibility-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.psychologist-bump-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}
.psychologist-bump-row--inactive .psychologist-bump-hint {
    opacity: 0.55;
}
.psychologist-bump-hint {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    user-select: none;
}
.psychologist-bump-hint-arrow {
    font-size: 15px;
    opacity: 0.75;
}
.psychologist-profile-bump-emoji-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.psychologist-profile-bump-emoji-btn:hover:not(:disabled) {
    border-color: #2563eb;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}
.psychologist-profile-bump-emoji-btn:active:not(:disabled) {
    transform: scale(0.96);
}
.psychologist-profile-bump-emoji-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.psychologist-bump-emoji {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
}
.psychologist-profile-bump-emoji-btn.psychologist-profile-bump-btn--loading .psychologist-bump-emoji {
    animation: psychologist-bump-spin 0.75s linear infinite;
}
@keyframes psychologist-bump-spin {
    to {
        transform: rotate(360deg);
    }
}

.psychologist-profile-updated-at {
    margin: 6px 0 0 !important;
    font-size: 12px;
    color: #64748b;
}

.psychologist-bump-cooldown {
    margin: 4px 0 0 !important;
    font-size: 12px;
    color: #64748b;
}

.psychologist-price-subsection-rule {
    display: block;
    width: calc(100% + 28px);
    max-width: none;
    height: 0;
    margin: 10px 0 10px -14px;
    padding: 0;
    border: none;
    border-top: 1px solid rgba(37, 99, 235, 0.38);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
    box-sizing: border-box;
}

.psychologist-listing-visibility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.psychologist-listing-visibility-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.psychologist-listed-hint {
    margin: 0 0 10px !important;
    font-size: 12px;
}

.psychologist-listed-switch {
    flex-shrink: 0;
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.85);
    background: #e2e8f0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.psychologist-listed-switch:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.psychologist-listed-switch--on {
    background: #2563eb;
    border-color: #1d4ed8;
}

.psychologist-listed-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.psychologist-listed-switch--on .psychologist-listed-switch-knob {
    transform: translateX(20px);
}

.psychologist-listed-switch:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Без отдельной рамки — общий фон с блоком профиля, лёгкий внутренний зазор */
.compass-psychologist-form-fill {
    border: none;
    border-radius: 0;
    padding: 10px 4px 0;
    background: transparent;
    box-sizing: border-box;
}

.psychologist-form-actions-dual {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.psychologist-form-action-btn {
    flex: 1;
    margin-top: 0 !important;
    min-width: 0;
}

.psychologist-form-actions--stack {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.psychologist-form-preview-wide {
    width: 100%;
    justify-content: center;
}

.psychologist-form-preview-btn {
    box-sizing: border-box;
    width: 100%;
    border: 1.5px solid #2563eb;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(191, 219, 254, 0.42) 100%);
    color: #1d4ed8;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
}
.psychologist-form-preview-btn:hover {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.98) 0%, rgba(165, 180, 252, 0.4) 100%);
}
.psychologist-form-preview-btn:active {
    opacity: 0.92;
}

.psychologist-form-actions--stack > .psychologist-form-preview-wide {
    margin-top: 0;
}

.psychologist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 6px;
}

.psychologist-form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.psychologist-section-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.3;
}
.psychologist-req-star {
    color: #dc2626;
    font-weight: 800;
    margin-left: 2px;
}
.psychologist-section-req-hint {
    margin: -2px 0 2px;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
}
.psychologist-section-req-hint--optional {
    color: #94a3b8;
    font-style: italic;
}
.psychologist-form-req-intro {
    margin: 0 0 10px !important;
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}
.psychologist-pro-experience-row {
    flex-wrap: wrap;
    gap: 12px 18px;
}
.psychologist-card-roles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.psychologist-card-roles-row--full-detail {
    width: 100%;
    margin-top: 2px;
    margin-bottom: 8px;
}
.psychologist-card-roles-row--full-detail .psychologist-card-coach-tag {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}
/* Подробная анкета: тона ролей (приглушённые, в общей стилистике карточки) */
.psychologist-card-roles-row--full-detail .psychologist-card-coach-tag.psychologist-card-role--coach {
    color: #b45309;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.92) 100%);
    border: 1px solid rgba(217, 119, 6, 0.2);
    box-shadow: 0 1px 2px rgba(180, 83, 9, 0.06);
}
.psychologist-card-roles-row--full-detail .psychologist-card-coach-tag.psychologist-card-role--psychologist {
    color: #1d4ed8;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.06);
}
.psychologist-card-roles-row--full-detail .psychologist-card-coach-tag.psychologist-card-role--supervisor {
    color: #6d28d9;
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 1px 2px rgba(91, 33, 182, 0.07);
}
.psychologist-card-roles-row--catalog-strip {
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
    gap: 6px;
}
.psychologist-card-roles-row--catalog-strip .psychologist-card-coach-tag {
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
}
.psychologist-file-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    border-radius: 10px;
    background: #f9fafb;
    position: relative;
}
.psychologist-file-pick-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.psychologist-file-pick-label:hover {
    background: #e0e7ff;
}
.psychologist-file-input-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}
.psychologist-form-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.65) 0%, rgba(248, 250, 252, 0.9) 55%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.07);
    box-sizing: border-box;
}

/* «О себе»: одна синяя зона, без вложенного «белого блока» */
.psychologist-form-zone--about-direct {
    padding: 12px 14px 14px;
}

.psychologist-input--about-direct {
    min-height: 120px;
    resize: vertical;
    background: transparent;
    border: 1px solid rgba(37, 99, 235, 0.28);
    box-shadow: none;
}

.psychologist-input--about-direct:focus {
    background: rgba(255, 255, 255, 0.35);
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.psychologist-form-zone--about-direct .psychologist-about-extra {
    margin-top: 14px;
}
.psychologist-form-topbar {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.psychologist-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Числовые поля «Моя практика»: не на всю ширину зоны, ~половина */
.psychologist-input.psychologist-input--career-count {
    width: 100%;
    max-width: 50%;
    box-sizing: border-box;
}
.psychologist-form-row {
    display: flex;
    gap: 10px;
}
.psychologist-form-col {
    flex: 1;
    min-width: 0;
}
.psychologist-form-col--shrink {
    flex: 0 0 90px;
}
.psychologist-label {
    font-size: 12px;
    color: #4b5563;
}
.psychologist-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.65);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.psychologist-input[type="file"] {
    padding: 4px 2px;
}
.psychologist-photo-preview {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    object-fit: cover;
    background: #f1f5f9;
}
.psychologist-diplomas-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.psychologist-diploma-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #f1f5f9;
    cursor: pointer;
}
.psychologist-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.psychologist-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.psychologist-checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.psychologist-label--after-country {
    margin-top: 10px;
}

.psychologist-consult-lang-add-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.psychologist-consult-lang-add-row .psychologist-input {
    flex: 1;
    min-width: 140px;
}

.psychologist-consult-lang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.psychologist-consult-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1e3a5f;
}

.psychologist-consult-lang-chip-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    color: #64748b;
}

.psychologist-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #1f2933;
}
.psychologist-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: #2563eb;
}
.psychologist-contact-row {
    display: flex;
    gap: 6px;
}
.psychologist-contact-type {
    max-width: 140px;
}
.psychologist-contact-value {
    flex: 1;
    min-width: 0;
}
.psychologist-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.psychologist-form-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}
.psychologist-preview-btn {
    white-space: nowrap;
}
.psychologist-photo-preview-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
}
.psychologist-diploma-thumb-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.psychologist-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.psychologist-thumb-remove:active {
    opacity: 0.85;
}
.psychologist-price-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 2px;
}
.psychologist-dual-price-duration-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
}
.psychologist-dual-price-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 200px;
}
.psychologist-dual-price-pair--full {
    flex: 1 1 100%;
}
.psychologist-dual-price-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 100px;
}
.psychologist-dual-price-curr {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}
.psychologist-dual-price-duration-block {
    flex: 0 0 auto;
}
.psychologist-dual-price-duration-label {
    margin-bottom: 2px !important;
}
.psychologist-price-heading-row .psychologist-label {
    margin: 0;
}
.psychologist-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.psychologist-price-inline-group {
    gap: 4px;
}
.psychologist-price-inline-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.psychologist-input--duration {
    width: 72px;
    min-width: 72px;
    text-align: center;
}
.psychologist-price-duration-unit {
    font-size: 12px;
    color: #475569;
    min-width: 24px;
}
.psychologist-inline-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.psychologist-input--compact {
    width: 120px;
    min-width: 120px;
}
.psychologist-inline-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.psychologist-inline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.psychologist-inline-item .psychologist-label {
    margin: 0;
    white-space: nowrap;
}
.psychologist-inline-item .psychologist-input--compact {
    width: 140px;
    min-width: 140px;
}
.psychologist-autogrow {
    resize: none;
    overflow: hidden;
}
/* «Пожелание…» / «Цитата»: ~2 строки по умолчанию; высоту донастраивает JS */
.psychologist-input--about-direct.psychologist-autogrow--two-lines {
    min-height: 0;
    resize: none;
}
.psychologist-country-wrap {
    position: relative;
}
.psychologist-country-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
}
.psychologist-country-suggest-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
}
.psychologist-country-suggest-item:hover {
    background: #eef2ff;
}

@media (max-width: 680px) {
    .psychologist-price-grid {
        grid-template-columns: 1fr;
    }
    .psychologist-inline-row {
        grid-template-columns: 1fr;
    }
    .psychologist-inline-item .psychologist-input--compact {
        width: 120px;
        min-width: 120px;
    }
}

.psychologists-catalog-controls {
    margin-top: 8px;
    margin-bottom: 2px;
    padding: 9px 9px 9px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.16);
    background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 38%, #eef2ff 100%);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.psychologists-catalog-controls-head--compact {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 7px;
}

.psychologists-catalog-controls-title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.psy-catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 8px;
    margin-bottom: 6px;
}

.psy-catalog-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: start;
    margin-bottom: 6px;
}

.psy-catalog-filter-grid__right {
    justify-self: center;
}

.psy-catalog-filter-grid .psy-catalog-cell--range {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.psy-catalog-filter-grid .psy-catalog-cell--price {
    align-items: center;
}

.psy-catalog-filter-grid .psy-catalog-cell--country {
    flex: unset;
    min-width: 0;
}

.psy-catalog-filter-grid .psy-catalog-diag-block {
    align-items: flex-start;
    width: auto;
}

.psy-catalog-filter-grid .psy-catalog-diag-block .psy-catalog-k {
    text-align: left;
}

.psy-catalog-k--sub {
    margin-top: 7px;
}

.psy-catalog-pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.psy-catalog-k--session-cost {
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
}

.psy-catalog-k--session-cost .psy-catalog-k-line {
    display: block;
}

.psy-catalog-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.psy-catalog-cell--country {
    flex: 1 1 140px;
    min-width: 120px;
}

.psy-catalog-diag-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.psy-catalog-diag-block .psy-catalog-k {
    text-align: center;
}

.psy-catalog-cell--fmt {
    flex: 0 0 auto;
    align-items: flex-start;
}

.psy-catalog-cell--price {
    flex: 0 0 auto;
}

.psy-catalog-cell--price .psy-catalog-input--age {
    width: 46px;
    min-width: 44px;
    max-width: 64px;
}

.psy-catalog-k {
    font-size: 9.5px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.22;
}

.psy-catalog-range-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.psy-catalog-currency-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    max-width: 160px;
}

.psy-catalog-currency-label .psy-catalog-currency-select {
    width: 100%;
    max-width: 140px;
    text-align: center;
}

.psy-catalog-range-over-dash {
    display: block;
    text-align: center;
    width: 100%;
}

.psy-catalog-cell--range {
    align-items: center;
}

.psy-catalog-check--lower {
    text-transform: none;
}

.psy-catalog-currency-syms {
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-transform: none;
    margin-inline-start: 4px;
}

.psy-catalog-age-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.psy-catalog-en {
    color: #64748b;
    font-size: 12px;
    flex-shrink: 0;
}

.psy-catalog-fmt-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 2px;
}

.psy-catalog-select {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.22);
    background: #ffffff;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.psy-catalog-select--sm {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 8px;
}

.psy-catalog-select--grow {
    flex: 1;
    min-width: 0;
}

.psy-catalog-input {
    box-sizing: border-box;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: #fff;
    color: #0f172a;
}

.psy-catalog-input--sm {
    font-size: 11px;
    padding: 4px 6px;
}

.psy-catalog-input--age {
    width: 40px;
    min-width: 40px;
    max-width: 52px;
    text-align: center;
}

.psy-catalog-check {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.psy-catalog-check--sm {
    font-size: 11px;
    gap: 3px;
}

.psy-catalog-check--normal {
    font-weight: 400;
}

.psy-catalog-check input {
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.psy-catalog-sort-wrap {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.psy-catalog-sort-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.psy-catalog-sort-meta {
    font-weight: 600;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
}

.psy-catalog-sort-pick-hint {
    font-size: 10px;
    color: #475569;
    line-height: 1.35;
    margin: 0 0 6px;
}

.psy-catalog-pick-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.psy-catalog-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.psy-catalog-pick-row--fav {
    padding-bottom: 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.psy-catalog-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
}

.psy-catalog-pick input {
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.psy-catalog-pick-note {
    font-weight: 500;
    color: #64748b;
    font-size: 10px;
}

.psy-catalog-primary-btn {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}

.psy-catalog-primary-btn:hover {
    background: #1d4ed8;
}

.psy-catalog-primary-btn:active {
    transform: translateY(1px);
}

.psy-catalog-sort-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psy-catalog-sort-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.psy-catalog-sort-row-num {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.psy-catalog-dir-seg {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.45);
    flex-shrink: 0;
}

.psy-catalog-seg-btn {
    margin: 0;
    border: 0;
    background: #fff;
    color: #1e40af;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    min-width: 34px;
}

.psy-catalog-seg-btn + .psy-catalog-seg-btn {
    border-left: 1px solid rgba(37, 99, 235, 0.35);
}

.psy-catalog-seg-btn:hover {
    background: #eff6ff;
}

.psy-catalog-seg-btn--on {
    background: #2563eb;
    color: #fff;
}

.psy-catalog-seg-btn--on:hover {
    background: #1d4ed8;
    color: #fff;
}

.psy-catalog-actions {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.psy-catalog-actions--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.psy-catalog-reset-btn {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.2);
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.psy-catalog-reset-btn--sm {
    padding: 4px 8px;
    font-size: 10px;
}

.psy-catalog-reset-btn:hover {
    background: #f1f5f9;
}

.psy-catalog-result-hint {
    font-size: 10px;
    color: #475569;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

@media (max-width: 380px) {
    .psy-catalog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .psy-catalog-cell--country {
        flex-basis: auto;
    }
    .psy-catalog-filter-grid {
        grid-template-columns: 1fr;
    }
    .psy-catalog-filter-grid__right {
        justify-self: stretch;
    }
    .psy-catalog-filter-grid .psy-catalog-cell--price,
    .psy-catalog-filter-grid .psy-catalog-cell--range {
        align-items: center;
    }
}

html[data-tg-theme="dark"] .psychologists-catalog-controls,
body.tg-dark-theme .psychologists-catalog-controls {
    border-color: rgba(148, 163, 184, 0.35);
    background: linear-gradient(165deg, #1e293b 0%, #243548 40%, #1e2a3f 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-tg-theme="dark"] .psychologists-catalog-controls-title,
body.tg-dark-theme .psychologists-catalog-controls-title {
    color: #f8fafc;
}

html[data-tg-theme="dark"] .psy-catalog-k,
body.tg-dark-theme .psy-catalog-k {
    color: #e2e8f0;
}

html[data-tg-theme="dark"] .psy-catalog-currency-syms,
body.tg-dark-theme .psy-catalog-currency-syms {
    color: #cbd5e1;
}

html[data-tg-theme="dark"] .psy-catalog-sort-heading,
body.tg-dark-theme .psy-catalog-sort-heading {
    color: #93c5fd;
}

html[data-tg-theme="dark"] .psy-catalog-sort-meta,
body.tg-dark-theme .psy-catalog-sort-meta {
    color: #94a3b8;
}

html[data-tg-theme="dark"] .psy-catalog-sort-pick-hint,
body.tg-dark-theme .psy-catalog-sort-pick-hint {
    color: #94a3b8;
}

html[data-tg-theme="dark"] .psy-catalog-pick,
body.tg-dark-theme .psy-catalog-pick {
    color: #e2e8f0;
}

html[data-tg-theme="dark"] .psy-catalog-pick-note,
body.tg-dark-theme .psy-catalog-pick-note {
    color: #94a3b8;
}

html[data-tg-theme="dark"] .psy-catalog-pick-row--fav,
body.tg-dark-theme .psy-catalog-pick-row--fav {
    border-bottom-color: rgba(96, 165, 250, 0.25);
}

html[data-tg-theme="dark"] .psy-catalog-primary-btn,
body.tg-dark-theme .psy-catalog-primary-btn {
    background: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-tg-theme="dark"] .psy-catalog-primary-btn:hover,
body.tg-dark-theme .psy-catalog-primary-btn:hover {
    background: #2563eb;
}

html[data-tg-theme="dark"] .psy-catalog-check,
body.tg-dark-theme .psy-catalog-check {
    color: #f8fafc;
}

html[data-tg-theme="dark"] .psy-catalog-select,
body.tg-dark-theme .psy-catalog-select,
html[data-tg-theme="dark"] .psy-catalog-input,
body.tg-dark-theme .psy-catalog-input {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.45);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-tg-theme="dark"] .psy-catalog-seg-btn,
body.tg-dark-theme .psy-catalog-seg-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #bfdbfe;
}

html[data-tg-theme="dark"] .psy-catalog-seg-btn:hover,
body.tg-dark-theme .psy-catalog-seg-btn:hover {
    background: rgba(30, 58, 138, 0.75);
}

html[data-tg-theme="dark"] .psy-catalog-seg-btn--on,
body.tg-dark-theme .psy-catalog-seg-btn--on {
    background: #3b82f6;
    color: #fff;
}

html[data-tg-theme="dark"] .psy-catalog-reset-btn,
body.tg-dark-theme .psy-catalog-reset-btn {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(203, 213, 225, 0.35);
    color: #f1f5f9;
}

html[data-tg-theme="dark"] .psy-catalog-result-hint,
body.tg-dark-theme .psy-catalog-result-hint {
    color: #cbd5e1;
}

.psychologists-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.psychologist-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 10px 12px 11px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 40%, #eef2ff 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-height: 214px;
}

/* Каталог нейротренеров: краткие карточки — тёмная тема */
html[data-tg-theme="dark"] .psychologist-card,
body.tg-dark-theme .psychologist-card {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 62%, rgba(2, 6, 23, 0.98) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}
html[data-tg-theme="dark"] .psychologist-card-name,
body.tg-dark-theme .psychologist-card-name {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .psychologist-card-meta,
body.tg-dark-theme .psychologist-card-meta {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-card-photo,
body.tg-dark-theme .psychologist-card-photo {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.75);
}
html[data-tg-theme="dark"] .psychologist-card-under-photo,
body.tg-dark-theme .psychologist-card-under-photo {
    color: #bfdbfe;
    background: rgba(30, 58, 138, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.28);
}
html[data-tg-theme="dark"] .psychologist-card-under-photo--diag,
body.tg-dark-theme .psychologist-card-under-photo--diag {
    color: #bfdbfe;
    background: rgba(30, 58, 138, 0.52);
    border: 1px solid rgba(96, 165, 250, 0.24);
}
html[data-tg-theme="dark"] .psychologist-card-under-photo--diag-free,
body.tg-dark-theme .psychologist-card-under-photo--diag-free {
    color: #86efac;
    background: rgba(20, 83, 45, 0.55);
    border: 1px solid rgba(34, 197, 94, 0.22);
}
html[data-tg-theme="dark"] .psychologist-card-under-photo--diag-donation,
body.tg-dark-theme .psychologist-card-under-photo--diag-donation {
    color: #5eead4;
    background: rgba(15, 118, 110, 0.45);
    border: 1px solid rgba(45, 212, 191, 0.22);
}
html[data-tg-theme="dark"] .psychologist-card-coach-tag,
body.tg-dark-theme .psychologist-card-coach-tag {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.22);
}
html[data-tg-theme="dark"] .psychologist-card-price,
html[data-tg-theme="dark"] .psychologist-card-price-main,
body.tg-dark-theme .psychologist-card-price,
body.tg-dark-theme .psychologist-card-price-main {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .psychologist-card-price-time,
body.tg-dark-theme .psychologist-card-price-time {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-more-btn,
body.tg-dark-theme .psychologist-more-btn {
    background: rgba(30, 41, 59, 0.92);
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.26);
}
html[data-tg-theme="dark"] .psychologist-more-btn:active,
body.tg-dark-theme .psychologist-more-btn:active {
    opacity: 0.92;
}
.psychologist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.psychologist-card-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.psychologist-card-under-photo {
    font-size: 11px;
    font-weight: 600;
    color: #1d4ed8;
    background: #e0e7ff;
    border-radius: 999px;
    padding: 3px 8px;
    line-height: 1.1;
}
.psychologist-card-under-photo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 6px;
}
.psychologist-card-under-photo--diag {
    color: #2563eb;
    background: #dbeafe;
}

.psychologist-card-under-photo--diag-free {
    color: #16a34a;
    background: #dcfce7;
}

.psychologist-card-under-photo--diag-donation {
    color: #0d9488;
    background: #ccfbf1;
}
.psychologist-card-main {
    display: block;
    flex: 1;
    min-width: 0;
    padding-right: 42px;
}
.psychologist-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #f1f5f9;
}
.psychologist-card-photo-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.psychologist-card-photo-plus {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.psychologist-card-photo--empty {
    display: inline-block;
}

.psychologist-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.70);
}
.psychologist-photo-modal-inner {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
    background: #000;
    position: relative;
}
.psychologist-photo-modal-inner img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.psychologist-photo-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.psychologist-photo-modal-close:active {
    opacity: 0.85;
}
.psychologist-diplomas-modal-inner {
    position: relative;
    width: min(640px, 94vw);
    max-height: 88vh;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.psychologist-diplomas-title {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}
.psychologist-diplomas-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.psychologist-diplomas-nav {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
    line-height: 1;
}
.psychologist-diplomas-main {
    max-width: calc(100% - 84px);
    max-height: 64vh;
    border-radius: 12px;
    object-fit: contain;
    cursor: zoom-in;
}
.psychologist-diplomas-counter {
    text-align: center;
    color: #475569;
    font-size: 13px;
}
.psychologist-card-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}
.psychologist-card-coach-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.95);
    border-radius: 6px;
    padding: 3px 9px;
    margin-top: 4px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}
.psychologist-card-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.psychologist-card-meta-line {
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.psychologist-meta-chip {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
}
.psychologist-meta-chip--loc {
    background: transparent;
}
.psychologist-meta-chip--age {
    background: transparent;
}
.psychologist-meta-chip--exp {
    background: transparent;
}
.psychologist-meta-chip--price,
.psychologist-meta-chip--edu,
.psychologist-meta-chip--spec,
.psychologist-meta-chip--approach,
.psychologist-meta-chip--about,
.psychologist-meta-chip--future-wish,
.psychologist-meta-chip--favorite-quote,
.psychologist-meta-chip--reviews,
.psychologist-meta-chip--sprints,
.psychologist-meta-chip--format {
    background: transparent;
}
.psychologist-meta-chip::before {
    content: "";
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.psychologist-meta-chip--loc::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.4 7-12a7 7 0 1 0-14 0c0 5.6 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.7'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--age::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M8 3.5v3M16 3.5v3M3.5 9.5h17'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--exp::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6.5' width='17' height='13.5' rx='2.5'/%3E%3Cpath d='M9 3.5h6M12 10v3.2l2.2 1.3'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--format::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='16' height='11' rx='2'/%3E%3Cpath d='M2 19.5h20'/%3E%3C/svg%3E");
}
/* Прайс-лист: контурный блокнот + доллар */
.psychologist-meta-chip--price::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 4v2.6M12 4v2.6M16.5 4v2.6'/%3E%3Crect x='4.2' y='6.6' width='15.6' height='14.8' rx='2'/%3E%3Cpath d='M12 9.4v5.2'/%3E%3Cpath d='M14.8 10.9c0-2-1.5-2.8-2.8-2.8s-2.8 1-2.8 2.8c0 2.4 5.6 1 5.6 3.4 0 2-1.5 2.8-2.8 2.8s-2.8-1-2.8-2.6'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--edu::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.2 12 4l9 5.2L12 14 3 9.2Z'/%3E%3Cpath d='M7 11.5V16l5 3 5-3v-4.5'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--spec::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.2 9.3a2.8 2.8 0 1 1 4.8 1.9c-.9.8-1.5 1.4-1.5 2.7M12 17h.01'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--approach::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.8v3M12 18.2v3M2.8 12h3M18.2 12h3M5.5 5.5l2.1 2.1M16.4 16.4l2.1 2.1M5.5 18.5l2.1-2.1M16.4 7.6l2.1-2.1'/%3E%3C/svg%3E");
}
/* О себе: силуэт в круге (контур, как референс) */
.psychologist-meta-chip--about::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='9.2' r='3.25'/%3E%3Cpath d='M7.35 18.85c0-3.35 2.05-5.45 4.65-5.45s4.65 2.1 4.65 5.45'/%3E%3C/svg%3E");
}
/* Пожелание клиентам: самолётик чуть меньше остальных чипов */
.psychologist-meta-chip--future-wish::before {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E");
}
/* Любимая цитата: облачко речи + кавычки внутри */
.psychologist-meta-chip--favorite-quote::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.2 10.8a7.35 7.35 0 0 1-6.75 7.35c-1.15 0-2.25-.28-3.2-.82L4.6 20.4l1.55-4.35a7.35 7.35 0 1 1 13.05-5.25z'/%3E%3Cpath d='M10.4 10.6c-.65.95-1.2 2-1.2 3.05h2'/%3E%3Cpath d='M14.55 10.6c-.65.95-1.2 2-1.2 3.05h2'/%3E%3C/svg%3E");
}
/* Провёл Спринтов: документ со строками текста (контур), в стиле чипов */
.psychologist-meta-chip--sprints::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4h4'/%3E%3Cpath d='M8.5 12h7.5'/%3E%3Cpath d='M8.5 15.2h7.5'/%3E%3Cpath d='M8.5 18.2h5.5'/%3E%3C/svg%3E");
}
.psychologist-meta-chip--reviews::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.5%2012c0%204.5-4%208-8.8%208-1.4%200-2.8-.3-4-.8L3%2020l.9-3.3c-.6-1.1-.9-2.4-.9-3.7%200-4.5%204-8%208.8-8s8.7%203.5%208.7%208Z%22%2F%3E%3Cpath%20d%3D%22M7.2%2010h9.6%22%2F%3E%3Cpath%20d%3D%22M7.2%2012.8h7.9%22%2F%3E%3Cpath%20d%3D%22M7.2%2015.4h6.1%22%2F%3E%3C%2Fsvg%3E");
}
.psychologist-card-price {
    font-weight: 700;
    font-size: 15px;
    color: #1d4ed8;
    margin-left: 8px;
    padding-right: 40px;
    white-space: nowrap;
}
.psychologist-card-price-main {
    font-weight: 700;
    font-size: 15px;
    color: #1d4ed8;
    line-height: 1.2;
    white-space: nowrap;
}
.psychologist-card-price-time {
    font-weight: 600;
    font-size: 12px;
    color: #2563eb;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 2px;
}
.psychologist-card-price--body {
    margin-left: 0;
    padding-right: 0;
    margin-top: 2px;
}
.psychologist-card-price--under-fav {
    position: absolute;
    right: 8px;
    top: 44px;
    margin-left: 0;
    padding-right: 0;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0;
}
.psychologist-fav-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0 2px;
    color: #cbd5f5;
}
.psychologist-fav-btn--corner {
    position: absolute;
    top: 6px;
    right: 8px;
}
.psychologist-fav-btn--active {
    color: #ef4444;
}
.psychologist-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.psychologist-card-line {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: #334155;
    white-space: pre-wrap;
}
.psychologist-card-line--about {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Каталог: «О себе» в карточке — тёмная тема (читаемость) */
html[data-tg-theme="dark"] .psychologist-card-line,
body.tg-dark-theme .psychologist-card-line {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .psychologist-card-line--about,
body.tg-dark-theme .psychologist-card-line--about {
    color: #e5e7eb;
}
.psychologist-tag {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 500;
}

.psychologist-contact-btn {
    margin-top: 0;
    width: auto;
    flex: 1 1 0;
    border-radius: 999px;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
}
.psychologist-contact-btn:active {
    opacity: 0.9;
}

.psychologist-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(15, 23, 42, 0.7);
}
.psychologist-contact-modal-inner {
    width: min(360px, 100vw - 32px);
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 14px 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.55);
}
.psychologist-contact-modal-inner h3 {
    margin: 0 0 8px;
    font-size: 16px;
}
.psychologist-contact-modal-inner p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #4b5563;
}
.psychologist-contact-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 7px 9px;
    font-size: 13px;
    margin-bottom: 8px;
}
.psychologist-contact-modal-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 7px 9px;
    font-size: 13px;
}
.psychologist-contact-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Тёмная тема: модалки профиля (Запросы, Отзывы, Мои клиенты, Мои нейротренеры, отзыв нейротренеру) */
html[data-tg-theme="dark"] .psychologist-contact-modal,
body.tg-dark-theme .psychologist-contact-modal {
    background: rgba(2, 6, 23, 0.82);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner,
body.tg-dark-theme .psychologist-contact-modal-inner {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner h3,
body.tg-dark-theme .psychologist-contact-modal-inner h3 {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner p,
body.tg-dark-theme .psychologist-contact-modal-inner p {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-textarea,
html[data-tg-theme="dark"] .psychologist-contact-modal-input,
body.tg-dark-theme .psychologist-contact-modal-textarea,
body.tg-dark-theme .psychologist-contact-modal-input {
    background: #0b1220;
    color: #e2e8f0;
    border-color: #475569;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-textarea::placeholder,
html[data-tg-theme="dark"] .psychologist-contact-modal-input::placeholder,
body.tg-dark-theme .psychologist-contact-modal-textarea::placeholder,
body.tg-dark-theme .psychologist-contact-modal-input::placeholder {
    color: #64748b;
}
html[data-tg-theme="dark"] .psychologist-contact-modal .compass-btn.secondary,
body.tg-dark-theme .psychologist-contact-modal .compass-btn.secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
}
html[data-tg-theme="dark"] .psychologist-contact-modal .compass-btn.secondary:hover,
body.tg-dark-theme .psychologist-contact-modal .compass-btn.secondary:hover {
    background: #334155;
    border-color: #64748b;
}
html[data-tg-theme="dark"] .compass-contact-lead-card,
body.tg-dark-theme .compass-contact-lead-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(96, 165, 250, 0.28);
}
html[data-tg-theme="dark"] .compass-contact-lead-name,
body.tg-dark-theme .compass-contact-lead-name {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-contact-lead-row,
body.tg-dark-theme .compass-contact-lead-row {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .compass-contact-lead-label,
body.tg-dark-theme .compass-contact-lead-label {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .compass-contact-lead-msg,
body.tg-dark-theme .compass-contact-lead-msg {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] a.compass-contact-tg-link,
body.tg-dark-theme a.compass-contact-tg-link {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .compass-nt-review-card,
body.tg-dark-theme .compass-nt-review-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(96, 165, 250, 0.28);
}
html[data-tg-theme="dark"] .compass-nt-review-author,
body.tg-dark-theme .compass-nt-review-author {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-nt-review-rating,
body.tg-dark-theme .compass-nt-review-rating {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .compass-nt-review-body,
body.tg-dark-theme .compass-nt-review-body {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .compass-my-trainer-card,
body.tg-dark-theme .compass-my-trainer-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(96, 165, 250, 0.28);
}
html[data-tg-theme="dark"] .compass-my-trainer-card-title,
body.tg-dark-theme .compass-my-trainer-card-title {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-my-trainer-card-city,
body.tg-dark-theme .compass-my-trainer-card-city {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .compass-my-trainer-card-photo--placeholder,
body.tg-dark-theme .compass-my-trainer-card-photo--placeholder {
    background: rgba(96, 165, 250, 0.18);
}
html[data-tg-theme="dark"] .trainer-review-modal .trainer-review-star:not(.trainer-review-star--active),
body.tg-dark-theme .trainer-review-modal .trainer-review-star:not(.trainer-review-star--active) {
    color: #475569;
}
html[data-tg-theme="dark"] .trainer-review-modal-err,
body.tg-dark-theme .trainer-review-modal-err {
    color: #fca5a5;
}

/* Тосты Шкалы Баланса — чуть контрастнее на тёмном фоне приложения */
html[data-tg-theme="dark"] .compass-toast:not(.compass-toast-error):not(.compass-toast--celebrate),
body.tg-dark-theme .compass-toast:not(.compass-toast-error):not(.compass-toast--celebrate) {
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
html[data-tg-theme="dark"] .compass-toast.compass-toast-error,
body.tg-dark-theme .compass-toast.compass-toast-error {
    border: 1px solid rgba(252, 165, 165, 0.45);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-title {
    font-size: 16px;
    line-height: 1.35;
    color: #0f172a;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-body {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    margin: 0 0 6px;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .psychologist-contact-modal-actions {
    justify-content: center;
    margin-top: 14px;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .primary-btn.compass-nt-catalog-welcome-ok {
    width: auto;
    min-width: 140px;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
}

/* Модалка «настройка с нейротренером»: главный CTA — синяя на всю ширину, «Понятно» — вторичная серая */
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .psychologist-contact-modal-actions.compass-client-nt-setup-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .primary-btn.compass-client-nt-setup-primary {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .primary-btn.compass-client-nt-setup-primary:active {
    opacity: 0.92;
    transform: scale(0.99);
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:hover {
    background: #e2e8f0;
}
.psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:active {
    background: #cbd5e1;
}

.trainer-review-modal .trainer-review-stars-row {
    margin-bottom: 2px;
}
.trainer-review-stars {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.trainer-review-star {
    font-size: 28px;
    line-height: 1;
    padding: 2px 4px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.trainer-review-star--active {
    color: #f59e0b;
}
.trainer-review-modal-err {
    color: #dc2626;
}
.compass-profile-leave-review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.psychologist-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.psychologist-review-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.psychologist-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}
.psychologist-review-stars {
    color: #f59e0b;
    letter-spacing: 0.02em;
}
.psychologist-review-author {
    font-weight: 600;
    color: #475569;
}
.psychologist-review-date {
    margin-left: auto;
    color: #94a3b8;
}
.psychologist-review-body {
    font-size: 13px;
    line-height: 1.45;
    color: #1e293b;
    white-space: pre-wrap;
}

/* Инструкция (мини-приложение): карточки разделов */
#compass-instruction-section .compass-instruction-block {
    --instr-accent: #5d4b8e;
    margin: 0 0 1.05rem;
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 10px rgba(15, 23, 42, 0.06),
        0 1px 2px rgba(15, 23, 42, 0.04);
    border-left: 4px solid var(--instr-accent);
    box-sizing: border-box;
}
#compass-instruction-section .compass-instruction-block:last-child {
    margin-bottom: 0;
}
#compass-instruction-section > h2 + .compass-instruction-block {
    margin-top: 0.35rem;
}
#compass-instruction-section .compass-instruction-block--accent-profile {
    --instr-accent: #5d4b8e;
}
#compass-instruction-section .compass-instruction-block--accent-sprint {
    --instr-accent: #0f766e;
}
#compass-instruction-section .compass-instruction-block--accent-goals {
    --instr-accent: #c2410c;
}
#compass-instruction-section .compass-instruction-block--accent-settings {
    --instr-accent: #1d4ed8;
}
#compass-instruction-section .compass-instruction-block--accent-routine {
    --instr-accent: #0369a1;
}
#compass-instruction-section .compass-instruction-block--accent-sleep {
    --instr-accent: #6d28d9;
}
#compass-instruction-section .compass-instruction-block--accent-stats {
    --instr-accent: #047857;
}
#compass-instruction-section .compass-instruction-block--accent-diary {
    --instr-accent: #0e7490;
}
#compass-instruction-section .compass-instruction-block--accent-outro {
    --instr-accent: #166534;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#compass-instruction-section .compass-instruction-block--accent-outro .compass-instruction-outro-text {
    margin: 0;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #1e293b 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 2px 14px rgba(0, 0, 0, 0.32);
}

/* Тёмная тема: заголовки h3 с --instr-accent — светлее, особенно фиолетовые/лиловые (#5d4b8e, #6d28d9) */
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-profile,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-profile {
    --instr-accent: #e9d5ff;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-sprint,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-sprint {
    --instr-accent: #5eead4;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-goals,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-goals {
    --instr-accent: #fb923c;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-settings,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-settings {
    --instr-accent: #93c5fd;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-routine,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-routine {
    --instr-accent: #7dd3fc;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-sleep,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-sleep {
    --instr-accent: #ddd6fe;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-stats,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-stats {
    --instr-accent: #6ee7b7;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-diary,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-diary {
    --instr-accent: #5eead4;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-block--accent-outro,
body.tg-dark-theme #compass-instruction-section .compass-instruction-block--accent-outro {
    --instr-accent: #86efac;
}

/* Видеоинструкции в разделе «Инструкция» (MP4 на сервере, папка frontend/instruction_videos/) */
#compass-instruction-section .compass-instruction-video {
    margin: 0 0 1.05rem;
    padding: 0.65rem 0.9rem 0.72rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(241, 245, 249, 0.72);
    box-sizing: border-box;
}
#compass-instruction-section .compass-instruction-video-title {
    margin: 0 0 0.38rem;
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--tg-theme-text-color, #0f172a);
    letter-spacing: -0.02em;
    line-height: 1.35;
}
#compass-instruction-section .compass-instruction-video-link-wrap {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
}
#compass-instruction-section .compass-instruction-video-link {
    color: #1d4ed8;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#compass-instruction-section .compass-instruction-video-link:active {
    opacity: 0.88;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-video,
body.tg-dark-theme #compass-instruction-section .compass-instruction-video {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.55);
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-video-link,
body.tg-dark-theme #compass-instruction-section .compass-instruction-video-link {
    color: #93c5fd;
}

/* Инструкция (мини-приложение): разделы и списки */
/* Заголовок секции на светлой карточке #app — не наследуем «светлый» текст тёмной темы */
#compass-instruction-section > h2 {
    color: #0f172a;
}
#compass-instruction-section h3 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.06rem;
    font-weight: 750;
    color: var(--tg-theme-text-color, #0f172a);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
#compass-instruction-section .compass-instruction-block h3 {
    margin: 0 0 0.55rem;
    color: var(--instr-accent);
}
#compass-instruction-section h3:first-of-type {
    margin-top: 0.75rem;
}
#compass-instruction-section .compass-instruction-steps {
    margin: 0.45rem 0 0.65rem;
    padding-left: 1.35rem;
    line-height: 1.55;
}
#compass-instruction-section .compass-instruction-steps li {
    margin-bottom: 0.35rem;
}
#compass-instruction-section .compass-instruction-list {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.25rem;
    line-height: 1.55;
}
#compass-instruction-section .compass-instruction-list li {
    margin-bottom: 0.4rem;
}
#compass-instruction-section .compass-instruction-copy-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 1px 0 4px;
    padding: 5px 7px;
    border-radius: 9px;
    border: 1px solid rgba(42, 82, 152, 0.22);
    background: linear-gradient(180deg, #f0f4fb 0%, #e2e8f4 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 1px 3px rgba(30, 58, 95, 0.12),
        0 2px 8px rgba(30, 58, 95, 0.08);
    color: #1e3a5f;
}
#compass-instruction-section .compass-instruction-copy-glyph .sprint-copy-goals-icon {
    display: block;
    width: 16px;
    height: 16px;
    opacity: 0.92;
}
/* Демо кнопки «Проекты (краткая версия)» — те же классы, что в спринте; без клика и без hover-эффекта */
#compass-instruction-section .compass-instruction-sprint-short-demo {
    margin: 0.5rem 0 0.35rem;/* align with instruction step spacing */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
#compass-instruction-section .compass-instruction-sprint-short-demo .compass-sprint-short-toggle {
    pointer-events: none;
    cursor: default;
    width: 100%;
    box-sizing: border-box;
}
#compass-instruction-section .compass-instruction-sprint-short-demo .compass-sprint-short-toggle:hover,
#compass-instruction-section .compass-instruction-sprint-short-demo .compass-sprint-short-toggle:active {
    transform: none;
    filter: none;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4ff 100%);
    color: #1e293b;
    border-color: #2f80ed;
    border-width: 2px;
    box-shadow:
        0 2px 0 rgba(47, 128, 237, 0.12),
        0 6px 16px rgba(47, 128, 237, 0.18),
        0 1px 3px rgba(15, 23, 42, 0.08);
}
#compass-instruction-section .compass-instruction-sprint-short-demo .compass-sprint-short-toggle:hover::after,
#compass-instruction-section .compass-instruction-sprint-short-demo .compass-sprint-short-toggle:active::after {
    content: " ◄";
    font-size: 16px;
    font-weight: 600;
    color: #2f80ed;
}

/* Важное по спринту (подсказка + пример): крупнее и заметнее */
#compass-instruction-section .compass-instruction-sprint-callout {
    margin: 0.85rem 0 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    border: 2px solid #2563eb;
    background: linear-gradient(165deg, #f0f7ff 0%, #e8f0fe 55%, #f8fbff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 18px rgba(37, 99, 235, 0.12);
}
#compass-instruction-section .compass-instruction-sprint-callout p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--tg-theme-text-color, #0f172a);
    font-weight: 500;
}
#compass-instruction-section .compass-instruction-sprint-callout p + p {
    margin-top: 0.75rem;
}
#compass-instruction-section .compass-instruction-settings-lead {
    margin: 0.35rem 0 0.2rem;
    font-size: 1.02rem;
    color: var(--tg-theme-text-color, #0f172a);
}
#compass-instruction-section .compass-instruction-h4 {
    margin: 1.1rem 0 0.45rem;
    font-size: 1rem;
    font-weight: 750;
    color: var(--tg-theme-text-color, #0f172a);
    letter-spacing: -0.02em;
}
#compass-instruction-section .compass-instruction-time-slots-frame {
    margin: 0.55rem 0 0.35rem;
    padding: 12px 12px 14px;
    border: 2px solid #2a6fdb;
    border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #fff);
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
    pointer-events: none;
}
#compass-instruction-section .compass-instruction-slots-demo {
    margin: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
}
@media (max-width: 360px) {
    #compass-instruction-section .compass-instruction-slots-demo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
#compass-instruction-section .compass-instruction-state-scale {
    margin-top: 0.65rem;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-sprint-callout,
body.tg-dark-theme #compass-instruction-section .compass-instruction-sprint-callout {
    border-color: #60a5fa;
    background: linear-gradient(165deg, #1e293b 0%, #172554 50%, #1e293b 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 20px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-time-slots-frame,
body.tg-dark-theme #compass-instruction-section .compass-instruction-time-slots-frame {
    border-color: #60a5fa;
    background: var(--tg-theme-secondary-bg-color, #0f172a);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3);
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-time-slots-frame .compass-slot,
body.tg-dark-theme #compass-instruction-section .compass-instruction-time-slots-frame .compass-slot {
    background: #1e293b;
    color: #e2e8f0;
}
#compass-instruction-section .compass-instruction-list.compass-instruction-list--goal-actions {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
#compass-instruction-section .compass-instruction-list--goal-actions li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    align-items: start;
    margin-bottom: 0.65rem;
}
#compass-instruction-section .compass-instruction-goal-action-slot {
    min-width: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1px;
}
#compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-check,
#compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-reschedule,
#compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-skip,
#compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-reminder {
    pointer-events: none;
    cursor: default;
    flex-shrink: 0;
}
/* Иллюстрация: отмеченная цель (как после выполнения) */
#compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-check {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-check,
body.tg-dark-theme #compass-instruction-section .compass-instruction-goal-action-slot .compass-sprint-goal-check {
    background: #43a047;
    border-color: #43a047;
    color: #fff;
}
html[data-tg-theme="dark"] #compass-instruction-section .compass-instruction-copy-glyph,
body.tg-dark-theme #compass-instruction-section .compass-instruction-copy-glyph {
    background: linear-gradient(180deg, #2d3a4f 0%, #1e293b 100%);
    border-color: rgba(148, 163, 184, 0.38);
    color: #c7d2fe;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 1px 3px rgba(0, 0, 0, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.22);
}

/* Текст инструкции: цвета из темы Telegram (светлая/тёмная), без принудительного «тёмного текста» на тёмном фоне карточек. */
#app #compass-instruction-section > h2 {
    color: #0f172a;
}
#app #compass-instruction-section h3 {
    color: var(--tg-theme-text-color, #0f172a);
}
#app #compass-instruction-section .compass-instruction-block h3 {
    color: var(--instr-accent);
}
#app #compass-instruction-section .hint {
    color: var(--tg-theme-hint-color, #475569);
}
#app #compass-instruction-section .compass-instruction-steps li,
#app #compass-instruction-section .compass-instruction-list li,
#app #compass-instruction-section > p,
#app #compass-instruction-section .compass-instruction-block p {
    color: var(--tg-theme-text-color, #111827);
}
#app #compass-instruction-section .compass-instruction-block ul:not(.compass-instruction-list) li {
    color: var(--tg-theme-text-color, #111827);
}
#app #compass-instruction-section .compass-instruction-steps li b,
#app #compass-instruction-section .compass-instruction-list li b {
    color: var(--tg-theme-text-color, #0f172a);
}

/* Оплата (мини-приложение): тарифные планы */
#compass-payments-section h2 {
    margin-bottom: 0.65rem;
}
.compass-payments-hero {
    border-radius: 18px;
    padding: 20px 18px 22px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background:
        radial-gradient(560px 240px at 12% -10%, rgba(31, 191, 184, 0.18), transparent 58%),
        radial-gradient(480px 200px at 92% 110%, rgba(25, 120, 165, 0.12), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #f0fdfa 45%, #f8fafc 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 28px rgba(15, 118, 110, 0.08);
    margin: 0 0 16px;
    position: relative;
    overflow: hidden;
}
.compass-payments-hero::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.15), rgba(31, 191, 184, 0.55), rgba(15, 118, 110, 0.15));
    opacity: 0.85;
    pointer-events: none;
}
.compass-payments-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.compass-payments-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0d9488;
}
.compass-payments-heading {
    margin: 0;
    font-size: clamp(1.35rem, 4.2vw, 1.55rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.18;
    color: #0f172a;
    background: linear-gradient(120deg, #0f172a 0%, #134e4a 42%, #0f766e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@supports not (background-clip: text) {
    .compass-payments-heading {
        color: #0f172a;
        background: none;
    }
}
.compass-payments-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
    font-weight: 600;
}
.compass-payments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 520px) {
    .compass-payments-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}
.compass-plan-card {
    position: relative;
    border-radius: 16px;
    padding: 0 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 62%, #f1f5f9 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.compass-plan-card--with-trainer {
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 0 0 1px rgba(45, 212, 191, 0.22),
        0 10px 32px rgba(15, 118, 110, 0.14);
}
.compass-plan-top-head {
    position: relative;
    z-index: 1;
    margin: 0 -14px 14px;
    padding: 14px 16px 12px;
    min-height: 2.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #0f766e;
    background: linear-gradient(180deg, rgba(204, 251, 241, 0.98) 0%, rgba(240, 253, 250, 0.96) 55%, rgba(236, 253, 245, 0.94) 100%);
    border-bottom: 1px solid rgba(45, 212, 191, 0.28);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
}
.compass-plan-top-head__text {
    display: block;
    font-size: clamp(1.2rem, 4.2vw, 1.62rem);
    font-weight: 850;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: #0f766e;
    text-align: center;
}
.compass-plan-top-head__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.compass-plan-top-head__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.2rem;
    background:
        radial-gradient(90% 90% at 25% 18%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 55%, transparent 65%),
        linear-gradient(135deg, #0ea5e9 0%, #14b8a6 55%, #0f766e 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.34) inset,
        0 8px 18px rgba(15, 118, 110, 0.2);
}
.compass-plan-top-head__icon::before {
    content: "";
    width: 1.38rem;
    height: 1.38rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}
.compass-plan-top-head__icon--laptop::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4.25' y='5' width='15.5' height='11.25' rx='1.8' stroke='%23ffffff' stroke-width='1.9'/%3E%3Cpath d='M2.75 18.2h18.5a.95.95 0 0 1 .9 1.3l-.2.5a1.35 1.35 0 0 1-1.26.85H3.3a1.35 1.35 0 0 1-1.26-.85l-.2-.5a.95.95 0 0 1 .9-1.3Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.compass-plan-top-head__icon--person::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='7.1' r='3.05' fill='%23ffffff'/%3E%3Cpath d='M4.2 20.15c0-4.25 3.48-7.55 7.8-7.55s7.8 3.3 7.8 7.55H4.2Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.compass-plan-top-head__icon--flag::before {
    width: 1.62rem;
    height: 1.62rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M1.55 20.35h20.9c.82 0 1.28-.95.77-1.58l-4.16-5.14-3.37-4.15a1.35 1.35 0 0 0-2.08 0l-3.03 3.74-2.2-2.7a1.3 1.3 0 0 0-2 .03l-5.6 8.23c-.53.64-.08 1.57.77 1.57Z' fill='%23ffffff'/%3E%3Cpath d='M6.05 20.35h12c.73 0 1.17-.85.7-1.42l-2.38-2.94a1.16 1.16 0 0 0-1.79-.01l-1.78 2.2-1.35-1.66a1.12 1.12 0 0 0-1.74.03l-2.33 2.88c-.46.57-.02 1.42.67 1.42Z' fill='%23057a7a' fill-opacity='.22'/%3E%3Crect x='14.8' y='3.25' width='1.95' height='9.95' rx='.9' fill='%23ffffff'/%3E%3Cpath d='M17.15 3.95h5.1c.57 0 .86.69.45 1.08l-1.2 1.16 1.2 1.17c.41.39.12 1.08-.45 1.08h-5.1V3.95Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.compass-plan-top-head--featured {
    padding-top: 15px;
    padding-bottom: 13px;
    background: linear-gradient(180deg, rgba(167, 243, 208, 0.55) 0%, rgba(204, 251, 241, 0.98) 38%, rgba(240, 253, 250, 0.96) 100%);
    border-bottom-color: rgba(13, 148, 136, 0.35);
    box-shadow:
        0 8px 22px rgba(15, 118, 110, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.compass-plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}
.compass-plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.85;
}
.compass-plan-card--solo::before {
    background:
        radial-gradient(520px 180px at 15% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(520px 180px at 90% 100%, rgba(16, 185, 129, 0.12), transparent 62%);
}
.compass-plan-card--with-trainer::before {
    background:
        radial-gradient(520px 180px at 15% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(520px 180px at 90% 100%, rgba(245, 158, 11, 0.12), transparent 62%);
}
.compass-plan-head {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: start;
    margin-bottom: 10px;
}
.compass-plan-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.3;
}
.compass-plan-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(2, 132, 199, 0.22);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    white-space: nowrap;
}
.compass-plan-price-amount {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}
.compass-plan-price-period {
    font-size: 12px;
    font-weight: 750;
    color: #475569;
}
.compass-plan-list {
    position: relative;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.compass-plan-list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
}
.compass-plan-list li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #0ea5e9 60%, #6366f1 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
    margin-top: 1px;
}
.compass-plan-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.compass-plan-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.22);
    background: linear-gradient(135deg, #1fbfb8 0%, #1978a5 48%, #05716c 100%);
    color: #fff;
    font-weight: 850;
    letter-spacing: -0.01em;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 10px 28px rgba(31, 191, 184, 0.22);
}
.compass-plan-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
}
.compass-plan-hint {
    margin: 0;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-payments-hero,
body.tg-dark-theme #compass-payments-section .compass-payments-hero {
    background:
        radial-gradient(560px 240px at 12% -10%, rgba(45, 212, 191, 0.14), transparent 58%),
        radial-gradient(480px 200px at 92% 110%, rgba(13, 148, 136, 0.12), transparent 55%),
        linear-gradient(165deg, #0f172a 0%, #134e4a 38%, #1e293b 100%);
    border-color: rgba(45, 212, 191, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 28px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-payments-eyebrow,
body.tg-dark-theme #compass-payments-section .compass-payments-eyebrow {
    color: #5eead4;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-payments-heading,
body.tg-dark-theme #compass-payments-section .compass-payments-heading {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #f1f5f9;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-payments-lead,
body.tg-dark-theme #compass-payments-section .compass-payments-lead {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-card,
body.tg-dark-theme #compass-payments-section .compass-plan-card {
    background: linear-gradient(180deg, #0f172a 0%, #111827 60%, #1e293b 100%);
    border-color: rgba(148, 163, 184, 0.22);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-card--with-trainer,
body.tg-dark-theme #compass-payments-section .compass-plan-card--with-trainer {
    border-color: rgba(45, 212, 191, 0.38);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 1px rgba(45, 212, 191, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.4);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-title,
body.tg-dark-theme #compass-payments-section .compass-plan-title {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-top-head,
body.tg-dark-theme #compass-payments-section .compass-plan-top-head {
    color: #5eead4;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.42) 0%, rgba(15, 23, 42, 0.55) 100%);
    border-bottom-color: rgba(45, 212, 191, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-top-head__text,
body.tg-dark-theme #compass-payments-section .compass-plan-top-head__text {
    color: #ccfbf1;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-top-head__icon,
body.tg-dark-theme #compass-payments-section .compass-plan-top-head__icon {
    background:
        radial-gradient(90% 90% at 25% 18%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 58%, transparent 68%),
        linear-gradient(135deg, #22d3ee 0%, #2dd4bf 45%, #14b8a6 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 10px 22px rgba(20, 184, 166, 0.22);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-top-head--featured,
body.tg-dark-theme #compass-payments-section .compass-plan-top-head--featured {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.5) 0%, rgba(15, 118, 110, 0.35) 45%, rgba(15, 23, 42, 0.5) 100%);
    border-bottom-color: rgba(94, 234, 212, 0.35);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-badge,
body.tg-dark-theme #compass-payments-section .compass-plan-badge {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
    color: #042f2e;
    box-shadow: 0 2px 10px rgba(45, 212, 191, 0.35);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-list li,
body.tg-dark-theme #compass-payments-section .compass-plan-list li {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-price,
body.tg-dark-theme #compass-payments-section .compass-plan-price {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(96, 165, 250, 0.24);
}
html[data-tg-theme="dark"] #compass-payments-section .compass-plan-price-period,
body.tg-dark-theme #compass-payments-section .compass-plan-price-period {
    color: #94a3b8;
}

.compass-main-nav-section {
    margin-top: 14px;
}
.compass-main-nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
/* Верхний блок: «Нейротренеры» узкая плитка по центру; ряд Профиль / Настройки — на всю ширину (как Спринт / Статистика) */
.compass-nav-top-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.compass-nav-top-block .compass-nav-row--nt-catalog {
    width: 100%;
    max-width: 248px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    align-self: center;
}
.compass-nav-row--nt-catalog {
    display: flex;
}
.compass-nav-btn--nt-catalog-wide {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 11px;
    padding-left: 12px;
    padding-right: 12px;
}
.compass-main-nav .compass-nav-btn--payments {
    position: relative;
    overflow: hidden;
}
.compass-main-nav .compass-nav-btn--payments::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 120px at 15% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(420px 120px at 85% 100%, rgba(99, 102, 241, 0.14), transparent 60%);
    pointer-events: none;
}
.compass-main-nav .compass-nav-btn--payments .compass-nav-btn-ico {
    font-size: 24px;
    line-height: 1;
}
.compass-nt-catalog-icon {
    width: 28px;
    height: 42px;
    flex-shrink: 0;
    align-self: center;
    display: block;
    pointer-events: none;
    color: #2a6fdb;
}
.compass-nav-btn-text--nt-catalog {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 3px;
    min-width: 0;
}
.compass-nav-btn-text-line--nt-primary {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
}
.compass-nav-btn-text-line--nt-catalog-sub {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.12em;
    color: #64748b;
}
.compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn.selected .compass-nav-btn-text-line--nt-catalog-sub {
    color: rgba(255, 255, 255, 0.9);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn:not(.selected) .compass-nav-btn-text-line--nt-catalog-sub,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn:not(.selected) .compass-nav-btn-text-line--nt-catalog-sub {
    color: #94a3b8;
}
.compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn.selected .compass-nt-catalog-icon {
    color: #fff;
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn:not(.selected) .compass-nt-catalog-icon,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--nt-catalog-wide.tab-btn:not(.selected) .compass-nt-catalog-icon {
    color: #7ab3ff;
}
.compass-nav-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.compass-nav-row--dual .compass-nav-btn,
.compass-nav-row--triple .compass-nav-btn {
    flex: 1;
    min-width: 0;
}
.compass-nav-row--nt-client-sprints {
    margin-top: 4px;
}
.compass-nav-row--nt-client-sprints .compass-nav-btn {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}
/* «Спринты клиентов»: одна строка, эмодзи слева, ширина по тексту — те же цвета/синий :active, что у плиток спринта */
.compass-main-nav .compass-nav-btn--sprint-inline-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.compass-main-nav .compass-nav-btn--sprint-inline-nav:hover {
    border-color: #a5b4fc;
    background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
}
.compass-main-nav .compass-nav-btn--sprint-inline-nav:active {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.35);
    transform: scale(0.98);
}
.compass-main-nav .compass-nav-btn--sprint-inline-nav .compass-nav-btn-ico--sprint-inline {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.compass-main-nav .compass-nav-btn--sprint-inline-nav .compass-nav-btn-text {
    text-align: left;
    white-space: nowrap;
}
.compass-main-nav .tab-btn,
.compass-main-nav .compass-sprint-short-btn {
    margin: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}
.compass-main-nav .compass-nav-btn--tile {
    flex-direction: column;
    gap: 7px;
    padding: 14px 6px;
    min-height: 96px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.compass-main-nav .compass-nav-btn--tile .compass-nav-btn-text {
    display: block;
    max-width: 100%;
}
.compass-nav-btn-ico {
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}
.compass-nav-btn-ico--lg {
    font-size: 26px;
    margin-bottom: 1px;
}
#compass-sprint-standup-goals-btn .compass-nav-btn-ico {
    font-size: 22px;
}
.compass-nav-btn-text {
    text-align: center;
}

.compass-main-nav .compass-nav-btn--ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.compass-main-nav .compass-nav-btn--ghost:hover {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

/* Спринт: как обычная кнопка, пока вкладка не выбрана */
.compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected) {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    text-shadow: none;
    filter: none;
}
.compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected):hover {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
    transform: translateY(-1px);
}

.compass-main-nav .compass-nav-btn--stats {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.compass-main-nav .compass-nav-btn--stats:hover {
    border-color: #94a3b8;
    background: linear-gradient(180deg, #fff 0%, #e8eef4 100%);
}

.compass-main-nav .compass-nav-btn--tile {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.compass-main-nav .compass-nav-btn--tile:hover {
    border-color: #a5b4fc;
    background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
}
/* Нажатие: тот же синий, что у выбранного подраздела спринта (Дневник / Цели) */
.compass-main-nav .compass-nav-btn--tile:active {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.35);
    transform: scale(0.98);
}
/* Активная вкладка верхних рядов — тот же синий, что у primary / «Поделиться» (#2a6fdb) */
.compass-main-nav .compass-nav-btn--ghost.tab-btn.selected,
.compass-main-nav .compass-nav-btn--sprint.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
    text-shadow: none;
    filter: none;
}
.compass-main-nav .compass-nav-btn--ghost.tab-btn.selected:hover,
.compass-main-nav .compass-nav-btn--sprint.tab-btn.selected:hover {
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38);
}
.compass-main-nav .compass-nav-btn--stats.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.compass-main-nav .compass-nav-btn--stats.tab-btn.selected:hover {
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38);
}

/* Подразделы спринта: Дневник / Цели Спринт / Цели Стендап */
.compass-main-nav .compass-sprint-short-btn.active,
.compass-main-nav .compass-sprint-short-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.compass-main-nav .compass-sprint-short-btn.active:hover,
.compass-main-nav .compass-sprint-short-btn.selected:hover {
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38);
}
.compass-main-nav .tab-btn:active,
.compass-main-nav .compass-sprint-short-btn:active {
    transform: scale(0.98);
}

html[data-tg-theme="dark"] .compass-app-hero,
body.tg-dark-theme .compass-app-hero {
    background:
        radial-gradient(ellipse 120% 85% at 100% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(14, 165, 233, 0.06) 0%, transparent 48%),
        linear-gradient(152deg, #1c2433 0%, #1d2534 50%, #1b2331 100%);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 10px 36px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .compass-app-hero-eyebrow,
body.tg-dark-theme .compass-app-hero-eyebrow {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .compass-app-hero-eyebrow-label,
body.tg-dark-theme .compass-app-hero-eyebrow-label {
    background: linear-gradient(
        180deg,
        #60a5fa 0%,
        #38bdf8 32%,
        #0ea5e9 68%,
        #7dd3fc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
html[data-tg-theme="dark"] .compass-app-hero-eyebrow-icons,
body.tg-dark-theme .compass-app-hero-eyebrow-icons {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
html[data-tg-theme="dark"] .compass-app-hero-title,
body.tg-dark-theme .compass-app-hero-title {
    color: #f1f5f9;
    text-shadow: 0 2px 14px rgba(37, 99, 235, 0.25);
}
html[data-tg-theme="dark"] .compass-hero-instruction-btn,
body.tg-dark-theme .compass-hero-instruction-btn {
    background: transparent;
    border: 1.5px solid rgba(96, 165, 250, 0.45);
    color: #e2e8f0;
    box-shadow: none;
}
html[data-tg-theme="dark"] .compass-hero-instruction-btn:hover,
body.tg-dark-theme .compass-hero-instruction-btn:hover {
    border-color: rgba(96, 165, 250, 0.65);
    background: transparent;
}
html[data-tg-theme="dark"] .compass-hero-instruction-btn.tab-btn.selected,
body.tg-dark-theme .compass-hero-instruction-btn.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
}
html[data-tg-theme="dark"] .compass-profile-toggle,
body.tg-dark-theme .compass-profile-toggle {
    background: rgba(30, 41, 59, 0.9);
    color: #c7d2fe;
    border-color: rgba(129, 140, 248, 0.35);
}
html[data-tg-theme="dark"] .compass-profile-popover,
body.tg-dark-theme .compass-profile-popover {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
}
html[data-tg-theme="dark"] .compass-profile-panel,
body.tg-dark-theme .compass-profile-panel {
    /* Профиль: чуть светлее, чтобы не “проваливался” в чёрный */
    background: linear-gradient(180deg, #172554 0%, #0f172a 75%);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner {
    background: #0f172a;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-title,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-title {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-body,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-nt-catalog-welcome-body {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss {
    border-color: #475569;
    background: #1e293b;
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:hover,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:hover {
    background: #334155;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:active,
body.tg-dark-theme .psychologist-contact-modal-inner.compass-nt-catalog-welcome-inner .compass-client-nt-setup-actions .compass-client-nt-setup-dismiss:active {
    background: #475569;
}
html[data-tg-theme="dark"] .compass-psychologist-form-fill,
body.tg-dark-theme .compass-psychologist-form-fill {
    background: transparent;
    border: none;
}

html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle.compass-sprint-short-toggle,
body.tg-dark-theme .compass-profile-questionnaire-toggle.compass-sprint-short-toggle {
    background: linear-gradient(180deg, #1e293b 0%, #1e3a5f 100%);
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow:
        0 2px 0 rgba(47, 128, 237, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle.compass-sprint-short-toggle:hover,
body.tg-dark-theme .compass-profile-questionnaire-toggle.compass-sprint-short-toggle:hover {
    background: linear-gradient(180deg, #243047 0%, #1d4ed8 35%);
    border-color: #60a5fa;
}
html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active,
body.tg-dark-theme .compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active {
    background: #2563eb;
    color: #f8fafc;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle.compass-sprint-short-toggle .compass-profile-questionnaire-arrow::before,
body.tg-dark-theme .compass-profile-questionnaire-toggle.compass-sprint-short-toggle .compass-profile-questionnaire-arrow::before {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active .compass-profile-questionnaire-arrow::before,
body.tg-dark-theme .compass-profile-questionnaire-toggle.compass-sprint-short-toggle.active .compass-profile-questionnaire-arrow::before {
    color: #fff;
}

html[data-tg-theme="dark"] .compass-profile-questionnaire-toggle:focus-visible,
body.tg-dark-theme .compass-profile-questionnaire-toggle:focus-visible {
    outline-color: #93c5fd;
}

html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure > #compass-psychologist-form-section,
body.tg-dark-theme #compass-profile-questionnaire-disclosure > #compass-psychologist-form-section {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(96, 165, 250, 0.5);
}
html[data-tg-theme="dark"] .psychologist-listing-visibility-label,
body.tg-dark-theme .psychologist-listing-visibility-label {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .psychologist-profile-updated-at,
body.tg-dark-theme .psychologist-profile-updated-at {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-promotion-toggle,
body.tg-dark-theme .psychologist-promotion-toggle {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(30, 58, 138, 0.32) 100%);
    border-color: rgba(96, 165, 250, 0.42);
    color: #bfdbfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.22);
}
html[data-tg-theme="dark"] .psychologist-promotion-toggle:hover,
body.tg-dark-theme .psychologist-promotion-toggle:hover {
    border-color: #60a5fa;
    background: linear-gradient(180deg, #243047 0%, rgba(30, 58, 138, 0.45) 100%);
}
html[data-tg-theme="dark"] .psychologist-promotion-toggle[aria-expanded="true"],
body.tg-dark-theme .psychologist-promotion-toggle[aria-expanded="true"] {
    border-bottom-color: rgba(96, 165, 250, 0.25);
}
html[data-tg-theme="dark"] .psychologist-promotion-toggle-arrow,
body.tg-dark-theme .psychologist-promotion-toggle-arrow {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .psychologist-promotion-panel,
body.tg-dark-theme .psychologist-promotion-panel {
    background: #0f172a;
    border-color: rgba(96, 165, 250, 0.42);
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .psychologist-promotion-lead,
body.tg-dark-theme .psychologist-promotion-lead,
html[data-tg-theme="dark"] .psychologist-promotion-item-title,
body.tg-dark-theme .psychologist-promotion-item-title {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .psychologist-promotion-item-text,
body.tg-dark-theme .psychologist-promotion-item-text {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-promotion-summary,
body.tg-dark-theme .psychologist-promotion-summary {
    color: #e2e8f0;
    border-top-color: rgba(96, 165, 250, 0.22);
}

/* «Моя анкета» (форма нейротренера): поля/текст — тёмная тема */
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-form-req-intro,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-form-req-intro {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-section-title,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-section-title {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-section-req-hint,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-section-req-hint {
    color: #94a3b8;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-form-zone,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-form-zone {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 60%, rgba(2, 6, 23, 0.92) 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-label,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-label {
    color: #94a3b8;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-input,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-input {
    background: #0b1220;
    color: #e2e8f0;
    border-color: #334155;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-input::placeholder,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-input::placeholder {
    color: rgba(148, 163, 184, 0.78);
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-input:focus,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-input:focus {
    border-color: #60a5fa;
    background: #0b1220;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18);
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-file-control,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-file-control {
    border-color: rgba(148, 163, 184, 0.35);
    background: #0b1220;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-file-pick-label,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-file-pick-label {
    background: #1e293b;
    color: #93c5fd;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-file-pick-label:hover,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-file-pick-label:hover {
    background: #243347;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-photo-preview,
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-diploma-thumb,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-photo-preview,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-diploma-thumb {
    background: #0b1220;
    border-color: rgba(148, 163, 184, 0.28);
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-country-suggest,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-country-suggest {
    background: #0b1220;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-country-suggest-item,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-country-suggest-item {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-country-suggest-item:hover,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-country-suggest-item:hover {
    background: #1e293b;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-consult-lang-chip,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-consult-lang-chip {
    background: rgba(96, 165, 250, 0.16);
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-consult-lang-chip-remove,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-consult-lang-chip-remove {
    color: #94a3b8;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-checkbox,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-checkbox {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-checkbox span,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-checkbox span {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-consult-lang-add-row .compass-btn.secondary,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-consult-lang-add-row .compass-btn.secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
}
html[data-tg-theme="dark"] #compass-profile-questionnaire-disclosure .psychologist-consult-lang-add-row .compass-btn.secondary:hover,
body.tg-dark-theme #compass-profile-questionnaire-disclosure .psychologist-consult-lang-add-row .compass-btn.secondary:hover {
    background: #334155;
    border-color: #64748b;
}
html[data-tg-theme="dark"] .compass-profile-line span,
body.tg-dark-theme .compass-profile-line span {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .compass-profile-id-client-hint,
body.tg-dark-theme .compass-profile-id-client-hint {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary,
body.tg-dark-theme .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary {
    background: linear-gradient(180deg, #2d3a4f 0%, #1e293b 100%);
    border-color: rgba(148, 163, 184, 0.38);
    color: #c7d2fe;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 1px 3px rgba(0, 0, 0, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.22);
}
html[data-tg-theme="dark"] .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary:hover,
body.tg-dark-theme .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary:hover {
    background: linear-gradient(180deg, #354560 0%, #243146 100%);
    border-color: rgba(165, 180, 252, 0.45);
}
html[data-tg-theme="dark"] .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary:active,
body.tg-dark-theme .compass-profile-copy-id.sprint-copy-goals-btn.compass-btn.secondary:active {
    background: #1e293b;
}
html[data-tg-theme="dark"] .compass-profile-role-save,
body.tg-dark-theme .compass-profile-role-save {
    background: #2563eb;
    border-color: #2563eb;
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .compass-profile-trainer-label,
body.tg-dark-theme .compass-profile-trainer-label {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .compass-profile-role-select,
body.tg-dark-theme .compass-profile-role-select {
    background: #0b1220;
    color: #e2e8f0;
    border-color: #334155;
}
html[data-tg-theme="dark"] .compass-profile-trainer-input,
body.tg-dark-theme .compass-profile-trainer-input {
    background: #0b1220;
    color: #e2e8f0;
    border-color: #334155;
}
html[data-tg-theme="dark"] .compass-profile-my-neurotrainers-btn,
html[data-tg-theme="dark"] .compass-profile-leave-review-btn,
html[data-tg-theme="dark"] .compass-profile-role-edit-btn,
html[data-tg-theme="dark"] .compass-profile-modal-outline-btn,
html[data-tg-theme="dark"] .compass-profile-nt-actions-row > .compass-profile-nt-split-btn,
html[data-tg-theme="dark"] .compass-profile-nt-actions-wrap > .compass-profile-nt-reviews-btn.compass-profile-nt-split-btn,
body.tg-dark-theme .compass-profile-my-neurotrainers-btn,
body.tg-dark-theme .compass-profile-leave-review-btn,
body.tg-dark-theme .compass-profile-role-edit-btn,
body.tg-dark-theme .compass-profile-modal-outline-btn,
body.tg-dark-theme .compass-profile-nt-actions-row > .compass-profile-nt-split-btn,
body.tg-dark-theme .compass-profile-nt-actions-wrap > .compass-profile-nt-reviews-btn.compass-profile-nt-split-btn {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(30, 58, 138, 0.32) 100%);
    border-color: rgba(96, 165, 250, 0.42);
    color: #bfdbfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.22);
}
html[data-tg-theme="dark"] .psychologist-bump-hint,
body.tg-dark-theme .psychologist-bump-hint {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .psychologist-bump-hint-arrow,
body.tg-dark-theme .psychologist-bump-hint-arrow {
    color: #93c5fd;
    opacity: 0.9;
}
html[data-tg-theme="dark"] .psychologist-bump-cooldown,
body.tg-dark-theme .psychologist-bump-cooldown {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .psychologist-profile-bump-emoji-btn,
body.tg-dark-theme .psychologist-profile-bump-emoji-btn {
    border-color: rgba(96, 165, 250, 0.45);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 58, 138, 0.38) 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .psychologist-profile-bump-emoji-btn:hover:not(:disabled),
body.tg-dark-theme .psychologist-profile-bump-emoji-btn:hover:not(:disabled) {
    border-color: #60a5fa;
    background: linear-gradient(180deg, #243047 0%, rgba(30, 58, 138, 0.52) 100%);
}
html[data-tg-theme="dark"] .psychologist-catalog-visibility-block,
body.tg-dark-theme .psychologist-catalog-visibility-block {
    border-top-color: rgba(96, 165, 250, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected),
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected) {
    background: linear-gradient(165deg, rgba(42, 49, 66, 0.98) 0%, rgba(28, 35, 52, 0.99) 100%);
    color: #f8fafc;
    border: 1px solid rgba(45, 212, 191, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 2px 12px rgba(0, 0, 0, 0.32);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected):hover,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected):hover {
    border-color: rgba(52, 211, 153, 0.62);
    background: linear-gradient(165deg, #2f3c52 0%, #252f42 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 18px rgba(16, 185, 129, 0.14);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--ghost,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--ghost {
    background: #252b3d;
    color: #e2e8f0;
    border-color: #3d4a63;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--ghost:hover,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--ghost:hover {
    border-color: #6366f1;
    background: #2d3548;
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--ghost.tab-btn.selected,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--ghost.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.35);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid rgba(147, 197, 253, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(37, 99, 235, 0.45);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected:hover,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 6px 22px rgba(37, 99, 235, 0.52);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--stats.tab-btn.selected,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--stats.tab-btn.selected {
    background: #2a6fdb;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.35);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-sprint-short-btn.active,
body.tg-dark-theme .compass-main-nav .compass-sprint-short-btn.active,
html[data-tg-theme="dark"] .compass-main-nav .compass-sprint-short-btn.selected,
body.tg-dark-theme .compass-main-nav .compass-sprint-short-btn.selected {
    background: #2a6fdb;
    border-color: #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.35);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--stats,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--stats {
    background: linear-gradient(180deg, #2d3548 0%, #252b3d 100%);
    color: #e2e8f0;
    border-color: #475569;
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--tile,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--tile {
    background: linear-gradient(180deg, #2a3144 0%, #232a3d 100%);
    color: #e2e8f0;
    border-color: #3d4a63;
}
/* «Цели Стендап»: чуть контрастнее рамка и тень, hover как у соседних плиток */
html[data-tg-theme="dark"] .compass-main-nav #compass-sprint-standup-goals-btn.compass-nav-btn--tile,
body.tg-dark-theme .compass-main-nav #compass-sprint-standup-goals-btn.compass-nav-btn--tile {
    border-color: #4b5563;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-tg-theme="dark"] .compass-main-nav #compass-sprint-standup-goals-btn.compass-nav-btn--tile:hover,
body.tg-dark-theme .compass-main-nav #compass-sprint-standup-goals-btn.compass-nav-btn--tile:hover {
    border-color: #64748b;
    background: linear-gradient(180deg, #323a4f 0%, #2a3144 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}
html[data-tg-theme="dark"] .compass-main-nav #compass-sprint-standup-goals-btn .compass-nav-btn-ico,
body.tg-dark-theme .compass-main-nav #compass-sprint-standup-goals-btn .compass-nav-btn-ico {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--tile:active,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--tile:active {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.4);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint-inline-nav,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint-inline-nav {
    background: linear-gradient(180deg, #2a3144 0%, #232a3d 100%);
    color: #e2e8f0;
    border-color: #3d4a63;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint-inline-nav:hover,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint-inline-nav:hover {
    border-color: #64748b;
    background: linear-gradient(180deg, #323a4f 0%, #2a3144 100%);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint-inline-nav:active,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint-inline-nav:active {
    background: #2a6fdb;
    color: #fff;
    border-color: #2a6fdb;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.4);
}

/* Навигация: читаемый текст на кнопках «Профиль» / «Спринт» / плитках (эмодзи + подпись) */
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--ghost .compass-nav-btn-text,
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-text,
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--stats .compass-nav-btn-text,
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--tile .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--ghost .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--stats .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--tile .compass-nav-btn-text {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--ghost.tab-btn:not(.selected),
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected),
body.tg-dark-theme .compass-main-nav .compass-nav-btn--ghost.tab-btn:not(.selected),
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn:not(.selected) {
    color: #f8fafc;
}
/* Спринт (🍃🧘 + подпись): эмодзи читаемы на тёмном фоне */
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-ico,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-ico {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected .compass-nav-btn-ico,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected .compass-nav-btn-ico {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint .compass-nav-btn-text {
    font-weight: 600;
    letter-spacing: 0.01em;
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected .compass-nav-btn-text,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--sprint.tab-btn.selected .compass-nav-btn-text {
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--stats:hover,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--stats:hover {
    border-color: #64748b;
    background: linear-gradient(180deg, #363f54 0%, #2d3548 100%);
}
html[data-tg-theme="dark"] .compass-main-nav .compass-nav-btn--stats .compass-nav-btn-ico,
body.tg-dark-theme .compass-main-nav .compass-nav-btn--stats .compass-nav-btn-ico {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Раздел «Статистика» (#compass-data-section) — тёмная тема */
html[data-tg-theme="dark"] #compass-data-section,
body.tg-dark-theme #compass-data-section {
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] #compass-data-section h2,
html[data-tg-theme="dark"] #compass-data-section h3,
body.tg-dark-theme #compass-data-section h2,
body.tg-dark-theme #compass-data-section h3 {
    color: var(--tg-theme-text-color, #f1f5f9);
}
html[data-tg-theme="dark"] #compass-data-section #compass-empty,
body.tg-dark-theme #compass-data-section #compass-empty {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-data-section .compass-summary,
body.tg-dark-theme #compass-data-section .compass-summary {
    color: #cbd5e1 !important;
}
html[data-tg-theme="dark"] #compass-data-section .compass-legend-list li,
body.tg-dark-theme #compass-data-section .compass-legend-list li {
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #compass-data-section .compass-period-buttons .period-btn,
body.tg-dark-theme #compass-data-section .compass-period-buttons .period-btn {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] #compass-data-section .compass-period-buttons .period-btn:hover,
body.tg-dark-theme #compass-data-section .compass-period-buttons .period-btn:hover {
    border-color: #60a5fa !important;
    background: #243347 !important;
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #compass-data-section .compass-period-buttons .period-btn.selected,
body.tg-dark-theme #compass-data-section .compass-period-buttons .period-btn.selected {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-data-section .compass-date-range span,
body.tg-dark-theme #compass-data-section .compass-date-range span {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-data-section #compass-date-from,
html[data-tg-theme="dark"] #compass-data-section #compass-date-to,
body.tg-dark-theme #compass-data-section #compass-date-from,
body.tg-dark-theme #compass-data-section #compass-date-to {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #93c5fd !important;
    box-shadow: none !important;
}

/* Дневник + «Цели стендапа»: Сегодня / Неделя / Месяц и даты — без белых кнопок в тёмной теме */
html[data-tg-theme="dark"] #compass-notebook-section .compass-period-buttons .period-btn,
html[data-tg-theme="dark"] #compass-diary-goals .compass-period-buttons .period-btn,
body.tg-dark-theme #compass-notebook-section .compass-period-buttons .period-btn,
body.tg-dark-theme #compass-diary-goals .compass-period-buttons .period-btn {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] #compass-notebook-section .compass-period-buttons .period-btn:hover,
html[data-tg-theme="dark"] #compass-diary-goals .compass-period-buttons .period-btn:hover,
body.tg-dark-theme #compass-notebook-section .compass-period-buttons .period-btn:hover,
body.tg-dark-theme #compass-diary-goals .compass-period-buttons .period-btn:hover {
    border-color: #60a5fa !important;
    background: #243347 !important;
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #compass-notebook-section .compass-period-buttons .period-btn.selected,
html[data-tg-theme="dark"] #compass-diary-goals .compass-period-buttons .period-btn.selected,
body.tg-dark-theme #compass-notebook-section .compass-period-buttons .period-btn.selected,
body.tg-dark-theme #compass-diary-goals .compass-period-buttons .period-btn.selected {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-notebook-section .compass-date-range span,
body.tg-dark-theme #compass-notebook-section .compass-date-range span {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-notebook-section #compass-notebook-date-from,
html[data-tg-theme="dark"] #compass-notebook-section #compass-notebook-date-to,
body.tg-dark-theme #compass-notebook-section #compass-notebook-date-from,
body.tg-dark-theme #compass-notebook-section #compass-notebook-date-to {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #93c5fd !important;
    box-shadow: none !important;
}
html[data-tg-theme="dark"] #compass-notebook-section #compass-notebook-date-from:focus,
html[data-tg-theme="dark"] #compass-notebook-section #compass-notebook-date-to:focus,
body.tg-dark-theme #compass-notebook-section #compass-notebook-date-from:focus,
body.tg-dark-theme #compass-notebook-section #compass-notebook-date-to:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

html[data-tg-theme="dark"] #compass-data-section .chart-container,
body.tg-dark-theme #compass-data-section .chart-container {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
html[data-tg-theme="dark"] #compass-data-section .sleep-duration-summary,
body.tg-dark-theme #compass-data-section .sleep-duration-summary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #e2e8f0 !important;
    border-left-color: #4da3ff !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-duration-summary .duration-value,
body.tg-dark-theme #compass-data-section .sleep-duration-summary .duration-value {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-duration-legend,
body.tg-dark-theme #compass-data-section .sleep-duration-legend {
    color: #cbd5e1 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-calendar,
body.tg-dark-theme #compass-data-section .sleep-phase-calendar {
    background: #0f172a !important;
    border-color: #475569 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-month-title,
body.tg-dark-theme #compass-data-section .sleep-phase-month-title {
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-month-btn,
body.tg-dark-theme #compass-data-section .sleep-phase-month-btn {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-weekday,
body.tg-dark-theme #compass-data-section .sleep-phase-weekday {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-cell,
body.tg-dark-theme #compass-data-section .sleep-phase-cell {
    border-color: rgba(148, 163, 184, 0.25) !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-summary,
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-day-detail,
body.tg-dark-theme #compass-data-section .sleep-phase-summary,
body.tg-dark-theme #compass-data-section .sleep-phase-day-detail {
    color: #cbd5e1 !important;
}
html[data-tg-theme="dark"] #compass-data-section .sleep-phase-disclaimer,
body.tg-dark-theme #compass-data-section .sleep-phase-disclaimer {
    color: #94a3b8 !important;
}

/* Профиль: заголовок и акценты (не только серые span из .compass-profile-line) */
html[data-tg-theme="dark"] #compass-profile-section h2,
body.tg-dark-theme #compass-profile-section h2 {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-profile-line .compass-profile-id-row-main span,
html[data-tg-theme="dark"] .compass-profile-line .compass-profile-id-row-main b,
body.tg-dark-theme .compass-profile-line .compass-profile-id-row-main span,
body.tg-dark-theme .compass-profile-line .compass-profile-id-row-main b {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .compass-profile-status-main b,
html[data-tg-theme="dark"] .compass-profile-status-main #compass-profile-role,
body.tg-dark-theme .compass-profile-status-main b,
body.tg-dark-theme .compass-profile-status-main #compass-profile-role {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-profile-trainer-status,
body.tg-dark-theme .compass-profile-trainer-status {
    color: #4ade80;
}
html[data-tg-theme="dark"] .compass-profile-save-all,
body.tg-dark-theme .compass-profile-save-all {
    background: #2563eb;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* --- Раздел «Спринт»: краткая версия, проекты, недели (тёмная тема) --- */
html[data-tg-theme="dark"] .compass-sprint-short-toggle:not(.active),
body.tg-dark-theme .compass-sprint-short-toggle:not(.active) {
    background: linear-gradient(180deg, #1e293b 0%, #1e3a5f 100%);
    color: #f1f5f9;
    border-color: #3b82f6;
    box-shadow:
        0 2px 0 rgba(47, 128, 237, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .compass-sprint-short-toggle:not(.active)::after,
body.tg-dark-theme .compass-sprint-short-toggle:not(.active)::after {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .compass-sprint-short-toggle:hover:not(.active),
body.tg-dark-theme .compass-sprint-short-toggle:hover:not(.active) {
    background: linear-gradient(180deg, #243047 0%, #1d4ed8 40%);
    border-color: #60a5fa;
    color: #fff;
}
html[data-tg-theme="dark"] .compass-sprint-short-toggle:focus-visible,
body.tg-dark-theme .compass-sprint-short-toggle:focus-visible {
    outline-color: #93c5fd;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section--fundament,
body.tg-dark-theme #compass-sprint-section .sprint-project-section--fundament {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.28);
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section--drive,
body.tg-dark-theme #compass-sprint-section .sprint-project-section--drive {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.35);
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section--joy,
body.tg-dark-theme #compass-sprint-section .sprint-project-section--joy {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.32);
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section .sprint-project-name-input,
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section textarea.sprint-project-input,
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section input.sprint-project-minutes,
body.tg-dark-theme #compass-sprint-section .sprint-project-section .sprint-project-name-input,
body.tg-dark-theme #compass-sprint-section .sprint-project-section textarea.sprint-project-input,
body.tg-dark-theme #compass-sprint-section .sprint-project-section input.sprint-project-minutes {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-week-copy-stack,
body.tg-dark-theme #compass-sprint-section .sprint-week-copy-stack {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
html[data-tg-theme="dark"] .sprint-week-heading-label,
body.tg-dark-theme .sprint-week-heading-label {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .sprint-week-heading-dates,
body.tg-dark-theme .sprint-week-heading-dates {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .sprint-week-title-row,
body.tg-dark-theme .sprint-week-title-row {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .sprint-week-copy-stack-actions .sprint-copy-all-goals-btn.compass-btn.secondary,
html[data-tg-theme="dark"] .sprint-week-copy-stack-actions > .sprint-copy-goals-btn.compass-btn.secondary,
html[data-tg-theme="dark"] .sprint-copy-goals-btn.compass-btn.secondary,
html[data-tg-theme="dark"] .sprint-copy-all-goals-btn.compass-btn.secondary,
body.tg-dark-theme .sprint-week-copy-stack-actions .sprint-copy-all-goals-btn.compass-btn.secondary,
body.tg-dark-theme .sprint-week-copy-stack-actions > .sprint-copy-goals-btn.compass-btn.secondary,
body.tg-dark-theme .sprint-copy-goals-btn.compass-btn.secondary,
body.tg-dark-theme .sprint-copy-all-goals-btn.compass-btn.secondary {
    background: linear-gradient(180deg, #2d3a4f 0%, #1e293b 100%);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] .compass-sprint-client-stat,
body.tg-dark-theme .compass-sprint-client-stat {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .compass-sprint-client-stat-name,
body.tg-dark-theme .compass-sprint-client-stat-name {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .compass-sprint-client-stat-dates,
html[data-tg-theme="dark"] .compass-sprint-client-stat-user,
body.tg-dark-theme .compass-sprint-client-stat-dates,
body.tg-dark-theme .compass-sprint-client-stat-user {
    color: #94a3b8;
}

/* Спринт: дата, табы недель, краткая версия, карточки, модалка копирования, напоминания */
html[data-tg-theme="dark"] .compass-sprint-step-num,
body.tg-dark-theme .compass-sprint-step-num {
    color: #4ade80;
}
html[data-tg-theme="dark"] .compass-sprint-step-hint,
body.tg-dark-theme .compass-sprint-step-hint {
    color: #94a3b8;
}
html[data-tg-theme="dark"] #compass-sprint-section label[for="sprint-start-date"] b,
body.tg-dark-theme #compass-sprint-section label[for="sprint-start-date"] b {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-sprint-section #sprint-start-date,
body.tg-dark-theme #compass-sprint-section #sprint-start-date {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #sprint-start-date-placeholder,
body.tg-dark-theme #compass-sprint-section #sprint-start-date-placeholder {
    color: #64748b !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #sprint-export-weeks-pdf-btn,
body.tg-dark-theme #compass-sprint-section #sprint-export-weeks-pdf-btn {
    background: #1e293b !important;
    background-color: #1e293b !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
    border-style: solid !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .compass-sprint-step1-toolbar .secondary-btn,
body.tg-dark-theme #compass-sprint-section .compass-sprint-step1-toolbar .secondary-btn {
    background: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
html[data-tg-theme="dark"] #compass-sprint-short-section,
body.tg-dark-theme #compass-sprint-short-section {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
}
html[data-tg-theme="dark"] #compass-sprint-short-section h3,
body.tg-dark-theme #compass-sprint-short-section h3 {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] #compass-sprint-short-section .sprint-project-section b,
body.tg-dark-theme #compass-sprint-short-section .sprint-project-section b {
    color: #cbd5e1 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-short-name-input,
body.tg-dark-theme #compass-sprint-section .sprint-short-name-input {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .compass-settings-block,
body.tg-dark-theme #compass-sprint-section .compass-settings-block {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-short-desc,
body.tg-dark-theme #compass-sprint-section .sprint-short-desc {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-weekly-total,
body.tg-dark-theme #compass-sprint-section .sprint-weekly-total {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-item .sprint-project-index,
body.tg-dark-theme #compass-sprint-section .sprint-project-item .sprint-project-index {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-days label,
body.tg-dark-theme #compass-sprint-section .sprint-project-days label {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-week-tab,
body.tg-dark-theme #compass-sprint-section .sprint-week-tab {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-week-tab:hover,
body.tg-dark-theme #compass-sprint-section .sprint-week-tab:hover {
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.35);
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-week-tab.active,
body.tg-dark-theme #compass-sprint-section .sprint-week-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap .hint,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap .compass-time-input,
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap select.compass-time-input,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap .compass-time-input,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap select.compass-time-input {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
    box-shadow: none !important;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap .sleep-settings-row label,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap .sleep-settings-row label {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap .compass-setting-checkbox-label span,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap .compass-setting-checkbox-label span {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .compass-modal-content.compass-sprint-copy-goals-modal,
body.tg-dark-theme .compass-modal-content.compass-sprint-copy-goals-modal {
    background: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55) !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal > h3,
body.tg-dark-theme .compass-sprint-copy-goals-modal > h3 {
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .compass-sprint-copy-goals-modal-hint,
body.tg-dark-theme .compass-sprint-copy-goals-modal .compass-sprint-copy-goals-modal-hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option:hover,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option:hover {
    background: linear-gradient(180deg, #1e293b 0%, #172033 100%) !important;
    border-color: rgba(96, 165, 250, 0.55) !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates--placeholder,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates--placeholder {
    color: #64748b !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:hover,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:hover {
    color: #e2e8f0 !important;
    background: rgba(148, 163, 184, 0.15) !important;
}
html[data-tg-theme="dark"] .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:active,
body.tg-dark-theme .compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:active {
    color: #f8fafc !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-copy-goals-btn-sub,
html[data-tg-theme="dark"] #compass-sprint-section .sprint-copy-all-goals-btn .sprint-copy-goals-btn-sub,
body.tg-dark-theme #compass-sprint-section .sprint-copy-goals-btn-sub,
body.tg-dark-theme #compass-sprint-section .sprint-copy-all-goals-btn .sprint-copy-goals-btn-sub {
    color: rgba(226, 232, 240, 0.82) !important;
}
html[data-tg-theme="dark"] .compass-sprint-goals-meta,
body.tg-dark-theme .compass-sprint-goals-meta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 48%, #172554 100%) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
html[data-tg-theme="dark"] .compass-sprint-goals-meta::before,
body.tg-dark-theme .compass-sprint-goals-meta::before {
    background: radial-gradient(circle at 85% -20%, rgba(59, 130, 246, 0.35), transparent 52%) !important;
}
html[data-tg-theme="dark"] .compass-sprint-goals-meta-title,
body.tg-dark-theme .compass-sprint-goals-meta-title {
    color: #93c5fd !important;
    text-shadow: none !important;
}
html[data-tg-theme="dark"] .compass-sprint-goals-meta-bar,
body.tg-dark-theme .compass-sprint-goals-meta-bar {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-min-label,
body.tg-dark-theme #compass-sprint-section .sprint-project-min-label {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section > p b,
body.tg-dark-theme #compass-sprint-section .sprint-project-section > p b {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap .secondary-btn,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap .secondary-btn {
    background: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section .hint,
body.tg-dark-theme #compass-sprint-section .hint {
    color: #94a3b8 !important;
}
/* Модалка «Сводка по Спринту» */
html[data-tg-theme="dark"] #sprint-profile-modal .compass-modal-content,
body.tg-dark-theme #sprint-profile-modal .compass-modal-content {
    background: #1e293b !important;
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-modal-title-wrap,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-modal-title-wrap {
    background: #0f172a !important;
    background-image: none !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-modal-title,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-modal-title {
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-week-card,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-week-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-week-title,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-week-title {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-week-subtitle,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-week-subtitle {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-week-list li,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-week-list li {
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-week-list li.sprint-profile-stat-done,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-week-list li.sprint-profile-stat-done {
    border-top-color: rgba(148, 163, 184, 0.4) !important;
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-total,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-total {
    background: linear-gradient(145deg, #1e293b 0%, #172554 100%) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-total p,
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-stats p,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-total p,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-stats p {
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-name-value,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-name-value {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] #sprint-profile-modal .sprint-profile-edit-wrap input,
body.tg-dark-theme #sprint-profile-modal .sprint-profile-edit-wrap input {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.hint {
    margin: 0 0 8px;
    font-size: 13px;
    color: #777;
}

#start-date-input,
#prac-date,
#sleep-morning-time,
#sleep-evening-time {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #2a6fdb;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Время опроса «Как ты провёл день?» и «Трекер сна» — одинаковые размер и рамка */
#compass-settings-section .compass-time-input,
.compass-time-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #2a6fdb;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    line-height: 20px;
    display: block;
}
.compass-time-input.compass-field-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}
.compass-setting-checkbox-label.compass-checkbox-error {
    color: #c62828;
}
.compass-setting-checkbox-label.compass-checkbox-error .compass-setting-checkbox {
    outline: 2px solid rgba(198, 40, 40, 0.45);
    outline-offset: 2px;
}

/* Чекбоксы «Дневник дня» и «Отслеживание в моменте» — такой же размер, как у слотов времени (06:00, 07:00…) */
.compass-setting-checkbox-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
}
.compass-setting-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}
.compass-setting-checkbox-label span {
    flex: 1;
}
.compass-setting-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2a6fdb;
}

.error {
    margin-top: 6px;
    font-size: 13px;
    color: #d33;
}

#summary {
    margin-top: 20px;
    padding: 16px;
    background: #f5f7fb;
    border-radius: 12px;
}

#summary-text {
    margin-bottom: 12px;
    white-space: pre-line;
}

.compass-moment-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}
.compass-moment-table {
    font-size: 13px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.compass-moment-table th,
.compass-moment-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #c0c4cc;
    text-align: left;
    vertical-align: top;
}
.compass-moment-table th:last-child,
.compass-moment-table td:last-child {
    border-right: none;
}
.compass-moment-table thead th {
    border-bottom: 2px solid #2a6fdb;
    font-weight: 600;
}
.psychologist-card-body {
    flex: 1;
    max-height: 96px;
    overflow: hidden;
}
.psychologist-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.psychologist-more-btn {
    flex: 1 1 0;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    color: #111827;
}
.psychologist-card-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.psychologist-card-full-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.psychologist-card-full-main {
    flex: 1;
    min-width: 0;
}
.psychologist-card-full-price {
    margin-left: auto;
    padding-right: 0;
    white-space: nowrap;
}
.psychologist-card-full-photo {
    cursor: pointer;
}
.psychologist-contact-modal-inner--profile {
    width: min(560px, 100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 20px;
    padding: 16px 16px 14px;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 55%, #eef4ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.psychologist-contact-modal-inner--profile:focus {
    outline: none;
}

/* Каталог нейротренеров: подробная анкета (модалка) — тёмная тема */
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile,
body.tg-dark-theme .psychologist-contact-modal-inner--profile {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .psychologist-profile-modal-title,
body.tg-dark-theme .psychologist-profile-modal-title {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-full,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-full {
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(96, 165, 250, 0.18);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-full-photo,
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-photo--empty,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-full-photo,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-photo--empty {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.28);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-name,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-name {
    color: #f8fafc;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-meta,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-meta {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-full-price,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-full-price {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-card-line,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-card-line {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(96, 165, 250, 0.18);
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .psychologist-card-section,
body.tg-dark-theme .psychologist-card-section {
    background: rgba(30, 58, 138, 0.22);
    border-color: rgba(96, 165, 250, 0.22);
}
html[data-tg-theme="dark"] .psychologist-card-section-header,
body.tg-dark-theme .psychologist-card-section-header {
    color: #bfdbfe;
}
html[data-tg-theme="dark"] .psychologist-card-section-text,
html[data-tg-theme="dark"] .psychologist-practice-row-value,
html[data-tg-theme="dark"] .psychologist-practice-stat-line,
body.tg-dark-theme .psychologist-card-section-text,
body.tg-dark-theme .psychologist-practice-row-value,
body.tg-dark-theme .psychologist-practice-stat-line {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .psychologist-practice-block-title,
html[data-tg-theme="dark"] .psychologist-practice-row-label,
body.tg-dark-theme .psychologist-practice-block-title,
body.tg-dark-theme .psychologist-practice-row-label {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .psychologist-practice-stat-num,
body.tg-dark-theme .psychologist-practice-stat-num {
    color: #bfdbfe;
}
html[data-tg-theme="dark"] .psychologist-practice-block + .psychologist-practice-block,
body.tg-dark-theme .psychologist-practice-block + .psychologist-practice-block {
    border-top-color: rgba(96, 165, 250, 0.18);
}
html[data-tg-theme="dark"] .psychologist-card-full-badge,
body.tg-dark-theme .psychologist-card-full-badge {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.28);
}
html[data-tg-theme="dark"] .psychologist-card-full-badge--action,
body.tg-dark-theme .psychologist-card-full-badge--action {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.32);
}
html[data-tg-theme="dark"] .psychologist-card-full-badge--action:hover,
body.tg-dark-theme .psychologist-card-full-badge--action:hover {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}
.psychologist-profile-modal-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.1px;
}
.psychologist-contact-modal-inner--profile .psychologist-card-full {
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    gap: 10px;
}
.psychologist-contact-modal-inner--profile .psychologist-card-full-header {
    justify-content: flex-start;
    gap: 4px;
    align-items: flex-start;
}
.psychologist-card-full-photo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 0 0 auto;
}
.psychologist-contact-modal-inner--profile .psychologist-card-full-photo {
    width: 120px;
    height: 120px;
    min-width: 120px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: #e2e8f0;
}
.psychologist-card-full-badges {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 6px;
    max-width: 100%;
    margin-top: 10px;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
}
.psychologist-card-full-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.32);
    background: transparent;
    height: 34px;
    min-height: 34px;
    line-height: 1;
}
.psychologist-card-full-badge--action {
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.32);
    color: #2563eb;
    background: transparent;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.psychologist-card-full-badge--action:hover {
    border-color: rgba(37, 99, 235, 0.95);
    color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.psychologist-card-full-badge--action:active {
    transform: translateY(1px);
}
.psychologist-card-full-badge--reviews-btn {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
.psychologist-card-full-badge-icon {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.psychologist-card-full-badge-value {
    font-weight: inherit;
}

.psychologist-card-full-badges .psychologist-meta-chip {
    width: 18px;
    height: 18px;
    min-width: 18px;
}
.psychologist-card-full-badges .psychologist-meta-chip::before {
    width: 16px;
    height: 16px;
}
.psychologist-card-full-badges .psychologist-meta-chip--sprints {
    width: 16px;
    height: 16px;
    min-width: 16px;
}
.psychologist-card-full-badges .psychologist-meta-chip--sprints::before {
    width: 14px;
    height: 14px;
}

/* “Дипломы” (emoji) выглядеть как иконка */
.psychologist-card-full-badge--action .psychologist-card-full-badge-icon {
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 18px;
}
.psychologist-contact-modal-inner--profile .psychologist-card-photo--empty {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: #e2e8f0;
}
.psychologist-card-photo-wrap--full .psychologist-card-photo-plus {
    width: 18px;
    height: 18px;
    font-size: 13px;
}
.psychologist-contact-modal-inner--profile .psychologist-card-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.psychologist-contact-modal-inner--profile .psychologist-card-meta {
    margin-top: 6px;
    color: #475569;
    font-size: 15px;
}
.psychologist-contact-modal-inner--profile .psychologist-card-meta-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.psychologist-contact-modal-inner--profile .psychologist-card-full-main {
    min-width: 0;
    flex: 1 1 auto;
    align-self: flex-start;
    margin-left: 0;
}
.psychologist-contact-modal-inner--profile .psychologist-card-full-price {
    font-size: 22px;
    font-weight: 900;
    color: #1d4ed8;
    margin-top: 8px;
    align-self: flex-start;
}
.psychologist-contact-modal-inner--profile .psychologist-card-line {
    margin-top: 4px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    font-size: 15px;
    line-height: 1.45;
    color: #1f2937;
}
.psychologist-card-section {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.18);
}
.psychologist-card-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    margin-bottom: 6px;
    font-size: 15px;
}
.psychologist-card-section-text {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.45;
}
.psychologist-card-section-text--practice {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.psychologist-practice-block-title {
    font-weight: 600;
    color: #1d4ed8;
    font-size: 13px;
    margin-bottom: 4px;
}
.psychologist-practice-block-body {
    line-height: 1.5;
}
.psychologist-practice-row--exp {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
}
.psychologist-practice-row-label {
    font-weight: 600;
    color: #1d4ed8;
    font-size: 13px;
    flex: 0 0 auto;
}
.psychologist-practice-row-value {
    font-size: 15px;
    color: #1f2937;
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}
.psychologist-practice-block-body--stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.psychologist-practice-stat-line {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.4;
}
.psychologist-practice-stat-num {
    font-weight: 700;
    font-size: 16px;
    color: #1d4ed8;
}
.psychologist-practice-block + .psychologist-practice-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(37, 99, 235, 0.15);
}
.psychologist-practice-block--practice-stats .psychologist-practice-block-body--stats {
    font-size: 15px;
    color: #1f2937;
}
.psychologist-price-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.psychologist-price-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.11);
    background: transparent;
}
.psychologist-price-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}
.psychologist-price-item:first-child {
    padding-top: 2px;
}
/* Подпись слева по вертикали по центру блока справа (сумма+время или несколько способов оплаты). */
.psychologist-price-item:has(.psychologist-price-item-duration),
.psychologist-price-item:has(.psychologist-price-item-value--pay-methods) {
    align-items: center;
}
.psychologist-price-item-label {
    flex: 1 1 0;
    min-width: 0;
    font-weight: 500;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
}
.psychologist-price-item-value {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    color: #2563eb;
    font-weight: 500;
    font-size: 15px;
    white-space: normal;
    margin-left: 0;
    text-align: right;
    line-height: 1.35;
}
.psychologist-price-item-value--dual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: normal;
    text-align: right;
}
.psychologist-price-item-value--pay-methods .psychologist-price-item-money-line {
    display: block;
}
.psychologist-price-item-moneys {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    line-height: 1.3;
}
.psychologist-price-item-money-line {
    font-weight: 500;
    font-size: 15px;
    color: #2563eb;
}
.psychologist-price-item-duration {
    font-weight: 500;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    max-width: 100%;
}

/* Подробная анкета: прайс-лист — тёмная тема (читаемость) */
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-price-item,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-price-item {
    border-bottom-color: rgba(96, 165, 250, 0.18);
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-price-item-label,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-price-item-label {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-price-item-value,
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-price-item-money-line,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-price-item-value,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-price-item-money-line {
    color: #93c5fd;
}
html[data-tg-theme="dark"] .psychologist-contact-modal-inner--profile .psychologist-price-item-duration,
body.tg-dark-theme .psychologist-contact-modal-inner--profile .psychologist-price-item-duration {
    color: #94a3b8;
}
.psychologist-profile-close-btn {
    border-radius: 14px !important;
    border: 1px solid rgba(37, 99, 235, 0.42) !important;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 0 16px !important;
}
.psychologist-profile-contact-btn {
    border-radius: 14px !important;
    border: 1px solid rgba(37, 99, 235, 0.55) !important;
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%) !important;
    color: #1e3a8a !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 0 16px !important;
    flex: 1 1 auto !important;
}
.psychologist-profile-action-btn {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}
.psychologist-contact-modal-inner--profile .psychologist-contact-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.psychologist-contact-modal-inner--profile .psychologist-profile-close-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0 14px !important;
    margin: 0 !important;
}
.psychologist-contact-modal-inner--profile .psychologist-profile-contact-btn {
    margin: 0 !important;
}
.psychologist-profile-back-arrow {
    display: inline-flex;
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}
@media (max-width: 560px) {
    .psychologist-contact-modal-inner--profile {
        width: min(100vw - 14px, 560px);
        padding: 12px 12px 10px;
    }
    .psychologist-contact-modal-inner--profile .psychologist-card-full-header {
        gap: 10px;
    }
    .psychologist-contact-modal-inner--profile .psychologist-card-full-photo,
    .psychologist-contact-modal-inner--profile .psychologist-card-photo--empty {
        width: 108px;
        height: 108px;
        min-width: 108px;
    }
    .psychologist-contact-modal-inner--profile .psychologist-card-name {
        font-size: 18px;
    }
    .psychologist-contact-modal-inner--profile .psychologist-card-meta {
        font-size: 13px;
    }
    .psychologist-card-full-badge {
        font-size: 12px;
        padding: 0 9px;
        height: 34px;
        min-height: 34px;
    }
    .psychologist-price-item {
        gap: 8px;
    }
}
.compass-moment-table .compass-moment-datetime {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 4px;
}
.compass-moment-table td {
    white-space: pre-wrap;
}
.compass-moment-table .compass-moment-cell-state {
    white-space: normal;
}

.compass-standup-entries {
    margin-top: 12px;
}

/* ——— Дневник: шапка + карточка заметки ——— */
.compass-notebook-toolbar {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.compass-notebook-toolbar-card {
    margin-top: 0 !important;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 55%, #eef6ff 100%);
    border: 1px solid rgba(42, 171, 238, 0.2);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
}
.compass-notebook-toolbar-main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.compass-notebook-toolbar__cta {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}
.compass-notebook-new-btn {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.2) inset,
        0 6px 20px rgba(42, 111, 219, 0.38),
        0 2px 8px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s ease, filter 0.2s ease;
}
.compass-notebook-new-btn__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    /* Тот же «фирменный» синий, что у выбранных вкладок (#2a6fdb), с лёгким отливом сверху */
    background:
        radial-gradient(ellipse 95% 70% at 22% -5%, rgba(255, 255, 255, 0.42) 0%, transparent 48%),
        linear-gradient(155deg, #4f8ff4 0%, #2a6fdb 38%, #2563c7 52%, #1e4fad 100%);
}
.compass-notebook-new-btn:hover {
    filter: brightness(1.05);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.24) inset,
        0 10px 26px rgba(42, 111, 219, 0.45),
        0 3px 10px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}
.compass-notebook-new-btn:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.97);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 3px 14px rgba(42, 111, 219, 0.34);
}
.compass-notebook-new-btn__emoji {
    font-size: 17px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
.compass-notebook-new-btn__label {
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.compass-notebook-add-status {
    margin: 0 !important;
    text-align: center;
    width: 100%;
    max-width: none;
    font-size: 12px;
    line-height: 1.35;
}
@media (max-width: 380px) {
    .compass-notebook-new-btn__inner {
        padding: 11px 14px;
        font-size: 13px;
    }
}
.compass-notebook-clear-btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: 48px;
    min-height: 48px;
    padding: 0 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}
.compass-notebook-clear-btn:hover {
    background: #fef2f2 !important;
}
.compass-notebook-clear-btn:active {
    transform: scale(0.96);
}
/* .secondary-btn задаёт width:100% позже в файле — без !important урна съедает всю ширину тулбара */
.compass-notebook-clear-btn.secondary-btn,
button.compass-notebook-clear-btn.secondary-btn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.compass-standup-entry--note {
    margin-bottom: 14px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.compass-notebook-entry-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 8px;
    background: linear-gradient(180deg, rgba(42, 171, 238, 0.07) 0%, rgba(255, 255, 255, 0) 100%);
}
.compass-notebook-entry-head__icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.compass-notebook-entry-head__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.compass-notebook-entry-head__title {
    font-weight: 700;
    font-size: 15px;
    color: #141824;
    letter-spacing: -0.02em;
}
.compass-notebook-entry-head__time {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}
.compass-standup-entry--note .compass-standup-text {
    padding: 6px 16px 14px !important;
    margin: 0 !important;
    font-size: 16px;
    line-height: 1.55 !important;
    color: #1e293b !important;
}
.compass-notebook-entry-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 12px 16px 14px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.85) 100%);
}
button.compass-notebook-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 7px !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    cursor: pointer !important;
    min-height: 40px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
}
button.compass-notebook-chip:active {
    transform: scale(0.97) !important;
}
button.compass-notebook-chip--edit.compass-diary-edit-btn {
    background:
        radial-gradient(ellipse 95% 70% at 22% -5%, rgba(255, 255, 255, 0.42) 0%, transparent 48%),
        linear-gradient(155deg, #4f8ff4 0%, #2a6fdb 38%, #2563c7 52%, #1e4fad 100%) !important;
    background-color: #2a6fdb !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3) !important;
}
button.compass-notebook-chip--edit.compass-diary-edit-btn:hover {
    filter: brightness(1.05) !important;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38) !important;
}
button.compass-notebook-chip--del.compass-note-delete-btn {
    background: rgba(254, 226, 226, 0.65) !important;
    background-color: rgba(254, 226, 226, 0.65) !important;
    color: #991b1b !important;
    border: 1px solid rgba(248, 113, 113, 0.4) !important;
    box-shadow: none !important;
}
button.compass-notebook-chip--del.compass-note-delete-btn:hover {
    background: rgba(254, 202, 202, 0.85) !important;
    background-color: rgba(254, 202, 202, 0.85) !important;
}
.compass-notebook-chip__ico {
    font-size: 15px;
    line-height: 1;
}
.compass-notebook-chip__txt {
    line-height: 1.2;
}

html[data-tg-theme="dark"] .compass-notebook-toolbar-card,
body.tg-dark-theme .compass-notebook-toolbar-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .compass-notebook-clear-btn,
body.tg-dark-theme .compass-notebook-clear-btn {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}
html[data-tg-theme="dark"] .compass-standup-entry--note,
body.tg-dark-theme .compass-standup-entry--note {
    background: var(--tg-theme-secondary-bg-color, #1e293b) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .compass-notebook-entry-head,
body.tg-dark-theme .compass-notebook-entry-head {
    background: linear-gradient(180deg, rgba(42, 171, 238, 0.12) 0%, transparent 100%);
}
html[data-tg-theme="dark"] .compass-notebook-entry-head__title,
body.tg-dark-theme .compass-notebook-entry-head__title {
    color: var(--tg-theme-text-color, #f1f5f9);
}
html[data-tg-theme="dark"] .compass-notebook-entry-head__time,
body.tg-dark-theme .compass-notebook-entry-head__time {
    color: var(--tg-theme-hint-color, #94a3b8);
}
html[data-tg-theme="dark"] .compass-standup-entry--note .compass-standup-text,
body.tg-dark-theme .compass-standup-entry--note .compass-standup-text {
    color: var(--tg-theme-text-color, #e2e8f0) !important;
}
html[data-tg-theme="dark"] .compass-notebook-entry-actions,
body.tg-dark-theme .compass-notebook-entry-actions {
    border-top-color: rgba(148, 163, 184, 0.12) !important;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5));
}

.compass-standup-entry {
    margin-bottom: 16px;
    padding: 12px;
    background: #f5f7fb;
    border-radius: 10px;
}
.compass-standup-text {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    white-space: normal;
}
.compass-standup-photo-wrap {
    margin-top: 10px;
}
.compass-standup-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.compass-standup-entry-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e0e4ec;
}

/* Кнопка «Редактировать» — компактная */
#compass-standup-entries .compass-standup-entry .compass-diary-edit-btn,
.compass-standup-entries .compass-standup-entry-actions .compass-diary-edit-btn,
button.compass-diary-edit-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 6px !important;
    border: none !important;
    background: #2a6fdb !important;
    background-color: #2a6fdb !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3) !important;
    min-height: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

button.compass-note-delete-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 6px !important;
    border: none !important;
    background: #e4e8f0 !important;
    background-color: #e4e8f0 !important;
    color: #8a1f1f !important;
    cursor: pointer !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
    min-height: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
button.compass-note-delete-btn:hover {
    background: #f3dede !important;
    background-color: #f3dede !important;
}
button.compass-note-delete-btn:active {
    opacity: 0.92 !important;
}

/* Кнопки "Сохранить" в Спринте — 2 строки внутри */
.btn-with-subtitle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.15;
    padding-top: 10px;
    padding-bottom: 10px;
}
.btn-with-subtitle .btn-title {
    display: block;
    font-weight: 600;
}
.btn-with-subtitle .btn-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* Кнопка «Поделиться» графиками — явно синяя (Шкала Баланса) */
button.compass-share-chart-btn.primary-btn,
.compass-share-chart-btn.primary-btn {
    background: linear-gradient(135deg, #2a6fdb, #1e5bb8) !important;
    background-color: #2a6fdb !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.compass-share-chart-btn .btn-title,
.compass-share-chart-btn .btn-subtitle {
    color: #fff !important;
    opacity: 1;
}
.compass-share-chart-btn .btn-subtitle {
    font-size: 11px;
    opacity: 0.92;
}
.compass-share-chart-btn:active {
    filter: brightness(0.96);
}
.compass-share-chart-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.sprint-week-tab {
    flex: 1;
    min-width: 0;
    padding: 9px 6px;
    border-radius: 12px;
    border: 1.5px solid #2d7ff9;
    background: linear-gradient(135deg, #ffffff, #f3f7ff);
    color: #2d7ff9;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.sprint-week-tab:hover {
    box-shadow: 0 3px 10px rgba(45, 127, 249, 0.25);
    transform: translateY(-1px);
}

.sprint-week-tab.active {
    background: linear-gradient(135deg, #2d7ff9, #4b9dff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 127, 249, 0.35);
}
#compass-standup-entries .compass-diary-edit-btn:active,
.compass-standup-entry-actions .compass-diary-edit-btn:active,
button.compass-diary-edit-btn:active {
    opacity: 0.92 !important;
}
#compass-standup-entries .compass-diary-edit-btn:hover,
.compass-standup-entry-actions .compass-diary-edit-btn:hover,
button.compass-diary-edit-btn:hover {
    background: #2563c7 !important;
    background-color: #2563c7 !important;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38) !important;
}

/* Редактирование записи прямо в карточке — ровная колонка: подпись сверху, поле снизу */
.compass-standup-entry-editing {
    padding: 14px;
}
.compass-diary-edit-inline {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.compass-diary-edit-inline .compass-edit-row {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.compass-diary-edit-inline .compass-edit-row:last-of-type {
    margin-bottom: 0;
}
.compass-diary-edit-inline .compass-edit-row-info .compass-edit-date-value {
    display: block;
    font-size: 14px;
    color: #555;
    padding: 4px 0 0 0;
}
.compass-diary-edit-inline .compass-inline-label {
    display: block;
    width: 100%;
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-sizing: border-box;
}
.compass-diary-edit-inline .compass-inline-field {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #c0c4cc;
    border-radius: 8px;
    box-sizing: border-box;
}
.compass-diary-edit-inline select.compass-inline-field {
    cursor: pointer;
}
.compass-diary-edit-inline textarea.compass-inline-field {
    min-height: 56px;
    resize: vertical;
}
.compass-diary-inline-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e0e4ec;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.compass-diary-inline-actions button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.compass-diary-inline-cancel {
    background: #e4e8f0;
    color: #333;
}
.compass-diary-inline-save {
    background: #2a6fdb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.25);
}

/* Модальное окно редактирования записи дневника */
.compass-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overscroll-behavior: contain;
}
.compass-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.compass-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.compass-modal-content h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
.compass-modal-content label {
    display: block;
    margin: 12px 0 4px;
    font-size: 14px;
    color: #333;
}
.compass-modal-content input[type="text"],
.compass-modal-content select,
.compass-modal-content textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #c0c4cc;
    border-radius: 8px;
    box-sizing: border-box;
}
.compass-modal-content textarea {
    min-height: 60px;
    resize: vertical;
}
.compass-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.compass-modal-actions .compass-btn {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.compass-modal-actions .compass-btn.secondary {
    background: #e4e8f0;
    color: #333;
}
.compass-modal-actions .compass-btn:not(.secondary) {
    background: #2a6fdb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.28);
}
.compass-modal-actions .compass-btn:not(.secondary):hover {
    background: #2563c7;
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.36);
}

.compass-review-cancel-instruction-modal .compass-review-cancel-instruction-modal-text {
    color: #4b5563;
}
html[data-tg-theme="dark"] .compass-review-cancel-instruction-modal,
body.tg-dark-theme .compass-review-cancel-instruction-modal {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
html[data-tg-theme="dark"] .compass-review-cancel-instruction-modal h3,
body.tg-dark-theme .compass-review-cancel-instruction-modal h3 {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .compass-review-cancel-instruction-modal .compass-review-cancel-instruction-modal-text,
body.tg-dark-theme .compass-review-cancel-instruction-modal .compass-review-cancel-instruction-modal-text {
    color: #94a3b8;
}
html[data-tg-theme="dark"] #compass-review-cancel-instruction-modal .compass-modal-actions .compass-btn:not(.secondary),
body.tg-dark-theme #compass-review-cancel-instruction-modal .compass-modal-actions .compass-btn:not(.secondary) {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.compass-notebook-new-voice-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

/* Кнопка «как в Telegram»: пилюля, голос → текст, при записи — волна внутри */
.compass-notebook-new-voice-row .compass-notebook-voice-btn {
    --notebook-voice-blue: #2aabee;
    --notebook-voice-blue-deep: #229ed9;
    appearance: none;
    padding: 0;
    min-height: 52px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-family: inherit;
    background: linear-gradient(145deg, var(--notebook-voice-blue) 0%, var(--notebook-voice-blue-deep) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.compass-notebook-new-voice-row .compass-notebook-voice-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.45), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.compass-notebook-new-voice-row .compass-notebook-voice-btn:active:not(:disabled) {
    transform: scale(0.98);
}
.compass-notebook-new-voice-row .compass-notebook-voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.35);
    box-shadow: none;
}

.compass-notebook-voice-btn__shell {
    display: block;
    width: 100%;
    padding: 10px 18px 10px 14px;
    box-sizing: border-box;
}

.compass-notebook-voice-btn__idle {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compass-notebook-voice-btn--listening .compass-notebook-voice-btn__idle {
    display: none;
}

.compass-notebook-voice-btn__mic-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
.compass-notebook-voice-btn__mic-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    color: #fff;
}

.compass-notebook-voice-btn__labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.compass-notebook-voice-btn__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.compass-notebook-voice-btn__sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.3;
}

.compass-notebook-voice-btn__record {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.compass-notebook-voice-btn--listening .compass-notebook-voice-btn__record {
    display: flex;
}

/* «Звук» внутри кнопки — анимированные полоски */
.compass-notebook-voice-wave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 26px;
    padding: 0 4px;
    flex-shrink: 0;
}
.compass-notebook-voice-wave__bar {
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
    transform-origin: center bottom;
    height: 22px;
    animation: compass-notebook-voice-bar 0.55s ease-in-out infinite alternate;
}
.compass-notebook-voice-wave__bar:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 0.42s;
}
.compass-notebook-voice-wave__bar:nth-child(2) {
    animation-delay: 0.07s;
    animation-duration: 0.5s;
}
.compass-notebook-voice-wave__bar:nth-child(3) {
    animation-delay: 0.14s;
    animation-duration: 0.38s;
}
.compass-notebook-voice-wave__bar:nth-child(4) {
    animation-delay: 0.05s;
    animation-duration: 0.55s;
}
.compass-notebook-voice-wave__bar:nth-child(5) {
    animation-delay: 0.12s;
    animation-duration: 0.48s;
}
.compass-notebook-voice-wave__bar:nth-child(6) {
    animation-delay: 0.2s;
    animation-duration: 0.4s;
}
.compass-notebook-voice-wave__bar:nth-child(7) {
    animation-delay: 0.09s;
    animation-duration: 0.52s;
}
.compass-notebook-voice-wave__bar:nth-child(8) {
    animation-delay: 0.16s;
    animation-duration: 0.45s;
}
.compass-notebook-voice-wave__bar:nth-child(9) {
    animation-delay: 0.03s;
    animation-duration: 0.5s;
}

@keyframes compass-notebook-voice-bar {
    0% {
        transform: scaleY(0.2);
        opacity: 0.75;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.compass-notebook-voice-btn__rec-labels {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}
.compass-notebook-voice-btn__rec-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}
.compass-notebook-voice-btn__rec-sub {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.compass-notebook-new-voice-row .compass-notebook-voice-btn.compass-notebook-voice-btn--listening {
    background: linear-gradient(145deg, #e53935 0%, #c62828 48%, #b71c1c 100%);
    box-shadow: 0 4px 18px rgba(198, 40, 40, 0.55), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
    animation: compass-notebook-voice-rec-glow 1.8s ease-in-out infinite;
}
.compass-notebook-new-voice-row .compass-notebook-voice-btn.compass-notebook-voice-btn--listening:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(198, 40, 40, 0.6), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

@keyframes compass-notebook-voice-rec-glow {
    0%,
    100% {
        box-shadow: 0 4px 18px rgba(198, 40, 40, 0.5), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
    }
    50% {
        box-shadow: 0 5px 24px rgba(229, 57, 53, 0.55), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    }
}

html[data-tg-theme="dark"] .compass-notebook-new-voice-row .compass-notebook-voice-btn:not(.compass-notebook-voice-btn--listening),
body.tg-dark-theme .compass-notebook-new-voice-row .compass-notebook-voice-btn:not(.compass-notebook-voice-btn--listening) {
    --notebook-voice-blue: #3db8f0;
    --notebook-voice-blue-deep: #2a9fd6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
html[data-tg-theme="dark"] .compass-notebook-new-voice-row .compass-notebook-voice-btn.compass-notebook-voice-btn--listening,
body.tg-dark-theme .compass-notebook-new-voice-row .compass-notebook-voice-btn.compass-notebook-voice-btn--listening {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

p.hint.compass-notebook-voice-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.35;
    width: 100%;
}

/* Модалка переноса цели спринта (десктоп + мобильный WebApp) */
.compass-sprint-reschedule-shell .compass-modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.compass-sprint-reschedule-modal {
    position: relative;
    max-width: 420px;
    min-width: min(100%, 300px);
    width: calc(100vw - 32px);
    padding: 26px 24px 22px;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 24px 48px -10px rgba(15, 23, 42, 0.22);
    background: #fff;
    overflow: hidden;
}
.compass-sprint-reschedule-modal::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 40%, #a855f7 72%, #ec4899 100%);
}
.compass-sprint-reschedule-modal .compass-sprint-reschedule-title {
    margin: 0 0 18px;
    padding: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
/* Цель — текст, без «карточки» как у кнопок дней */
.compass-sprint-reschedule-goal-block {
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e8ecf4;
}
.compass-sprint-reschedule-goal-caption {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}
.compass-sprint-reschedule-goal-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e3a5f;
    padding-left: 12px;
    border-left: 3px solid #2563eb;
}
.compass-sprint-reschedule-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-height: min(50vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px 8px;
    margin: 0 -4px 0 0;
    -webkit-overflow-scrolling: touch;
}
.compass-sprint-reschedule-week-wrap {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.compass-sprint-reschedule-next-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px dashed #2a6fdb;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease, background 0.2s ease;
}
.compass-sprint-reschedule-next-toggle:hover {
    border-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}
.compass-sprint-reschedule-next-toggle:active {
    transform: translateY(0);
}
.compass-sprint-reschedule-next-toggle-arrow {
    font-size: 13px;
    transition: transform 0.18s ease;
}
.compass-sprint-reschedule-next-toggle[aria-expanded="true"] .compass-sprint-reschedule-next-toggle-arrow {
    transform: rotate(90deg);
}
.compass-sprint-reschedule-week-wrap--next {
    margin-top: -3px;
}
.compass-sprint-reschedule-day-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: left;
    padding: 0;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    background: transparent;
}
.compass-sprint-reschedule-day-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px 15px 18px;
    border-radius: 16px;
    border: 1px solid #dbe3f0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.compass-sprint-reschedule-day-btn-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    text-align: left;
}
.compass-sprint-reschedule-day-btn:hover .compass-sprint-reschedule-day-btn-row {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14);
}
.compass-sprint-reschedule-day-btn:active {
    transform: scale(0.99);
}
.compass-sprint-reschedule-day-btn--today .compass-sprint-reschedule-day-btn-row {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}
.compass-sprint-reschedule-today-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.compass-sprint-reschedule-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf4;
    justify-content: center;
}
.compass-sprint-reschedule-footer.compass-modal-actions {
    margin-top: 20px;
}
.compass-sprint-reschedule-cancel.compass-btn.secondary {
    appearance: none;
    -webkit-appearance: none;
    min-width: 148px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    color: #334155;
    border: 2px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.compass-sprint-reschedule-cancel.compass-btn.secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
@media (min-width: 520px) {
    .compass-sprint-reschedule-modal {
        min-width: 400px;
        max-width: 440px;
        width: auto;
        padding: 28px 28px 24px;
    }
    .compass-sprint-reschedule-modal .compass-sprint-reschedule-title {
        font-size: 22px;
    }
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-modal,
body.tg-dark-theme .compass-sprint-reschedule-modal {
    background: #1a1f2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 48px -10px rgba(0, 0, 0, 0.55);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-modal .compass-sprint-reschedule-title,
body.tg-dark-theme .compass-sprint-reschedule-modal .compass-sprint-reschedule-title {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-goal-block,
body.tg-dark-theme .compass-sprint-reschedule-goal-block {
    border-bottom-color: #334155;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-goal-caption,
body.tg-dark-theme .compass-sprint-reschedule-goal-caption {
    color: #94a3b8;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-goal-text,
body.tg-dark-theme .compass-sprint-reschedule-goal-text {
    color: #e2e8f0;
    border-left-color: #60a5fa;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-day-btn-row,
body.tg-dark-theme .compass-sprint-reschedule-day-btn-row {
    border-color: #3d4a63;
    background: linear-gradient(180deg, #252b3d 0%, #1e2433 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-day-btn-label,
body.tg-dark-theme .compass-sprint-reschedule-day-btn-label {
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-day-btn:hover .compass-sprint-reschedule-day-btn-row,
body.tg-dark-theme .compass-sprint-reschedule-day-btn:hover .compass-sprint-reschedule-day-btn-row {
    border-color: #6366f1;
    background: linear-gradient(180deg, #2d3548 0%, #252d42 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-day-btn--today .compass-sprint-reschedule-day-btn-row,
body.tg-dark-theme .compass-sprint-reschedule-day-btn--today .compass-sprint-reschedule-day-btn-row {
    border-color: #4f6ab8;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e2d4a 100%);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-next-toggle,
body.tg-dark-theme .compass-sprint-reschedule-next-toggle {
    border-color: #4f6ab8;
    background: linear-gradient(180deg, #243146 0%, #1e2a3d 100%);
    color: #c7d8ff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-next-toggle:hover,
body.tg-dark-theme .compass-sprint-reschedule-next-toggle:hover {
    border-color: #7da4ff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.26);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-footer,
body.tg-dark-theme .compass-sprint-reschedule-footer {
    border-top-color: #334155;
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-cancel.compass-btn.secondary,
body.tg-dark-theme .compass-sprint-reschedule-cancel.compass-btn.secondary {
    background: #252b3d;
    color: #e2e8f0;
    border-color: #475569;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
html[data-tg-theme="dark"] .compass-sprint-reschedule-cancel.compass-btn.secondary:hover,
body.tg-dark-theme .compass-sprint-reschedule-cancel.compass-btn.secondary:hover {
    background: #2d3548;
    border-color: #64748b;
}

.compass-goals-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    margin-bottom: 16px;
}
.compass-goals-table {
    font-size: 14px;
    width: 100%;
    border-collapse: collapse;
}
.compass-goals-table th,
.compass-goals-table td {
    padding: 10px 12px;
    border: 1px solid #c0c4cc;
    text-align: left;
    vertical-align: top;
}
.compass-goals-table thead th {
    background: #2a6fdb;
    color: #fff;
    font-weight: 600;
    border-color: #2a6fdb;
}
.compass-goals-table tbody tr:nth-child(even) {
    background: #f5f7fb;
}
.compass-goals-table tbody td {
    line-height: 1.5;
}

/* Цели Спринт в дневнике */
.compass-sprint-goals-wrap {
    margin-top: 12px;
}
.compass-sprint-goals-meta {
    margin-bottom: 0;
    padding: 13px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4f7ff 0%, #e8f0ff 48%, #eef4ff 100%);
    border: 1px solid rgba(71, 124, 236, 0.35);
    box-shadow: 0 6px 18px rgba(35, 92, 192, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}
.compass-sprint-goals-meta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -20%, rgba(132, 178, 255, 0.38), transparent 52%);
    pointer-events: none;
}
.compass-sprint-goals-meta-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: #1f4f9a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compass-sprint-goals-meta-bar {
    height: 10px;
    margin-bottom: 0;
    background: linear-gradient(180deg, #dbe5f6 0%, #cad6eb 100%);
    border-radius: 999px;
    border: 1px solid rgba(80, 109, 163, 0.28);
    box-shadow: inset 0 2px 5px rgba(32, 48, 82, 0.16);
    position: relative;
    z-index: 1;
}
.compass-sprint-goals-meta-bar .compass-goals-progress-fill {
    background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 38%, #2563eb 72%, #1d4ed8 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(56, 189, 248, 0.28);
    position: relative;
}
.compass-sprint-goals-meta-bar .compass-goals-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    right: -22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0) 100%);
    filter: blur(0.2px);
    animation: sprintProgressShine 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sprintProgressShine {
    0% { transform: translateX(-26px); opacity: 0.35; }
    50% { transform: translateX(10px); opacity: 0.95; }
    100% { transform: translateX(28px); opacity: 0.35; }
}
/* Текущий день спринта — без color-mix(): в WebView Telegram на телефонах он часто не поддерживается, тогда граница/фон не рисуются */
.compass-sprint-goals-day-block.compass-sprint-goals-day--current {
    border-radius: 10px;
    padding: 10px 10px 12px;
    margin-left: -4px;
    margin-right: -4px;
    border: 2px solid rgba(25, 118, 210, 0.55);
    background: rgba(33, 150, 243, 0.16);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.2);
}
/* Тёмная тема: чуть сильнее контраст поверх тёмного фона */
html[data-tg-theme="dark"] .compass-sprint-goals-day-block.compass-sprint-goals-day--current,
body.tg-dark-theme .compass-sprint-goals-day-block.compass-sprint-goals-day--current {
    border-color: rgba(100, 181, 246, 0.75);
    background: rgba(33, 150, 243, 0.22);
    box-shadow: 0 2px 14px rgba(33, 150, 243, 0.28);
}
.compass-sprint-goals-day-block {
    margin-bottom: 20px;
}
.compass-sprint-goals-day-block:last-child {
    margin-bottom: 0;
}
.compass-sprint-goals-day {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1a237e;
}
.compass-goals-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.compass-goals-day-header .compass-sprint-goals-day {
    margin-bottom: 0;
}
/* Прошедшие дни: содержимое свёрнуто, раскрытие кнопкой ▶ */
.compass-sprint-goals-day-block.compass-sprint-goals-day--collapsed .compass-sprint-goals-day-panel {
    display: none;
}
.compass-sprint-goals-day-header--toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(25, 118, 210, 0.15);
    user-select: none;
    -webkit-user-select: none;
}
.compass-sprint-goals-day-header--toggle:active {
    opacity: 0.92;
}
.compass-sprint-goals-day-header--toggle .compass-sprint-goals-day {
    flex: 1;
    min-width: 0;
}
.compass-sprint-goals-day-fold-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(25, 118, 210, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1976d2;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day-fold-btn,
body.tg-dark-theme .compass-sprint-goals-day-fold-btn {
    background: #e3f2fd;
    border-color: rgba(25, 118, 210, 0.45);
    color: #1565c0;
}
/* Текущий день спринта: заголовок «День N … дата» заметнее остальных */
.compass-sprint-goals-day--current .compass-goals-day-header {
    background: rgba(25, 118, 210, 0.16);
    border-radius: 8px;
    padding: 8px 10px;
    margin: -4px -4px 10px -4px;
    border-left: 4px solid #1976d2;
}
.compass-sprint-goals-day--current .compass-sprint-goals-day {
    color: #0d47a1;
    font-weight: 700;
    font-size: 15px;
}
.compass-sprint-goals-day--current .compass-goals-progress-pct {
    color: #1565c0;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day--current .compass-goals-day-header,
body.tg-dark-theme .compass-sprint-goals-day--current .compass-goals-day-header {
    background: rgba(100, 181, 246, 0.2);
    border-left-color: #64b5f6;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day--current .compass-sprint-goals-day,
body.tg-dark-theme .compass-sprint-goals-day--current .compass-sprint-goals-day {
    color: #90caf9;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day--current .compass-goals-progress-pct,
body.tg-dark-theme .compass-sprint-goals-day--current .compass-goals-progress-pct {
    color: #90caf9;
}
.compass-goals-progress-pct {
    font-size: 14px;
    font-weight: 600;
    color: #2a6fdb;
    flex-shrink: 0;
}
html[data-tg-theme="dark"] .compass-goals-progress-pct,
body.tg-dark-theme .compass-goals-progress-pct {
    color: #90caf9;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day,
body.tg-dark-theme .compass-sprint-goals-day {
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] .compass-sprint-goal-item,
body.tg-dark-theme .compass-sprint-goal-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.28);
}
html[data-tg-theme="dark"] .compass-sprint-goal-item.compass-sprint-goal-done,
body.tg-dark-theme .compass-sprint-goal-item.compass-sprint-goal-done {
    background: rgba(67, 160, 71, 0.32);
    border-color: rgba(129, 199, 132, 0.5);
}
html[data-tg-theme="dark"] .compass-sprint-goal-item.compass-sprint-goal-irrelevant,
body.tg-dark-theme .compass-sprint-goal-item.compass-sprint-goal-irrelevant {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
}
html[data-tg-theme="dark"] .compass-sprint-goal-label,
body.tg-dark-theme .compass-sprint-goal-label {
    color: var(--tg-theme-text-color, #e2e8f0);
}
.compass-goals-progress-bar {
    height: 6px;
    background: #e0e4ec;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar {
    background: rgba(25, 118, 210, 0.22);
}
.compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar .compass-goals-progress-fill {
    background: #1976d2;
}
html[data-tg-theme="dark"] .compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar,
body.tg-dark-theme .compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar {
    background: rgba(100, 181, 246, 0.25);
}
html[data-tg-theme="dark"] .compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar .compass-goals-progress-fill,
body.tg-dark-theme .compass-sprint-goals-day--current .compass-sprint-goals-day-panel > .compass-goals-progress-bar .compass-goals-progress-fill {
    background: #64b5f6;
}
.compass-goals-progress-fill {
    height: 100%;
    background: #2a6fdb;
    border-radius: 3px;
    transition: width 0.2s ease;
}
.compass-sprint-goals-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.compass-sprint-goal-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 6px 14px;
    margin-bottom: 6px;
    background: #f5f7fb;
    border-radius: 8px;
    border: 1px solid #e0e4ec;
    /* Крестик напоминания выступает за бейдж времени — не обрезать */
    overflow: visible;
}
.compass-sprint-goal-item.compass-sprint-goal-done {
    background: #e8f5e9;
    border-color: #c8e6c9;
}
/* Не актуально на день — спокойный светло-серый, без тёмного графита */
.compass-sprint-goal-item.compass-sprint-goal-irrelevant {
    background: #e6eaf1;
    border-color: #cfd6e2;
}
.compass-sprint-goal-item.compass-sprint-goal-irrelevant .compass-sprint-goal-label {
    color: #64748b;
}
.compass-sprint-goal-reschedule--hidden {
    display: none !important;
}
.compass-sprint-goal-reminder-wrap--disabled {
    opacity: 0.45;
}
/* Кнопка «Не актуально»: светлый флаг под кнопкой времени */
.compass-sprint-goal-skip {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #c5cae0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.compass-sprint-goal-skip:hover {
    border-color: #c7d0e1;
    background: #f2f7ff;
}
.compass-sprint-goal-skip--active {
    border-color: #c8cdd8;
    background: #e3e7ee;
}
.compass-sprint-goal-skip-flag {
    position: relative;
    width: 15px;
    height: 15px;
    pointer-events: none;
}
.compass-sprint-goal-skip-pole {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 2px;
    height: 13px;
    background: #5f6f89;
    border-radius: 2px;
}
.compass-sprint-goal-skip-pennant {
    position: absolute;
    left: 4px;
    top: 2px;
    width: 10px;
    height: 8px;
    background: #7f96c6;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    border-radius: 1px;
}
.compass-sprint-goal-skip--active .compass-sprint-goal-skip-pole {
    background: #4f5f78;
}
.compass-sprint-goal-skip--active .compass-sprint-goal-skip-pennant {
    background: #5f759e;
}
.sprint-profile-stat-irrelevant {
    font-weight: 400;
    color: #475569;
    margin: 4px 0 0;
}
.sprint-profile-stat-irrelevant-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -1px;
}
.sprint-profile-stat-irrelevant-flag {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
}
.sprint-profile-stat-irrelevant-pole {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 2px;
    height: 12px;
    border-radius: 2px;
    background: #5f6f89;
}
.sprint-profile-stat-irrelevant-pennant {
    position: absolute;
    left: 4px;
    top: 2px;
    width: 9px;
    height: 7px;
    border-radius: 1px;
    background: #7f96c6;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sprint-profile-stat-irrelevant b {
    font-weight: 400;
    color: inherit;
}
.compass-sprint-goal-check {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    /* Скруглённый квадрат как у чекбокса: понятнее, чем «○» внутри круга */
    border-radius: 6px;
    border: 2px solid #2a6fdb;
    background: #fff;
    color: #2a6fdb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.compass-sprint-goal-item.compass-sprint-goal-done .compass-sprint-goal-check {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
    border-radius: 6px;
}
html[data-tg-theme="dark"] .compass-sprint-goal-check,
body.tg-dark-theme .compass-sprint-goal-check {
    background: #e3f2fd;
    border-color: #42a5f5;
    color: #1565c0;
}
html[data-tg-theme="dark"] .compass-sprint-goal-item.compass-sprint-goal-done .compass-sprint-goal-check,
body.tg-dark-theme .compass-sprint-goal-item.compass-sprint-goal-done .compass-sprint-goal-check {
    background: #43a047;
    border-color: #43a047;
    color: #fff;
}
/* Треугольник в верхнем левом углу карточки: вершина у внешнего угла с тем же скруглением, что и border-radius карточки (8px) */
.compass-sprint-goal-project-flag {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    box-sizing: border-box;
    -webkit-clip-path: path('M 0 8 A 8 8 0 0 1 8 0 L 30 0 L 0 30 Z');
    clip-path: path('M 0 8 A 8 8 0 0 1 8 0 L 30 0 L 0 30 Z');
}
.compass-sprint-goal-project-flag--fundament {
    background: #d0d0d0;
}
.compass-sprint-goal-project-flag--drive {
    background: #9b8fd9;
}
.compass-sprint-goal-project-flag--joy {
    background: #f4d36e;
}
/* Блоки проектов в настройках спринта (недели 1–4, краткая версия): тот же оттенок, что у ярлыка; фон только у контейнера, поля и кнопки без заливки фоном секции */
#compass-sprint-section .sprint-project-section {
    border-radius: 12px;
    padding: 10px 12px 12px;
    box-sizing: border-box;
}
#compass-sprint-section .sprint-project-section--fundament {
    background: #e5e5e5;
    background: color-mix(in srgb, #d0d0d0 46%, #ffffff);
}
#compass-sprint-section .sprint-project-section--drive {
    background: #e8e4f6;
    background: color-mix(in srgb, #9b8fd9 40%, #ffffff);
}
#compass-sprint-section .sprint-project-section--joy {
    background: #fcf6e0;
    background: color-mix(in srgb, #f4d36e 38%, #ffffff);
}
#compass-sprint-section .sprint-project-section .sprint-project-name-input,
#compass-sprint-section .sprint-project-section textarea.sprint-project-input,
#compass-sprint-section .sprint-project-section input.sprint-project-minutes {
    background-color: #fff !important;
}
/* После правила с #fff — иначе тёмная тема перебивается порядком в файле */
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section .sprint-project-name-input,
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section textarea.sprint-project-input,
html[data-tg-theme="dark"] #compass-sprint-section .sprint-project-section input.sprint-project-minutes,
body.tg-dark-theme #compass-sprint-section .sprint-project-section .sprint-project-name-input,
body.tg-dark-theme #compass-sprint-section .sprint-project-section textarea.sprint-project-input,
body.tg-dark-theme #compass-sprint-section .sprint-project-section input.sprint-project-minutes {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
.compass-sprint-goal-label {
    position: relative;
    z-index: 1;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.compass-sprint-goal-item.compass-sprint-goal-done .compass-sprint-goal-label {
    color: #2e7d32;
    text-decoration: line-through;
}

.compass-sprint-goal-reschedule {
    flex-shrink: 0;
    width: 34px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #c5cae0;
    background: #fff;
    color: #3949ab;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compass-goal-move-buttons .compass-sprint-goal-reschedule {
    width: 32px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #d0d5dd;
    background: #f5f7fb;
    color: #4a5568;
    padding: 0;
}

.compass-sprint-goal-reminder {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #c5cae0;
    background: #fff;
    color: #3949ab;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compass-sprint-goal-item .compass-sprint-goal-reminder-wrap,
.compass-sprint-goal-item .compass-goal-move-buttons {
    position: relative;
    z-index: 1;
}
.compass-sprint-goal-reminder-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.compass-sprint-goal-reminder-clear {
    position: absolute;
    /* Лёгкий сдвиг от центра угла: круг чуть касается скругления бейджа времени, без «улёта» */
    left: auto;
    right: 0;
    top: 0;
    transform: translate(calc(50% + 3px), calc(-50% - 3px));
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #dc2626;
    background: transparent;
    color: #dc2626;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 2;
}
.compass-sprint-goal-reminder-clear:hover {
    background: transparent;
    border-color: #b91c1c;
    color: #b91c1c;
}
.compass-sprint-goal-reminder-clear:active {
    background: transparent;
    border-color: #991b1b;
    color: #991b1b;
}

.compass-sprint-goal-reminder.has-time {
    width: auto;
    min-width: 54px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
}

.compass-sprint-goal-reminder.active {
    border-color: #2a6fdb;
    background: #e8f0ff;
    color: #2a6fdb;
}

.compass-modal-content.compass-sprint-goal-reminder-modal {
    /* Не fit-content: нативный input[type=time] задаёт огромный min-content и растягивает окно */
    width: min(280px, calc(100vw - 32px));
    flex: 0 0 auto;
    align-self: center;
    min-width: 0;
    max-width: min(280px, calc(100vw - 32px));
    padding: 10px 12px 12px;
    border-radius: 14px;
    box-sizing: border-box;
    overflow: visible;
}

.compass-sprint-goal-reminder-modal-subtitle {
    margin: 0 0 10px;
}

.compass-sprint-goal-reminder-modal-time-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time,
.compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time-wrap .compass-time-input {
    min-width: 0;
    width: min-content;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 2px 0 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #1976d2;
    border-width: 1px;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compass-modal-content.compass-sprint-goal-reminder-modal input.compass-sprint-goal-reminder-modal-time::-webkit-datetime-edit {
    text-align: center;
    padding: 0;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    vertical-align: middle;
}

.compass-modal-content.compass-sprint-goal-reminder-modal input.compass-sprint-goal-reminder-modal-time::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.compass-modal-content.compass-sprint-goal-reminder-modal input.compass-sprint-goal-reminder-modal-time::-webkit-calendar-picker-indicator {
    margin-inline-start: 0;
    padding: 4px;
    margin-inline-end: 0;
    transform: scale(0.88);
    transform-origin: center;
}

/* Специфичнее .compass-modal-content label, иначе display:block ломает ряд «чекбокс + текст» */
.compass-modal-content.compass-sprint-goal-reminder-modal label.compass-sprint-goal-reminder-modal-apply-all-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 10px;
    font-size: 12px;
    line-height: 1.35;
    color: #333;
    cursor: pointer;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.compass-modal-content.compass-sprint-goal-reminder-modal label.compass-sprint-goal-reminder-modal-apply-all-wrap input[type='checkbox'] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #2a5298;
}

.compass-sprint-goal-reminder-modal-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    min-width: 0;
}

.compass-sprint-goal-reminder-modal-caption-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compass-sprint-goal-reminder-modal-time-caption {
    margin: 0 !important;
    line-height: 1.3;
}

.compass-sprint-goal-reminder-modal-goal-date {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #888;
}

.compass-sprint-goal-reminder-modal-ok {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2a5298;
    color: #fff;
}

.compass-sprint-goal-reminder-modal-ok:active {
    opacity: 0.92;
}

.compass-sprint-goal-reminder-modal-cancel {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f7fb;
    color: #2a2f36;
}
.compass-sprint-goal-reminder-modal-cancel:active {
    opacity: 0.92;
}

html[data-tg-theme="dark"] .compass-modal-content.compass-sprint-goal-reminder-modal label.compass-sprint-goal-reminder-modal-apply-all-wrap,
body.tg-dark-theme .compass-modal-content.compass-sprint-goal-reminder-modal label.compass-sprint-goal-reminder-modal-apply-all-wrap {
    color: #e0e0e0;
}

html[data-tg-theme="dark"] .compass-sprint-goal-reminder-modal-goal-date,
body.tg-dark-theme .compass-sprint-goal-reminder-modal-goal-date {
    color: #9ca3af;
}

html[data-tg-theme="dark"] .compass-sprint-goal-reminder-modal-cancel,
body.tg-dark-theme .compass-sprint-goal-reminder-modal-cancel {
    border-color: #3b4a63;
    background: #101827;
    color: #e5e7eb;
}

html[data-tg-theme="dark"] .compass-modal-content.compass-sprint-goal-reminder-modal,
body.tg-dark-theme .compass-modal-content.compass-sprint-goal-reminder-modal {
    background: #1e293b !important;
}
html[data-tg-theme="dark"] #sprint-goal-time-modal .hint,
body.tg-dark-theme #sprint-goal-time-modal .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] .compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time,
html[data-tg-theme="dark"] .compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time-wrap .compass-time-input,
body.tg-dark-theme .compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time,
body.tg-dark-theme .compass-modal-content.compass-sprint-goal-reminder-modal .compass-sprint-goal-reminder-modal-time-wrap .compass-time-input {
    background-color: #0f172a !important;
    color: #93c5fd !important;
    border-color: #475569 !important;
    box-shadow: none !important;
}
html[data-tg-theme="dark"] .compass-sprint-goal-reminder-modal-time-caption,
body.tg-dark-theme .compass-sprint-goal-reminder-modal-time-caption {
    color: #cbd5e1 !important;
}

.compass-hidden-time-picker {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 1px;
    opacity: 0.01;
    z-index: 10001;
    pointer-events: auto;
}

.compass-time-wheel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.compass-time-wheel {
    width: 84px;
    height: 150px;
    border: 1px solid #c5cae0;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 22px;
    text-align: center;
    padding: 4px 0;
}

.compass-time-wheel option {
    padding: 4px 0;
}

.compass-time-wheel-sep {
    font-size: 26px;
    color: #334155;
    font-weight: 700;
}

.compass-sprint-goal-reschedule:active {
    opacity: 0.85;
}

html[data-tg-theme="dark"] .compass-sprint-goal-reminder,
html[data-tg-theme="dark"] .compass-sprint-goal-reschedule,
body.tg-dark-theme .compass-sprint-goal-reschedule,
body.tg-dark-theme .compass-sprint-goal-reminder {
    border-color: #64b5f6;
    background: #e3f2fd;
    color: #1565c0;
}
html[data-tg-theme="dark"] .compass-sprint-goal-skip,
body.tg-dark-theme .compass-sprint-goal-skip {
    border-color: #64b5f6;
    background: #e3f2fd;
}
html[data-tg-theme="dark"] .compass-sprint-goal-skip-pole,
body.tg-dark-theme .compass-sprint-goal-skip-pole {
    background: #5c6bc0;
}
html[data-tg-theme="dark"] .compass-sprint-goal-skip-pennant,
body.tg-dark-theme .compass-sprint-goal-skip-pennant {
    background: #7986cb;
}

html[data-tg-theme="dark"] .compass-sprint-goal-reminder.active,
body.tg-dark-theme .compass-sprint-goal-reminder.active {
    border-color: #2196f3;
    background: #bbdefb;
    color: #0d47a1;
}

html[data-tg-theme="dark"] .compass-sprint-goal-reminder-clear,
body.tg-dark-theme .compass-sprint-goal-reminder-clear {
    border-color: #f87171;
    background: transparent;
    color: #f87171;
}
html[data-tg-theme="dark"] .compass-sprint-goal-reminder-clear:hover,
body.tg-dark-theme .compass-sprint-goal-reminder-clear:hover {
    background: transparent;
    border-color: #fca5a5;
    color: #fca5a5;
}
html[data-tg-theme="dark"] .compass-sprint-goal-reminder-clear:active,
body.tg-dark-theme .compass-sprint-goal-reminder-clear:active {
    background: transparent;
    border-color: #ef4444;
    color: #ef4444;
}

.compass-goal-move-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-left: 2px;
    margin-right: 0;
    margin-top: -12px;
    margin-bottom: -12px;
}

.compass-goal-move-btn {
    width: 24px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #d0d5dd;
    background: #f5f7fb;
    color: #4a5568;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.compass-goal-move-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.compass-sprint-goals-week-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    margin-top: 10px;
    overflow: hidden;
}
.compass-sprint-goals-week-header {
    width: 100%;
    border: 0;
    background: #f8faff;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.compass-sprint-goals-week-arrow {
    color: #2a6fdb;
    font-size: 12px;
    line-height: 1;
}
.compass-sprint-goals-week-panel {
    padding: 0 10px 10px;
}
.compass-sprint-goals-week--collapsed .compass-sprint-goals-week-panel {
    display: none;
}

html[data-tg-theme="dark"] .compass-sprint-goals-week-block,
body.tg-dark-theme .compass-sprint-goals-week-block {
    border-color: rgba(148, 163, 184, 0.35);
    background: var(--tg-theme-secondary-bg-color, #1e293b);
}
html[data-tg-theme="dark"] .compass-sprint-goals-week-header,
body.tg-dark-theme .compass-sprint-goals-week-header {
    background: rgba(187, 222, 253, 0.22);
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] .compass-sprint-goals-week-arrow,
body.tg-dark-theme .compass-sprint-goals-week-arrow {
    color: #42a5f5;
}

html[data-tg-theme="dark"] .compass-goal-move-btn,
body.tg-dark-theme .compass-goal-move-btn {
    border-color: #64b5f6;
    background: #e3f2fd;
    color: #1565c0;
}

.compass-sprint-profile-launch-wrap {
    display: flex;
    margin: 0 0 10px;
    justify-content: center;
    align-items: center;
}
.compass-sprint-profile-launch-btn {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #93b4ef;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    color: #2a6fdb;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}
.compass-sprint-profile-launch-icon {
    display: inline-block;
    line-height: 1;
    font-size: 20px;
}
.compass-sprint-profile-launch-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
#goals-reminder-toggle-sprint {
    color: #2a6fdb;
    font-size: 15px;
    font-weight: 700;
}
#goals-reminder-toggle-sprint span {
    color: inherit;
}
.goals-reminder-toggle-btn {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    background: transparent !important;
}
.goals-reminder-toggle-btn .compass-sprint-profile-launch-icon {
    font-size: 20px;
}
.goals-reminder-toggle-arrow {
    font-size: 26px;
    font-weight: 700;
    color: #2a6fdb;
}
#compass-sprint-goals-reminder-wrap {
    border: 1px solid #93b4ef !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.2) !important;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%) !important;
    padding: 8px 10px 10px !important;
}
html[data-tg-theme="dark"] .compass-sprint-profile-launch-btn,
body.tg-dark-theme .compass-sprint-profile-launch-btn {
    background: linear-gradient(180deg, #1e293b 0%, #172554 100%) !important;
    border-color: #3b82f6 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] .compass-sprint-profile-launch-btn:hover,
body.tg-dark-theme .compass-sprint-profile-launch-btn:hover {
    border-color: #60a5fa !important;
    background: linear-gradient(180deg, #243347 0%, #1e3a5f 100%) !important;
}
html[data-tg-theme="dark"] #goals-reminder-toggle-sprint,
body.tg-dark-theme #goals-reminder-toggle-sprint {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] .goals-reminder-toggle-arrow,
body.tg-dark-theme .goals-reminder-toggle-arrow {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] #compass-sprint-goals-reminder-wrap,
body.tg-dark-theme #compass-sprint-goals-reminder-wrap {
    border-color: #3b82f6 !important;
    background: linear-gradient(180deg, #1e293b 0%, #172554 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
.sprint-profile-name-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}
.sprint-profile-name-label {
    font-size: 13px;
    color: #64748b;
}
.sprint-profile-name-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
}
.sprint-profile-edit-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sprint-profile-edit-wrap input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}
.sprint-profile-stats p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #1e293b;
}
/* Заголовок модалки: лёгкие «графики» на фоне (сетка, линия, столбцы) */
.sprint-profile-modal-title-wrap {
    position: relative;
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(42, 111, 219, 0.14);
    background-color: #f0f6ff;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(240, 246, 255, 0.35) 68%, rgba(240, 246, 255, 0.08) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 80' preserveAspectRatio='xMaxYMid meet'%3E%3Cpath d='M0 18 H320 M0 38 H320 M0 58 H320' stroke='%2394a3b8' stroke-opacity='0.18' stroke-width='0.5'/%3E%3Cpath d='M0 65 L44 52 L88 58 L132 36 L176 44 L220 30 L264 40 L308 24 L320 28 L320 80 L0 80 Z' fill='%232a6fdb' fill-opacity='0.08'/%3E%3Cpath d='M0 65 L44 52 L88 58 L132 36 L176 44 L220 30 L264 40 L308 24 L320 28' fill='none' stroke='%232a6fdb' stroke-width='1.4' opacity='0.26'/%3E%3Crect x='208' y='46' width='13' height='24' rx='2' fill='%2322c55e' opacity='0.18'/%3E%3Crect x='228' y='34' width='13' height='36' rx='2' fill='%23d946ef' opacity='0.18'/%3E%3Crect x='248' y='50' width='13' height='20' rx='2' fill='%2338bdf8' opacity='0.18'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right -6px center;
    background-size: auto, min(100%, 290px) auto;
}
.sprint-profile-modal-title-wrap .sprint-profile-modal-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.sprint-profile-week-card {
    border: 1px solid #cddcf8;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.12);
    padding: 10px 12px;
    margin-bottom: 10px;
}
.sprint-profile-week-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #214b99;
}
.sprint-profile-week-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sprint-profile-week-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sprint-profile-week-list li {
    margin: 0 0 4px;
    font-size: 14px;
    color: #1e293b;
}
/* Итог по неделе: «Выполнено» — последним, чуть крупнее и с разделителем */
.sprint-profile-week-list li.sprint-profile-stat-done {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    color: #0f172a;
    line-height: 1.35;
}
.sprint-profile-week-list li.sprint-profile-stat-done b {
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
}
.sprint-profile-total-head {
    margin-bottom: 4px;
}
.sprint-profile-total-head .sprint-profile-stat-total-line {
    margin: 0 0 2px;
}
.sprint-profile-total .sprint-profile-stat-total-line {
    margin: 0 0 4px;
}
/* Только строка «Всего» — курсив; число без курсива */
.sprint-profile-stat-total-line {
    font-style: italic;
    font-weight: 500;
    color: #1e293b;
}
.sprint-profile-stat-total-line b {
    font-style: normal;
    font-weight: 700;
}
/* Вертикальная линия от «Всего» к подпунктам-проектам */
.sprint-profile-by-project-list {
    list-style: none;
}
/* Вертикаль и засечки — одна толщина (2px); высота вертикали до стыка с последней засечкой */
.sprint-profile-stat-total-wrap .sprint-profile-by-project-tree {
    --sprint-profile-tree-line: rgba(42, 111, 219, 0.28);
    margin: 4px 0 0 6px;
    padding: 2px 0 0 12px;
    border-left: none;
    background-image: linear-gradient(var(--sprint-profile-tree-line), var(--sprint-profile-tree-line));
    /* Чуть длиннее, чтобы вертикаль доходила до стыка с последней засечкой (16px было коротко) */
    background-size: 2px calc(100% - 8px);
    background-repeat: no-repeat;
    background-position: 0 0;
}
.sprint-profile-stat-total-wrap .sprint-profile-by-project-tree > li.sprint-profile-by-project-row {
    position: relative;
    z-index: 1;
}
.sprint-profile-stat-total-wrap .sprint-profile-by-project-tree > li.sprint-profile-by-project-row::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--sprint-profile-tree-line, rgba(42, 111, 219, 0.28));
    border-radius: 1px;
    pointer-events: none;
}
.sprint-profile-by-project-row {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 400;
    color: #334155;
}
.sprint-profile-by-project-row:last-child {
    margin-bottom: 0;
}
/* Те же оттенки, что у ярлыка проекта в списке целей */
.sprint-profile-project-flag {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.sprint-profile-project-flag--fundament {
    background: #d0d0d0;
}
.sprint-profile-project-flag--drive {
    background: #9b8fd9;
}
.sprint-profile-project-flag--joy {
    background: #f4d36e;
}
.sprint-profile-by-project-row,
.sprint-profile-by-project-text,
.sprint-profile-by-project-label {
    font-style: normal;
}
.sprint-profile-by-project-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
    font-weight: 400;
    color: #1e293b;
    letter-spacing: normal;
}
.sprint-profile-by-project-main {
    min-width: 0;
}
.sprint-profile-by-project-time {
    flex-shrink: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.sprint-profile-by-project-label {
    font-weight: 400;
}
.sprint-profile-by-project-text b {
    font-weight: 400;
}
.sprint-profile-stat-transfer,
.sprint-profile-stat-transfer b {
    font-weight: 400;
}
.sprint-profile-total {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #d8e5ff;
}
.sprint-profile-total .sprint-profile-week-title {
    margin: 0 0 8px;
}
.sprint-profile-total p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #1e293b;
}
.sprint-profile-total p.sprint-profile-stat-done {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(42, 111, 219, 0.22);
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    color: #0f172a;
    line-height: 1.35;
}
.sprint-profile-total p.sprint-profile-stat-done b {
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
}
.compass-summary {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    white-space: pre-line;
}
.compass-ai-report-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    white-space: pre-line;
}
.compass-legend-title {
    margin-bottom: 0.25rem;
}
#compass-legend {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}
#compass-legend li {
    position: relative;
    padding-left: 20px;
    margin: 2px 0;
    font-size: 14px;
    color: #222;
}
#compass-legend li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
}
#compass-legend li[data-state="apathy"]::before {
    background-color: #800080;
}
#compass-legend li[data-state="passive"]::before {
    background-color: #0000ff;
}
#compass-legend li[data-state="relaxed"]::before {
    background-color: #00bcd4;
}
#compass-legend li[data-state="balance"]::before {
    background-color: #4caf50;
}
#compass-legend li[data-state="engaged"]::before {
    background-color: #ffeb3b;
}
#compass-legend li[data-state="overaroused"]::before {
    background-color: #ff9800;
}
#compass-legend li[data-state="panic"]::before {
    background-color: #f44336;
}
.compass-settings {
    margin-top: 12px;
}

/* Карточки отдельных настроек в блоке Шкалы Баланса */
.compass-settings-block {
    border: 1px solid #2a6fdb;
    border-radius: 12px;
    padding: 10px 12px 12px;
    margin: 10px 0 0;
    background: #f8faff;
}
#compass-settings-section .compass-settings-block {
    border-color: #2a6fdb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.2), 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
#compass-settings-section .compass-settings-block:hover {
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.28), 0 4px 12px rgba(42, 111, 219, 0.12);
}

/* Настройки Шкалы Баланса — тёмная тема Telegram (карточки, слоты, поля, текст) */
html[data-tg-theme="dark"] #compass-settings-section,
body.tg-dark-theme #compass-settings-section {
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] #compass-settings-section h2,
body.tg-dark-theme #compass-settings-section h2 {
    color: var(--tg-theme-text-color, #f1f5f9);
}
html[data-tg-theme="dark"] #compass-settings-section .hint,
body.tg-dark-theme #compass-settings-section .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-settings-section .hint b,
body.tg-dark-theme #compass-settings-section .hint b {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-settings-block,
body.tg-dark-theme #compass-settings-section .compass-settings-block {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-settings-block:hover,
body.tg-dark-theme #compass-settings-section .compass-settings-block:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4), 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-time-input,
body.tg-dark-theme #compass-settings-section .compass-time-input {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
    box-shadow: none !important;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-slot,
body.tg-dark-theme #compass-settings-section .compass-slot {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-sizing: border-box;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-slot input[type="checkbox"],
body.tg-dark-theme #compass-settings-section .compass-slot input[type="checkbox"] {
    accent-color: #60a5fa;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-setting-checkbox-label,
body.tg-dark-theme #compass-settings-section .compass-setting-checkbox-label {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-setting-checkbox-label span,
body.tg-dark-theme #compass-settings-section .compass-setting-checkbox-label span {
    color: #e2e8f0;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-setting-checkbox,
body.tg-dark-theme #compass-settings-section .compass-setting-checkbox {
    accent-color: #60a5fa;
}
html[data-tg-theme="dark"] #compass-settings-section .sleep-settings-row label,
body.tg-dark-theme #compass-settings-section .sleep-settings-row label {
    color: #cbd5e1;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-standup-days .hint,
html[data-tg-theme="dark"] #compass-settings-section .compass-daily-reflection-days .hint,
body.tg-dark-theme #compass-settings-section .compass-standup-days .hint,
body.tg-dark-theme #compass-settings-section .compass-daily-reflection-days .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-open-timezone-picker,
body.tg-dark-theme #compass-open-timezone-picker {
    background: #1e293b !important;
    border: 1px solid #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}
html[data-tg-theme="dark"] #compass-open-timezone-picker:hover,
body.tg-dark-theme #compass-open-timezone-picker:hover {
    filter: brightness(1.07);
}
html[data-tg-theme="dark"] #compass-open-timezone-picker:active,
body.tg-dark-theme #compass-open-timezone-picker:active {
    filter: brightness(0.96);
}
html[data-tg-theme="dark"] #compass-settings-section .compass-setting-checkbox-label.compass-checkbox-error,
body.tg-dark-theme #compass-settings-section .compass-setting-checkbox-label.compass-checkbox-error {
    color: #f87171;
}
html[data-tg-theme="dark"] #compass-settings-section .compass-time-input.compass-field-error,
body.tg-dark-theme #compass-settings-section .compass-time-input.compass-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Модалка «Изменить часовой пояс?» (открывается из настроек) */
html[data-tg-theme="dark"] #timezone-change-confirm-modal .compass-modal-content,
body.tg-dark-theme #timezone-change-confirm-modal .compass-modal-content {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
}
html[data-tg-theme="dark"] #timezone-change-confirm-modal .compass-modal-content h3,
body.tg-dark-theme #timezone-change-confirm-modal .compass-modal-content h3 {
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #timezone-change-confirm-modal .hint,
body.tg-dark-theme #timezone-change-confirm-modal .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #timezone-change-confirm-modal .compass-modal-actions .compass-btn.secondary,
body.tg-dark-theme #timezone-change-confirm-modal .compass-modal-actions .compass-btn.secondary {
    background: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-tg-theme="dark"] #timezone-change-confirm-modal .compass-modal-actions .compass-btn.secondary:hover,
body.tg-dark-theme #timezone-change-confirm-modal .compass-modal-actions .compass-btn.secondary:hover {
    background: #475569 !important;
}

/* Подпись "мин/день" у спринта — чуть выше, чтобы не наезжала на инпуты на десктопе */
.sprint-project-min-label {
    top: -10px !important;
    font-size: 9px !important;
}
.compass-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 8px 0 12px;
}
.compass-slot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f5fb;
}
.compass-slot input[type="checkbox"] {
    accent-color: #2a6fdb;
}
.chart-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: visible;
}

/* Графики трекера сна: выше базовых 220px в 1,5 раза (330px) */
.chart-container-sleep {
    height: 330px;
}

/* Длительность сна — выше базового графика сна (половина от прежних 480px) */
.chart-container-sleep.chart-container-sleep-duration {
    height: 300px;
}

/* Начало сна — как обычный график сна (половина от прежних 660px) */
.chart-container-sleep.chart-container-sleep-start {
    height: 330px;
}

/* Мини-карточка редактирования точки — поверх canvas внутри .chart-container */
.compass-state-edit-teaser-pop {
    -webkit-tap-highlight-color: transparent;
}

.sleep-duration-summary {
    text-align: center;
    font-size: 15px;
    color: #333;
    margin: 8px 0 16px 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 10px;
    border-left: 4px solid #4da3ff;
}
.sleep-duration-summary .duration-value {
    font-weight: 600;
    color: #2a6fdb;
    font-size: 17px;
}

.sleep-duration-legend {
    margin: 4px 0 16px 0;
    padding-left: 0;
    list-style: none;
    font-size: 12px;
    color: #555;
}

.sleep-duration-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.sleep-phase-calendar {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.sleep-phase-month-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.sleep-phase-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.sleep-phase-month-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #374151;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.sleep-phase-month-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.sleep-phase-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 4px;
}

.sleep-phase-weekday {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
}

.sleep-phase-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.sleep-phase-cell {
    height: 26px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.sleep-phase-cell.empty {
    visibility: hidden;
    pointer-events: none;
}

.sleep-phase-cell.critical { background: #e74c3c; }
.sleep-phase-cell.short { background: #e79a33; }
.sleep-phase-cell.optimal { background: #4caf50; }
.sleep-phase-cell.long { background: #3f7ed5; }
.sleep-phase-cell.excess { background: #7a4ccf; }
.sleep-phase-cell.none { background: #bdbdbd; }

.sleep-phase-cell-day {
    position: absolute;
    right: 4px;
    top: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.sleep-phase-cell.light .sleep-phase-cell-day {
    color: rgba(0, 0, 0, 0.75);
    text-shadow: none;
}

.sleep-phase-summary,
.sleep-phase-day-detail,
.sleep-phase-disclaimer {
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.sleep-phase-day-detail {
    min-height: 18px;
}

.sleep-phase-disclaimer {
    color: #6b7280;
    font-size: 12px;
}

#confirm-btn,
#prac-confirm-btn,
.primary-btn {
    background: #2a6fdb;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    width: 100%;
}

#compass-save-settings {
    margin-top: 12px;
}
#prac-confirm-btn:disabled {
    cursor: not-allowed;
}

/* Кнопка «Дневник Практикума» в мини‑приложении — крупная и заметная */
.prac-journal-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a6fdb, #1e5bb8);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.35);
}
.prac-journal-btn:active {
    transform: scale(0.98);
}

/* Трекер сна */
.sleep-settings-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#compass-settings-section .sleep-settings-row .compass-time-input,
#compass-sprint-goals-reminder-wrap .sleep-settings-row .compass-time-input {
    width: 170px !important;
    max-width: 100%;
    min-width: 0;
}

.sleep-settings-group {
    margin-top: 12px;
    margin-bottom: 8px;
}

.sleep-settings-group h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 15px;
}

.sleep-settings-group label {
    display: block;
    font-size: 14px;
    margin: 4px 0;
}

/* Мигающий синий текст для индикаторов загрузки */
.blink-blue {
    color: #1a5a9e;
    animation: blink-blue-pulse 1s infinite;
}

@keyframes blink-blue-pulse {
    0%, 50% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

/* Форма записи на консультацию — крупные поля ввода */
.consult-form-row label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}
.consult-form .consult-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    line-height: 1.4;
    min-height: 48px;
    border-radius: 10px;
    border: 2px solid #2a6fdb;
    box-sizing: border-box;
    background-color: #fff;
}
.consult-form .consult-textarea {
    min-height: 120px;
    resize: vertical;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: #e0e5ed;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #4a5568;
}

.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.25);
}

/*
 * Кнопка «инструкция» в шапке Compass: глобальный .tab-btn выше по каскаду задаёт
 * border:none и background:#e0e5ed — без этого блока (после .tab-btn) обводка пропадает и фон серый.
 */
.compass-app-hero .compass-hero-instruction-btn.tab-btn {
    border: 1.5px solid rgba(59, 130, 246, 0.45);
    background: transparent;
    color: #1e293b;
    box-shadow: none;
}
.compass-app-hero .compass-hero-instruction-btn.tab-btn:hover {
    border-color: rgba(59, 130, 246, 0.65);
    background: transparent;
    box-shadow: none;
}
.compass-app-hero .compass-hero-instruction-btn.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border: 1.5px solid #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.compass-app-hero .compass-hero-instruction-btn.tab-btn.selected:hover {
    box-shadow: 0 4px 14px rgba(42, 111, 219, 0.38);
}
html[data-tg-theme="dark"] .compass-app-hero .compass-hero-instruction-btn.tab-btn,
body.tg-dark-theme .compass-app-hero .compass-hero-instruction-btn.tab-btn {
    background: transparent;
    border: 1.5px solid rgba(96, 165, 250, 0.45);
    color: #e2e8f0;
    box-shadow: none;
}
html[data-tg-theme="dark"] .compass-app-hero .compass-hero-instruction-btn.tab-btn:hover,
body.tg-dark-theme .compass-app-hero .compass-hero-instruction-btn.tab-btn:hover {
    border-color: rgba(96, 165, 250, 0.65);
    background: transparent;
}
html[data-tg-theme="dark"] .compass-app-hero .compass-hero-instruction-btn.tab-btn.selected,
body.tg-dark-theme .compass-app-hero .compass-hero-instruction-btn.tab-btn.selected {
    background: #2a6fdb;
    color: #fff;
    border: 1.5px solid #2a6fdb;
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}

/* Кнопка «Проекты (краткая версия)»: отдельная форма, эмодзи в тексте */
.compass-sprint-short-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #d0d5dd;
    background: #e0e5ed;
    color: #4a5568;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Кнопки Дневник / Цели в шапке — см. .compass-main-nav .compass-nav-btn--tile */
/* При нажатии (открыта краткая версия) или выбранная подвкладка Дневника — синяя (вне главной навигации) */
.compass-sprint-short-btn.active,
.compass-sprint-short-btn.selected {
    background: #2F80ED;
    color: #fff;
    border-color: #2F80ED;
}

/* Специальный вид для кнопки «Проекты (краткая версия)» */
.compass-sprint-short-toggle {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4ff 100%);
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 16px;
    border: 2px solid #2F80ED;
    box-shadow:
        0 2px 0 rgba(47, 128, 237, 0.12),
        0 6px 16px rgba(47, 128, 237, 0.18),
        0 1px 3px rgba(15, 23, 42, 0.08);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease,
        filter 0.15s ease;
}
.compass-sprint-short-toggle:hover {
    background: linear-gradient(180deg, #fff 0%, #e3edff 100%);
    border-color: #2563eb;
    box-shadow:
        0 3px 0 rgba(37, 99, 235, 0.15),
        0 10px 22px rgba(47, 128, 237, 0.28),
        0 2px 6px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
.compass-sprint-short-toggle:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(47, 128, 237, 0.1),
        0 2px 8px rgba(47, 128, 237, 0.16);
}
.compass-sprint-short-toggle:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}
.compass-sprint-short-toggle::after {
    content: " ◄";
    font-size: 16px;
    font-weight: 600;
    color: #2F80ED;
}
/* Активное состояние кнопки краткой версии — синяя плашка, объединённая с блоком ниже */
.compass-sprint-short-toggle.active {
    background: #2F80ED;
    color: #fff;
    border-radius: 16px 16px 0 0;
    border-bottom: none; /* верхняя граница блока продолжает кнопку */
    border-width: 2px;
    box-shadow: 0 4px 14px rgba(47, 128, 237, 0.35);
    transform: none;
}
.compass-sprint-short-toggle.active:hover {
    background: #256fde;
    filter: brightness(1.02);
    box-shadow: 0 6px 18px rgba(47, 128, 237, 0.42);
    transform: translateY(-1px);
}
.compass-sprint-short-toggle.active:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(47, 128, 237, 0.32);
}
.compass-sprint-short-toggle.active::after {
    content: " ▼";
    color: #fff;
}

/* Шаг 1: PDF и корзина над зелёной рамкой */
.compass-sprint-step1-toolbar {
    margin-bottom: 10px;
}
.compass-sprint-step1-toolbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.compass-sprint-step1-toolbar-inner .compass-sprint-step1-toolbar-btn {
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: 0;
}
/* .secondary-btn по умолчанию с вертикальными margin — ломает ряд с PDF */
.compass-sprint-step1-toolbar-inner .secondary-btn {
    margin-top: 0;
    margin-bottom: 0;
    width: auto;
}

/* Заголовки «Шаг 1–3» и подсказки под ними */
.compass-sprint-step-num {
    margin: 0;
    color: #27ae60;
    font-weight: 600;
}
.compass-sprint-step-hint {
    margin: 2px 0 4px;
    font-size: 13px;
    font-style: italic;
    color: #555;
}

/* Обводка шагов 1–3 спринта (заголовок, подсказка, поля) */
.compass-sprint-step1-block,
.compass-sprint-step2-block,
.compass-sprint-step3-block {
    padding: 14px 14px 16px;
    border: 2px solid rgba(39, 174, 96, 0.45);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 2px 8px rgba(39, 174, 96, 0.08);
}
.compass-sprint-step2-block,
.compass-sprint-step3-block {
    margin-top: 12px;
    padding-left: 6px;
    padding-right: 6px;
}
html[data-tg-theme="dark"] .compass-sprint-step1-block,
body.tg-dark-theme .compass-sprint-step1-block,
html[data-tg-theme="dark"] .compass-sprint-step2-block,
body.tg-dark-theme .compass-sprint-step2-block,
html[data-tg-theme="dark"] .compass-sprint-step3-block,
body.tg-dark-theme .compass-sprint-step3-block {
    border-color: rgba(74, 222, 128, 0.55);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 4px 20px rgba(0, 0, 0, 0.45);
    color: var(--tg-theme-text-color, #e2e8f0);
}
html[data-tg-theme="dark"] #compass-sprint-section .compass-sprint-step1-block a,
html[data-tg-theme="dark"] #compass-sprint-section .compass-sprint-step2-block a,
html[data-tg-theme="dark"] #compass-sprint-section .compass-sprint-step3-block a,
body.tg-dark-theme #compass-sprint-section .compass-sprint-step1-block a,
body.tg-dark-theme #compass-sprint-section .compass-sprint-step2-block a,
body.tg-dark-theme #compass-sprint-section .compass-sprint-step3-block a {
    color: #93c5fd;
}

/* Шаг 3: фикс переполнения в неделях 1–4 (боковые отступы шага 2–3 — выше, в паре с шагом 2) */
.compass-sprint-step3-block .compass-settings-block {
    margin-left: 0;
    margin-right: 0;
}
.compass-sprint-step3-block #sprint-week-tabs {
    flex-wrap: wrap;
}

/* Заголовок недели + копирование: «Неделя N» строкой, даты снизу; без гориз. скролла */
.sprint-week-heading-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: #666;
}
.sprint-week-heading-dates {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(102, 102, 102, 0.95);
    white-space: normal;
    word-break: break-word;
}
.sprint-week-title-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 4px;
    color: #666;
}
.sprint-week-title-row .sprint-week-title-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Недели 1–4: слева заголовок с датой (по вертикали по центру блока кнопок), справа столбик — сверху «Копировать», ниже «всю неделю» или «фундамент» / «драйв» / «кайф» */
.sprint-week-copy-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    min-width: 0;
}
/* Тот же серый фон, что у блока «Фундамент» ниже; сшиваем с первым блоком проекта без белой щели */
#compass-sprint-section .sprint-week-copy-stack {
    background: #e5e5e5;
    background: color-mix(in srgb, #d0d0d0 46%, #ffffff);
    border-radius: 12px 12px 0 0;
    padding: 10px 12px;
    box-sizing: border-box;
    margin-bottom: 0;
}
#compass-sprint-section .sprint-week-copy-stack + .sprint-project-section.sprint-project-section--fundament {
    margin-top: 0;
    border-radius: 0 0 12px 12px;
}
.sprint-week-copy-stack-title {
    margin: 0;
    padding: 0 8px 0 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.25;
}
.sprint-week-copy-stack-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    flex-shrink: 0;
    gap: 6px;
    margin-bottom: 0;
    max-width: 100%;
}
/* Обе кнопки копирования в одном столбике — один размер и шрифт (как раньше у нижней) */
.sprint-week-copy-stack-actions .sprint-copy-all-goals-btn.compass-btn.secondary,
.sprint-week-copy-stack-actions > .sprint-copy-goals-btn.compass-btn.secondary {
    padding: 5px 11px 5px 8px;
    font-size: 12px;
    border-radius: 9px;
}
.sprint-week-copy-stack-actions .sprint-copy-all-goals-btn .sprint-copy-goals-btn-text,
.sprint-week-copy-stack-actions > .sprint-copy-goals-btn .sprint-copy-goals-btn-text {
    font-size: 12px;
}
.sprint-week-copy-stack-actions .sprint-copy-all-goals-btn .sprint-copy-goals-btn-sub,
.sprint-week-copy-stack-actions > .sprint-copy-goals-btn .sprint-copy-goals-btn-sub {
    font-size: 9px;
}
.sprint-week-copy-stack-actions .sprint-copy-all-goals-btn .sprint-copy-goals-icon,
.sprint-week-copy-stack-actions > .sprint-copy-goals-btn .sprint-copy-goals-icon {
    width: 16px;
    height: 16px;
}
.sprint-week-copy-stack-actions .sprint-copy-goals-btn.compass-btn.secondary,
.sprint-week-copy-stack-actions .sprint-copy-all-goals-btn.compass-btn.secondary {
    margin-left: 0;
    background: linear-gradient(180deg, #f0f4fb 0%, #e2e8f4 100%);
}
.sprint-copy-goals-btn.compass-btn.secondary,
.sprint-copy-all-goals-btn.compass-btn.secondary {
    flex-shrink: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
    padding: 7px 12px 7px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid rgba(42, 82, 152, 0.22);
    cursor: pointer;
    background: linear-gradient(180deg, #f0f4fb 0%, #e2e8f4 100%);
    color: #1e3a5f;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 1px 3px rgba(30, 58, 95, 0.12),
        0 2px 8px rgba(30, 58, 95, 0.08);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}
.sprint-copy-goals-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sprint-copy-goals-icon {
    display: block;
    flex-shrink: 0;
    align-self: center;
    opacity: 0.92;
}
.sprint-copy-goals-btn-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    line-height: 1.1;
    white-space: normal;
}
.sprint-copy-goals-btn-text {
    letter-spacing: 0.02em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
}
.sprint-copy-goals-btn-sub {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
    color: rgba(30, 58, 95, 0.72);
    letter-spacing: 0.01em;
}
.sprint-copy-all-goals-btn .sprint-copy-goals-btn-text {
    white-space: nowrap;
}
.sprint-copy-goals-btn.compass-btn.secondary:hover,
.sprint-copy-all-goals-btn.compass-btn.secondary:hover {
    background: linear-gradient(180deg, #e8eef8 0%, #d8e0f0 100%);
    border-color: rgba(42, 82, 152, 0.38);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 6px rgba(30, 58, 95, 0.14),
        0 4px 12px rgba(30, 58, 95, 0.1);
}
.sprint-copy-goals-btn.compass-btn.secondary:active,
.sprint-copy-all-goals-btn.compass-btn.secondary:active {
    background: #d0d8ea;
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 1px 2px rgba(30, 58, 95, 0.12);
}
.sprint-copy-goals-btn.compass-btn.secondary:focus-visible,
.sprint-copy-all-goals-btn.compass-btn.secondary:focus-visible {
    outline: 2px solid #2a5298;
    outline-offset: 2px;
}
@media (max-width: 380px) {
    .sprint-copy-goals-btn.compass-btn.secondary,
    .sprint-copy-all-goals-btn.compass-btn.secondary {
        margin-left: auto;
    }
}

/* Модалка «Куда скопировать цели?» */
.compass-modal-content.compass-sprint-copy-goals-modal {
    max-width: 400px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(42, 82, 152, 0.1);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px rgba(15, 23, 42, 0.12);
}
.compass-sprint-copy-goals-modal > h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.compass-sprint-copy-goals-modal .compass-sprint-copy-goals-modal-hint {
    margin: 0 0 18px;
    line-height: 1.5;
    font-size: 14px;
    color: #64748b;
}
.compass-sprint-copy-goals-modal .compass-modal-actions.compass-sprint-copy-goals-modal-footer {
    margin-top: 18px;
    padding-top: 4px;
    justify-content: center;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-grid--stack {
    gap: 10px;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option {
    margin: 0;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    cursor: pointer;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        transform 0.12s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-sizing: border-box;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option-dates--placeholder {
    white-space: normal;
    font-weight: 400;
    font-style: italic;
    color: #94a3b8;
    overflow-x: visible;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option:hover {
    border-color: rgba(42, 82, 152, 0.45);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow:
        0 2px 8px rgba(42, 82, 152, 0.1),
        0 1px 2px rgba(15, 23, 42, 0.06);
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option:active {
    transform: scale(0.99);
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-week-option:focus-visible {
    outline: 2px solid #2a5298;
    outline-offset: 2px;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel {
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: color 0.15s ease, background 0.15s ease;
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:hover {
    color: #334155;
    background: rgba(148, 163, 184, 0.12);
}
.compass-sprint-copy-goals-modal .sprint-copy-goals-modal-cancel:active {
    color: #0f172a;
}
.compass-sprint-step3-block .sprint-project-item {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.compass-sprint-step3-block .sprint-project-row {
    min-width: 0;
}
.compass-sprint-step3-block .sprint-project-input {
    max-width: none !important;
    min-width: 0 !important;
}
.compass-sprint-step3-block .sprint-project-min-wrap {
    margin-left: 2px !important;
}
.compass-sprint-step3-block .sprint-project-days {
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0;
}
.compass-sprint-step3-block .sprint-project-days label {
    white-space: nowrap;
    font-size: 9px !important;
    letter-spacing: -0.1px;
}
.compass-sprint-step3-block .sprint-project-day {
    transform: scale(0.92);
    transform-origin: left center;
    margin-right: 1px;
}
@media (max-width: 420px) {
    .compass-sprint-step3-block .compass-settings-block {
        padding-left: 8px;
        padding-right: 8px;
    }
    .compass-sprint-step3-block .sprint-project-item {
        gap: 6px 4px !important;
    }
    .compass-sprint-step3-block .sprint-project-minutes {
        width: 54px !important;
    }
    .compass-sprint-step3-block .sprint-project-days label {
        font-size: 8.5px !important;
    }
    .compass-sprint-step3-block .sprint-project-day {
        transform: scale(0.88);
    }
}

/* Контейнер краткой версии — синяя обводка как продолжение кнопки (без верхней линии) */
#compass-sprint-short-section {
    border: 2px solid #2F80ED;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 10px 12px 12px;
    background: #f8faff;
    margin-top: 0;
}

/* Названия проектов спринта: не обрезать многострочный текст */
.sprint-project-name-input {
    min-height: 34px !important;
    max-width: 100% !important;
    margin-bottom: 4px;
    overflow-y: auto !important;
}
/* В краткой версии — больше высота, чтобы многострочное название было видно полностью */
.sprint-short-name-input {
    min-height: 30px !important;
    overflow-y: auto !important;
}

/* Краткая версия спринта: выравнивание пунктов строго под друг другом */
.sprint-short-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}
.sprint-short-item .sprint-project-index {
    flex-shrink: 0;
    min-width: 18px;
    text-align: right;
}

.consult-tabs {
    margin-top: 8px;
    margin-bottom: 8px;
}

.secondary-btn {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: #f5f7fb;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

/* Кнопка «Урна» — удаление данных спринта */
.sprint-clear-urn-btn {
    border-radius: 14px;
    background: #f5f7fb;
    border: 1px dashed #2a6fdb;
    color: #2a6fdb;
    box-sizing: border-box;
}

/* Трансф-ая Рефлексия (Неделя 4) — выезжающая форма с 6 вопросами */
#week4-transf-reflection-panel .transf-reflection-questions {
    margin-top: 2px;
}

#week4-transf-reflection-panel .transf-reflection-actions {
    margin-top: 4px;
}

#week4-transf-reflection-panel {
    /* Вытягиваем форму в ширину до синей рамки блока, а не до внутреннего padding */
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

#week4-transf-reflection-panel .transf-reflection-questions,
#week4-transf-reflection-panel .transf-reflection-question,
#week4-transf-reflection-panel .transf-reflection-actions {
    width: 100%;
    box-sizing: border-box;
}

#week4-transf-reflection-panel .transf-reflection-question {
    margin-bottom: 10px;
}

#week4-transf-reflection-panel .transf-reflection-question:last-child {
    margin-bottom: 0;
}

#week4-transf-reflection-panel .transf-reflection-question-text {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: normal;
}

#week4-transf-reflection-panel .transf-reflection-textarea {
    width: 100%;
    min-height: 64px;
    display: block;
    padding: 12px 12px;
    font-size: 16px;
    line-height: 1.45;
    border-radius: 10px;
    border: 2px solid #2a6fdb;
    box-sizing: border-box;
    background-color: #fff;
    resize: none;
}

#week4-transf-reflection-panel .transf-reflection-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Зафиксируем ширину кнопок в 100% и уберём inline-flex */
#week4-transf-reflection-panel .transf-reflection-actions .primary-btn {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

#week4-transf-reflection-panel .transf-reflection-actions .btn-with-subtitle {
    display: flex !important;
}

#week4-transf-reflection-divider {
    height: 1px;
    background: #2a6fdb;
    /* Учитываем padding внешней карточки (compass-settings-block: 10px 12px 12px) */
    width: calc(100% + 24px);
    margin: 12px -12px 0 -12px;
    border-radius: 0;
}

/* Кнопка раскрытия "Трансформирующая Рефлексия" — как "Мой тайминг" */
#week4-transf-reflection-toggle.week4-transf-reflection-toggle,
#week4-transf-reflection-toggle {
    width: auto;
    align-self: flex-start;
    margin-top: 2px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    color: #1e3a8a;
    border-radius: 999px;
    border: 2px solid #2a6fdb;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow:
        0 2px 0 rgba(42, 111, 219, 0.14),
        0 6px 16px rgba(42, 111, 219, 0.18);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}
#week4-transf-reflection-toggle:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e2ecff 100%);
    border-color: #1d4ed8;
    box-shadow:
        0 3px 0 rgba(29, 78, 216, 0.16),
        0 10px 22px rgba(42, 111, 219, 0.24);
    transform: translateY(-1px);
}
#week4-transf-reflection-toggle:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(29, 78, 216, 0.14),
        0 3px 10px rgba(42, 111, 219, 0.2);
}
#week4-transf-reflection-toggle:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

#week4-transf-reflection-toggle::after {
    content: " ◄";
    font-size: 14px;
    font-weight: 600;
    color: #2a6fdb;
    margin-left: 4px;
}
#week4-transf-reflection-toggle[aria-expanded="true"]::after {
    content: " ▼";
}

/* Трансформирующая рефлексия + кнопка — тёмная тема Telegram */
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-panel,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-panel {
    margin-top: 8px !important;
    padding: 12px 12px 14px !important;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-panel .transf-reflection-question-text,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-panel .transf-reflection-question-text {
    color: #f1f5f9 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-panel .transf-reflection-textarea,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-panel .transf-reflection-textarea {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-panel .hint,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-panel .hint {
    color: #94a3b8 !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-divider,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-divider {
    background: #60a5fa !important;
    opacity: 0.85;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-toggle,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-toggle {
    background: linear-gradient(180deg, #1e293b 0%, #172554 100%) !important;
    color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
    box-shadow:
        0 2px 0 rgba(59, 130, 246, 0.25),
        0 6px 18px rgba(0, 0, 0, 0.4) !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-toggle:hover,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-toggle:hover {
    background: linear-gradient(180deg, #243047 0%, #1e3a8a 100%) !important;
    border-color: #60a5fa !important;
    color: #f8fafc !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-toggle::after,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-toggle::after {
    color: #93c5fd !important;
}
html[data-tg-theme="dark"] #compass-sprint-section #week4-transf-reflection-toggle:focus-visible,
body.tg-dark-theme #compass-sprint-section #week4-transf-reflection-toggle:focus-visible {
    outline-color: #60a5fa;
}

/* Особая кнопка "Мой тайминг" — как ссылочная, не основная */
#goals-timing-toggle {
    width: auto;
    align-self: flex-start;
    padding: 10px 18px;
    margin-top: 10px;
    margin-bottom: 4px;
    background: transparent;
    color: #2a6fdb;
    border-radius: 999px;
    border: 1px dashed #2a6fdb;
    font-size: 16px;
    font-weight: 500;
}

#goals-timing-toggle::after {
    content: " ▼";
    font-size: 14px;
    font-weight: 600;
}

/* Кнопки "+ Добавить пункт": делаем плюс визуально крупнее */
button[id^="sprint-add-"]::first-letter,
button[id^="sprint-short-add-"]::first-letter {
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1;
}

.sleep-notes-toggle {
    margin-top: 12px;
}

.sleep-notes {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f8fc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sleep-note-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.consult-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.consult-entry-main {
    flex: 1;
}

.consult-entry-actions {
    flex-shrink: 0;
}

.consult-reschedule-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #f5f7fb;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.consult-cancel-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #ffe6e6;
    color: #b71c1c;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 6px;
}

.consult-status-done {
    font-size: 13px;
    font-weight: 600;
    color: #4caf50;
}

.sleep-note-entry:last-child {
    border-bottom: none;
}

.sleep-note-date {
    font-size: 13px;
    font-weight: 600;
    color: #1a5a9e;
    margin-bottom: 4px;
}

.sleep-note-text {
    font-size: 14px;
    color: #111;
    white-space: pre-line;
}

.version {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: 16px;
}

/* Дневник Практикума */
.journal-day {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f8fc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.journal-day-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.journal-block {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.journal-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 4px;
}

.journal-question {
    font-size: 13px;
    color: #555;
    white-space: pre-line;
    margin-bottom: 4px;
}

.journal-answer {
    font-size: 14px;
    color: #111;
    white-space: pre-line;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(42, 111, 219, 0.1);
}

.journal-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(42, 111, 219, 0.06) 0%, rgba(42, 111, 219, 0.02) 100%);
    border-left: 3px solid rgba(42, 111, 219, 0.4);
}
.journal-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2a6fdb;
    margin-bottom: 4px;
}
.journal-summary-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* Экран «Дневник»: выбор категории */
.diary-category-section {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.diary-category-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #2a6fdb;
    border-radius: 10px;
    background: #f5f7fb;
    cursor: pointer;
    font-size: 16px;
}
.diary-category-label {
    font-weight: 600;
    color: #333;
}
.diary-category-value {
    flex: 1;
    text-align: right;
    color: #2a6fdb;
    padding: 0 8px;
}
.diary-category-arrow {
    font-size: 12px;
    color: #2a6fdb;
}
.diary-category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 6px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 10;
}
.diary-category-dropdown.open {
    display: block;
    /* Позиция задаётся в JS (position: fixed), чтобы список не обрезался белой карточкой */
}
.diary-category-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    color: #111;
}
.diary-category-dropdown button:hover {
    background: #f0f4ff;
}
.diary-category-dropdown button:active {
    background: #e0e8ff;
}
.diary-current-practicum {
    margin: 12px 0;
    padding: 10px 12px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 14px;
    color: #1a5a9e;
}
.diary-entries-section {
    margin-top: 16px;
}

/* Всплывающее уведомление (активный практикум) */
.prac-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.prac-modal {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.prac-modal-message {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.45;
    color: #222;
}
.prac-modal-close {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #2a5298;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.prac-modal-close:active {
    opacity: 0.9;
}

/* Управление практикумом: пропуск дня, пауза */
.practicum-controls {
    margin-top: 12px;
    padding: 14px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #e4e8f0;
}
.practicum-day-status {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
}
.practicum-controls-hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}
.practicum-controls-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.prac-action-btn {
    padding: 10px 14px;
    border: 1px solid #2a5298;
    border-radius: 8px;
    background: #fff;
    color: #2a5298;
    font-size: 14px;
    cursor: pointer;
}
.prac-action-btn:active {
    opacity: 0.9;
}
.prac-action-btn-primary {
    background: #2a5298;
    color: #fff;
}
.practicum-action-message {
    margin: 10px 0 0;
    font-size: 13px;
    color: #1a5a9e;
}

/* Психолог 24/7 — полноэкранный чат: скролл только у сообщений */
html.psych-page {
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    /* Чтобы при клавиатуре/WebView не просвечивал белый фон под тёмной темой */
    background: var(--tg-theme-bg-color, #f9f5f0);
}
body.psych-body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--tg-theme-bg-color, #f9f5f0);
    color: var(--tg-theme-text-color, #111);
    /* Отмена глобального body { display:flex; justify-content:center } — иначе узкая «карточка» #app и светлые полосы по бокам */
    display: block;
    align-items: unset;
    justify-content: unset;
}

.psych-app {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tg-theme-bg-color, #f9f5f0);
}

/* Отмена глобального #app { max-width:480px; белый фон; скругления } из начала style.css — для чатов / псих-страниц */
#app.psych-app {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--tg-theme-bg-color, #f9f5f0);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
}

/* Список клиентов нейротренера: на всю высоту и с фоном темы (без белой полосы снизу) */
body.psych-body #users-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--tg-theme-bg-color, #f9f5f0);
    box-sizing: border-box;
}
body.psych-body .feedback-users-list {
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
}

/* Карточки клиентов и подчатов: границы в тёмной теме (без «слияния» с фоном) */
.feedback-user-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}
html[data-tg-theme="dark"] .feedback-user-item,
body.tg-dark-theme .feedback-user-item {
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--tg-theme-secondary-bg-color, #1c2530);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .feedback-user-item:hover,
body.tg-dark-theme .feedback-user-item:hover {
    background: var(--tg-theme-bg-color, #121c26);
}

html[data-tg-theme="dark"] .admin-thread-item,
body.tg-dark-theme .admin-thread-item {
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--tg-theme-secondary-bg-color, #1c2530);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
html[data-tg-theme="dark"] .admin-thread-item:active,
body.tg-dark-theme .admin-thread-item:active {
    opacity: 0.95;
}

/* Клиентский чат: подчаты — те же границы в тёмной теме */
html[data-tg-theme="dark"] .feedback-thread-item,
body.tg-dark-theme .feedback-thread-item {
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--tg-theme-secondary-bg-color, #1c2530);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Админский чат: единый фон колонки, без белых полос по краям и между зонами */
#chat-view {
    background: var(--tg-theme-bg-color, #f9f5f0);
    box-sizing: border-box;
}
#admin-chat-body {
    background: var(--tg-theme-bg-color, #f9f5f0);
}
#chat-view #feedback-main.psych-main,
#chat-view .psych-main {
    background: var(--tg-theme-bg-color, #f9f5f0);
}

/* Подчаты в тёмной теме: фон зоны сообщений чуть светлее, чтобы входящие не сливались */
html[data-tg-theme="dark"] #chat-view,
html[data-tg-theme="dark"] #admin-chat-body,
html[data-tg-theme="dark"] #chat-view #feedback-main.psych-main,
html[data-tg-theme="dark"] #chat-view .psych-main,
html[data-tg-theme="dark"] .psych-main,
body.tg-dark-theme #chat-view,
body.tg-dark-theme #admin-chat-body,
body.tg-dark-theme #chat-view #feedback-main.psych-main,
body.tg-dark-theme #chat-view .psych-main,
body.tg-dark-theme .psych-main {
    background: #21384a;
}
html[data-tg-theme="dark"] .psych-messages,
body.tg-dark-theme .psych-messages {
    background: transparent;
}
html[data-tg-theme="dark"] .psych-header,
html[data-tg-theme="dark"] .psych-footer,
body.tg-dark-theme .psych-header,
body.tg-dark-theme .psych-footer {
    background: #21384a;
}
html[data-tg-theme="dark"] .feedback-client-thread-toolbar,
html[data-tg-theme="dark"] .admin-thread-toolbar-row,
body.tg-dark-theme .feedback-client-thread-toolbar,
body.tg-dark-theme .admin-thread-toolbar-row {
    background: #2a4358;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Шапка — первый flex-элемент, не скроллится */
.psych-header {
    flex-shrink: 0;
    position: relative;
    padding: 12px 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--tg-theme-bg-color, #f9f5f0);
    z-index: 20;
    box-sizing: border-box;
}

.psych-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #3c2a4d);
    flex: 1 1 auto;
}

/* Как в «Чат с клиентами» (feedback_admin): синяя капсула «Назад» */
.feedback-back-btn {
    background: var(--tg-theme-button-color, #4da3ff);
    color: var(--tg-theme-button-text-color, #fff);
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.feedback-back-btn:active {
    opacity: 0.88;
}

/* Строка названия подчата (клиентский чат с нейротренером) — как admin-thread-toolbar-row */
.feedback-client-thread-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 5px;
    min-height: 0;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}
html[data-tg-theme="dark"] .feedback-client-thread-toolbar,
body.tg-dark-theme .feedback-client-thread-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-tg-theme="dark"] .feedback-chat-header,
body.tg-dark-theme .feedback-chat-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.feedback-client-thread-toolbar__title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
    color: var(--tg-theme-text-color, #222);
    text-align: left;
}

/* Админский чат: @username-ссылка в шапке — читаемая в тёмной теме */
html[data-tg-theme="dark"] .feedback-chat-user-info a,
html[data-tg-theme="dark"] .feedback-chat-user-info a:visited,
body.tg-dark-theme .feedback-chat-user-info a,
body.tg-dark-theme .feedback-chat-user-info a:visited {
    color: #93c5fd;
    text-decoration-color: rgba(147, 197, 253, 0.55);
}
html[data-tg-theme="dark"] .feedback-chat-user-info a:hover,
body.tg-dark-theme .feedback-chat-user-info a:hover {
    color: #bfdbfe;
}

.admin-thread-toolbar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    background: var(--tg-theme-bg-color, #f9f5f0);
    border: none;
    box-sizing: border-box;
    position: relative;
    z-index: 25;
}

.admin-thread-toolbar-spacer {
    flex-shrink: 0;
    width: 100%;
    pointer-events: none;
}

.admin-thread-toolbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 5px;
    min-height: 0;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}
html[data-tg-theme="dark"] .admin-thread-toolbar-row,
body.tg-dark-theme .admin-thread-toolbar-row {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.admin-thread-toolbar__title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
    color: var(--tg-theme-text-color, #222);
    text-align: left;
}

.admin-rename-thread-btn {
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.psych-menu-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(60, 42, 77, 0.08);
    cursor: pointer;
    position: relative;
}

.psych-menu-btn span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--tg-theme-text-color, #3c2a4d);
}

.psych-menu-btn span:nth-child(1) { top: 8px; }
.psych-menu-btn span:nth-child(2) { top: 50%; margin-top: -1.5px; }
.psych-menu-btn span:nth-child(3) { bottom: 8px; }

.psych-menu {
    position: absolute;
    top: 48px;
    right: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    z-index: 50;
    min-width: 180px;
    display: none;
}

.psych-menu.open {
    display: block;
}

.psych-menu-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
}

.psych-menu-item:hover,
.psych-menu-item:active {
    background: #f5f0ff;
}

/* Одна прокручиваемая зона: сообщения + поле ввода вместе */
.psych-main {
    flex: 1 1 0;
    min-height: 0;
    padding: 0 8px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.psych-messages {
    padding: 4px 2px 8px;
    min-height: 0;
}

.psych-message {
    display: flex;
    margin-bottom: 6px;
    overflow: visible;
}

.psych-message-user {
    justify-content: flex-end;
}

.psych-message-assistant {
    justify-content: flex-start;
}

.psych-bubble {
    max-width: 85%;
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.35;
    word-wrap: break-word;
    white-space: pre-wrap;
    user-select: text;
    -webkit-user-select: text;
    position: relative;
    overflow: visible;
}

.psych-bubble--own-longpress {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body.feedback-no-select,
body.feedback-no-select * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

.feedback-edit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.feedback-edit-modal {
    width: min(560px, 100%);
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #111827);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
    padding: 12px;
    box-sizing: border-box;
}
.feedback-edit-title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 8px;
}
.feedback-edit-textarea {
    width: 100%;
    min-height: 64px;
    max-height: min(45vh, 320px);
    resize: vertical;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--tg-theme-text-color, #111827);
    background: rgba(148, 163, 184, 0.18);
    box-sizing: border-box;
}
.feedback-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.feedback-edit-btn {
    min-width: 102px;
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.1;
    cursor: pointer;
}
.feedback-edit-btn-cancel {
    background: rgba(148, 163, 184, 0.28);
    color: #111827;
}
.feedback-edit-btn-save {
    background: #2490ff;
    color: #fff;
}
html[data-tg-theme="dark"] .feedback-edit-modal,
body.tg-dark-theme .feedback-edit-modal {
    background: #0f172a;
    color: #e5e7eb;
}
html[data-tg-theme="dark"] .feedback-edit-textarea,
body.tg-dark-theme .feedback-edit-textarea {
    background: rgba(51, 65, 85, 0.85);
    color: #f1f5f9;
}
html[data-tg-theme="dark"] .feedback-edit-btn-cancel,
body.tg-dark-theme .feedback-edit-btn-cancel {
    background: rgba(71, 85, 105, 0.75);
    color: #f8fafc;
}

.feedback-action-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.feedback-action-sheet {
    width: 100%;
    max-width: 280px;
    background: var(--tg-theme-bg-color, #fff);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 12px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.feedback-action-sheet button {
    display: block;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    color: var(--tg-theme-text-color, #222);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.feedback-action-sheet button + button {
    margin-top: 4px;
    padding-top: 12px;
    border-top: none;
}

.feedback-action-btn-content {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    width: 196px;
    margin: 0 auto;
    padding-left: 20px;
    box-sizing: border-box;
}
.feedback-action-btn-content--centered {
    width: 196px;
    margin: 0 auto;
    padding-left: 20px;
}

.feedback-action-btn-icon {
    font-size: 15px;
    line-height: 1;
    opacity: 0.9;
    width: 20px;
    text-align: center;
}

.feedback-action-btn-text {
    line-height: 1.1;
    text-align: left;
}

.feedback-action-emoji-grid {
    width: calc(100% - 16px);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 2px 8px 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.feedback-action-emoji-btn {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    font-size: 22px !important;
    line-height: 1 !important;
    text-align: center !important;
}
html[data-tg-theme="dark"] .feedback-action-emoji-grid,
body.tg-dark-theme .feedback-action-emoji-grid {
    border-bottom-color: rgba(148, 163, 184, 0.24);
}
html[data-tg-theme="dark"] .feedback-action-emoji-btn,
body.tg-dark-theme .feedback-action-emoji-btn {
    background: transparent !important;
}

html[data-tg-theme="dark"] .feedback-action-sheet button,
body.tg-dark-theme .feedback-action-sheet button {
    border: none;
    background: transparent;
}

html[data-tg-theme="dark"] .feedback-action-sheet button.feedback-action-danger,
body.tg-dark-theme .feedback-action-sheet button.feedback-action-danger {
    border: none;
    background: transparent;
}

.feedback-action-sheet button.feedback-action-danger {
    color: #c62828;
    border: none;
    background: transparent;
}

.feedback-action-sheet button:active {
    background: rgba(0, 0, 0, 0.06);
}

/* Ссылки внутри пузырей чата */
.psych-bubble a {
    text-decoration: underline;
    word-break: break-all;
}

/* Ссылки в исходящих сообщениях */
.psych-message-user .psych-bubble a {
    color: #0b57d0;
}

/* Ссылки во входящих сообщениях */
.psych-message-assistant .psych-bubble a {
    color: #1565c0;
}

/* Время сообщения в чате обратной связи — немного меньше основного текста */
.psych-message-time {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
    text-align: right;
}

.psych-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.psych-reaction-chip {
    border: none;
    background: #eef9ee;
    color: #1f4d2b;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}
.psych-reaction-chip--mine {
    background: #d9f6d6;
    color: #165c2b;
}
/* В зелёных исходящих пузырях — чуть насыщеннее */
.psych-message-user .psych-reaction-chip {
    background: #9bcf9f;
    color: #1b5e30;
}
.psych-message-user .psych-reaction-chip--mine {
    background: #63bd6d;
    color: #134d24;
}
/* В белых входящих пузырях — синий телеграм-подобный оттенок */
.psych-message-assistant .psych-reaction-chip {
    background: #dbeafe;
    color: #1e40af;
}
.psych-message-assistant .psych-reaction-chip--mine {
    background: #bfdbfe;
    color: #1d4ed8;
}
html[data-tg-theme="dark"] .psych-reaction-chip,
body.tg-dark-theme .psych-reaction-chip {
    border: none;
    background: rgba(30, 58, 37, 0.55);
    color: #dcfce7;
}
html[data-tg-theme="dark"] .psych-reaction-chip--mine,
body.tg-dark-theme .psych-reaction-chip--mine {
    background: rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
}

.feedback-reaction-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.feedback-reaction-sheet {
    width: auto;
    max-width: min(92vw, 520px);
    background: var(--tg-theme-bg-color, #fff);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    padding: 10px 10px 12px;
    box-sizing: border-box;
}
.feedback-reaction-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.feedback-reaction-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    min-width: 42px;
    height: 42px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.feedback-reaction-btn--selected {
    border-color: rgba(37, 99, 235, 0.55);
    background: rgba(219, 234, 254, 0.95);
}
.feedback-reaction-remove {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
}
html[data-tg-theme="dark"] .feedback-reaction-sheet,
body.tg-dark-theme .feedback-reaction-sheet {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.22);
}
html[data-tg-theme="dark"] .feedback-reaction-btn,
body.tg-dark-theme .feedback-reaction-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}
html[data-tg-theme="dark"] .feedback-reaction-btn--selected,
body.tg-dark-theme .feedback-reaction-btn--selected {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(30, 58, 138, 0.5);
}
html[data-tg-theme="dark"] .feedback-reaction-remove,
body.tg-dark-theme .feedback-reaction-remove {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Подпись "Вы:" / "Пользователь:" в админском чате — компактная, в одну строку с текстом */
.psych-message-role {
    display: inline-block;
    font-size: 11px;
    color: var(--tg-theme-hint-color,#999);
    margin: 0 4px 0 0;
}

.psych-message-user .psych-bubble {
    background: #d9fdd3;
    color: #111827;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border-bottom-right-radius: 4px;
}
.psych-message-user .psych-bubble::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 1px;
    width: 9px;
    height: 12px;
    background: #d9fdd3;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.psych-message-assistant .psych-bubble {
    background: #ffffff;
    color: #111827;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 4px;
}
.psych-message-assistant .psych-bubble::after {
    content: "";
    position: absolute;
    left: -7px;
    bottom: 1px;
    width: 9px;
    height: 12px;
    background: #ffffff;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

html[data-tg-theme="dark"] .psych-message-user .psych-bubble,
body.tg-dark-theme .psych-message-user .psych-bubble {
    background: #5b8db8;
    color: #f4f9ff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
html[data-tg-theme="dark"] .psych-message-user .psych-bubble::after,
body.tg-dark-theme .psych-message-user .psych-bubble::after {
    background: #5b8db8;
}
html[data-tg-theme="dark"] .psych-message-assistant .psych-bubble,
body.tg-dark-theme .psych-message-assistant .psych-bubble {
    background: #1a2a3a;
    color: #eef4fb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
html[data-tg-theme="dark"] .psych-message-assistant .psych-bubble::after,
body.tg-dark-theme .psych-message-assistant .psych-bubble::after {
    background: #1a2a3a;
}
html[data-tg-theme="dark"] .psych-message-user .psych-bubble a,
body.tg-dark-theme .psych-message-user .psych-bubble a {
    color: #e8f4ff;
}
html[data-tg-theme="dark"] .psych-message-assistant .psych-bubble a,
body.tg-dark-theme .psych-message-assistant .psych-bubble a {
    color: #9fcdff;
}
html[data-tg-theme="dark"] .psych-message-time,
body.tg-dark-theme .psych-message-time {
    color: rgba(215, 228, 242, 0.82);
    opacity: 1;
}
html[data-tg-theme="dark"] .psych-message-user .psych-message-time,
body.tg-dark-theme .psych-message-user .psych-message-time {
    color: rgba(230, 242, 255, 0.88);
}
html[data-tg-theme="dark"] .psych-message-assistant .psych-message-time,
body.tg-dark-theme .psych-message-assistant .psych-message-time {
    color: rgba(196, 212, 228, 0.82);
}
html[data-tg-theme="dark"] .psych-message-role,
body.tg-dark-theme .psych-message-role {
    color: rgba(191, 210, 231, 0.86);
}

.psych-typing {
    margin: 4px 4px 0;
    font-size: 13px;
    color: #777;
}

/* Подвал с полем ввода — в конце прокручиваемой зоны, всегда рядом с последним сообщением */
.psych-footer {
    padding: 6px 12px 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--tg-theme-bg-color, #f9f5f0);
    box-sizing: border-box;
}

.psych-body.keyboard-open .psych-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* История диалогов */
.psych-history-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.psych-history-modal {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.psych-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.psych-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #3c2a4d;
}

.psych-history-close {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.psych-history-list {
    flex: 1;
    overflow-y: auto;
    margin: 4px 0 0;
}

.psych-history-empty {
    margin: 6px 0 0;
    font-size: 14px;
    color: #777;
}

.psych-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
}

.psych-history-item:hover {
    background: #f7f2ff;
}

.psych-history-main {
    flex: 1;
    min-width: 0;
}

.psych-history-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c1249;
    margin-bottom: 2px;
}

.psych-history-meta {
    font-size: 12px;
    color: #777;
}

.psych-history-delete {
    flex-shrink: 0;
    border: none;
    background: #ffe6e6;
    color: #b71c1c;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
}

/* Панель B / I / U над полем ввода (чат нейротренера, feedback_admin) */
.feedback-format-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 2px 6px;
}

.feedback-format-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    background: var(--tg-theme-secondary-bg-color, #eef1f6);
    color: var(--tg-theme-text-color, #222);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feedback-format-btn--italic {
    font-style: italic;
    font-weight: 600;
}

.feedback-format-btn--underline {
    text-decoration: underline;
    font-weight: 600;
}

.feedback-format-btn--strike {
    text-decoration: line-through;
    font-weight: 600;
    font-size: 13px;
}

.feedback-format-btn:active {
    opacity: 0.85;
}

/* Цитата, список, зачёркнутый, спойлер — отображение в пузырях чата */
.feedback-rich-block {
    margin: 4px 0;
}

.feedback-rich-quote {
    margin: 6px 0;
    padding: 8px 12px;
    border-left: 3px solid rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.09);
    border-radius: 0 10px 10px 0;
}

.feedback-rich-ul {
    margin: 6px 0;
    padding-left: 1.35em;
    list-style: disc;
}

.feedback-rich-li {
    margin: 2px 0;
}

.feedback-rich-del {
    text-decoration: line-through;
    opacity: 0.92;
}

.psych-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    /* Не фиксировать белый фон: в тёмной теме Telegram иначе курсор/текст остаются светлыми и «пропадают» на белом */
    background: var(--tg-theme-secondary-bg-color, #fff);
    border-radius: 16px;
    padding: 6px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(128, 128, 128, 0.22);
}

.psych-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e0e5ed;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2a5298;
}

.psych-emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e0e5ed;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #2a5298;
    -webkit-tap-highlight-color: transparent;
}
.psych-emoji-btn:active {
    opacity: 0.9;
}

.psych-input {
    flex: 1;
    border: none;
    resize: none;
    font-size: 15px;
    line-height: 1.4;
    max-height: 200px;
    min-height: 22px;
    outline: none;
    overflow-y: auto;
    box-sizing: border-box;
    background: transparent;
    color: var(--tg-theme-text-color, #1a1a1a);
    caret-color: var(--tg-theme-text-color, #1a1a1a);
    user-select: text;
    -webkit-user-select: text;
}

.psych-input::placeholder {
    color: var(--tg-theme-hint-color, #888);
    opacity: 1;
}

.psych-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #2490ff;
    cursor: pointer;
    position: relative;
}

.psych-emoji-picker {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 100001;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--tg-theme-bg-color, #fff);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    display: none;
    box-sizing: border-box;
}
.psych-emoji-picker--open {
    display: block;
}
.psych-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.psych-emoji-item {
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 8px 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.psych-emoji-item:active {
    background: rgba(0, 0, 0, 0.06);
}

html[data-tg-theme="dark"] .psych-emoji-btn,
body.tg-dark-theme .psych-emoji-btn {
    background: rgba(30, 41, 59, 0.95);
    color: #bfdbfe;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
html[data-tg-theme="dark"] .psych-emoji-picker,
body.tg-dark-theme .psych-emoji-picker {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.22);
}
html[data-tg-theme="dark"] .psych-emoji-item:active,
body.tg-dark-theme .psych-emoji-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.psych-send-btn::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-45%, -53%) rotate(10deg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3fbff' d='M21.29 3.26a1 1 0 0 0-1.05-.19L3.62 10.02a1 1 0 0 0 .05 1.87l6.08 2.16 2.18 6.22a1 1 0 0 0 1.87.03l7.66-16.01a1 1 0 0 0-.17-1.03zM11 13l-4.41-1.56 11.24-4.72-6.83 6.28zm1.56 4.45L11 13l6.35-5.84-4.79 10.29z'/%3E%3C/svg%3E");
}

.psych-send-btn.sending {
    opacity: 0.6;
}

.psych-bubble-photo img.psych-photo {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
}

.psych-bubble-photo .psych-photo-pending {
    max-width: 240px;
    padding: 20px 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
    color: var(--tg-theme-hint-color, #888);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body.feedback-photo-lightbox-open {
    overflow: hidden;
}

.feedback-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: block;
    padding: 0;
    box-sizing: border-box;
}

.feedback-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 0;
}

.feedback-photo-lightbox__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
    touch-action: none;
    pointer-events: none;
}

.feedback-photo-lightbox__zoomable {
    pointer-events: auto;
    transform-origin: center center;
    will-change: transform;
}

.feedback-photo-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: min(100vw - 24px, 100%);
    max-height: min(92vh, 92dvh);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-out;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Всплывающее уведомление Шкалы Баланса (по центру, с кнопкой Ок) */
html.compass-toast-open,
body.compass-toast-open {
    overflow: hidden;
}
html.compass-modal-open,
body.compass-modal-open {
    overflow: hidden;
}
.compass-toast-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.compass-toast-wrap.compass-toast-visible {
    opacity: 1;
}
.compass-toast {
    padding: 18px 28px;
    background: #2a6fdb;
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.compass-toast-wrap.compass-toast-visible .compass-toast {
    transform: scale(1);
}
.compass-toast.compass-toast-error {
    background: #c62828;
}

/* Торжественный тост «все цели дня» + конфетти */
.compass-confetti-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.compass-confetti-piece {
    position: absolute;
    opacity: 0.95;
    animation-name: compass-confetti-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}
@keyframes compass-confetti-fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--confetti-drift, 50px), 110vh, 0) rotate(var(--confetti-rot, 720deg));
        opacity: 0;
    }
}
.compass-toast--celebrate {
    position: relative;
    z-index: 1;
    max-width: 340px;
    padding: 22px 26px 24px;
    border-radius: 20px;
    background: linear-gradient(145deg, #4c1d95 0%, #6d28d9 38%, #2563eb 72%, #0ea5e9 100%);
    background-size: 140% 140%;
    animation: compass-toast-celebrate-bg 8s ease-in-out infinite;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 16px 48px rgba(76, 29, 149, 0.45),
        0 8px 24px rgba(14, 165, 233, 0.25);
    font-size: 15px;
    line-height: 1.45;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1),
        box-shadow 0.45s ease;
}
@keyframes compass-toast-celebrate-bg {
    0%,
    100% {
        background-position: 0% 40%;
    }
    50% {
        background-position: 100% 60%;
    }
}
.compass-toast-celebrate-headline {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.compass-toast-celebrate-sub {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.96;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
@media (prefers-reduced-motion: reduce) {
    .compass-confetti-layer .compass-confetti-piece {
        animation: none !important;
        opacity: 0;
    }
    .compass-toast--celebrate {
        animation: none;
        background: linear-gradient(145deg, #5b21b6 0%, #2563eb 100%);
    }
}

/* Легенда состояний в статистике */
.compass-legend-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.compass-legend-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 15px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Кнопки периода (Сегодня, Неделя, Месяц) */
.period-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}
.period-btn:hover {
    border-color: #4da3ff;
    color: #4da3ff;
}
.period-btn.selected {
    background: #4da3ff;
    border-color: #4da3ff;
    color: #fff;
}

/* Единый стиль блоков периода/дат в Дневнике и Статистике */
.compass-period-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}
.compass-period-buttons .period-btn {
    margin: 0;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    font-size: 14px;
    font-weight: 600;
}
.compass-period-buttons .period-btn:hover {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    color: #334155;
}
.compass-period-buttons .period-btn.selected {
    background: #ffffff;
    border-color: #2a6fdb;
    color: #2a6fdb;
    box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.compass-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.compass-date-range span {
    color: #334155;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}
#compass-date-from,
#compass-date-to,
#compass-notebook-date-from,
#compass-notebook-date-to {
    flex: 1;
    min-width: 0;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
    color: #2a6fdb;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
#compass-date-from::-webkit-datetime-edit,
#compass-date-to::-webkit-datetime-edit,
#compass-notebook-date-from::-webkit-datetime-edit,
#compass-notebook-date-to::-webkit-datetime-edit {
    white-space: nowrap;
    font-size: 12px;
}
#compass-date-from:focus,
#compass-date-to:focus,
#compass-notebook-date-from:focus,
#compass-notebook-date-to:focus {
    outline: none;
    border-color: #2a6fdb;
    box-shadow: 0 0 0 3px rgba(42, 111, 219, 0.18);
}

/* --- Спринты клиентов (нейротренер) — светлый фон --- */
.tcs-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #e8eef7 45%, #f1f5f9 100%);
    color: #0f172a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.tcs-app {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0));
    box-sizing: border-box;
}
.tcs-header {
    text-align: center;
    margin-bottom: 14px;
}
.tcs-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.tcs-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.tcs-main {
    position: relative;
}
.tcs-status {
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
    min-height: 20px;
}
.tcs-status--err {
    color: #dc2626;
}
.tcs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tcs-empty {
    text-align: center;
    padding: 24px 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.tcs-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tcs-card:active {
    transform: scale(0.99);
}
.tcs-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.tcs-card__meta {
    font-size: 13px;
    color: #6366f1;
}
.tcs-detail {
    animation: tcs-fade 0.25s ease;
}
@keyframes tcs-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.tcs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tcs-detail-name {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
/* Как в компасе: флаг проектов спринта (.compass-sprint-goal-project-flag--*) */
.tcs-sprint-short {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.tcs-sprint-short__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 10px;
}
.tcs-short-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 8px 12px;
    margin-bottom: 6px;
    border-left: 4px solid #d0d0d0;
    border-radius: 8px;
    background: color-mix(in srgb, #d0d0d0 12%, #ffffff);
}
.tcs-short-row:last-child {
    margin-bottom: 0;
}
.tcs-short-row--fundament {
    border-left-color: #d0d0d0;
    background: color-mix(in srgb, #d0d0d0 12%, #ffffff);
}
.tcs-short-row--drive {
    border-left-color: #9b8fd9;
    background: color-mix(in srgb, #9b8fd9 14%, #ffffff);
}
.tcs-short-row--joy {
    border-left-color: #f4d36e;
    background: color-mix(in srgb, #f4d36e 14%, #ffffff);
}
.tcs-short-row__title {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}
.tcs-short-row__text {
    font-size: 13px;
    line-height: 1.45;
    color: #0f172a;
}
.tcs-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.tcs-meta-pill {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.tcs-meta-pill span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 4px;
}
.tcs-meta-pill strong {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}
.tcs-meta-pill--date {
    border-color: rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}
.tcs-meta-pill--prog {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
}
.tcs-week-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 4px;
}
.tcs-week-nav {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.tcs-week-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.tcs-week-label {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #4f46e5;
}
.tcs-week-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tcs-day {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.tcs-day__head {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.tcs-day__nog {
    font-size: 13px;
    color: #64748b;
}
.tcs-goal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #d0d0d0;
    background: color-mix(in srgb, #d0d0d0 10%, #f8fafc);
}
.tcs-goal:last-child {
    margin-bottom: 0;
}
/* Те же оттенки, что у целей спринта в компасе */
.tcs-goal--fundament {
    border-left-color: #d0d0d0;
    background: color-mix(in srgb, #d0d0d0 14%, #ffffff);
}
.tcs-goal--drive {
    border-left-color: #9b8fd9;
    background: color-mix(in srgb, #9b8fd9 12%, #ffffff);
}
.tcs-goal--joy {
    border-left-color: #f4d36e;
    background: color-mix(in srgb, #f4d36e 12%, #ffffff);
}
.tcs-goal--done {
    opacity: 0.85;
}
.tcs-goal--done .tcs-goal__text::before {
    content: "✓ ";
    color: #4ade80;
    font-weight: 800;
}
.tcs-goal--irr .tcs-goal__text {
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-color: rgba(15, 23, 42, 0.35);
}
.tcs-goal__irr-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    color: #94a3b8;
}
.tcs-goal__badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.tcs-goal__text {
    font-size: 14px;
    line-height: 1.45;
    color: #0f172a;
}
