:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --cabinet-bg: #f5f7fa;
  --cabinet-surface: #ffffff;
  --cabinet-line: #e5ebf1;
  --cabinet-line-strong: #d7e1eb;
  --cabinet-text: #0d1621;
  --cabinet-text-soft: #566476;
  --cabinet-text-muted: #7b8ea2;
  --cabinet-accent: #0f4a84;
  --cabinet-radius: 12px;
  --cabinet-shadow: 0 14px 36px rgba(17, 41, 71, 0.08);
}

body {
  background: var(--cabinet-bg);
  color: var(--cabinet-text);
}

.page {
  padding: var(--space-6) 0 var(--space-8);
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.surface {
  background: var(--cabinet-surface);
  border: 1px solid var(--cabinet-line);
  border-radius: var(--cabinet-radius);
  box-shadow: var(--cabinet-shadow);
}

.cabinet-sidebar {
  position: sticky;
  top: 82px;
  padding: var(--space-3);
}

.cabinet-sidebar__title {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #32485f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cabinet-nav__link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #4f6276;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cabinet-nav__link:hover {
  background: #f2f6fa;
  color: #273d52;
}

.cabinet-nav__link.is-active {
  background: #eaf2f9;
  color: #0f3f6d;
}

.cabinet-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cabinet-mobile-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
}

.cabinet-section {
  padding: var(--space-4);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid #eef3f7;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  color: #09111b;
}

.section-head p {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #60758a;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.kpi {
  padding: var(--space-3);
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  background: #fbfdff;
}

.kpi--link,
.card--link {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.kpi--link:hover,
.card--link:hover {
  border-color: #cbd9e6;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 36, 60, 0.08);
}

.kpi__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #7a8da1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi__value {
  margin: var(--space-2) 0 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 700;
  color: #0d1d2d;
}

.kpi__value--muted {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: #5f7489;
}

.kpi__meta {
  margin: var(--space-2) 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #60758a;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
}

.next-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  background: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #3b5671;
  text-decoration: none;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dashboard-block--actions h3 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: #0f2134;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  min-height: 176px;
}

.dashboard-card--wide {
  min-height: 188px;
}

.dashboard-card--secondary {
  opacity: 0.92;
}

.card__compact-text {
  margin-top: var(--space-2);
}

.dashboard-empty {
  margin-top: var(--space-2);
}

.dashboard-empty__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #61768b;
}

.dashboard-card__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-event-embed {
  margin-top: var(--space-2);
}

.dashboard-event-embed .cabinet-events-list {
  gap: 0;
}

.dashboard-badge {
  margin-left: 6px;
}

.entity--link {
  text-decoration: none;
}

.cabinet-events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cabinet-events-list .calendar-preview-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 14px 16px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fff;
  min-height: 188px;
}

.cabinet-events-list .calendar-preview-item .featured-event__status,
.cabinet-events-list .calendar-preview-item__top,
.cabinet-events-list .calendar-preview-item__topics,
.cabinet-events-list .calendar-preview-item__meta,
.cabinet-events-list .calendar-preview-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cabinet-events-list .calendar-preview-item__top {
  align-items: flex-start;
  justify-content: space-between;
}

.cabinet-events-list .calendar-preview-item__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 600;
  color: rgba(13, 22, 33, 0.95);
}

.cabinet-events-list .calendar-preview-item__title a {
  color: inherit;
  text-decoration: none;
}

.cabinet-events-list .calendar-preview-item__meta {
  font-size: 14px;
  line-height: 1.5;
  color: #66798d;
}

.cabinet-events-list .calendar-preview-item__date svg {
  transform: translateY(1px);
  transform-origin: center;
  margin-right: 2px;
}

.cabinet-events-list .calendar-preview-item__place {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cabinet-events-list .calendar-preview-item__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(13, 22, 33, 0.78);
}

.cabinet-events-list .calendar-preview-item__actions {
  margin-top: auto;
  padding-top: 4px;
}

.cabinet-events-list .calendar-preview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cabinet-events-list .calendar-preview-action--primary {
  background: #0c3b68;
  color: #fff;
}

