*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: #f5f7fa;
  color: #1c2430;
  font-family: "Manrope", sans-serif;
}
button {
  font-family: inherit;
}
.exchange {
  display: flex;
  gap: 20px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 20px;
}
.sidebar,
.workspace {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
}
.sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 260px;
  padding: 24px 16px;
}
.sidebar-label {
  margin: 4px 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b95a5;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-link {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1c2430;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: #f5f7fa;
  outline: none;
}
.sidebar-link.is-active {
  background: #f5f7fa;
  box-shadow: inset 0 0 0 1px rgba(28, 36, 48, 0.04);
}
.workspace {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 28px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef1f5;
}
.workspace-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #f5f7fa;
}
.mini-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 36, 48, 0.08);
  font-weight: 700;
}
.mini-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mini-name {
  font-weight: 700;
}
.mini-role {
  font-size: 13px;
  color: #6d7786;
}
.tab {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.tab[hidden] {
  display: none !important;
}
.check-screen {
  padding-top: 28px;
}
.check-screen[hidden] {
  display: none !important;
}
.check-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}
.check-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.check-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #6d7786;
}
.check-field select,
.check-field input,
.check-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f5f7fa;
  color: #1c2430;
  font: inherit;
  font-weight: 600;
}
.check-field textarea {
  resize: vertical;
  min-height: 96px;
}
.check-filters .check-field {
  width: 220px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.check-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 0;
  border-radius: 16px;
  background: #f5f7fa;
  box-shadow: 0 8px 20px rgba(28, 36, 48, 0.04);
  text-align: left;
  cursor: pointer;
}
.check-card:hover,
.check-card:focus-visible {
  background: #eef2f7;
  outline: none;
}
.check-card[data-available="0"] {
  cursor: default;
}
.check-card[data-available="0"]:hover,
.check-card[data-available="0"]:focus-visible {
  background: #f5f7fa;
}
.check-card-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.check-card[data-task="15"] .check-card-number {
  font-size: 22px;
  line-height: 1.2;
}
.check-card-count {
  color: #6d7786;
  font-size: 14px;
  font-weight: 600;
}
.check-card-price {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 36, 48, 0.06);
  font-size: 13px;
  font-weight: 700;
}
.check-back {
  margin-bottom: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #6d7786;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.check-back:hover,
.check-back:focus-visible {
  color: #1c2430;
  outline: none;
}
.check-task + .check-task {
  margin-top: 20px;
}
.check-task-heading {
  margin: 0 0 12px;
  font-size: 18px;
}
.check-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.check-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
  background: #f5f7fa;
}
.check-column h3 {
  margin: 0;
  font-size: 16px;
}
.check-slot {
  min-height: 140px;
  padding: 15px 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 36, 48, 0.04);
  line-height: 1.65;
  white-space: pre-wrap;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 10px;
  margin-top: 12px;
}
.photo-thumb {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7fa;
  text-decoration: none;
}
.photo-thumb a {
  display: block;
  width: 80px;
  height: 80px;
}
.photo-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.16);
  color: #1c2430;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.check-photo .photo-grid {
  margin-top: 0;
}
.check-empty {
  color: #6d7786;
  font-weight: 600;
}
.check-photo {
  min-height: 220px;
}
.check-column .check-field input,
.check-column .check-field textarea {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 36, 48, 0.04);
}
.check-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.check-finish {
  align-self: flex-start;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #1c2430;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.check-finish:hover,
.check-finish:focus-visible {
  background: #2a3444;
  outline: none;
}
#tab-chats:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 20px;
}
.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f7fa;
}
.chat-dialogs {
  width: 250px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid #eef1f5;
}
.chat-dialog {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: transparent;
  color: #1c2430;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.chat-dialog:hover,
.chat-dialog:focus-visible {
  background: #f5f7fa;
  outline: none;
}
.chat-dialog.is-active {
  background: #fdecea;
  box-shadow: inset 3px 0 0 #c62828;
}
.chat-empty {
  margin: 0;
  padding: 16px;
  color: #6d7786;
  font-size: 14px;
  font-weight: 600;
}
.chat-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-head {
  flex-shrink: 0;
  padding: 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f5;
}
.chat-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.chat-bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
}
.chat-bubble.is-student {
  align-self: flex-start;
  background: #e8ecf1;
  color: #1c2430;
}
.chat-bubble.is-curator {
  align-self: flex-end;
  background: #c62828;
  color: #ffffff;
}
.chat-sender,
.chat-text {
  margin: 0;
}
.chat-sender {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}
.chat-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble img {
  display: block;
  max-width: 220px;
  margin-top: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.chat-compose {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #eef1f5;
}
.chat-compose input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f5f7fa;
  color: #1c2430;
  font: inherit;
  font-weight: 600;
}
.chat-compose input[type="file"] {
  max-width: 180px;
  font: inherit;
  font-size: 13px;
}
.chat-compose button {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #c62828;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chat-compose button:hover,
.chat-compose button:focus-visible {
  background: #b71c1c;
  outline: none;
}
.chat-compose button:disabled,
.chat-compose input:disabled {
  cursor: default;
  opacity: 0.55;
}
.payouts-layout {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}
.payouts-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.payout-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
}
.payout-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
#current-balance-amount {
  margin: 12px 0 16px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}
