:root {
  --ps-bg: #f4f1ea;
  --ps-surface: #ffffff;
  --ps-surface-soft: #f7fbfa;
  --ps-text: #1f2a28;
  --ps-muted: #66716f;
  --ps-line: #dbe6e3;
  --ps-brand: #0f8f88;
  --ps-brand-deep: #0a5a56;
  --ps-accent: #f3c66f;
  --ps-shadow: 0 18px 45px rgba(21, 47, 44, 0.08);
}

#pedagogicalStaffApp {
  color: var(--ps-text);
}

.ps-shell {
  position: relative;
}

.ps-hero {
  background:
    radial-gradient(circle at top right, rgba(243, 198, 111, 0.35), transparent 28%),
    linear-gradient(135deg, #0c6e69 0%, #169f97 100%);
  border-radius: 18px;
  color: #fff;
  padding: 20px 22px 18px;
  box-shadow: var(--ps-shadow);
  overflow: hidden;
}

.ps-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-hero__title {
  margin: 12px 0 8px;
  color: #fff !important;
  font-size: 26px;
  line-height: 1.2;
}

.ps-hero__lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.ps-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.ps-chip--link,
.ps-chip--link:link,
.ps-chip--link:visited {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.ps-chip--link:hover {
  background: #fff;
  color: var(--ps-brand-deep);
  text-decoration: none;
}

.ps-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin: 22px 0 24px;
}

.ps-search {
  position: relative;
}

.ps-search input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ps-line);
  background: #fff;
  padding: 0 18px;
  font-size: 15px;
  color: var(--ps-text);
  box-shadow: 0 8px 24px rgba(21, 47, 44, 0.05);
}

.ps-search input:focus {
  border-color: var(--ps-brand);
  box-shadow: 0 0 0 4px rgba(15, 143, 136, 0.12);
}

.ps-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(21, 47, 44, 0.05);
}

.ps-tab {
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ps-muted);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.ps-tab.is-active {
  background: var(--ps-brand);
  color: #fff;
}

.ps-grid {
  display: grid;
  gap: 18px;
}

.ps-panel {
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  box-shadow: var(--ps-shadow);
  padding: 22px;
}

.ps-section-title {
  margin: 0 0 14px;
  color: var(--ps-brand-deep) !important;
  font-size: 22px;
}

.ps-section-subtitle {
  margin: 0 0 20px;
  color: var(--ps-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ps-accordions {
  display: grid;
  gap: 14px;
}

.ps-accordion {
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  background: var(--ps-surface-soft);
  overflow: hidden;
}

.ps-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ps-accordion__aside,
.ps-course__aside {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ps-accordion summary::-webkit-details-marker,
.ps-course summary::-webkit-details-marker,
.ps-teacher details summary::-webkit-details-marker {
  display: none;
}

.ps-accordion__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-text);
}

.ps-accordion__hint,
.ps-course__hint {
  margin-top: 4px;
  color: var(--ps-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ps-accordion__count,
.ps-course__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 143, 136, 0.12);
  color: var(--ps-brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.ps-summary-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ps-brand);
  border-bottom: 2px solid var(--ps-brand);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.ps-accordion[open] .ps-summary-arrow,
.ps-course[open] .ps-summary-arrow,
.ps-teacher details[open] .ps-summary-arrow {
  transform: rotate(-135deg);
}

.ps-accordion__body {
  padding: 0 16px 16px;
}

.ps-courses {
  display: grid;
  gap: 12px;
}

.ps-course {
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  background: #fff;
}

.ps-course summary {
  list-style: none;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.ps-course__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
}

.ps-course__title a {
  color: var(--ps-brand-deep);
  text-decoration: none;
}

.ps-course__title a:hover {
  color: var(--ps-brand);
  text-decoration: underline;
}

.ps-course__meta {
  color: var(--ps-muted);
  font-size: 13px;
}

.ps-course__body {
  padding: 0 18px 18px;
}

.ps-teacher-list {
  display: grid;
  gap: 12px;
}

.ps-mini-card,
.ps-teacher {
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  background: #fff;
}

.ps-mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.ps-avatar,
.ps-avatar--empty {
  width: 72px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #dfe8e6;
}

.ps-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-brand);
  font-size: 28px;
  font-weight: 700;
}

.ps-mini-card__name,
.ps-teacher__name {
  margin: 0;
  color: var(--ps-brand-deep) !important;
  font-size: 18px;
}

.ps-mini-card__name a,
.ps-teacher__name a {
  color: inherit;
  text-decoration: none;
}

.ps-mini-card__name a:hover,
.ps-teacher__name a:hover {
  color: var(--ps-brand);
  text-decoration: underline;
}

.ps-meta-line {
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ps-mini-card__link,
.ps-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ps-brand);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ps-mini-card__link:hover,
.ps-card-link:hover {
  background: var(--ps-brand-deep);
}

.ps-teachers {
  display: grid;
  gap: 14px;
}

.ps-teacher {
  overflow: hidden;
}

.ps-teacher details summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.ps-teacher__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ps-teacher__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ps-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(15, 143, 136, 0.1);
  color: var(--ps-brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.ps-pill--empty {
  background: rgba(102, 113, 111, 0.1);
  color: var(--ps-muted);
}

.ps-no-courses {
  color: var(--ps-muted);
  font-size: 13px;
  font-style: italic;
  padding: 8px 0;
}

.ps-teacher__body {
  padding: 0 18px 18px 122px;
}

.ps-summary {
  color: var(--ps-text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.ps-block-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ps-muted);
  margin: 16px 0 10px;
}

.ps-tags,
.ps-course-tags {
  display: grid;
  gap: 8px;
}

.ps-tag,
.ps-course-tag {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5f4;
  color: var(--ps-text);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.ps-course-tag:hover {
  color: var(--ps-brand);
  text-decoration: underline;
}

.ps-empty,
.ps-loading {
  border: 1px dashed var(--ps-line);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--ps-muted);
  background: var(--ps-surface-soft);
}

.ps-footer-note {
  margin-top: 18px;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .ps-toolbar {
    grid-template-columns: 1fr;
  }

  .ps-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .ps-tab {
    flex: 1;
  }

  .ps-mini-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ps-mini-card__link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .ps-teacher details summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ps-teacher__body {
    padding-left: 18px;
  }
}

@media (max-width: 767px) {
  .ps-hero {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .ps-hero__title {
    font-size: 22px;
  }

  .ps-panel {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .ps-course summary,
  .ps-accordion summary {
    padding: 14px 15px;
  }

  .ps-teacher details summary {
    padding: 15px;
  }

  .ps-teacher__name,
  .ps-mini-card__name {
    font-size: 16px;
  }
}