.cabinet-events-list .calendar-preview-action--secondary {
  background: #eef2f6;
  color: #445669;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.section-head__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.membership-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.membership-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #0d1d2d;
}

.membership-status-line {
  margin: var(--space-2) 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: #23384d;
}

.membership-status-line strong {
  color: #0d1d2d;
}

.membership-status-meta {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 1.45;
  color: #60758a;
}

.membership-payment {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #dce5ee;
  color: #5e7287;
  font-size: 12px;
  font-weight: 700;
}

.membership-payment.is-paid {
  background: #ebf7ef;
  border-color: #cfe7d6;
  color: #2d8557;
}

.membership-benefits {
  margin: var(--space-3) 0 0;
  padding-left: 20px;
  display: grid;
  gap: var(--space-2);
}

.membership-benefits li {
  font-size: 14px;
  line-height: 1.45;
  color: #2b4056;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.card {
  padding: var(--space-3);
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  background: #fff;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #0d1d2d;
}

.card p {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5d7185;
}

.entity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.entity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid #eff4f8;
}

.entity:last-child {
  border-bottom: 0;
}

.entity__body {
  min-width: 0;
}

.entity__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.entity__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #16293b;
}

.entity__meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #61778c;
}

.entity__inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.entity__download {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  background: #eef4fb;
  color: #355777;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.entity__download:hover {
  background: #e6f0fa;
  border-color: #c6d9ec;
  color: #254866;
}

.entity__download--disabled {
  background: #f6f9fc;
  color: #8da0b3;
  border-color: #dde7f1;
  cursor: default;
  pointer-events: none;
}

.learning-reco-subtitle {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #61778c;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.track-card {
  padding: var(--space-3);
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 100%;
}

.track-card--clickable {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.track-card--clickable:hover {
  border-color: #cbd9e6;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 36, 60, 0.08);
}

.track-card--clickable:focus-visible {
  outline: 2px solid #7ba5ce;
  outline-offset: 2px;
}

.track-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #10263c;
}

.track-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card__eyebrow {
  align-self: flex-start;
}

.track-card__summary {
  font-size: 14px;
  line-height: 1.55;
  color: #5c7186;
}

.track-card__cover {
  height: 46px;
  border-radius: 10px;
  margin-bottom: var(--space-2);
  border: 1px solid #d7e3ee;
}

.track-card__cover--1 {
  background: linear-gradient(135deg, #e5f1fb 0%, #cfe3f5 100%);
}

.track-card__cover--2 {
  background: linear-gradient(135deg, #e8f5f1 0%, #cfe9dd 100%);
}

.track-card__cover--3 {
  background: linear-gradient(135deg, #f3eefb 0%, #e0d5f6 100%);
}

.track-card__cover--4 {
  background: linear-gradient(135deg, #f7f1e8 0%, #efe2cd 100%);
}

.track-card__meta {
  font-size: 13px;
  line-height: 1.5;
  color: #607489;
}

.progress {
  margin-top: var(--space-2);
  height: 8px;
  border-radius: 999px;
  background: #e7eef6;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2f78b6;
}

.progress-ui {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.progress-ui__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.progress-ui__label {
  font-size: 13px;
  line-height: 1.4;
  color: #5d7185;
}

.progress-ui__percent {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #1e3348;
}

.progress-ui__track {
  height: 8px;
  border-radius: 999px;
  background: #e7eef6;
  overflow: hidden;
}

.progress-ui__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.32s ease-out;
}

.progress-ui__meta {
  font-size: 12px;
  line-height: 1.4;
  color: #6f8398;
}

.progress-ui[data-progress-state="not_started"] .progress-ui__fill {
  background: #9ab0c7;
}

.progress-ui[data-progress-state="in_progress"] .progress-ui__fill {
  background: #2f78b6;
}

.progress-ui[data-progress-state="completed"] .progress-ui__fill {
  background: #2f9663;
}

.progress-ui--sm .progress-ui__track {
  height: 6px;
}

.progress-ui--sm .progress-ui__label,
.progress-ui--sm .progress-ui__percent {
  font-size: 12px;
}

.segmented-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.segmented-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #4b6075;
}

.segmented-progress__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6px, 1fr));
  gap: 4px;
  height: 10px;
}

