/* ==========================================================================
   IS Coach — кабинет слушателя (ЛКС, этап 2, 22.10.2026).
   Стили для page_login.html, page_cabinet.html, page_lesson.html.
   Палитра — как на сайте (chatium.css): заголовки #25423C, зелёный #1E6B5C/#2FA184,
   золото #E9C46A, сирень #9B72CF, фон молочный.
   ========================================================================== */

/* ----------------------------- вход ----------------------------- */
.login-wrap { min-height: 70vh; display: flex; align-items: flex-start; justify-content: center; padding: 64px 24px; }
.login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 20px;
  padding: 40px 36px; box-shadow: 0 14px 40px rgba(37,66,60,.10);
  text-align: center;
}
.login-mono {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1E6B5C, #2FA184); color: #fff;
  font-size: 24px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 8px 20px rgba(47,161,132,.35);
}
.login-title { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 600; color: #25423C; margin: 0 0 6px; }
.login-sub { font-size: 14px; color: #6b7f7a; margin: 0 0 24px; }
.login-error {
  background: #fdecec; color: #b3372f; border: 1px solid #f5c2be;
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px;
}
.login-form { display: grid; gap: 14px; text-align: left; }
.login-label { font-size: 13px; font-weight: 600; color: #40605a; display: grid; gap: 6px; }
.login-label input {
  border: 1.5px solid #dfe7e4; border-radius: 10px; padding: 11px 14px;
  font-size: 15px; font-family: inherit; outline: none; background: #fbfdfc;
}
.login-label input:focus { border-color: #2FA184; }
.login-btn {
  background: linear-gradient(100deg, #1E6B5C, #2FA184); color: #fff; border: none;
  border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: filter .2s;
}
.login-btn:hover { filter: brightness(1.08); }
.login-hint { font-size: 12.5px; color: #8aa09a; line-height: 1.55; margin: 18px 0 0; }

/* ----------------------------- кабинет ----------------------------- */
.cab-container {
  max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px;
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
}
.cab-side { position: sticky; top: 24px; height: fit-content; }
.cab-user {
  background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center;
  box-shadow: 0 2px 10px rgba(37,66,60,.07); margin-bottom: 16px;
}
.cab-avatar {
  width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #1E6B5C, #5BA4A4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; box-shadow: inset 0 0 0 3px #e7f4ee;
}
.cab-name { font-size: 16px; font-weight: 700; color: #25423C; margin: 0 0 4px; }
.cab-nick { font-size: 13px; color: #2FA184; font-weight: 600; margin: 0 0 4px; }
.cab-mail { font-size: 12px; color: #93a8a2; word-break: break-all; margin: 0 0 8px; }
.cab-bio {
  font-size: 13px; color: #5b716b; line-height: 1.5; margin: 8px 0 0;
  max-height: 64px; overflow: hidden; text-overflow: ellipsis;
}
.cab-nav { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 2px 10px rgba(37,66,60,.07); display: grid; gap: 2px; }
.cab-nav a {
  display: flex; align-items: center; padding: 11px 14px; border-radius: 10px;
  color: #5b716b; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s;
}
.cab-nav a:hover { background: #f0f6f3; color: #25423C; }
.cab-nav a.active { background: #1E6B5C; color: #fff; }

.cab-main { min-width: 0; }
.cab-section { margin-bottom: 40px; }
.cab-title {
  display: flex; align-items: center; gap: 10px;
  font-family: "Playfair Display", serif; font-size: 24px; font-weight: 600;
  color: #25423C; margin: 0 0 18px;
}
.cab-title-mark { width: 10px; height: 10px; border-radius: 50%; background: #E9A94B; box-shadow: 0 0 8px rgba(233,169,75,.8); }
.cab-count {
  background: #2FA184; color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}

.cab-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.cab-card {
  width: 300px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(37,66,60,.07); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.cab-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(37,66,60,.13); }
.cab-card.archived { opacity: .88; }
.cab-card-img { position: relative; height: 150px; background: linear-gradient(135deg, #1E6B5C 0%, #5BA4A4 100%); }
.cab-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cab-card-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); font-size: 34px; }
.cab-done-chip {
  position: absolute; top: 10px; right: 10px; background: #16a34a; color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.cab-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cab-card-body h4 { font-size: 15px; font-weight: 700; color: #25423C; margin: 0 0 12px; line-height: 1.4; }
.cab-progress { margin-bottom: 12px; }
.cab-progress-head { display: flex; justify-content: space-between; font-size: 12px; color: #6b7f7a; margin-bottom: 6px; }
.cab-progress-head b { color: #2FA184; }
.cab-progress-bar { height: 5px; background: #e5ece9; border-radius: 3px; overflow: hidden; }
.cab-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #2FA184, #1E6B5C); transition: width .3s;
}
.cab-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cab-meta span { font-size: 11.5px; color: #93a8a2; }
.cab-card-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #1E6B5C; color: #fff; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: filter .2s;
}
.cab-card-btn:hover { filter: brightness(1.12); }
.cab-card-btn.ghost { background: transparent; color: #1E6B5C; border: 1.5px solid #dfe7e4; }

.cab-empty {
  background: #fff; border-radius: 14px; padding: 28px 32px; text-align: center;
  color: #93a8a2; font-size: 14px; box-shadow: 0 2px 10px rgba(37,66,60,.05);
}
.cab-empty a { color: #2FA184; font-weight: 600; }

/* статусы заданий */
.cab-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cab-stat { padding: 10px 16px; border-radius: 10px; font-size: 13px; }
.cab-stat.red { background: #fdecec; color: #b3372f; }
.cab-stat.yellow { background: #fdf5dd; color: #91621a; }
.cab-stat.green { background: #e3f4e9; color: #1c6b45; }

.cab-ass-list { display: flex; flex-direction: column; gap: 12px; }
.cab-ass {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: #fff; border-radius: 14px; text-decoration: none; color: inherit;
  border-left: 4px solid transparent; box-shadow: 0 2px 8px rgba(37,66,60,.06);
  transition: transform .15s, box-shadow .15s;
}
.cab-ass:hover { transform: translateX(2px); box-shadow: 0 6px 16px rgba(37,66,60,.10); }
.cab-ass.as-approved { border-left-color: #16a34a; background: #f4fbf6; }
.cab-ass.as-rejected { border-left-color: #ef4444; background: #fdf3f2; }
.cab-ass.as-not_submitted { border-left-color: #eab308; background: #fdfaf0; }
.cab-ass.as-pending { border-left-color: #3b82f6; background: #f2f7fd; }
.cab-ass-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: #cfd8d5; }
.as-approved .cab-ass-dot { background: #16a34a; }
.as-rejected .cab-ass-dot { background: #ef4444; }
.as-not_submitted .cab-ass-dot { background: #eab308; }
.as-pending .cab-ass-dot { background: #3b82f6; }
.cab-ass-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cab-ass-title { font-size: 15px; font-weight: 600; color: #334f49; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cab-badge-req { background: #fdf5dd; color: #91621a; font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.cab-ass-meta { font-size: 12.5px; color: #8aa09a; }
.cab-ass-comment {
  font-size: 13px; color: #5b716b; background: rgba(255,255,255,.75);
  padding: 6px 10px; border-radius: 8px;
}
.cab-ass-score { font-size: 13px; font-weight: 700; color: #25423C; background: #eef4f2; padding: 4px 10px; border-radius: 999px; }
.cab-ass-label { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; flex-shrink: 0; }
.as-approved .cab-ass-label { background: #d9f2e3; color: #14603e; }
.as-rejected .cab-ass-label { background: #fbe0dd; color: #a32f27; }
.as-not_submitted .cab-ass-label { background: #faf0d3; color: #8d5e14; }
.as-pending .cab-ass-label { background: #dbe8fa; color: #1d4fd7; }

.cab-group-list { display: flex; flex-direction: column; gap: 12px; }
.cab-group {
  background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(37,66,60,.06); display: flex; flex-direction: column; gap: 4px;
}
.cab-group b { color: #25423C; font-size: 15px; }
.cab-group span { font-size: 13px; color: #8aa09a; }
.cab-note { font-size: 13px; color: #8aa09a; margin: 14px 0 0; }

/* ----------------------------- урок ----------------------------- */
.lesson-wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.lesson-side { position: sticky; top: 24px; height: fit-content; background: #25423C; border-radius: 16px; padding: 12px; }
.lesson-back {
  display: block; padding: 10px 12px; color: rgba(255,255,255,.8); text-decoration: none;
  font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px;
}
.lesson-back:hover { color: #fff; }
.lesson-nav { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.lesson-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px; line-height: 1.35; transition: background .2s;
}
.lesson-nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.lesson-nav-item.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.lesson-nav-item.passed { color: #9fd8c6; }
.lesson-nav-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.lesson-nav-item.active .lesson-nav-num, .lesson-nav-item.passed .lesson-nav-num { background: #2FA184; color: #fff; }
.lesson-nav-item.passed.active .lesson-nav-num { background: #E9A94B; }
.lesson-nav-title { flex: 1; }

.lesson-main { min-width: 0; }
.lesson-notice {
  background: #e3f4e9; color: #1c6b45; border: 1px solid #b9e2c9;
  border-radius: 12px; padding: 12px 18px; font-size: 14px; margin-bottom: 20px;
}
.lesson-heading { font-family: "Playfair Display", serif; font-size: clamp(26px, 4vw, 38px); font-weight: 600; color: #25423C; margin: 0 0 8px; line-height: 1.2; }
.lesson-dur { font-size: 13px; color: #8aa09a; margin: 0; }
.lesson-module { font-size: 13px; color: #2FA184; font-weight: 600; margin: 6px 0 0; }
.lesson-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; background: #000; margin: 20px 0; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video video { position: absolute; inset: 0; width: 100%; height: 100%; }
.lesson-desc { font-size: 15px; color: #4b615b; line-height: 1.7; margin: 18px 0; }
.lesson-content {
  font-size: 15px; color: #3d5450; line-height: 1.8; background: #fff; border-radius: 16px;
  padding: 28px; box-shadow: 0 2px 10px rgba(37,66,60,.06); margin-bottom: 24px;
}
.lesson-content h2, .lesson-content h3 { color: #25423C; }
.lesson-files {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 2px 10px rgba(37,66,60,.06); margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px;
}
.lesson-files h4 { margin: 0 0 6px; font-size: 14px; color: #25423C; }
.lesson-file {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #1E6B5C;
  background: #f4f9f7; border: 1px solid #dfe7e4; border-radius: 10px; padding: 9px 13px;
  text-decoration: none; transition: border-color .2s, background .2s;
}
.lesson-file:hover { border-color: #2FA184; background: #eef6f2; }

.lesson-navbtns { display: flex; align-items: center; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.flex1 { flex: 1; }
.inline { display: inline; }
.lesson-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #1E6B5C; color: #fff; text-decoration: none; border: none; cursor: pointer;
  border-radius: 10px; padding: 11px 22px; font-size: 14px; font-weight: 700; font-family: inherit;
  transition: filter .2s;
}
.lesson-btn:hover { filter: brightness(1.12); }
.lesson-btn.ghost { background: transparent; color: #1E6B5C; border: 1.5px solid #dfe7e4; }
.lesson-btn.complete { background: linear-gradient(100deg, #2FA184, #1E6B5C); }

.lesson-locked {
  background: #fff; border-radius: 16px; padding: 64px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 2px 10px rgba(37,66,60,.06); max-width: 640px; margin: 0 auto;
}
.lesson-locked-icon { font-size: 52px; }
.lesson-locked h2 { font-family: "Playfair Display", serif; color: #25423C; margin: 0; }
.lesson-locked p { color: #6b7f7a; font-size: 15px; line-height: 1.6; margin: 0; }

/* задание */
.assign {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 10px rgba(37,66,60,.06); margin-top: 8px; border-left: 4px solid #2FA184;
}
.assign-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.assign-kind { font-size: 13px; font-weight: 700; color: #1E6B5C; text-transform: uppercase; letter-spacing: .5px; }
.assign-req { background: #fdf5dd; color: #91621a; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.assign-title { font-size: 18px; font-weight: 700; color: #25423C; margin: 0 0 8px; }
.assign-desc { font-size: 14.5px; color: #4b615b; line-height: 1.65; margin: 0 0 16px; }
.assign-files { background: #f4f9f7; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13px; color: #25423C; }
.assign-files b { font-size: 13px; }
.assign-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.assign-actions .lesson-btn[disabled] { opacity: .5; cursor: default; }

/* тест */
.test-instr {
  background: #f2f7fd; border: 1px solid #d5e2f5; color: #1d4fd7;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.55; margin: 0 0 20px;
}
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.test-q { background: #f8fbfa; border: 1.5px solid #e2ebe8; border-radius: 10px; padding: 13px; }
.test-q-num { display: block; font-size: 13px; font-weight: 600; color: #25423C; margin-bottom: 9px; }
.test-q-opts { display: flex; gap: 8px; }
.test-opt { flex: 1; }
.test-opt input { display: none; }
.test-opt span {
  display: flex; align-items: center; justify-content: center; padding: 8px 0;
  border: 1.5px solid #dfe7e4; border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 600; color: #40605a; cursor: pointer; transition: all .15s;
}
.test-opt span:hover { border-color: #2FA184; }
.test-opt input:checked + span { background: #1E6B5C; border-color: #1E6B5C; color: #fff; }

.test-result { border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.test-result.ok { background: #f0fbf4; border: 1.5px solid #9fdcba; }
.test-result.fail { background: #fdf3f2; border: 1.5px solid #f2c0bb; }
.test-result-label { font-size: 20px; font-weight: 700; }
.test-result.ok .test-result-label { color: #14603e; }
.test-result.fail .test-result-label { color: #a32f27; }
.test-result-score { font-size: 14px; color: #6b7f7a; }
.test-result-note { font-size: 12.5px; color: #8aa09a; width: 100%; }

.test-wrong-head { font-size: 14px; font-weight: 700; color: #b0611a; margin: 18px 0 10px; }
.test-wrong-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.test-wrong {
  background: #fdf9f2; border: 1px solid #f0dcc0; border-left: 3px solid #e8973c;
  border-radius: 10px; padding: 12px 14px;
}
.tw-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: #40605a; margin-bottom: 6px; }
.tw-user { background: #fbe0dd; color: #a32f27; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.tw-correct { background: #d9f2e3; color: #14603e; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.tw-feedback { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #e6d9c4; font-size: 13px; color: #4b615b; line-height: 1.6; }

/* обычное задание */
.sub-status { border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.sub-status.pending { background: #fdf5dd; color: #91621a; }
.sub-status.ok { background: #f0fbf4; color: #14603e; border: 1.5px solid #9fdcba; }
.sub-status.fail { background: #fdf3f2; color: #a32f27; border: 1.5px solid #f2c0bb; }
.sub-comment { font-size: 14px; color: #4b615b; line-height: 1.6; background: #f8fbfa; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.sub-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.sub-label { font-size: 13px; font-weight: 600; color: #40605a; }
.sub-textarea {
  width: 100%; border: 1.5px solid #dfe7e4; border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; resize: vertical; outline: none; background: #fbfdfc;
}
.sub-textarea:focus { border-color: #2FA184; }
.sub-file { font-size: 14px; color: #5b716b; }

/* ----------------------------- мобильная ----------------------------- */
@media (max-width: 1000px) {
  .cab-container, .lesson-wrap { grid-template-columns: 1fr; padding: 24px 16px 60px; }
  .cab-side, .lesson-side { position: static; }
  .lesson-nav { max-height: 40vh; }
}
@media (max-width: 640px) {
  .cab-cards { flex-direction: column; }
  .cab-card { width: 100%; }
  .test-grid { grid-template-columns: 1fr; }
  .cab-ass { flex-wrap: wrap; }
  .cab-ass-label { margin-left: auto; }
}
/* ----------------------------- v2: профиль, ЛКК ----------------------------- */
.cab-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cab-edit-btn {
  margin-top: 14px; width: 100%; background: #e7f4ee; color: #1E6B5C;
  border: none; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cab-edit-btn:hover { background: #d7ece2; }

.lesson-side-card {
  background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px;
  margin: 10px 4px; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.5;
}
.lesson-side-card b { color: #fff; }
.lesson-side-card p { margin: 0 0 10px; }
.lesson-side-card p:last-child { margin-bottom: 0; }

.lesson-notice.err { background: #fdecec; border-color: #f0c4c0; color: #b3372f; }

.ta-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.ta-table th, .ta-table td { border: 1px solid #e2ebe8; padding: 7px 12px; text-align: left; }
.ta-table th { background: #f4f9f7; color: #25423C; }
.ta-table td { color: #4b615b; }

.review-radios { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review-radios input { display: none; }
.review-radios span {
  display: inline-flex; padding: 10px 18px; border: 1.5px solid #dfe7e4;
  border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600;
  color: #40605a; cursor: pointer; transition: all .15s;
}
.review-radios input:checked + span { background: #1E6B5C; border-color: #1E6B5C; color: #fff; }
.review-radios label:nth-child(2) input:checked + span { background: #b3372f; border-color: #b3372f; }
.review-radios label:nth-child(3) input:checked + span { background: #8d6e2f; border-color: #8d6e2f; }

/* форма профиля */
.prof-wrap { max-width: 860px; }
.prof-form { display: flex; flex-direction: column; gap: 14px; }
.prof-form .sub-label { display: flex; flex-direction: column; gap: 6px; }
.prof-form .sub-label i { font-weight: 400; color: #8aa09a; }
.prof-form input[type="text"], .prof-form input[type="email"], .prof-form input[type="date"] {
  border: 1.5px solid #dfe7e4; border-radius: 10px; padding: 11px 14px;
  font-size: 15px; font-family: inherit; outline: none; background: #fbfdfc;
}
.prof-form input:focus { border-color: #2FA184; }
.prof-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prof-divider {
  font-size: 13px; font-weight: 700; color: #1E6B5C; text-transform: uppercase; letter-spacing: 1px;
  border-top: 1px dashed #dfe7e4; padding-top: 16px; margin-top: 8px;
}
.prof-photo-row { display: flex; justify-content: center; margin-bottom: 8px; }
.prof-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.prof-photo input[type="file"] { display: none; }
.prof-avatar-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, #1E6B5C, #5BA4A4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; overflow: hidden;
  box-shadow: inset 0 0 0 4px #e7f4ee, 0 10px 24px rgba(37,66,60,.18);
  transition: box-shadow .2s;
}
.prof-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.prof-photo:hover .prof-avatar-circle { box-shadow: inset 0 0 0 4px #9fd8c4, 0 12px 28px rgba(37,66,60,.25); }
.prof-photo-hint { font-size: 12.5px; color: #8aa09a; }

@media (max-width: 640px) {
  .prof-2col { grid-template-columns: 1fr; }
  .review-radios span { width: 100%; justify-content: center; }
}

/* ----------------------------- v3: выбор кабинета ----------------------------- */
.cab-choose { max-width: 900px; margin: 0 auto; padding: 56px 24px 80px; }
.cab-choose-title { font-family: "Playfair Display", serif; font-size: clamp(30px, 5vw, 44px); font-weight: 600; color: #25423C; text-align: center; margin: 0 0 8px; }
.cab-choose-sub { text-align: center; color: #8aa09a; font-size: 15px; margin: 0 0 36px; }
.cab-choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cab-choose-card {
  background: #fff; border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(37,66,60,.08); text-decoration: none;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: transform .2s, box-shadow .2s; border: 1.5px solid transparent;
}
.cab-choose-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(37,66,60,.15); border-color: #2FA184; }
.cab-choose-card.dim { opacity: .55; }
.cab-choose-card.dim:hover { border-color: #dfe7e4; transform: none; }
.cav-ico { font-size: 34px; }
.cav-name { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 600; color: #25423C; }
.cav-desc { font-size: 13.5px; color: #6b7f7a; line-height: 1.55; }
.cav-tag { font-size: 11.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: #f0f4f2; color: #8aa09a; }
.cav-tag.ok { background: #e3f4e9; color: #1c6b45; }

/* 23.10: выпадающий список кабинета на страницe входа */
.login-select {
  border: 1.5px solid #dfe7e4; border-radius: 10px; padding: 11px 12px;
  font-size: 15px; font-family: inherit; outline: none; background: #fbfdfc; color: #25423C;
  width: 100%; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231E6B5C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.login-select:focus { border-color: #2FA184; }

/* 23.10: логотип на форме входа + единый вид полей */
.login-logo { width: 88px; height: 88px; margin: 0 auto 14px; display: block; }
.login-label input, .login-select {
  width: 100%; border: 1.5px solid #dfe7e4; border-radius: 10px;
  padding: 11px 14px; font-size: 15px; font-family: inherit; outline: none;
  background: #fbfdfc; color: #25423C; box-sizing: border-box;
}
.login-label input:focus, .login-select:focus { border-color: #2FA184; }
.login-select { padding-right: 36px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231E6B5C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }

/* 23.10: сообщение о неверном выборе кабинета на форме входа */
.login-notice {
  background: #fff7e2; color: #8d5e14; border: 1px solid #ecd9a8;
  border-radius: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 16px;
}

/* 23.10: верно/неверно в таблице ответов на карточке проверки */
.ta-note { font-weight: 400; font-size: 12.5px; color: #8aa09a; }
.ta-table tr.ta-ok td { background: #eefaf2; }
.ta-table tr.ta-bad td { background: #fdf1f0; color: #a3372f; }
.ta-table tr.ta-bad td[colspan] { border-top: 0; }

/* ==========================================================================
   30.10.2026 (Ирина): личный кабинет слушателя на ГОРИЗОНТАЛЬНЫХ ВКЛАДКАХ
   (Профиль · Тренинги · Задания · Группы и чаты · Сертификаты + Выйти).
   Левый сайдбар больше не используется — контент на всю ширину.
   ========================================================================== */
.cab-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 70px; }

.cab-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cab-top-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cab-avatar-sm { width: 48px; height: 48px; margin: 0; font-size: 17px; flex: none; box-shadow: inset 0 0 0 2px #e7f4ee; }
.cab-avatar-lg { width: 96px; height: 96px; font-size: 32px; margin: 0 auto 14px; }
.cab-top-text { display: flex; flex-direction: column; min-width: 0; }
.cab-top-text b { font-size: 15px; color: #25423C; line-height: 1.3; }
.cab-top-text span { font-size: 13px; color: #8aa19a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cab-exit {
  padding: 9px 20px; border-radius: 24px; border: 1px solid #1E6B5C;
  color: #1E6B5C; text-decoration: none; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .2s, color .2s;
}
.cab-exit:hover { background: #1E6B5C; color: #fff; }

.cab-tabs {
  display: flex; gap: 2px; overflow-x: auto;
  border-bottom: 1px solid rgba(27, 58, 107, .12); margin-bottom: 28px;
  scrollbar-width: none;
}
.cab-tabs::-webkit-scrollbar { display: none; }
.cab-tab {
  border: 0; background: none; font-family: inherit; font-size: 15px; color: #6b7b86;
  padding: 12px 16px; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.cab-tab:hover { color: #1E6B5C; }
.cab-tab.active { color: #1E6B5C; border-bottom-color: #1E6B5C; font-weight: 600; }
.cab-tab-count {
  background: #e6f2ec; color: #1E6B5C; border-radius: 10px;
  padding: 1px 8px; font-size: 12px; font-weight: 600;
}

.cab-pane { display: none; }
.cab-pane.active { display: block; }

.cab-profile {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: 18px; padding: 30px 26px;
  box-shadow: 0 2px 12px rgba(37, 66, 60, .07);
}
.cab-profile-name { font-family: "Playfair Display", serif; font-size: 24px; color: #25423C; margin: 0 0 6px; }
.cab-profile .cab-bio { max-height: none; }

@media (max-width: 640px) {
  .cab-page-title { font-size: 20px; }
  .cab-wrap { padding: 18px 14px 50px; }
  .cab-tab { padding: 10px 12px; font-size: 14px; }
  .cab-top-text b { font-size: 14px; }
}

/* ---------- 30.10.2026 (Ирина): шапка ЛК без дубля имени + профиль-дашборд ---------- */
/* ---------- 31.10.2026 (Ирина): заголовок кабинета — «Кабинет слушателя Имя» ---------- */
.cab-page-title {
  font-family: "Playfair Display", serif; font-size: 26px; font-weight: 600;
  color: #25423C; margin: 0 0 16px; line-height: 1.25;
}
.cab-page-title .cab-page-who { color: #1E6B5C; }

.cab-bar {
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid rgba(27, 58, 107, .12); margin-bottom: 26px;
}
.cab-bar .cab-tabs { flex: 1 1 auto; border-bottom: 0; margin-bottom: 0; }
.cab-bar .cab-exit { margin-bottom: 6px; }

.cab-saved {
  background: #e8f5ee; color: #1E6B5C; border-radius: 10px;
  padding: 10px 16px; margin-bottom: 16px; font-size: 14px;
}

.cab-prof {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px;
  background: #fff; border-radius: 18px; padding: 26px;
  box-shadow: 0 2px 12px rgba(37, 66, 60, .07);
}
.cab-prof-photo { text-align: center; }
.cab-photo-label { display: block; cursor: pointer; }
.cab-photo-label input { display: none; }
.cab-photo-name { font-weight: 600; color: #25423C; margin-top: 10px; font-size: 15px; }
.cab-photo-mail { font-size: 12px; color: #8aa19a; word-break: break-all; }
.cab-photo-hint { font-size: 11px; color: #a9bcb5; margin-top: 8px; line-height: 1.4; }

.cab-prof-fields { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cab-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cab-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #5b716b; font-weight: 600; }
.cab-field i { font-weight: 400; color: #9aa8a3; }
.cab-field input, .cab-field textarea {
  border: 1px solid #d5e2df; border-radius: 10px; padding: 9px 12px;
  font-family: inherit; font-size: 14px; color: #25423C; background: #fff;
}
.cab-field input:focus, .cab-field textarea:focus {
  outline: none; border-color: #2FA184; box-shadow: 0 0 0 3px rgba(47, 161, 132, .12);
}
.cab-field textarea { resize: vertical; }
.cab-divider {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9aa8a3;
  border-top: 1px solid #eef3f1; padding-top: 12px; margin-top: 4px;
}
.cab-prof-actions { display: flex; justify-content: flex-end; }
.cab-save {
  background: #1E6B5C; color: #fff; border: 0; border-radius: 12px;
  padding: 11px 26px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.cab-save:hover { background: #175247; }

@media (max-width: 700px) {
  .cab-prof { grid-template-columns: 1fr; padding: 20px 16px; }
  .cab-grid2 { grid-template-columns: 1fr; }
}
.cab-lbl { display: block; }
.cab-lbl i { margin-left: 4px; }

/* 30.10.2026 (Ирина): почта и подсказка под фото были почти не видны — темнее */
.cab-photo-mail { color: #4a5b56; font-size: 13px; }
.cab-photo-hint { color: #7b8b85; }

/* 30.10.2026 (Ирина): серые подписи в профиле были бледными — темнее */
.cab-field i { color: #66756f; }
.cab-divider { color: #54655f; }

/* ---------- 30.10.2026 (Ирина): групповые чаты во вкладке ЛКС ---------- */
.cab-chat { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.cab-chat-list {
  /* 30.10.2026 (Ирина): плашка списка групп — градиент, светлее тёмной заливки.
     31.10: верх был слишком светлым — белые названия «плыли» (эффект вуали).
     Верх притемнён до контраста ~4,2:1, градиент сохранён */
  /* 31.10.2026 (Ирина): нужна видимая растяжка — от светлого тила сверху
     к глубокому снизу (не сплошной цвет) */
  background: linear-gradient(170deg, #7EBDA9 0%, #4E8F82 34%, #2E665E 68%, #12302C 100%);
  border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
  max-height: 560px; overflow-y: auto;
}
.cab-chat-item {
  text-align: left; border: 0; background: transparent; color: rgba(255, 255, 255, .8);
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13px; line-height: 1.35; transition: background .2s;
}
.cab-chat-item b {
  display: block; font-size: 15px; color: #fff; font-weight: 600;
  font-family: "Playfair Display", serif;
}
.cab-chat-item span { display: block; font-size: 11px; color: rgba(255, 255, 255, .82); margin-top: 2px; }
/* 31.10.2026 (Ирина): белая подсветка выбранной группы давала «вуаль» —
   белый текст на выбеленном фоне плыл. Выделение теперь затемнением */
.cab-chat-item:hover { background: rgba(255, 255, 255, .16); }
/* 31.10.2026 (Ирина): «Написать Баксику» — светлая строка внизу левой панели */
.cab-chat-baksik {
  margin-top: auto; background: rgba(246, 243, 231, .92);
  box-shadow: 0 2px 6px rgba(10, 30, 25, .22);
}
.cab-chat-baksik b { color: #17524A; }
.cab-chat-baksik span { color: #5B716B; }
.cab-chat-baksik:hover { background: #FFFFFF; }
/* на этой вкладке плавающий аватар не показываем — он закрывал кнопку отправки */
body.cab-on-groups #bk-btn { display: none; }
/* 31.10.2026 (Ирина): выбранная группа была «бирюзовой на бирюзовой» —
   теперь это светлая карточка с тёмным текстом, видно сразу */
.cab-chat-item.active {
  background: #F6F3E7;
  box-shadow: 0 2px 6px rgba(10, 30, 25, .28);
}
.cab-chat-item.active b { color: #17524A; }
.cab-chat-item.active span { color: #5B716B; }

.cab-chat-panel {
  /* 31.10.2026 (Ирина): вуаль снята полностью — только картинка, без белой пелены */
  background:
    url('/img/chat_bg.png') center / cover no-repeat;
  border-radius: 16px; display: flex; flex-direction: column;
  min-height: 520px; max-height: 560px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(37, 66, 60, .07);
}
.cab-chat-head {
  padding: 14px 18px; border-bottom: 1px solid rgba(37, 66, 60, .12);
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cab-chat-head b { font-size: 16px; color: #25423C; }
.cab-chat-pin { font-size: 12px; color: #1E6B5C; background: #e8f5ee; border-radius: 8px; padding: 4px 10px; }

.cab-chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  /* 31.10.2026: картинку и градиент теперь держит сама панель — окно прозрачное,
     чтобы растяжка шла одним полем от шапки до поля ввода */
  background: transparent;
}
.cab-chat-empty {
  color: #4a5b56; font-size: 14px; text-align: center; margin: auto;
  background: rgba(255, 255, 255, .85); padding: 8px 16px; border-radius: 10px;
}
/* входящие — слева, прохладный приглушённый */
/* 31.10.2026 (Ирина): облачка полупрозрачные, цвет разный —
   входящие слева (прохладный), свои справа (тёплый). Размытие под облачком
   держит текст читаемым даже на ярких местах картинки */
.cab-chat-msg {
  max-width: 78%; background: rgba(220, 234, 231, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 14px 14px 14px 4px;
  padding: 9px 13px; align-self: flex-start;
  box-shadow: 0 1px 3px rgba(37, 66, 60, .10);
}
.cab-chat-msg.teacher { background: rgba(206, 228, 215, .80); box-shadow: inset 3px 0 0 #6FA793; }
.cab-chat-msg.mine {
  align-self: flex-end; background: rgba(240, 242, 212, .82);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 1px 3px rgba(90, 96, 40, .12);
}
.cab-chat-msg.mine .cab-chat-top { justify-content: flex-end; }
.cab-chat-msg.mine .cab-chat-badge { display: none; }
.cab-chat-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5b716b; margin-bottom: 3px; }
.cab-chat-top b { color: #0E5C52; font-size: 14px; font-family: "Playfair Display", serif;
  font-weight: 700; }   /* 31.10.2026 (Ирина): имя автора — другим цветом */
.cab-chat-msg.mine .cab-chat-top b { color: #7A6318; }  /* «Вы» — тёплый золотистый */
.cab-chat-badge { background: #1E6B5C; color: #fff; border-radius: 8px; padding: 1px 6px; font-size: 10px; }
.cab-chat-time { margin-left: auto; color: #9aa8a3; font-size: 11px; }
/* 31.10.2026 (Ирина): текст сообщений — Playfair Display (как заголовки сайта) */
.cab-chat-text {
  font-family: "Playfair Display", serif; font-size: 15px; color: #2b3b44;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
  line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.cab-chat-reply {
  display: block; font-size: 12px; color: #6b7b86;
  border-left: 2px solid #b7d7cb; padding-left: 8px; margin: 4px 0;
}
.cab-chat-form {
  /* 31.10.2026 (Ирина): Баксик висит справа внизу и закрывал кнопку отправки */
  display: flex; gap: 8px; padding: 12px 130px 12px 12px;
  border-top: 1px solid rgba(37, 66, 60, .12);
  background: rgba(255, 255, 255, .50);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cab-chat-form input {
  flex: 1; border: 1px solid #d5e2df; border-radius: 12px; padding: 10px 14px;
  font-family: "Playfair Display", serif; font-size: 15px; color: #25423C;
}
.cab-chat-form input:focus { outline: none; border-color: #2FA184; box-shadow: 0 0 0 3px rgba(47, 161, 132, .12); }
.cab-chat-form button {
  border: 0; background: #1E6B5C; color: #fff; border-radius: 12px;
  padding: 0 18px; font-size: 18px; cursor: pointer;
}
.cab-chat-form button:hover { background: #175247; }

@media (max-width: 800px) {
  .cab-chat { grid-template-columns: 1fr; }
  .cab-chat-form { padding-right: 108px; }
  .cab-chat-list { flex-direction: row; overflow-x: auto; max-height: none; }
  .cab-chat-item { white-space: nowrap; }
  .cab-chat-panel { min-height: 420px; max-height: none; }
}

/* ---------- 31.10.2026 (Ирина): свой фон чата + ответ на сообщение ---------- */
.cab-chat-msgs.bg-light { background: #F4F7F5; }
.cab-chat-msgs.bg-green { background: linear-gradient(180deg, #E9F4EE, #D2E7DC); }
.cab-chat-msgs.bg-sand  { background: linear-gradient(180deg, #FCF5E7, #F0E2CA); }
.cab-chat-msgs.bg-night { background: linear-gradient(180deg, #24403A, #13241F); }
.cab-chat-msgs.bg-night .cab-chat-text { color: #EAF2EE; }
.cab-chat-msgs.bg-night .cab-chat-top b { color: #BFE3D5; }
.cab-chat-msgs.bg-night .cab-chat-msg { background: rgba(38, 62, 56, .78); }
.cab-chat-msgs.bg-night .cab-chat-msg.mine { background: rgba(74, 74, 40, .72); }

.cab-chat-bgpick {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #4a5b56;
}
.cab-chat-bgpick select {
  font-family: inherit; font-size: 12px; padding: 4px 6px;
  border-radius: 8px; border: 1px solid #c9d8d2; background: #fff; color: #25423C;
}

.cab-chat-replybar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 12px; color: #4a5b56;
  background: rgba(255, 255, 255, .78);
  border-top: 1px solid rgba(37, 66, 60, .12);
}
.cab-chat-replybar[hidden] { display: none; }
.cab-chat-replywho { font-weight: 600; color: #1E6B5C; white-space: nowrap; }
.cab-chat-replybar .cab-chat-replytext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-chat-replycancel { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 15px; color: #6b7b86; }

.cab-chat-msg { position: relative; }
.cab-chat-replybtn {
  position: absolute; top: 5px; right: 6px; width: 22px; height: 22px;
  border: 0; border-radius: 8px; cursor: pointer; opacity: 0;
  background: rgba(255, 255, 255, .8); color: #1E6B5C; font-size: 13px; line-height: 1;
  transition: opacity .15s;
}
.cab-chat-msg:hover .cab-chat-replybtn { opacity: 1; }
.cab-chat-msg.mine .cab-chat-replybtn { left: 6px; right: auto; }
.cab-chat-msgs.bg-custom { background-size: cover; background-position: center; background-repeat: no-repeat; }
.cab-chat-bgpick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cab-chat-bgup { cursor: pointer; color: #1E6B5C; text-decoration: underline dotted; }
.cab-chat-bgup input { display: none; }
.cab-dm-who { font-size: 12px; color: #6b7b86; }
.cab-chat-list .cab-chat-item span b { color: #FFE6A8; }

/* ---------- 31.10.2026 (Ирина): переключатель «Группы / Личные» внутри вкладки ---------- */
.cab-subtabs { display: flex; gap: 8px; margin: -4px 0 16px; }
.cab-subtab {
  border: 1px solid #cfe0d9; background: #fff; color: #4a5b56;
  border-radius: 999px; padding: 7px 16px; font-family: inherit; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.cab-subtab:hover { border-color: #9CC8BD; }
.cab-subtab.active { background: #1E6B5C; border-color: #1E6B5C; color: #fff; }
.cab-subtab.active .cab-tab-count { background: rgba(255,255,255,.25); color: #fff; }
.cab-subpane { display: none; }
.cab-subpane.active { display: block; }