.payout-withdraw {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
#payouts-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.payout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}
.payout-title {
  font-size: 16px;
  font-weight: 700;
}
.payout-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.payout-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.payout-badge-subject {
  background: #e0f2fe;
  color: #0369a1;
}
.payout-badge-exam {
  background: #dcfce7;
  color: #15803d;
}
.payout-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.payout-amount {
  color: #16a34a;
  font-weight: 700;
}
.payout-date {
  font-size: 13px;
  color: #94a3b8;
}
#income-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  margin-top: 20px;
}
.income-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  gap: 6px;
}
.income-bar-slot {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.income-bar {
  width: 12px;
  background: #22c55e;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.income-month {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}
.profile-side,
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
}
.profile-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.profile-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  color: #334155;
  font-size: 36px;
  font-weight: 700;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#profile-fio {
  margin: 0;
  font-size: 20px;
}
.profile-role {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}
.profile-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.profile-logout:hover,
.profile-logout:focus-visible {
  background: #e2e8f0;
  outline: none;
}
.profile-activity-caption {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
#activity-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  margin-top: 20px;
}
.activity-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  gap: 8px;
}
.activity-bar-slot {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.activity-bar {
  position: relative;
  width: 16px;
  background: #0ea5e9;
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.activity-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.activity-bar:hover .activity-tip {
  opacity: 1;
}
.activity-month {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1;
}
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-action {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.profile-action:hover,
.profile-action:focus-visible {
  background: #e2e8f0;
  outline: none;
}
.profile-action:disabled {
  cursor: default;
  opacity: 0.6;
}
.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.profile-field-wide {
  grid-column: 1 / -1;
}
.profile-field span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.profile-field input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1c2430;
  font: inherit;
  font-weight: 600;
}
.profile-field input:disabled {
  color: #94a3b8;
}
.profile-subject-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  color: #1c2430;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.profile-subject-mark {
  color: #94a3b8;
  transition: transform 0.15s ease;
}
.profile-subject.is-open .profile-subject-mark {
  transform: rotate(180deg);
}
.profile-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}
.profile-tasks[hidden] {
  display: none !important;
}
.profile-task {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.profile-empty {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}
#profile-documents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #1c2430;
  text-decoration: none;
}
.profile-doc-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}
.profile-doc-icon.is-pdf {
  background: #fee2e2;
  color: #b91c1c;
}
.profile-doc-icon.is-image {
  background: #e0f2fe;
  color: #0369a1;
}
.profile-doc-name {
  min-width: 0;
  font-weight: 700;
  word-break: break-word;
}
.profile-file {
  margin-top: 14px;
  font: inherit;
  font-size: 14px;
}
@media (max-width: 800px) {
  .exchange {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-head h1 {
    font-size: 24px;
  }
  .check-split {
    grid-template-columns: 1fr;
  }
  .payouts-layout,
  .profile-layout,
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .chat-layout {
    flex-direction: column;
    min-height: 0;
  }
  .chat-dialogs {
    width: 100%;
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid #eef1f5;
  }
  .chat-compose {
    flex-wrap: wrap;
  }
  .chat-compose input[type="text"] {
    flex-basis: 100%;
  }
}