.segmented-progress__segment {
  border-radius: 3px;
  background: #e6edf5;
  border: 1px solid #d7e2ee;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.segmented-progress__segment:disabled {
  cursor: default;
  opacity: 0.55;
}

.segmented-progress__segment:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(20, 52, 86, 0.12);
}

.segmented-progress__segment[data-state="completed"] {
  background: #2f78b6;
  border-color: #2f78b6;
}

.track-card--completed .segmented-progress__segment[data-state="completed"] {
  background: #2f9663;
  border-color: #2f9663;
}

.segmented-progress__segment[data-state="current"] {
  background: #6aa8d8;
  border-color: #6aa8d8;
}

.segmented-progress__meta {
  font-size: 12px;
  color: #6b7f94;
}

.segmented-progress__steps {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eaf0f6;
}

.segmented-progress__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 12px 0;
  border-bottom: 1px solid #eef3f7;
  font-size: 12px;
  color: #5b6f83;
}

.segmented-progress__step:last-child {
  border-bottom: 0;
}

.segmented-progress__step-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.segmented-progress__step-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-progress__step-status {
  min-width: 72px;
  font-weight: 600;
  color: #7a8fa4;
}

.segmented-progress__step[data-state="completed"] .segmented-progress__step-status {
  color: #2f78b6;
}

.segmented-progress__step[data-state="current"] .segmented-progress__step-status {
  color: #2f9663;
}

.segmented-progress__step[data-state="current"] {
  padding: 14px 12px;
  margin: 8px 0;
  border: 1px solid #cfe2d5;
  border-radius: 12px;
  background: #f1f9f4;
  box-shadow: inset 0 0 0 1px rgba(47, 150, 99, 0.04);
}

.segmented-progress__step-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.segmented-progress__step-title {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #16293b;
}

.segmented-progress__step-preview {
  font-size: 13px;
  line-height: 1.55;
  color: #64788d;
}

.segmented-progress__step-open {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: #355777;
  text-decoration: none;
}

.segmented-progress__step-open:hover {
  color: #173c61;
}

.control-panel {
  background: #eef3f7;
  border: 1px solid #dde7f1;
  border-radius: 10px;
  padding: var(--space-2);
}

.control-panel--inline {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.abstract-action {
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.abstract-action__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.abstract-action__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.abstract-action__title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
}
.abstract-action__period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.abstract-action__note {
  font-size: 13px;
  color: var(--text-muted);
}
.abstract-action__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.abstract-action__cta .btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.abstracts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  background: #f2f6fa;
  padding: 2px;
}

.tab {
  border: 0;
  background: transparent;
  color: #5d7185;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.is-active {
  background: #fff;
  color: #0d1d2d;
  box-shadow: 0 2px 6px rgba(13, 29, 45, 0.08);
}

.tabs--section {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 1px solid var(--cabinet-line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.tabs--section .tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #5d7185;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  box-shadow: none;
}

.tabs--section .tab:hover {
  background: #f5f8fb;
  color: #0d1621;
}

.tabs--section .tab.is-active {
  background: #fff;
  color: #163e68;
  box-shadow: inset 0 0 0 1px var(--cabinet-line);
}

.tabs--section .tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: #163e68;
}

.abstract-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  padding: 16px 18px;
  align-items: center;
}

.abstract-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.abstract-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.abstract-card__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.abstract-card__status {
  font-size: 12px;
  font-weight: 600;
  color: #4b6075;
}

.abstract-card__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.abstract-card--closed .abstract-card__status {
  color: #8b1f2b;
}

@media (max-width: 900px) {
  .abstract-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .abstract-card__actions {
    justify-content: flex-start;
  }
}

.field-input {
  min-height: 36px;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  background: #fff;
  color: #33485d;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.35;
  font-family: inherit;
}

.field-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  padding: 0 12px;
  min-height: 36px;
  background: #fff;
}

.field-input-group .field-input {
  border: none;
  padding: 0;
  min-height: 28px;
  flex: 1 1 auto;
}

