@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: "Montserrat", Arial, sans-serif;
  font-synthesis: none;
  --portal-bg: #160e35;
  --portal-surface: #24194e;
  --portal-surface-deep: #10092b;
  --portal-cyan: #26c0da;
  --portal-cyan-text: #31b2da;
  --portal-purple: #725cd8;
  --portal-heading: #5f72f9;
  --portal-text: #ffffff;
  --portal-muted: #beadff;
  --portal-step: #504771;
  --portal-green: #04ef06;
  --portal-warning: #f0bf59;
  --portal-danger: #ff779d;
  --portal-card-shape: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  --portal-control-shape: polygon(
    0 0,
    calc(100% - 9px) 0,
    100% 9px,
    100% 100%,
    9px 100%,
    0 calc(100% - 9px)
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--portal-bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(
      circle at 82% -10%,
      rgba(114, 92, 216, 0.3),
      transparent 38%
    ),
    radial-gradient(
      circle at 48% 105%,
      rgba(38, 192, 218, 0.09),
      transparent 42%
    ),
    var(--portal-bg);
  color: var(--portal-text);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(190, 173, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(190, 173, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
}

a {
  color: var(--portal-cyan-text);
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--portal-text);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

.visually-hidden {
  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;
}

.portal-shell {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 280px;
  min-height: 100vh;
  padding: 34px 24px 26px;
  flex-direction: column;
  background: linear-gradient(
      180deg,
      rgba(36, 25, 78, 0.72),
      rgba(16, 9, 43, 0.96)
    ),
    var(--portal-bg);
  border-right: 1px solid rgba(114, 92, 216, 0.42);
  box-shadow: 18px 0 70px rgba(5, 2, 20, 0.2);
}

.portal-sidebar::before {
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 170px;
  background: linear-gradient(180deg, var(--portal-cyan), transparent);
  box-shadow: 0 0 18px rgba(38, 192, 218, 0.5);
  content: "";
}

.portal-sidebar__brand {
  min-width: 0;
}

.portal-logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--portal-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
}

.portal-logo::after {
  width: 58%;
  height: 2px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--portal-cyan), var(--portal-purple));
  box-shadow: 0 0 12px rgba(38, 192, 218, 0.56);
  content: "";
}

