/* Focused corrections to the established public and student design. */
.user-v36 { padding-top: 0; }
.user-v36 :is(.header-inner, .study-columns, .lesson-layout, .cd-hero__top, .cd-group, .dashboard-shell) > * { min-width: 0; }
.user-v36 :is(.cd-section, #teachers, #courses, #learning-map, #contacts) { scroll-margin-top: 100px; }
.user-v36 :is(.button, .course-card__buy, .course-card__details, .cd-button) {
  min-width: 0; height: auto; min-height: 46px; padding-block: 11px; line-height: 1.45;
  white-space: normal; text-align: center;
}
.user-v36 :is(.account-link, .desktop-nav a) { display: inline-flex; align-items: center; min-height: 44px; }
.user-v36 .statement-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100svh - 82px); padding: 72px 24px 48px;
}
.user-v36 .welcome .statement-text {
  max-width: 1100px; margin: 0; font: 620 clamp(34px, 5.4vw, 72px)/1.08 var(--display); letter-spacing: -.045em;
}
.user-v36 .course-card__main h3 { line-height: 1.15; }
.user-v36 .course-card__stats dt { font-size: 12px; line-height: 1.45; letter-spacing: 0; }
.user-v36 .course-card__stats dd { font-size: 13px; line-height: 1.5; }
.user-v36 .course-card__description { max-width: 65ch; line-height: 1.65; }
.user-v36 .cd-section-description { max-width: 62ch; line-height: 1.65; }
.user-v36 .cd-teacher__copy { flex: 1; min-width: 0; }
.user-v36 .cd-teacher button { width: 44px; height: 44px; flex: 0 0 44px; }
.user-v36 :is(.cd-dialog-close, .auth-close, .consultation-close, .dashboard-close, .homework-confirm-close) { min-width: 44px; min-height: 44px; }
.user-v36 .cd-teacher-dialog { max-width: calc(100% - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; }
.user-v36 :is(.cd-teacher-dialog h2, .auth-view h2, .consultation-contact-head h2) { padding-right: 36px; }
.user-v36 .cd-group__note { max-width: 62ch; font-size: 13px; line-height: 1.6; }
.user-v36 .study-sidebar { min-width: 0; }
.user-v36 .course-info-card .course-facts { margin-bottom: 20px; }
.user-v36 .lesson-content :is(p, textarea) { line-height: 1.65; }
.user-v36 :is(.material-link, .homework-assignment-file, .homework-solution-card, .homework-selected-file) { min-width: 0; }
.user-v36 :is(.material-link, .homework-assignment-file, .homework-solution-card) > span:first-child { min-width: 0; }
.user-v36 .material-link > span:last-child { flex: 0 0 auto; }
.user-v36 .homework-dropzone { cursor: pointer; }
.user-v36 .homework-dropzone > div { pointer-events: none; }
.user-v36 .homework-dropzone p { font-size: 13px; }
.user-v36 .homework-submit-row { gap: 16px; }
.user-v36 .homework-confirm-dialog { position: relative; }
.user-v36 .homework-confirm-dialog h3 { padding-right: 32px; }
.user-v36 .settings-grid > label { min-width: 0; }
.user-v36 .settings-grid :is(input, select) { min-width: 0; width: 100%; }
.user-v36 .dashboard-payment-row > strong { min-width: 0; }
.user-v36 .dashboard-payment-row b { white-space: nowrap; }
.user-v36 .dashboard-payment-action .button { background: transparent; color: var(--green-dark); border-color: var(--line); }
.user-v36 .dashboard-nav-item.is-active,
.user-v36 .dashboard-nav-item.is-active:hover,
.user-v36 .dashboard-nav-item.is-active:focus { color: #fff; background: var(--green-dark); }
.user-v36 .dashboard-nav-item.is-active span { color: inherit; }
.user-v36 .payment-order-total strong,
.user-v36 .purchase-summary dd { font-variant-numeric: tabular-nums; }
.user-v36 .compact-purchase-shell :is(input, select, textarea),
.user-v36 .lesson-topup-main :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.user-v36 .compact-plan-card { height: auto; min-height: 112px; }
.user-v36 .lesson-package-custom-head { flex-wrap: wrap; gap: 16px; }
.user-v36 .purchase-student-summary > div { min-width: 0; }
.user-v36 .purchase-student-summary strong { overflow-wrap: anywhere; }
.user-v36 .payment-history-head { align-items: center; }
.user-v36 .payment-history-summary { flex: 0 0 auto; }
.user-v36 .data-table td { line-height: 1.55; }
.user-v36 .data-table td small { display: inline-block; margin-top: 5px; color: var(--muted); }
@media (max-width: 900px) {
  .user-v36 .lesson-topup-summary { position: static; }
}
@media (max-width: 620px) {
  .user-v36 .header-inner { min-height: 68px; gap: 12px; }
  .user-v36 .site-header { min-height: 68px; }
  .user-v36 .welcome { min-height: calc(100svh - 68px); }
  .user-v36 .statement-card { min-height: calc(100svh - 68px); padding: 48px 20px 36px; }
  .user-v36 .welcome .statement-text { font-size: clamp(24px, 7.4vw, 42px); }
  .user-v36 :is(.auth-field input, .auth-field select, .auth-field textarea, .settings-grid input, .settings-grid select, .consultation-field input, .consultation-field textarea, .commerce-field input, .commerce-field select, .homework-ai-form textarea) { font-size: 16px; }
  .user-v36 .lesson-page-head .page-intro { font-size: 14px; line-height: 1.65; }
  .user-v36 .homework-submit-row { flex-direction: column; align-items: stretch; }
  .user-v36 .homework-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .user-v36 .payment-history-table { padding: 0 16px; }
  .user-v36 .payment-history-table :is(table, tbody) { display: block; width: 100%; }
  .user-v36 .payment-history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .user-v36 .payment-history-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .user-v36 .payment-history-table tr:last-child { border-bottom: 0; }
  .user-v36 .payment-history-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 0; border: 0; white-space: normal; }
  .user-v36 .payment-history-table td::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
  .user-v36 .payment-history-table td > br { display: none; }
  .user-v36 .payment-history-table td > small { grid-column: 2; margin-top: 0; }
  .user-v36 .payment-history-table td[colspan] { display: block; }
  .user-v36 .payment-history-table td[colspan]::before { display: none; }
  .user-v36 .payment-history-table td:nth-child(4) strong { font-size: 17px; }
}