.field-input-prefix {
  font-size: 13px;
  color: #7a8fa4;
  white-space: nowrap;
}

.field-help {
  font-size: 12px;
  color: #8a9db0;
}

.field-input[type="search"] {
  min-width: 280px;
}

.field-input--textarea {
  min-height: 96px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  font-family: inherit;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #7a8fa4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.form-feedback,
.field-error {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #8b1f2b;
}

.form-status {
  font-size: 12px;
  line-height: 1.4;
  color: #6c8299;
}

.form-status.is-saving {
  color: #36597b;
}

.form-status.is-saved {
  color: #2f9663;
}

.form-status.is-error {
  color: #8b1f2b;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-preview {
  min-height: 88px;
  border: 1px dashed #d5e0ea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8398;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  background: #f9fbfe;
}

.avatar-preview img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
}

.avatar-form {
  gap: var(--space-3);
}

.avatar-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-uploader {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: start;
}

.avatar-uploader.is-dragover .avatar-cropper {
  box-shadow: 0 0 0 3px rgba(44, 101, 166, 0.14);
}

.avatar-cropper-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  min-height: 220px;
}

.avatar-cropper {
  --avatar-mask-size: 180px;
  width: 220px;
  height: 220px;
  border-radius: 20px;
  background:
    radial-gradient(circle at center, transparent 0 89px, rgba(255, 255, 255, 0.78) 89px 100%),
    linear-gradient(180deg, #eef4fa 0%, #e5edf6 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
}

.avatar-cropper.has-image::after {
  content: "";
  position: absolute;
  width: var(--avatar-mask-size);
  height: var(--avatar-mask-size);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(248, 251, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 2;
}

.avatar-image {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  width: auto;
  height: auto;
  transform-origin: center;
  cursor: grab;
  user-select: none;
  will-change: transform, width, height;
}

.avatar-image.is-grabbing {
  cursor: grabbing;
}

.avatar-empty {
  position: absolute;
  inset: 0 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8398;
  font-size: 12px;
  text-align: center;
  padding: 0 28px;
  z-index: 1;
}

.profile-public-preview {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  background: #fbfdff;
}

.profile-public-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.profile-public-preview__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7b8ea2;
}

.profile-public-preview__value,
.profile-public-preview__link {
  font-size: 13px;
  color: #48617a;
  text-align: right;
}

.profile-public-preview__badge {
  align-self: center;
}

.profile-public-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-public-preview__media {
  border: 1px solid #e3edf7;
  border-radius: 14px;
  overflow: hidden;
  background: #f7fbff;
}

.profile-public-preview__media img {
  display: block;
  width: 100%;
  height: auto;
}

.avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(320px, 100%);
}

.avatar-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.avatar-actions .btn {
  min-height: 40px;
}

.btn--ghost {
  background: #f4f8fc;
  border: 1px solid #d9e4ef;
  color: #516a83;
}

.avatar-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #5d7185;
}

.avatar-zoom span {
  min-width: 58px;
}

.avatar-zoom input[type="range"] {
  flex: 1;
}

.form-divider {
  border: 0;
  border-top: 1px solid #e9eff5;
  margin: var(--space-2) 0;
}

.track-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid #eef3f7;
}

.learning-material-card__pdf-chip {
  gap: 6px;
}

.learning-material-card__pdf-chip-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.subscription-topic-chip {
  text-decoration: none;
}

.chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.chip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e3edf7;
  border-radius: 14px;
  background: #fff;
}

.chip-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chip-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1e2b3a;
}

.chip-card__meta {
  font-size: 12px;
  line-height: 1.4;
  color: #70859a;
}

.subscription-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-card__status-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subscription-card__status-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.subscription-card__actions {
  margin-top: auto;
  padding-top: 6px;
}

.state-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.track-card__footer {
  margin-top: var(--space-2);
}

.btn--sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.learning-block {
  margin-top: var(--space-4);
}

.learning-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.learning-block__head h3 {
  margin: 0;
}

.learning-block__head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6a7f94;
}

.learning-materials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.learning-material-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  padding: var(--space-3);
}

