/* Teacher profile workspace readability v1
   Uses wide screens efficiently while keeping the profile compact and readable. */

body:has(.profile-page) .topbar {
  min-height: 72px;
  padding-block: 7px;
}

body:has(.profile-page) .brand {
  font-size: 21px;
}

body:has(.profile-page) .brand-row .mono {
  font-size: 10px;
  letter-spacing: 0;
}

body:has(.profile-page) .top-nav-button {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 14px;
}

.profile-page {
  width: min(1760px, 100%);
  padding: 24px 28px 56px;
}

.profile-hero {
  margin-bottom: 16px;
  padding: 18px 22px;
}

.profile-back {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 14px;
}

.profile-hero-main {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 22px;
}

.profile-hero-avatar {
  width: 108px;
  height: 108px;
}

.profile-hero-avatar > .synny-image {
  width: 100px;
  height: 100px;
}

.profile-hero-copy .mono,
.profile-section-heading .mono {
  font-size: 12px;
  letter-spacing: 0;
}

.profile-hero-copy h1 {
  margin: 6px 0 5px;
  font-size: 42px;
}

.profile-hero-copy p {
  font-size: 17px;
  line-height: 1.45;
}

.profile-role-chip {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 13px;
}

.profile-completion {
  grid-template-columns: minmax(0, 320px);
  margin-top: 10px;
}

.profile-completion > span {
  font-size: 13px;
}

.profile-completion > i {
  height: 7px;
}

.profile-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(400px, .82fr);
  align-items: start;
  gap: 16px;
}

.profile-avatar-section,
.profile-details-section {
  min-height: 0;
  align-self: start;
  padding: 20px;
}

.profile-section-heading {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}

.profile-section-heading-wide {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.profile-heading-icon {
  width: 48px;
  height: 48px;
}

.profile-heading-icon .profile-ui-icon {
  width: 23px;
  height: 23px;
}

.profile-section-heading h2 {
  margin: 3px 0 4px;
  font-size: 22px;
}

.profile-section-heading p {
  font-size: 15px;
  line-height: 1.45;
}

.profile-avatar-grid {
  gap: 12px;
}

.profile-avatar-choice {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  min-height: 98px;
  padding: 10px;
  cursor: pointer;
}

.profile-avatar-art {
  width: 76px;
  height: 76px;
}

.profile-avatar-art .synny-image {
  width: 72px;
  height: 72px;
}

.profile-avatar-choice strong {
  font-size: 15px;
}

.profile-avatar-choice small {
  font-size: 12px;
  line-height: 1.4;
}

.profile-avatar-check {
  width: 24px;
  height: 24px;
}

.profile-field {
  gap: 8px;
  margin-bottom: 14px;
}

.profile-field > span:first-child {
  font-size: 14px;
}

.profile-field input,
.profile-custom-interest input,
.profile-readonly-value {
  min-height: 50px;
  font-size: 16px;
}

.profile-field small,
.profile-trust-row small {
  font-size: 12px;
  line-height: 1.4;
}

.profile-readonly-value b,
.profile-trust-row strong {
  font-size: 14px;
}

.profile-trust-row {
  min-height: 56px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.profile-save-button {
  min-height: 50px;
  font-size: 15px;
}

.profile-course-section {
  display: grid;
  grid-template-columns: minmax(320px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 20px;
}

.profile-course-section .profile-section-heading {
  margin-bottom: 0;
}

.profile-course-list {
  gap: 12px;
}

button.profile-course-pill {
  min-width: 260px;
  min-height: 64px;
  padding: 11px 14px;
}

.profile-course-pill strong {
  font-size: 15px;
}

.profile-course-pill small,
.profile-course-empty {
  font-size: 12px;
}

@media (max-width: 1280px) {
  .profile-page {
    padding-inline: 22px;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
  }

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

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

  .profile-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-course-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  body:has(.profile-page) .topbar {
    min-height: 64px;
  }

  .profile-page {
    padding: 14px 12px 56px;
  }

  .profile-hero-main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-hero-avatar {
    width: 82px;
    height: 82px;
  }

  .profile-hero-avatar > .synny-image {
    width: 76px;
    height: 76px;
  }

  .profile-hero-copy h1 {
    font-size: 30px;
  }

  .profile-hero-copy p,
  .profile-section-heading p {
    font-size: 14px;
  }

  .profile-avatar-section,
  .profile-details-section,
  .profile-course-section {
    padding: 15px;
  }

  .profile-section-heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .profile-heading-icon {
    width: 44px;
    height: 44px;
  }

  .profile-section-heading h2 {
    font-size: 20px;
  }

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

  .profile-avatar-choice {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 88px;
  }

  .profile-avatar-art,
  .profile-avatar-art .synny-image {
    width: 64px;
    height: 64px;
  }

  button.profile-course-pill {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .profile-avatar-grid {
    grid-template-columns: 1fr;
  }
}