.portal-role,
.eyebrow {
  margin: 12px 0 0;
  color: var(--portal-cyan-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.portal-nav {
  display: grid;
  gap: 8px;
  margin-top: 44px;
}

.portal-nav a {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 48px;
  padding: 13px 16px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(190, 173, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, transform 160ms ease;
}

.portal-nav a::before,
.portal-nav a::after {
  position: absolute;
  clip-path: var(--portal-control-shape);
  content: "";
  pointer-events: none;
  transition: background 160ms ease, opacity 160ms ease;
}

.portal-nav a::before {
  inset: 0;
  z-index: -2;
  background: transparent;
}

.portal-nav a::after {
  inset: 1px;
  z-index: -1;
  background: transparent;
}

.portal-nav a:hover {
  color: var(--portal-text);
}

.portal-nav a:hover::before {
  background: rgba(114, 92, 216, 0.65);
}

.portal-nav a:hover::after {
  background: rgba(36, 25, 78, 0.9);
}

.portal-nav a.active {
  color: var(--portal-text);
  transform: translateX(3px);
}

.portal-nav a.active::before {
  background: linear-gradient(135deg, var(--portal-cyan), var(--portal-purple));
  filter: drop-shadow(0 0 8px rgba(38, 192, 218, 0.22));
}

.portal-nav a.active::after {
  background: linear-gradient(
    110deg,
    rgba(38, 192, 218, 0.12),
    var(--portal-surface) 58%
  );
}

.portal-nav__index {
  color: var(--portal-step);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.portal-nav a.active .portal-nav__index {
  color: var(--portal-cyan);
}

.portal-user {
  display: grid;
  min-width: 0;
  padding: 18px 15px;
  margin: auto -8px -8px;
  grid-template-areas:
    "avatar copy"
    "avatar logout";
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 5px 13px;
  align-items: center;
  background: rgba(36, 25, 78, 0.58);
  border: 1px solid rgba(114, 92, 216, 0.36);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(5, 2, 20, 0.22);
}

.portal-avatar {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  background: var(--portal-surface);
  border: 1px solid rgba(38, 192, 218, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(38, 192, 218, 0.08);
}

.portal-avatar-link {
  grid-area: avatar;
  display: block;
  border-radius: 50%;
}

.portal-user__copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--portal-text);
}

.portal-user__copy strong,
.portal-user__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user__copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.portal-user__copy small {
  color: rgba(238, 235, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.portal-user form {
  grid-area: logout;
  margin: 0;
}

.link-button,
.danger-link {
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--portal-danger);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.link-button:hover,
.danger-link:hover {
  color: var(--portal-text);
}

.portal-logout {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.portal-logout__icon {
  font-size: 14px;
  line-height: 1;
  transform: rotate(45deg);
}

.portal-main {
  width: calc(100% - 280px);
  min-width: 0;
  min-height: 100vh;
  padding: 50px clamp(28px, 4vw, 68px) 72px;
  margin-left: 280px;
}

.portal-content {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.portal-main--auth {
  display: grid;
  width: 100%;
  padding: 24px;
  margin: 0;
  place-items: center;
}

.portal-main--auth .portal-content {
  display: grid;
  width: 100%;
  place-items: center;
}

.page-head {
  display: flex;
  margin-bottom: 32px;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-head__copy {
  min-width: 0;
}

.page-head h1,
.auth-card h1 {
  margin: 7px 0 0;
  color: var(--portal-text);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.page-lead {
  max-width: 680px;
  margin: 15px 0 0;
  color: rgba(190, 173, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.page-lead strong {
  color: var(--portal-text);
  font-weight: 650;
}

.page-head__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.portal-card,
.auth-card {
  position: relative;
  isolation: isolate;
  --card-stroke: rgba(114, 92, 216, 0.8);
  --card-fill: linear-gradient(
    145deg,
    rgba(36, 25, 78, 0.97),
    rgba(22, 14, 53, 0.98)
  );
  padding: 26px;
}

.portal-card::before,
.portal-card::after,
.auth-card::before,
.auth-card::after {
  position: absolute;
  clip-path: var(--portal-card-shape);
  content: "";
  pointer-events: none;
}

.portal-card::before,
.auth-card::before {
  inset: 0;
  z-index: -2;
  background: var(--card-stroke);
  filter: drop-shadow(0 18px 30px rgba(5, 2, 20, 0.22));
}

.portal-card::after,
.auth-card::after {
  inset: 1px;
  z-index: -1;
  background: var(--card-fill);
}

.portal-card--accent {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-cyan),
    var(--portal-purple)
  );
  --card-fill: linear-gradient(
    135deg,
    rgba(38, 192, 218, 0.11),
    rgba(36, 25, 78, 0.98) 58%
  );
}

.portal-card--wide {
  margin-bottom: 20px;
}

.portal-card h2,
.portal-card h3 {
  color: var(--portal-text);
}

.portal-card h2 {
  margin-bottom: 0;
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 750;
  line-height: 1.2;
}

.portal-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 46px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--portal-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.primary-button::before,
.primary-button::after,
.secondary-button::before,
.secondary-button::after {
  position: absolute;
  clip-path: var(--portal-control-shape);
  content: "";
  pointer-events: none;
  transition: background 160ms ease, filter 160ms ease;
}

.primary-button::before,
.secondary-button::before {
  inset: 0;
  z-index: -2;
}

.primary-button::after,
.secondary-button::after {
  inset: 1px;
  z-index: -1;
}

.primary-button::before {
  background: var(--portal-cyan);
  filter: drop-shadow(0 0 9px rgba(38, 192, 218, 0.3));
}

.primary-button::after {
  background: linear-gradient(
    110deg,
    var(--portal-cyan),
    var(--portal-heading)
  );
}

.primary-button {
  color: #10082b;
}

.secondary-button::before {
  background: linear-gradient(130deg, var(--portal-cyan), var(--portal-purple));
}

.secondary-button::after {
  background: var(--portal-surface);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover::after {
  background: linear-gradient(110deg, #41d2e9, #725cd8);
}

.secondary-button:hover::after {
  background: linear-gradient(
    120deg,
    rgba(38, 192, 218, 0.14),
    var(--portal-surface) 60%
  );
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:active::before,
.secondary-button:active::before {
  filter: drop-shadow(0 0 13px rgba(38, 192, 218, 0.6));
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.5;
  transform: none;
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--portal-cyan-text);
  font-size: 13px;
  font-weight: 750;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover {
  color: var(--portal-text);
}

.text-link:hover span {
  transform: translateX(3px);
}

.muted {
  color: rgba(190, 173, 255, 0.72);
}

.dashboard-grid {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.metric-card {
  min-height: 238px;
  padding: 27px 28px 25px;
}

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

.metric-card__label {
  color: var(--portal-text);
  font-size: 14px;
  font-weight: 700;
}

.metric-card__number,
.section-number {
  color: var(--portal-step);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.metric-card__value {
  display: block;
  margin-top: 22px;
  color: var(--portal-text);
  font-size: clamp(46px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.metric-card__hint {
  margin: 13px 0 19px;
  color: rgba(190, 173, 255, 0.65);
  font-size: 12px;
}

.skill-check-metric {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-purple),
    var(--portal-heading)
  );
  --card-fill: linear-gradient(
    145deg,
    rgba(95, 114, 249, 0.1),
    rgba(36, 25, 78, 0.98) 62%
  );
}

.section-head {
  display: flex;
  margin-bottom: 26px;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.section-head .eyebrow {
  margin-top: 0;
  margin-bottom: 8px;
}

.next-session-card {
  min-height: 230px;
  padding: 30px;
}

.next-session-card__content {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.next-session-card__facts {
  display: grid;
  gap: 7px;
}

.next-session-card__facts strong {
  color: var(--portal-text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.next-session-card__facts span {
  color: var(--portal-muted);
  font-size: 15px;
  font-weight: 600;
}

.next-session-card__facts small {
  color: rgba(190, 173, 255, 0.6);
  font-size: 12px;
}

.empty-state {
  display: flex;
  min-height: 90px;
  gap: 17px;
  align-items: center;
}

.empty-state h3,
.empty-state p {
  margin-bottom: 0;
}

.empty-state__mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(38, 192, 218, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(38, 192, 218, 0.13);
}

.empty-state__mark::before,
.empty-state__mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--portal-cyan);
  content: "";
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.empty-state__mark::before {
  width: 18px;
  height: 1px;
}

.empty-state__mark::after {
  width: 1px;
  height: 18px;
}

.portal-form {
  display: grid;
  gap: 17px;
}

.portal-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.decline-form input,
.info-panel input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: rgba(16, 9, 43, 0.82);
  border: 1px solid rgba(114, 92, 216, 0.72);
  border-radius: 3px;
  color: var(--portal-text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background 160ms ease;
}

.portal-form textarea {
  min-height: 112px;
  line-height: 1.55;
  resize: vertical;
}

.portal-form input:hover,
.portal-form select:hover,
.portal-form textarea:hover,
.decline-form input:hover {
  border-color: var(--portal-purple);
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.decline-form input:focus {
  background: var(--portal-surface-deep);
  border-color: var(--portal-cyan);
  box-shadow: 0 0 0 3px rgba(38, 192, 218, 0.1);
}

.portal-form input::placeholder,
.portal-form textarea::placeholder,
.decline-form input::placeholder {
  color: rgba(190, 173, 255, 0.42);
}

.portal-form input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1) opacity(0.72);
}

.portal-form__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 16px;
  align-items: center;
}

.portal-form__actions small {
  max-width: 380px;
  color: rgba(190, 173, 255, 0.55);
  font-size: 11px;
  line-height: 1.5;
}

.schedule-create-card,
.schedule-list-card {
  padding: 30px;
}

.slot-list {
  display: grid;
}

.slot-row {
  display: flex;
  min-width: 0;
  padding: 17px 2px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(114, 92, 216, 0.18);
}

.slot-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.slot-row__time {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
}

.slot-row__time > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.slot-row__time strong {
  font-size: 15px;
  font-weight: 700;
}

.slot-row__time small {
  color: rgba(190, 173, 255, 0.62);
  font-size: 11px;
}

.slot-row__marker {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--portal-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(38, 192, 218, 0.09),
    0 0 12px rgba(38, 192, 218, 0.38);
}

.slot-response {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.slot-row__remove {
  flex: 0 0 auto;
}

.status-chip {
  display: inline-flex;
  min-height: 28px;
  padding: 6px 10px;
  align-items: center;
  align-self: flex-start;
  background: rgba(114, 92, 216, 0.16);
  border: 1px solid rgba(114, 92, 216, 0.56);
  border-radius: 999px;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip--pending,
.status-chip--report {
  background: rgba(240, 191, 89, 0.1);
  border-color: rgba(240, 191, 89, 0.55);
  color: #f5d184;
}

.status-chip--upcoming {
  background: rgba(38, 192, 218, 0.1);
  border-color: rgba(38, 192, 218, 0.55);
  color: #77e3f5;
}

.status-chip--completed {
  background: rgba(4, 239, 6, 0.07);
  border-color: rgba(4, 239, 6, 0.38);
  color: #86f887;
}

.status-chip--cancelled {
  background: rgba(255, 119, 157, 0.08);
  border-color: rgba(255, 119, 157, 0.46);
  color: #ff9db9;
}

.filter-tabs {
  display: flex;
  padding: 1px 1px 13px;
  margin: 0 0 19px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-color: rgba(114, 92, 216, 0.6) transparent;
  scrollbar-width: thin;
}

.filter-tabs a {
  min-height: 38px;
  padding: 9px 13px;
  flex: 0 0 auto;
  background: rgba(36, 25, 78, 0.42);
  border: 1px solid rgba(114, 92, 216, 0.45);
  border-radius: 999px;
  color: rgba(190, 173, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-tabs a:hover {
  background: var(--portal-surface);
  border-color: var(--portal-purple);
  color: var(--portal-text);
}

.filter-tabs a.active {
  background: linear-gradient(
    110deg,
    var(--portal-cyan),
    var(--portal-heading)
  );
  border-color: transparent;
  color: #10082b;
}

.offer-card {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-cyan),
    var(--portal-purple) 64%,
    rgba(240, 191, 89, 0.78)
  );
  --card-fill: linear-gradient(
    145deg,
    rgba(48, 34, 99, 0.99),
    rgba(36, 25, 78, 0.99)
  );
  padding: 30px;
}

.offer-card__header {
  display: flex;
  margin-bottom: 24px;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.offer-card__header .status-chip {
  margin-bottom: 16px;
}

.offer-confirmation-title {
  margin: 0 0 8px;
  color: var(--portal-cyan-text);
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.offer-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 31px);
}

.offer-facts {
  display: grid;
  margin: 0 0 22px;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.7fr);
  gap: 12px;
}

.offer-facts div {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(16, 9, 43, 0.42);
  border: 1px solid rgba(114, 92, 216, 0.42);
  border-radius: 3px;
}

.offer-facts dt,
.training-facts dt {
  color: rgba(190, 173, 255, 0.64);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-facts dd {
  margin: 7px 0 0;
  color: var(--portal-text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.offer-explanation {
  max-width: 790px;
  margin-bottom: 10px;
  color: rgba(238, 235, 255, 0.88);
  font-size: 13px;
  line-height: 1.65;
}

.offer-deadline {
  display: flex;
  margin: 0;
  gap: 7px;
  align-items: center;
  color: #f5d184;
  font-size: 12px;
  font-weight: 750;
}

.offer-actions {
  display: grid;
  padding-top: 21px;
  margin-top: 21px;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(190, 173, 255, 0.14);
}

.decline-form {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 1fr) max-content;
  gap: 9px;
  align-items: center;
}

.decline-form input {
  min-width: 0;
}

.training-card {
  padding: 28px 30px;
}

.training-card__header {
  display: flex;
  margin-bottom: 23px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.training-card__label {
  color: var(--portal-step);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.training-facts {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr) minmax(
      140px,
      0.55fr
    );
}

.training-facts > div {
  min-width: 0;
  padding: 2px 25px;
}

.training-facts > div:first-child {
  padding-left: 0;
}

.training-facts > div:last-child {
  padding-right: 0;
}

.training-facts > div + div {
  border-left: 1px solid rgba(114, 92, 216, 0.28);
}

.training-facts dd {
  margin: 7px 0 0;
  color: var(--portal-text);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.training-facts__game dd,
.training-facts__time dd {
  font-size: clamp(19px, 2.2vw, 26px);
}

.training-facts__duration dd {
  font-size: clamp(17px, 1.8vw, 21px);
}

.training-card > .action-row,
.training-card > .portal-form,
.training-card > .report-box {
  margin-top: 25px;
}

.action-row {
  display: flex;
  padding-top: 22px;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(114, 92, 216, 0.2);
}

.access-key-wrap {
  display: flex;
  min-height: 46px;
  gap: 10px;
  align-items: center;
}

.access-key-wrap > span {
  color: rgba(190, 173, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-key {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 12px;
  align-items: center;
  background: rgba(16, 9, 43, 0.84);
  border: 1px solid rgba(38, 192, 218, 0.38);
  border-radius: 3px;
  color: #77e3f5;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.training-disclosure {
  margin-top: 25px;
  overflow: hidden;
  background: rgba(16, 9, 43, 0.5);
  border: 1px solid rgba(38, 192, 218, 0.42);
}

.training-disclosure__toggle {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 14px 17px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    110deg,
    rgba(38, 192, 218, 0.1),
    rgba(36, 25, 78, 0.48) 64%
  );
  border: 0;
  color: var(--portal-text);
  text-align: left;
  transition: background 180ms ease;
}

.training-disclosure__toggle:hover {
  background: linear-gradient(
    110deg,
    rgba(38, 192, 218, 0.17),
    rgba(36, 25, 78, 0.66) 64%
  );
}

.training-disclosure__summary-copy {
  display: grid;
  gap: 3px;
}

.training-disclosure__summary-copy > span {
  color: var(--portal-cyan-text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.training-disclosure__summary-copy strong {
  font-size: 15px;
  line-height: 1.3;
}

.training-disclosure__summary-meta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.training-disclosure__state {
  color: #8df39f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-disclosure--waiting {
  border-color: rgba(240, 191, 89, 0.42);
}

.training-disclosure--waiting .training-disclosure__state {
  color: var(--portal-warning);
}

.training-disclosure--scheduled .training-disclosure__state {
  color: var(--portal-warning);
}

.training-disclosure__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--portal-cyan);
  border-bottom: 2px solid var(--portal-cyan);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 240ms ease;
}

.training-disclosure.is-open .training-disclosure__chevron {
  transform: translateY(2px) rotate(225deg);
}

.training-disclosure__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 280ms ease, opacity 180ms ease,
    visibility 0s linear 280ms;
}

.training-disclosure.is-open .training-disclosure__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 280ms ease, opacity 220ms ease 60ms,
    visibility 0s linear;
}

.training-disclosure__clip {
  min-height: 0;
  overflow: hidden;
}

.training-disclosure .training-room {
  margin-top: 0;
  border: 0;
  border-top: 1px solid rgba(38, 192, 218, 0.28);
}

.training-disclosure--waiting .training-room {
  border-top-color: rgba(240, 191, 89, 0.28);
}

.training-room {
  display: grid;
  padding: 22px;
  margin-top: 25px;
  gap: 16px;
  background: linear-gradient(
    135deg,
    rgba(38, 192, 218, 0.09),
    rgba(16, 9, 43, 0.66) 62%
  );
  border: 1px solid rgba(38, 192, 218, 0.5);
}

.training-room__head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.training-room__head .eyebrow {
  margin: 0 0 6px;
}

.training-room__head h3,
.training-room--waiting h3 {
  margin: 0;
  font-size: 21px;
}

.training-room__hint,
.training-room--waiting > p {
  margin: 0;
  color: rgba(238, 235, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.training-room__link-row {
  display: grid;
  padding: 13px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: rgba(16, 9, 43, 0.62);
  border: 1px solid rgba(114, 92, 216, 0.34);
}

.training-room__link-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.training-room__link-row span {
  color: rgba(190, 173, 255, 0.58);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-room__link-row a {
  overflow: hidden;
  color: #7cecff;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-room__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.copy-button {
  padding: 5px 0;
  background: none;
  border: 0;
  color: var(--portal-cyan-text);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--portal-text);
}

.training-room--waiting {
  border-color: rgba(240, 191, 89, 0.48);
}

.training-report {
  padding: 23px;
  background: rgba(16, 9, 43, 0.42);
  border: 1px solid rgba(114, 92, 216, 0.3);
  border-radius: 3px;
}

.training-report__head {
  display: grid;
  padding-bottom: 18px;
  margin-bottom: 1px;
  grid-template-columns: minmax(0, 0.75fr) minmax(230px, 1fr);
  gap: 30px;
  align-items: end;
  border-bottom: 1px solid rgba(114, 92, 216, 0.2);
}

.training-report__head .eyebrow {
  margin: 0 0 6px;
}

.training-report__head h3 {
  margin: 0;
  font-size: 20px;
}

.training-report__head > p {
  margin: 0;
  color: rgba(190, 173, 255, 0.64);
  font-size: 11px;
  line-height: 1.55;
}

.report-box {
  padding: 19px 20px;
  background: rgba(16, 9, 43, 0.55);
  border-left: 2px solid var(--portal-green);
}

.report-box strong {
  color: #86f887;
  font-size: 13px;
}

.report-box p {
  margin: 11px 0 0;
  color: rgba(238, 235, 255, 0.82);
  font-size: 12px;
  line-height: 1.65;
}

.report-box p span {
  color: var(--portal-muted);
  font-weight: 700;
}

.cancellation-note {
  padding: 16px 18px;
  margin-top: 22px;
  background: rgba(255, 119, 157, 0.07);
  border-left: 2px solid rgba(255, 119, 157, 0.72);
}

.cancellation-note span {
  color: #ff9db9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cancellation-note p {
  margin: 7px 0 0;
  color: rgba(238, 235, 255, 0.82);
  font-size: 12px;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  margin-bottom: 20px;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.section-heading .eyebrow {
  margin: 0 0 7px;
}

.section-heading h2 {
  margin: 0;
}

.plain-status {
  display: inline-flex;
  min-height: 28px;
  padding: 6px 10px;
  align-items: center;
  flex: 0 0 auto;
  background: rgba(114, 92, 216, 0.14);
  border: 1px solid rgba(114, 92, 216, 0.5);
  border-radius: 999px;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.plain-status--success {
  background: rgba(4, 239, 6, 0.07);
  border-color: rgba(4, 239, 6, 0.38);
  color: #86f887;
}

.plain-status--warning {
  background: rgba(240, 191, 89, 0.08);
  border-color: rgba(240, 191, 89, 0.42);
  color: var(--portal-warning);
}

.profile-hero {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-cyan),
    var(--portal-purple)
  );
  --card-fill: linear-gradient(
    145deg,
    rgba(38, 192, 218, 0.08),
    rgba(36, 25, 78, 0.98) 48%
  );
  display: grid;
  padding: 30px;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.profile-hero__avatar {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  background: var(--portal-surface-deep);
  border: 1px solid rgba(38, 192, 218, 0.62);
  border-radius: 3px;
  box-shadow: 0 18px 36px rgba(5, 2, 20, 0.28);
}

.profile-hero__content {
  min-width: 0;
}

.profile-hero__title {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.profile-hero__title .eyebrow {
  margin: 0 0 8px;
}

.profile-hero__title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-headline {
  margin: 15px 0 7px;
  color: var(--portal-text);
  font-size: 15px;
  font-weight: 700;
}

.profile-hero__content > .muted {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.65;
}

.profile-tags {
  display: flex;
  margin: 17px 0 20px;
  gap: 7px;
  flex-wrap: wrap;
}

.profile-tags span {
  display: inline-flex;
  min-height: 27px;
  padding: 6px 10px;
  align-items: center;
  background: rgba(38, 192, 218, 0.08);
  border: 1px solid rgba(38, 192, 218, 0.32);
  border-radius: 999px;
  color: #77e3f5;
  font-size: 10px;
  font-weight: 700;
}

.profile-settings-grid {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-setting-card {
  display: flex;
  min-height: 390px;
  padding: 28px;
  flex-direction: column;
}

.profile-setting-card > .muted {
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.65;
}

.profile-setting-card > .portal-form {
  margin-top: auto;
}

.profile-setting-card .portal-form .secondary-button {
  justify-self: start;
}

.telegram-actions {
  display: flex;
  padding-top: 18px;
  margin-top: 18px;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(114, 92, 216, 0.2);
}

.telegram-actions form {
  margin: 0;
}

.profile-details {
  padding: 30px;
}

.profile-moderation-note {
  padding-top: 21px;
  margin: 24px 0 0;
  border-top: 1px solid rgba(114, 92, 216, 0.2);
  font-size: 11px;
  line-height: 1.65;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.profile-grid div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.profile-grid strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.auth-card {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-cyan),
    var(--portal-purple)
  );
  --card-fill: linear-gradient(
    145deg,
    rgba(36, 25, 78, 0.99),
    rgba(22, 14, 53, 0.99)
  );
  width: min(460px, calc(100vw - 32px));
  padding: 36px;
}

.auth-card .portal-logo {
  margin-bottom: 32px;
}

.auth-card .eyebrow {
  margin-top: 0;
}

.auth-card h1 {
  margin-bottom: 27px;
}

.auth-card .portal-form .primary-button {
  width: 100%;
  margin-top: 3px;
}

.auth-card > a:last-child {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 650;
}

.portal-alert {
  padding: 13px 15px;
  margin-bottom: 20px;
  background: rgba(38, 192, 218, 0.12);
  border: 1px solid rgba(38, 192, 218, 0.62);
  border-radius: 3px;
  color: var(--portal-text);
  font-size: 13px;
}

.portal-alert--error {
  background: rgba(255, 119, 157, 0.1);
  border-color: rgba(255, 119, 157, 0.6);
}

.portal-alert--warning {
  background: rgba(240, 191, 89, 0.1);
  border-color: rgba(240, 191, 89, 0.58);
}

.portal-alert strong,
.portal-alert p {
  margin-bottom: 0;
}

.portal-alert p {
  margin-top: 5px;
  color: rgba(238, 235, 255, 0.82);
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-card {
  display: block;
  margin-bottom: 0;
  color: var(--portal-text);
  transition: filter 160ms ease, transform 160ms ease;
}

.work-card:hover {
  color: var(--portal-text);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.work-card--skill {
  --card-stroke: linear-gradient(
    135deg,
    rgba(38, 192, 218, 0.9),
    rgba(114, 92, 216, 0.88)
  );
}

.work-card__top,
.page-head--detail,
.result-asset summary {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.work-card__top .eyebrow {
  margin-top: 0;
}

.work-card__deadline {
  color: #f5d184;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.work-card__facts {
  display: grid;
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: 0;
}

.work-card__facts > div {
  display: grid;
  min-width: 0;
  padding: 0 22px;
  gap: 7px;
}

.work-card__facts > div:first-child {
  padding-left: 0;
}

.work-card__facts > div:last-child {
  padding-right: 0;
}

.work-card__facts > div + div {
  border-left: 1px solid rgba(114, 92, 216, 0.3);
}

.work-card__facts small,
.deadline-panel small,
.brief-facts dt {
  color: rgba(190, 173, 255, 0.62);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work-card__facts strong {
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.3;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(190, 173, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--portal-text);
}

.deadline-panel {
  display: grid;
  min-width: 230px;
  padding: 18px 20px;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(38, 192, 218, 0.1),
    rgba(36, 25, 78, 0.9)
  );
  border: 1px solid rgba(38, 192, 218, 0.58);
}

.deadline-panel strong {
  font-size: 17px;
}

.skill-brief,
.result-workspace {
  padding: 30px;
}

.brief-facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(114, 92, 216, 0.24);
}

.brief-facts > div {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(16, 9, 43, 0.78);
}

.brief-facts__wide {
  grid-column: 1 / -1;
}

.brief-facts dd {
  margin: 7px 0 0;
  color: var(--portal-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.break-anywhere {
  overflow-wrap: anywhere;
}

.attention-card {
  --card-stroke: linear-gradient(
    135deg,
    var(--portal-cyan),
    var(--portal-warning)
  );
  --card-fill: linear-gradient(
    135deg,
    rgba(63, 48, 120, 0.99),
    rgba(43, 31, 88, 0.99)
  );
  padding: 31px;
}

.attention-card .eyebrow {
  margin: 0 0 10px;
  color: #7cecff;
  font-size: 12px;
}

.attention-card h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.attention-card > p:not(.eyebrow) {
  max-width: 780px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.65;
}

.result-workspace .section-heading {
  margin-bottom: 8px;
}

.trainer-result-upload {
  display: grid;
  padding: 20px;
  margin-top: 22px;
  gap: 14px;
  background: rgba(16, 9, 43, 0.52);
  border: 1px solid rgba(114, 92, 216, 0.38);
}

.result-dropzone {
  display: grid;
  min-height: 150px;
  padding: 28px;
  gap: 7px;
  place-content: center;
  background: rgba(38, 192, 218, 0.045);
  border: 1px dashed rgba(38, 192, 218, 0.72);
  color: var(--portal-text);
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease;
}

.result-dropzone:hover {
  background: rgba(38, 192, 218, 0.09);
  border-color: var(--portal-cyan);
}

.result-dropzone strong {
  color: #7cecff;
  font-size: 18px;
}

.result-dropzone span,
.result-upload-file {
  color: rgba(190, 173, 255, 0.7);
  font-size: 11px;
}

.result-progress {
  height: 5px;
  overflow: hidden;
  background: rgba(114, 92, 216, 0.22);
}

.result-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--portal-cyan), var(--portal-heading));
  box-shadow: 0 0 12px rgba(38, 192, 218, 0.5);
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.result-assets {
  display: grid;
  margin-top: 22px;
  gap: 12px;
}

.result-asset {
  overflow: hidden;
  background: rgba(16, 9, 43, 0.54);
  border: 1px solid rgba(114, 92, 216, 0.46);
}

.result-asset summary {
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.result-asset summary::-webkit-details-marker {
  display: none;
}

.result-asset summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.result-asset summary strong,
.result-asset summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-asset summary small {
  color: rgba(190, 173, 255, 0.62);
  font-size: 11px;
}

.result-asset__body {
  display: grid;
  padding: 20px;
  gap: 15px;
  border-top: 1px solid rgba(114, 92, 216, 0.3);
}

.result-admin-preview {
  width: 100%;
  max-height: 620px;
  background: #080419;
}

.review-note {
  padding: 15px 17px;
  background: rgba(240, 191, 89, 0.09);
  border-left: 2px solid var(--portal-warning);
}

.review-note p,
.success-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.success-note {
  color: #86f887;
}

.error-text {
  color: #ff9db9 !important;
}

@media (max-width: 1100px) {
  .portal-sidebar {
    width: 250px;
  }

  .portal-main {
    width: calc(100% - 250px);
    padding-right: 30px;
    padding-left: 30px;
    margin-left: 250px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-check-metric {
    grid-column: 1 / -1;
  }

  .training-facts {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 1fr);
  }

  .training-facts__duration {
    padding-top: 19px !important;
    padding-left: 0 !important;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(114, 92, 216, 0.2);
    border-left: 0 !important;
  }

  .profile-hero {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .profile-hero__avatar {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 900px) {
  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: sticky;
    inset: 0 auto auto;
    display: grid;
    width: 100%;
    min-height: 0;
    padding: 12px 16px 8px;
    grid-template-areas:
      "brand user"
      "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    background: rgba(16, 9, 43, 0.95);
    border-right: 0;
    border-bottom: 1px solid rgba(114, 92, 216, 0.44);
    box-shadow: 0 10px 34px rgba(5, 2, 20, 0.28);
    backdrop-filter: blur(16px);
  }

  .portal-sidebar::before {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 0;
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, var(--portal-cyan), transparent);
  }

  .portal-sidebar__brand {
    display: flex;
    min-width: 0;
    grid-area: brand;
    flex-direction: column;
    justify-content: center;
  }

  .portal-logo {
    font-size: 15px;
  }

  .portal-logo::after {
    height: 1px;
    margin-top: 6px;
  }

  .portal-role {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .portal-nav {
    display: grid;
    margin-top: 10px;
    grid-area: nav;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .portal-nav a {
    min-height: 42px;
    padding: 9px 5px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    font-size: 10.5px;
    text-align: center;
  }

  .portal-nav a.active {
    transform: none;
  }

  .portal-nav__index {
    display: none;
  }

  .portal-user {
    padding: 0;
    margin: 0;
    grid-area: user;
    grid-template-areas: "avatar copy logout";
    grid-template-columns: 36px minmax(0, 112px) auto;
    gap: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-avatar {
    width: 36px;
    height: 36px;
  }

  .portal-user__copy strong {
    font-size: 10px;
  }

  .portal-user__copy small {
    display: none;
  }

  .portal-logout {
    font-size: 10px;
  }

  .portal-main {
    width: 100%;
    min-height: calc(100vh - 104px);
    padding: 34px 20px 64px;
    margin: 0;
  }

  .portal-main--auth {
    min-height: 100vh;
  }

  .schedule-create-card .portal-form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --portal-card-shape: polygon(
      0 0,
      calc(100% - 12px) 0,
      100% 12px,
      100% 100%,
      12px 100%,
      0 calc(100% - 12px)
    );
  }

  .page-head {
    display: grid;
    margin-bottom: 27px;
    gap: 20px;
    align-items: start;
  }

  .page-head h1,
  .auth-card h1 {
    font-size: clamp(30px, 9vw, 39px);
  }

  .page-head__actions,
  .page-head__actions .secondary-button {
    width: 100%;
  }

  .dashboard-grid,
  .profile-grid,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .skill-check-metric {
    grid-column: auto;
  }

  .metric-card {
    min-height: 220px;
  }

  .next-session-card__content {
    display: grid;
    align-items: start;
  }

  .next-session-card__content .primary-button {
    width: 100%;
  }

  .schedule-create-card .portal-form--grid,
  .portal-form--grid {
    grid-template-columns: 1fr;
  }

  .portal-form__actions {
    display: grid;
    gap: 11px;
  }

  .portal-form__actions .primary-button {
    width: 100%;
  }

  .offer-facts,
  .training-facts {
    grid-template-columns: 1fr;
  }

  .training-room__link-row {
    grid-template-columns: 1fr;
  }

  .training-room__link-row a {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .training-room__actions {
    display: grid;
    align-items: stretch;
  }

  .training-room__actions .primary-button,
  .training-room__actions .access-key-wrap {
    width: 100%;
  }

  .offer-actions {
    grid-template-columns: 1fr;
  }

  .offer-actions > form:first-child .primary-button,
  .decline-form .secondary-button {
    width: 100%;
  }

  .decline-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .training-facts > div {
    padding: 17px 0;
  }

  .training-facts > div:first-child {
    padding-top: 0;
  }

  .training-facts > div:last-child {
    padding-bottom: 0;
  }

  .training-facts > div + div,
  .training-facts__duration {
    grid-column: auto;
    border-top: 1px solid rgba(114, 92, 216, 0.2);
    border-left: 0;
  }

  .training-report__head {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .profile-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .profile-hero__avatar {
    width: 112px;
    height: 112px;
  }

  .profile-hero__title {
    display: grid;
    gap: 12px;
  }

  .profile-setting-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .portal-sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .portal-user {
    grid-template-areas: "avatar logout";
    grid-template-columns: 34px auto;
  }

  .portal-avatar {
    width: 34px;
    height: 34px;
  }

  .portal-user__copy {
    display: none;
  }

  .portal-logout {
    min-height: 34px;
    padding: 5px;
  }

  .portal-nav a {
    min-height: 40px;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 9.5px;
    letter-spacing: -0.02em;
  }

  .portal-main {
    padding: 28px 13px 56px;
  }

  .portal-card,
  .schedule-create-card,
  .schedule-list-card,
  .next-session-card,
  .offer-card,
  .training-card {
    padding: 20px;
  }

  .metric-card {
    min-height: 205px;
  }

  .metric-card__value {
    font-size: 48px;
  }

  .section-number,
  .metric-card__number {
    font-size: 31px;
  }

  .slot-row {
    display: grid;
    padding: 16px 0;
    gap: 13px;
    align-items: start;
  }

  .slot-response {
    justify-content: flex-start;
    text-align: left;
  }

  .slot-row__remove {
    margin-left: 24px;
  }

  .filter-tabs {
    width: calc(100% + 13px);
    padding-right: 13px;
    scroll-snap-type: x proximity;
  }

  .filter-tabs a {
    scroll-snap-align: start;
  }

  .offer-card__header .section-number {
    display: none;
  }

  .action-row {
    display: grid;
    align-items: start;
  }

  .action-row .primary-button {
    width: 100%;
  }

  .access-key-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .training-room {
    padding: 17px;
  }

  .training-room__head {
    display: grid;
  }

  .training-report {
    padding: 17px;
  }

  .profile-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-hero__avatar {
    width: 104px;
    height: 104px;
  }

  .profile-hero__content .secondary-button,
  .profile-setting-card .portal-form .secondary-button,
  .telegram-actions,
  .telegram-actions form,
  .telegram-actions .primary-button {
    width: 100%;
  }

  .telegram-actions {
    display: grid;
    align-items: stretch;
  }

  .auth-card {
    width: calc(100vw - 24px);
    padding: 28px 22px;
  }
}

@media (max-width: 680px) {
  .page-head--detail,
  .work-card__top {
    display: grid;
  }

  .deadline-panel {
    width: 100%;
    min-width: 0;
  }

  .work-card__facts,
  .brief-facts {
    grid-template-columns: 1fr;
  }

  .work-card__facts > div {
    padding: 15px 0;
  }

  .work-card__facts > div:first-child {
    padding-top: 0;
  }

  .work-card__facts > div:last-child {
    padding-bottom: 0;
  }

  .work-card__facts > div + div {
    border-top: 1px solid rgba(114, 92, 216, 0.3);
    border-left: 0;
  }

  .brief-facts__wide {
    grid-column: auto;
  }

  .skill-brief,
  .result-workspace,
  .attention-card {
    padding: 21px;
  }

  .result-dropzone {
    min-height: 132px;
    padding: 20px 14px;
  }

  .button-row,
  .button-row .primary-button,
  .button-row .secondary-button,
  .submit-review-form .primary-button {
    width: 100%;
  }

  .result-asset summary {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