.learning-material-card__media {
  border-radius: 10px;
  border: 1px solid #dce6f0;
  background-color: #e7eff7;
  background-size: cover;
  background-position: center;
  min-height: 104px;
}

.learning-material-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.learning-material-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.learning-material-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #10263c;
}

.learning-material-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.analytics-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.analytics-grid .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chart-donut-wrap {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-height: 156px;
}

.chart-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chart-donut svg {
  width: 132px;
  height: 132px;
}

.chart-donut > span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #3f5871;
}

.chart-donut__segment {
  transition: opacity 0.15s ease;
}

.chart-donut__segment.is-hover {
  opacity: 0.7;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #5f7489;
}

.chart-legend__item.is-hover {
  color: #1f3348;
}

.chart-legend__item strong {
  color: #1f3348;
  font-weight: 700;
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.activity-bars {
  min-height: 160px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 0 2px;
  width: 100%;
}

.activity-bars-wrap {
  position: relative;
}

.activity-bars__ticks {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
}

.activity-bars__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(125, 141, 157, 0.15);
}

.activity-bars__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.activity-bars__bar {
  width: 100%;
  max-width: 6px;
  border-radius: 2px;
  background: #dbe5f0;
  min-height: 6px;
  transition: background 0.15s ease;
}

.activity-bars__bar.is-active {
  background: #5d89be;
}

.activity-bars__bar.is-last {
  background: #2f78b6;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.segmented-toggle {
  display: inline-flex;
  border: 1px solid #d7e3ee;
  border-radius: 999px;
  padding: 2px;
  background: #f3f7fb;
}

.segmented-toggle__btn {
  border: 0;
  background: transparent;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.1;
  color: #6b7f94;
  cursor: pointer;
  border-radius: 999px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  background: #fff;
}

.summary-strip--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-strip__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9db0;
}

.summary-strip__value {
  font-size: 18px;
  font-weight: 700;
  color: #0f2b46;
}

.summary-strip__meta {
  font-size: 12px;
  color: #6b7f94;
}

.segmented-toggle__btn.is-active {
  background: #2f78b6;
  color: #fff;
}

.state {
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  padding: var(--space-4);
  text-align: left;
}

.state__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.state__text {
  margin: var(--space-2) 0 0;
  color: var(--cabinet-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.state--error .state__title {
  color: #8b1f2b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  background: #fff;
  color: #46607a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.is-active {
  background: #eaf2f9;
  border-color: #c6d8ea;
  color: #0f3f6d;
}

.track-shell,
.track-builder-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
}

.track-shell {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  align-items: start;
}

.track-builder-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  align-items: start;
}

.track-hero-card {
  display: grid;
  gap: var(--space-3);
}

.track-hero-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #4a647e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-hero-card__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #09111b;
}

.track-hero-card__desc {
  margin: 0;
  max-width: 58ch;
  color: #566476;
  font-size: 16px;
  line-height: 1.55;
}

.track-hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.track-panel {
  display: grid;
  gap: var(--space-3);
}

.track-panel__group {
  display: grid;
  gap: 10px;
}

.track-panel__label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8fa4;
}

.track-panel__value {
  font-size: 14px;
  line-height: 1.5;
  color: #26415b;
}

.track-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.track-share-actions .site-cta {
  min-height: 34px;
  padding: 0 12px;
}

.track-share-actions .site-cta[aria-disabled="true"],
.track-share-actions .site-cta:disabled {
  opacity: 0.56;
  pointer-events: none;
  transform: none;
}

.track-current-card {
  display: grid;
  gap: var(--space-2);
}

.track-current-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: #10263c;
}

.track-current-card__meta {
  font-size: 13px;
  line-height: 1.45;
  color: #61778c;
}

.track-playlist {
  display: grid;
  gap: var(--space-2);
}

.track-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px;
}

.track-step-card__order {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dce5ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f7489;
  font-size: 12px;
  font-weight: 700;
  background: #f8fbfe;
}

.track-step-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.track-step-card__title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #16293b;
}

.track-step-card__meta {
  font-size: 12px;
  line-height: 1.4;
  color: #71859a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-step-card__duration {
  font-size: 13px;
  line-height: 1.4;
  color: #61778c;
}

.track-step-card__preview {
  font-size: 13px;
  line-height: 1.45;
  color: #61778c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-step-card__actions {
  display: flex;
  justify-content: flex-end;
}

.track-step-card--openable {
  cursor: pointer;
}

.track-step-card.is-completed {
  border-color: #d4eadc;
  background: #f7fcf8;
}

.track-step-card.is-current {
  border-color: #c7d9f1;
  background: #f5f9ff;
}

.builder-shell__main,
.builder-shell__aside {
  display: grid;
  gap: var(--space-4);
}

.builder-hero {
  display: grid;
  gap: var(--space-2);
}

.builder-hero__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #09111b;
}

.builder-hero__subtitle {
  margin: 0;
  color: #596d82;
  font-size: 16px;
  line-height: 1.5;
}

.builder-card {
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.builder-card[hidden] {
  display: none !important;
}

.builder-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.builder-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #0d1d2d;
}

.builder-card__text {
  margin: 6px 0 0;
  color: #62778d;
  font-size: 14px;
  line-height: 1.5;
}

.builder-form {
  display: grid;
  gap: 12px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-topic-chip {
  cursor: pointer;
}

.builder-public-chip {
  cursor: pointer;
  gap: 8px !important;
}

.builder-public-chip input {
  margin: 0;
}

.suggest-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.builder-empty {
  border: 1px dashed #d7e2ec;
  border-radius: 10px;
  padding: 12px;
  color: #66798c;
  background: #f8fbfd;
  font-size: 14px;
  line-height: 1.45;
}

.builder-suggest-card {
  --content-card-shadow: none;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.builder-suggest-card__preview {
  min-height: 72px;
  border-radius: var(--content-card-media-radius, 8px);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7f1fa, #f4f8fb);
  color: #1f5f91;
  font-size: 28px;
  font-weight: 700;
}

.builder-suggest-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.builder-suggest-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.step-item {
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.step-item:active,
.step-item.is-dragging {
  border-color: #c8d7e5;
  box-shadow: 0 10px 24px rgba(17, 41, 71, .08);
}

.step-item__info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.step-item__title {
  font-weight: 600;
  color: #13273a;
}

.step-item__meta {
  font-size: 12px;
  color: #7c8a99;
}

.step-item__preview {
  font-size: 13px;
  line-height: 1.45;
  color: #5f7489;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.step-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item--openable {
  cursor: pointer;
}

.step-item__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: #eef3f8;
  color: #476179;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.step-item__open:disabled {
  opacity: 0.56;
  cursor: default;
}

.step-item__open-icon {
  font-size: 13px;
  line-height: 1;
}

.step-item__drag {
  cursor: grab;
  font-size: 18px;
  color: #8fa1b4;
}

.step-item__remove {
  border: none;
  background: transparent;
  color: #a02c2c;
  cursor: pointer;
}

.muted {
  color: #7c8a99;
  font-size: 14px;
}

.divider {
  height: 1px;
  background: #e6edf5;
}

.builder-success {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe9d8;
  border-radius: 10px;
  background: #f3fbf6;
  color: #1f7b43;
}

.builder-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #0d1d2d;
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 29, 45, .22);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.builder-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 36, 0.4);
  z-index: 90;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: var(--space-3);
  border-right: 1px solid var(--cabinet-line);
  overflow: auto;
}

.drawer__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  background: #fff;
  color: #4d6176;
}

@media (max-width: 1100px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    display: none;
  }

  .cabinet-mobile-toolbar {
    display: flex;
  }

  .kpi-grid,
  .dashboard-grid,
  .tracks-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .learning-material-card {
    grid-template-columns: 1fr;
  }

  .learning-material-card__media {
    min-height: 140px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 1;
  }

  .summary-strip,
  .summary-strip--compact,
  .track-shell,
  .track-builder-shell {
    grid-template-columns: 1fr;
  }

  .track-step-card {
    grid-template-columns: auto 1fr;
  }

  .track-step-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
