
.pm-app {
      --bs-blue: #0d6efd;
      --bs-indigo: #6610f2;
      --bs-purple: #a597e7;
      --bs-pink: #ea77ad;
      --bs-red: #dc3545;
      --bs-orange: #fd7e14;
      --bs-yellow: #ffc107;
      --bs-green: #198754;
      --bs-teal: #20c997;
      --bs-cyan: #0dcaf0;
      --bg: #f7f7fb;
      --card: #ffffff;
      --text: #243043;
      --muted: #6c7890;
      --line: #e8ebf4;
      --shadow: 0 8px 30px rgba(56, 68, 96, 0.08);
      --radius: 18px;
    }
.pm-app * { box-sizing: border-box; }
.pm-app {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top right, rgba(13,202,240,.08), transparent 30%),
        radial-gradient(circle at top left, rgba(234,119,173,.08), transparent 30%),
        linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
      color: var(--text);
    }
.pm-app .pm-wrap { max-width: 1400px; margin: 0 auto; padding: 24px; }
.pm-app .pm-topbar, .pm-app .pm-panel, .pm-app .pm-filters, .pm-app .pm-modal-box {
      background: rgba(255,255,255,0.9);
      border: 1px solid rgba(219,226,240,.9);
      box-shadow: var(--shadow);
    }
.pm-app .pm-topbar {
      padding: 20px 22px;
      border-radius: 24px;
      margin-bottom: 20px;
    }
.pm-app .pm-topbar h1 { margin: 0 0 6px; font-size: 28px; color: #37445c; }
.pm-app .pm-topbar p { margin: 0; color: var(--muted); font-size: 15px; }
.pm-app .pm-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pm-app .pm-summary-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 18px;
      border: 1px solid var(--line);
      min-height: 108px;
      position: relative;
      overflow: hidden;
    }
.pm-app .pm-summary-card::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: 7px;
      border-radius: 20px;
      background: var(--accent, var(--bs-purple));
    }
.pm-app .pm-summary-label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.pm-app .pm-summary-value { font-size: 32px; font-weight: 700; color: #2d3b51; line-height: 1; margin-bottom: 8px; }
.pm-app .pm-summary-note { font-size: 12px; color: var(--muted); }
.pm-app .pm-filters {
      display: grid;
      grid-template-columns: 1.3fr 1fr 1fr 1fr;
      gap: 14px;
      padding: 16px;
      border-radius: 20px;
      margin-bottom: 22px;
    }
.pm-app .pm-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pm-app .pm-field input, .pm-app .pm-field select {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid #dbe2f0;
      border-radius: 12px;
      background: #fcfdff;
      font-size: 14px;
      color: var(--text);
      outline: none;
    }
.pm-app .pm-field input:focus, .pm-app .pm-field select:focus { border-color: var(--bs-purple); box-shadow: 0 0 0 4px rgba(165, 151, 231, 0.12); }
.pm-app .pm-panel {
      border-radius: 24px;
      padding: 18px;
      width: 100%;
    }
.pm-app .pm-panel h2 { margin: 4px 0 16px; font-size: 20px; color: #394761; }
.pm-app .pm-class-chips { display: flex; gap: 10px; flex-wrap: pm-wrap; margin-bottom: 14px; }
.pm-app .pm-compact-chips { margin-top: -2px; }
.pm-app .pm-chip {
      border: 1px solid var(--line);
      background: #fafbff;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      color: #4f5f78;
    }
.pm-app .pm-chip-note { color: #7b869e; }
.pm-app .pm-chip-class-2 { background: rgba(13,110,253,.08); }
.pm-app .pm-chip-class-3 { background: rgba(234,119,173,.10); }
.pm-app .pm-chip-class-4 { background: rgba(32,201,151,.10); }
.pm-app .pm-chip-class-5 { background: rgba(253,126,20,.10); }
.pm-app .pm-student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; align-items: start; }
.pm-app .pm-student-card {
      border: 1px solid var(--line);
      background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
      border-radius: 18px;
      padding: 12px;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
.pm-app .pm-student-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(47, 59, 90, 0.10); border-color: #d5dcef; }
.pm-app .pm-avatar, .pm-app .pm-detail-avatar-fill, .pm-app .pm-avatar-fill, .pm-app .pm-fallback-initials {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      display: grid;
      place-items: center;
      font-weight: 700;
      color: #fff;
      object-fit: cover;
      background: linear-gradient(135deg, rgba(13,110,253,.7), rgba(165,151,231,.85));
    }
.pm-app .pm-avatar {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 16px;
      font-size: 30px;
      margin-bottom: 10px;
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
.pm-app .pm-avatar-fill, .pm-app .pm-detail-avatar-fill {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }
.pm-app .pm-fallback-initials {
      position: absolute;
      inset: 0;
      z-index: 1;
      font-size: inherit;
    }
.pm-app .pm-avatar img.pm-avatar-fill, .pm-app .pm-detail-avatar img.pm-detail-avatar-fill, .pm-app img.pm-detail-avatar-fill {
      z-index: 2;
      display: block;
      background: #eef3ff;
    }
.pm-app .pm-avatar::after {
      content: 'Image'; position: absolute; bottom: 8px; right: 10px; font-size: 11px; font-weight: 600; letter-spacing: .5px; opacity: .85;
    }
.pm-app .pm-student-name { font-size: 14px; font-weight: 700; color: #344158; min-height: 34px; }
.pm-app .pm-student-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.pm-app .pm-badge {
      display: inline-block; margin-top: 8px; font-size: 11px; padding: 6px 10px; border-radius: 999px; color: #243043; background: #eef3ff; border: 1px solid #dde7ff;
    }
.pm-app .pm-level-elite { background: rgba(255, 193, 7, .18); border-color: rgba(255,193,7,.40); }
.pm-app .pm-level-advanced { background: rgba(13, 202, 240, .22); border-color: rgba(13,202,240,.45); color:#0b5e70; }
.pm-app .pm-level-graded { background: rgba(25, 135, 84, .14); border-color: rgba(25,135,84,.32); color:#165c3e; }
.pm-app .pm-level-emerging { background: rgba(165, 151, 231, .16); border-color: rgba(165,151,231,.35); }
.pm-app .pm-level-notpart { background: rgba(253, 126, 20, .16); border-color: rgba(253,126,20,.35); }
.pm-app .pm-student-section { margin-bottom: 34px; }
.pm-app .pm-student-section-title {
      margin: 0 0 14px;
      padding: 14px 16px;
      border-radius: 16px;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.25;
      color: #334055;
      border: 1px solid var(--line);
      display: block;
      position: relative;
      z-index: 2;
      overflow-wrap: anywhere;
    }
.pm-app .pm-student-section-title.pm-level-elite { background: linear-gradient(90deg, rgba(255,193,7,.16), rgba(255,193,7,.06)); }
.pm-app .pm-student-section-title.pm-level-advanced { background: linear-gradient(90deg, rgba(13,202,240,.16), rgba(13,202,240,.05)); }
.pm-app .pm-student-section-title.pm-level-graded { background: linear-gradient(90deg, rgba(25,135,84,.12), rgba(25,135,84,.04)); }
.pm-app .pm-empty-state { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 15px; }
.pm-app .pm-fab {
      position: fixed;
      right: 24px;
      bottom: 24px;
      border: none;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--bs-indigo), var(--bs-pink));
      color: #fff;
      padding: 14px 18px;
      font-size: 14px;
      font-weight: 700;
      box-shadow: 0 14px 30px rgba(102,16,242,.25);
      cursor: pointer;
      z-index: 990;
    }
.pm-app .pm-modal {
      position: fixed; inset: 0; background: rgba(22, 28, 43, 0.55); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px;
    }
.pm-app .pm-modal.pm-open { display: flex; }
.pm-app .pm-modal-box {
      width: min(1100px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 24px; position: relative;
    }
.pm-app .pm-modal-box.pm-class-modal-box { width: min(900px, 100%); }
.pm-app .pm-close-btn {
      position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: #f0f3fa; font-size: 22px; cursor: pointer; color: #4b5870;
    }
.pm-app .pm-modal-body { display: grid; grid-template-columns: 280px 1fr; min-height: 580px; }
.pm-app .pm-video-sidebar { border-right: 1px solid var(--line); padding: 22px 16px; background: linear-gradient(180deg, #fbfcff 0%, #f7f8fd 100%); }
.pm-app .pm-video-sidebar h3, .pm-app .pm-detail-pane h3, .pm-app .pm-class-modal-content h3 { margin: 0 0 14px; font-size: 18px; color: #394761; }
.pm-app .pm-video-list { display: flex; flex-direction: column; gap: 10px; }
.pm-app .pm-video-item { border: 1px solid #dfe6f3; background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; font-size: 14px; color: #3e4b63; text-align: left; }
.pm-app .pm-video-item.pm-active { border-color: var(--bs-purple); background: rgba(165, 151, 231, 0.10); }
.pm-app .pm-detail-pane { padding: 22px; }
.pm-app .pm-detail-header { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-bottom: 20px; }
.pm-app .pm-detail-avatar {
      width: 150px; height: 150px; border-radius: 22px; display: grid; place-items: center;
      position: relative;
      overflow: hidden; font-size: 48px; color: white; font-weight: 700; background: linear-gradient(135deg, rgba(234,119,173,.75), rgba(13,202,240,.75)); position: relative; overflow: hidden;
    }
.pm-app .pm-detail-avatar::after { content: 'Photo Placeholder'; position: absolute; bottom: 10px; font-size: 12px; font-weight: 600; opacity: .85; }
.pm-app .pm-detail-name { font-size: 28px; font-weight: 700; margin-bottom: 10px; color: #334055; }
.pm-app .pm-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 18px; }
.pm-app .pm-info-card { border: 1px solid var(--line); background: #fbfcff; border-radius: 16px; padding: 14px; }
.pm-app .pm-info-card .pm-k { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pm-app .pm-info-card .pm-v { font-size: 16px; font-weight: 700; color: #344158; }
.pm-app .pm-player-wrap { margin-top: 8px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.pm-app video { width: 100%; display: block; max-height: 360px; background: #000; }
.pm-app .pm-student-description { margin-top: 16px; border: 1px solid var(--line); background: #fbfcff; border-radius: 16px; padding: 16px; color: #4d5a72; line-height: 1.55; font-size: 14px; }
.pm-app .pm-class-modal-content { padding: 24px; }
.pm-app .pm-class-modal-grid-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pm-app .pm-class-modal-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pm-app .pm-class-modal-title { font-size: 20px; font-weight: 700; color: #334055; margin-bottom: 12px; }
.pm-app .pm-class-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pm-app .pm-mini-stat { border: 1px solid rgba(219,226,240,.9); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.75); }
.pm-app .pm-mini-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pm-app .pm-mini-stat strong { font-size: 22px; color: #334055; }
.pm-app @media (max-width: 1100px) { .pm-summary-grid { grid-template-columns: repeat(3, 1fr); }
.pm-app .pm-filters { grid-template-columns: 1fr 1fr; } }
.pm-app @media (max-width: 820px) {

.pm-app .pm-summary-grid { grid-template-columns: repeat(2, 1fr); }
.pm-app .pm-modal-body { grid-template-columns: 1fr; }
.pm-app .pm-video-sidebar { border-right: none; border-bottom: 1px solid var(--line); }
.pm-app .pm-detail-header { grid-template-columns: 1fr; }
.pm-app .pm-info-grid, .pm-app .pm-class-modal-grid-wrap, .pm-app .pm-class-modal-grid { grid-template-columns: 1fr 1fr; }
    }
.pm-app @media (max-width: 600px) {

.pm-app .pm-wrap { padding: 14px; }
.pm-app .pm-filters, .pm-app .pm-summary-grid, .pm-app .pm-info-grid, .pm-app .pm-class-modal-grid-wrap, .pm-app .pm-class-modal-grid { grid-template-columns: 1fr; }
.pm-app .pm-fab { right: 14px; bottom: 14px; }
    }
.pm-app /* External CSS (scoped) */
body {
  font-family: Arial;
  padding:20px;
  background:#f8f9fa;
}
.pm-app .grid {
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap:15px;
}
.pm-app .card {
  background:white;
  border-radius:12px;
  padding:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.pm-app .pm-avatar {
  width:100%;
  aspect-ratio:1/1;
  border-radius:10px;
  overflow:hidden;
  background:#ddd;
}
.pm-app .pm-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.pm-app .name {
  font-weight:bold;
  margin-top:8px;
}
.pm-app .level {
  font-size:12px;
  color:#555;
}

.pm-app .pm-detail-pane {
  display: flex;
  flex-direction: column;
}

.pm-app .pm-player-wrap {
  margin-top: 6px;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.pm-app video {
  width: 100%;
  display: block;
  max-height: 460px;
  min-height: 280px;
  background: #000;
}

.pm-app .pm-additional-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #394761;
}

.pm-app .pm-student-description {
  margin-top: 0;
  border: 1px solid var(--line);
  background: #fbfcff;
  border-radius: 16px;
  padding: 16px;
  color: #4d5a72;
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 820px) {
  .pm-app video {
    max-height: 320px;
    min-height: 220px;
  }
}


/* v5: real structural fix - move meta cards into top-right area */
.pm-app .pm-detail-header {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.pm-app .pm-detail-head-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pm-app .pm-detail-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.pm-app .pm-info-grid.pm-info-grid-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pm-app .pm-info-grid.pm-info-grid-top .pm-info-card {
  min-height: 94px;
}

.pm-app .pm-detail-pane > h3:first-of-type {
  margin-top: 2px;
}

@media (max-width: 820px) {
  .pm-app .pm-detail-header {
    grid-template-columns: 1fr;
  }
  .pm-app .pm-info-grid.pm-info-grid-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pm-app .pm-info-grid.pm-info-grid-top {
    grid-template-columns: 1fr;
  }
}


/* v7: move profile to left sidebar and keep video audible */
.pm-app .pm-video-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-app .pm-sidebar-student {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.pm-app .pm-sidebar-avatar {
  width: 150px;
  height: 150px;
}

.pm-app .pm-sidebar-name {
  font-size: 18px;
  font-weight: 700;
  color: #334055;
  line-height: 1.2;
}

.pm-app .pm-detail-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-app .pm-info-grid.pm-info-grid-top {
  margin: 0;
}

.pm-app .pm-player-wrap {
  margin-top: 0;
}

@media (max-width: 820px) {
  .pm-app .pm-sidebar-avatar {
    width: 120px;
    height: 120px;
  }
}


/* v8: real left sidebar profile */
.pm-app .pm-video-sidebar{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pm-app .pm-sidebar-student{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%, #fafbff 100%);
}

.pm-app .pm-sidebar-avatar{
  width:150px;
  height:150px;
  flex:0 0 auto;
}

.pm-app .pm-sidebar-name{
  font-size:18px;
  font-weight:700;
  color:#334055;
  line-height:1.2;
}

.pm-app .pm-detail-pane{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pm-app .pm-info-grid.pm-info-grid-top{
  margin:0;
}

.pm-app .pm-player-wrap{
  margin-top:0;
}

@media (max-width: 820px){
  .pm-app .pm-sidebar-avatar{
    width:120px;
    height:120px;
  }
}


/* v9: full responsive pass */
.pm-app {
  width: 100%;
  overflow-x: hidden;
}

.pm-app .pm-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.pm-app .pm-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pm-app .pm-student-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.pm-app .pm-modal {
  padding: 12px;
}

.pm-app .pm-modal-box {
  width: min(1100px, 100%);
  max-width: 100%;
  max-height: 94vh;
}

.pm-app .pm-modal-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: auto;
}

.pm-app .pm-video-sidebar {
  min-width: 0;
}

.pm-app .pm-detail-pane {
  min-width: 0;
}

.pm-app .pm-player-wrap {
  width: 100%;
}

.pm-app #pm-studentVideo,
.pm-app video {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.pm-app .pm-info-grid.pm-info-grid-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-app .pm-class-modal-grid-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .pm-app .pm-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .pm-app .pm-wrap {
    padding: 16px;
  }

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

  .pm-app .pm-student-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .pm-app .pm-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .pm-app .pm-modal-box {
    max-height: 96vh;
    border-radius: 18px;
  }

  .pm-app .pm-modal-body {
    grid-template-columns: 1fr;
  }

  .pm-app .pm-video-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .pm-app .pm-detail-pane {
    padding: 16px;
  }

  .pm-app .pm-sidebar-student {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .pm-app .pm-sidebar-avatar {
    width: 92px;
    height: 92px;
  }

  .pm-app .pm-sidebar-name {
    font-size: 18px;
  }

  .pm-app .pm-video-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pm-app .pm-info-grid.pm-info-grid-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-app .pm-class-modal-grid-wrap {
    grid-template-columns: 1fr;
  }

  .pm-app .pm-class-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pm-app .pm-wrap {
    padding: 12px;
  }

  .pm-app .pm-topbar {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .pm-app .pm-topbar h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .pm-app .pm-topbar p {
    font-size: 14px;
    line-height: 1.5;
  }

  .pm-app .pm-summary-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .pm-app .pm-summary-card {
    min-height: 92px;
    padding: 14px;
    border-radius: 14px;
  }

  .pm-app .pm-summary-value {
    font-size: 26px;
  }

  .pm-app .pm-filters {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .pm-app .pm-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .pm-app .pm-panel h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .pm-app .pm-class-chips {
    gap: 8px;
  }

  .pm-app .pm-chip {
    padding: 7px 10px;
    font-size: 12px;
  }

  .pm-app .pm-student-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pm-app .pm-student-card {
    padding: 10px;
    border-radius: 14px;
  }

  .pm-app .pm-avatar {
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .pm-app .pm-student-name {
    font-size: 13px;
    min-height: 32px;
  }

  .pm-app .pm-student-meta {
    font-size: 11px;
  }

  .pm-app .pm-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  .pm-app .pm-fab {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .pm-app .pm-modal {
    padding: 6px;
  }

  .pm-app .pm-modal-box {
    width: 100%;
    max-height: 98vh;
    border-radius: 16px;
  }

  .pm-app .pm-close-btn {
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .pm-app .pm-video-sidebar,
  .pm-app .pm-detail-pane,
  .pm-app .pm-class-modal-content {
    padding: 12px;
  }

  .pm-app .pm-sidebar-student {
    align-items: flex-start;
  }

  .pm-app .pm-sidebar-avatar {
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }

  .pm-app .pm-sidebar-name {
    font-size: 16px;
  }

  .pm-app .pm-video-sidebar h3,
  .pm-app .pm-detail-pane h3,
  .pm-app .pm-class-modal-content h3,
  .pm-app .pm-additional-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .pm-app .pm-video-list {
    grid-template-columns: 1fr;
  }

  .pm-app .pm-video-item {
    padding: 11px 12px;
    font-size: 14px;
  }

  .pm-app .pm-info-grid.pm-info-grid-top,
  .pm-app .pm-info-grid,
  .pm-app .pm-class-modal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pm-app .pm-info-card,
  .pm-app .pm-mini-stat {
    padding: 12px;
    border-radius: 14px;
  }

  .pm-app .pm-detail-avatar {
    width: 100px;
    height: 100px;
    font-size: 34px;
  }

  .pm-app .pm-detail-name {
    font-size: 22px;
    line-height: 1.2;
  }

  .pm-app .pm-player-wrap {
    border-radius: 14px;
  }

  .pm-app video {
    max-height: 260px;
    min-height: 180px;
  }

  .pm-app .pm-student-description {
    padding: 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .pm-app .pm-class-modal-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  .pm-app .pm-summary-grid {
    grid-template-columns: 1fr;
  }

  .pm-app .pm-student-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pm-app .pm-student-section-title {
    font-size: 16px;
    padding: 12px 14px;
  }

  .pm-app .pm-chip-note {
    display: none;
  }

  .pm-app .pm-sidebar-student {
    flex-direction: column;
    gap: 8px;
  }

  .pm-app .pm-sidebar-avatar {
    width: 84px;
    height: 84px;
  }
}


/* v11: desktop keeps old layout, mobile uses video-up layout */
.pm-app .pm-mobile-details-toggle {
  display: none;
  border: 1px solid #dbe2f0;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pm-app .pm-mobile-details-toggle {
    display: block;
  }

  .pm-app .pm-video-sidebar {
    gap: 10px;
  }

  .pm-app .pm-video-sidebar > h3 {
    margin: 2px 0 0;
  }

  .pm-app .pm-detail-pane {
    display: none;
  }

  .pm-app .pm-detail-pane.pm-show {
    display: flex;
  }

  .pm-app .pm-player-wrap video,
  .pm-app video {
    max-height: 220px;
    min-height: 170px;
  }
}



/* v21: restore header logo styles on top of preferred CSS */
.pm-app .pm-topbar {
  position: relative;
  overflow: hidden;
}

.pm-app .pm-topbar-brand {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
}

.pm-app .pm-topbar-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 86px;
}

.pm-app .pm-topbar-logo-left {
  justify-content: flex-start;
}

.pm-app .pm-topbar-logo-right {
  justify-content: flex-end;
}

.pm-app .pm-topbar-center {
  text-align: center;
  min-width: 0;
}

.pm-app .pm-topbar-center h1 {
  margin: 0 0 6px;
}

.pm-app .pm-topbar-center p {
  margin: 0;
}

.pm-app .pm-topbar-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.pm-app .pm-topbar-logo-main {
  max-height: 70px;
}

.pm-app .pm-topbar-logo-govt {
  max-height: 84px;
}

.pm-app .pm-topbar-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(165, 151, 231, 0.12);
  color: #6a5fb8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.pm-app .pm-topbar-school {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #586b8b;
}

.pm-app .pm-topbar-sub {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.pm-app .pm-topbar-line {
  font-size: 15px;
  color: #5b6e8e;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .pm-app .pm-topbar-brand {
    grid-template-columns: 110px minmax(0, 1fr) 95px;
    gap: 12px;
  }

  .pm-app .pm-topbar-logo-main {
    max-height: 52px;
  }

  .pm-app .pm-topbar-logo-govt {
    max-height: 58px;
  }

  .pm-app .pm-topbar-center h1 {
    font-size: 24px;
  }

  .pm-app .pm-topbar-school {
    font-size: 19px;
  }

  .pm-app .pm-topbar-line {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .pm-app .pm-topbar-brand {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pm-app .pm-topbar-logo-left,
  .pm-app .pm-topbar-logo-right {
    justify-content: center;
  }

  .pm-app .pm-topbar-center {
    order: 2;
  }

  .pm-app .pm-topbar-logo-left {
    order: 1;
  }

  .pm-app .pm-topbar-logo-right {
    order: 3;
  }

  .pm-app .pm-topbar-logo-main {
    max-height: 54px;
  }

  .pm-app .pm-topbar-logo-govt {
    max-height: 62px;
  }

  .pm-app .pm-topbar-kicker {
    margin-bottom: 7px;
    font-size: 10px;
    padding: 4px 10px;
  }

  .pm-app .pm-topbar-center h1 {
    font-size: 21px;
    line-height: 1.18;
  }

  .pm-app .pm-topbar-school {
    margin-top: 6px;
    font-size: 17px;
  }

  .pm-app .pm-topbar-sub {
    margin-top: 10px;
  }

  .pm-app .pm-topbar-line {
    font-size: 13px;
    line-height: 1.42;
  }
}


/* v22: restore preferred modal layout */
.pm-app .pm-modal-body{
  display:grid;
  grid-template-columns:272px minmax(0,1fr);
  min-height:560px;
}

.pm-app .pm-video-sidebar{
  border-right:1px solid var(--line);
  padding:18px 14px;
  background:linear-gradient(180deg,#fbfcff 0%,#f7f8fd 100%);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pm-app .pm-sidebar-student{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:8px 6px 2px;
}

.pm-app .pm-sidebar-avatar{
  width:118px;
  height:118px;
  border-radius:20px;
}

.pm-app .pm-sidebar-name{
  font-size:18px;
  font-weight:700;
  color:#334055;
  line-height:1.2;
}

.pm-app .pm-video-sidebar > h3{
  margin:0;
  font-size:18px;
  color:#394761;
}

.pm-app .pm-mobile-details-toggle{
  display:none;
  border:1px solid #dbe2f0;
  background:#fff;
  color:var(--text);
  border-radius:12px;
  padding:11px 14px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.pm-app .pm-detail-pane{
  padding:18px 22px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.pm-app .pm-detail-topbar{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  align-items:start;
  gap:14px;
}

.pm-app .pm-detail-title-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:4px;
}

.pm-app .pm-detail-name-inline{
  font-size:26px;
  font-weight:700;
  color:#334055;
  line-height:1.15;
}

.pm-app .pm-badge-inline{
  align-self:flex-start;
}

.pm-app .pm-info-grid.pm-info-grid-top{
  margin:0;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.pm-app .pm-player-wrap{
  margin-top:0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#000;
}

.pm-app video{
  width:100%;
  display:block;
  max-height:300px;
  background:#000;
}

.pm-app .pm-additional-title{
  margin:0;
  font-size:14px;
  color:#394761;
}

.pm-app .pm-student-description{
  margin-top:0;
}

/* hide old duplicated name block on desktop */
.pm-app .pm-detail-pane > .pm-detail-header{
  display:none;
}

@media (max-width: 900px){
  .pm-app .pm-modal-body{
    grid-template-columns:1fr;
  }
  .pm-app .pm-video-sidebar{
    border-right:none;
    border-bottom:1px solid var(--line);
    padding:14px;
  }
  .pm-app .pm-sidebar-avatar{
    width:84px;
    height:84px;
    border-radius:16px;
  }
  .pm-app .pm-sidebar-name{
    font-size:16px;
  }
  .pm-app .pm-detail-pane{
    padding:14px;
  }
  .pm-app .pm-detail-topbar{
    grid-template-columns:1fr;
    gap:12px;
  }
  .pm-app .pm-detail-title-wrap{
    display:none;
  }
  .pm-app .pm-info-grid.pm-info-grid-top{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .pm-app .pm-modal{
    padding:8px;
    align-items:flex-start;
  }
  .pm-app .pm-modal-box{
    width:100%;
    max-height:96vh;
    border-radius:20px;
  }
  .pm-app .pm-video-sidebar{
    gap:12px;
  }
  .pm-app .pm-sidebar-student{
    padding:4px 2px 0;
  }
  .pm-app .pm-player-wrap{
    order:2;
  }
  .pm-app .pm-video-sidebar > h3{
    order:3;
    margin-top:2px;
  }
  .pm-app .pm-video-list{
    order:4;
  }
  .pm-app .pm-mobile-details-toggle{
    display:block;
    order:5;
  }
  .pm-app .pm-detail-pane{
    display:none;
  }
  .pm-app .pm-detail-pane.pm-show{
    display:flex;
  }
  .pm-app .pm-detail-topbar{
    grid-template-columns:1fr;
  }
  .pm-app .pm-detail-title-wrap{
    display:none;
  }
  .pm-app .pm-info-grid.pm-info-grid-top{
    grid-template-columns:1fr;
  }
  .pm-app video{
    max-height:220px;
    min-height:170px;
  }
}


/* v23 requested changes */
.pm-app .pm-class-chips.pm-compact-chips {
  display: none !important;
}

.pm-app .pm-fab {
  display: none !important;
}

.pm-app .pm-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.pm-app .pm-radio-group-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  padding: 14px;
}

.pm-app .pm-radio-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #41506b;
  margin-bottom: 10px;
}

.pm-app .pm-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-app .pm-radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pm-app .pm-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pm-app .pm-radio-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dbe2f0;
  background: #fff;
  color: #41506b;
  font-size: 13px;
  font-weight: 700;
  transition: .18s ease;
}

.pm-app .pm-radio-pill input:checked + span {
  background: rgba(165,151,231,.14);
  border-color: rgba(165,151,231,.55);
  color: #5f55a6;
  box-shadow: 0 0 0 3px rgba(165,151,231,.10);
}

.pm-app .pm-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pm-app .pm-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.pm-app .pm-summary-chip.pm-is-yes {
  background: rgba(25,135,84,.12);
  color: #1f6a46;
  border: 1px solid rgba(25,135,84,.22);
}

.pm-app .pm-summary-chip.pm-is-no {
  background: rgba(253,126,20,.14);
  color: #b76415;
  border: 1px solid rgba(253,126,20,.24);
}

.pm-app .pm-student-card {
  align-items: flex-start;
}

.pm-app .pm-student-name,
.pm-app .pm-student-meta,
.pm-app .pm-student-card .pm-badge {
  text-align: left;
  align-self: flex-start;
}

.pm-app .pm-student-name {
  margin-top: 2px;
  margin-bottom: 4px;
}

.pm-app .pm-student-meta {
  margin-top: 0;
  margin-bottom: 4px;
}

.pm-app .pm-summary-note {
  margin-top: 6px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .pm-app .pm-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pm-app .pm-radio-group-wrap {
    padding: 12px;
  }
  .pm-app .pm-radio-group {
    gap: 8px;
  }
  .pm-app .pm-radio-pill span {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }
  .pm-app .pm-summary-meta {
    gap: 5px;
  }
  .pm-app .pm-summary-chip {
    font-size: 10px;
    padding: 4px 7px;
  }
}


/* v24: summary section refined */
.pm-app .pm-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pm-app .pm-summary-card.pm-summary-card-compact {
  min-height: 0;
  padding: 14px 16px 12px;
  border-radius: 16px;
}

.pm-app .pm-summary-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pm-app .pm-summary-label {
  font-size: 13px;
  line-height: 1.35;
  color: #56657f;
  margin-bottom: 0;
  font-weight: 700;
}

.pm-app .pm-summary-percent {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(165,151,231,.12);
  color: #6a5fb8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pm-app .pm-summary-value {
  font-size: 28px;
  margin-bottom: 8px;
}

.pm-app .pm-summary-note {
  font-size: 12px;
  line-height: 1.35;
}

.pm-app .pm-summary-meta {
  margin-top: 2px;
}

.pm-app .pm-summary-chip {
  font-size: 10px;
  padding: 4px 7px;
}

@media (max-width: 1000px) {
  .pm-app .pm-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pm-app .pm-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .pm-app .pm-summary-card.pm-summary-card-compact {
    padding: 12px 14px 11px;
    border-radius: 14px;
  }

  .pm-app .pm-summary-label {
    font-size: 12px;
  }

  .pm-app .pm-summary-value {
    font-size: 26px;
    margin-bottom: 7px;
  }

  .pm-app .pm-summary-percent {
    font-size: 10px;
    padding: 4px 7px;
  }

  .pm-app .pm-summary-note {
    font-size: 11px;
  }
}


/* v25: reduce header and move full text to sticky footer */
.pm-app {
  padding-bottom: 60px;
}

.pm-app .pm-topbar {
  padding: 14px 18px;
  margin-bottom: 14px;
}

.pm-app .pm-topbar-brand {
  grid-template-columns: 120px minmax(0, 1fr) 96px;
  gap: 12px;
}

.pm-app .pm-topbar-logo-wrap {
  min-height: 64px;
}

.pm-app .pm-topbar-logo-main {
  max-height: 52px;
}

.pm-app .pm-topbar-logo-govt {
  max-height: 58px;
}

.pm-app .pm-topbar-kicker {
  margin-bottom: 6px;
}

.pm-app .pm-topbar-center h1 {
  font-size: 26px;
  margin: 0;
}

.pm-app .pm-topbar-school {
  margin-top: 6px;
  font-size: 18px;
}

/* summary as compact horizontal strip */
.pm-app .pm-summary-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.pm-app .pm-summary-grid::-webkit-scrollbar {
  height: 8px;
}

.pm-app .pm-summary-grid::-webkit-scrollbar-thumb {
  background: rgba(165,151,231,.28);
  border-radius: 999px;
}

.pm-app .pm-summary-card.pm-summary-card-compact {
  min-width: 0;
  scroll-snap-align: start;
  padding: 12px 14px 10px;
  border-radius: 15px;
}

.pm-app .pm-summary-title-row {
  margin-bottom: 6px;
}

.pm-app .pm-summary-label {
  font-size: 12px;
  line-height: 1.28;
}

.pm-app .pm-summary-value {
  font-size: 24px;
  margin-bottom: 6px;
}

.pm-app .pm-summary-note {
  font-size: 11px;
}

.pm-app .pm-summary-chip {
  font-size: 9px;
  padding: 3px 7px;
}

/* sticky footer */
.pm-app .pm-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: rgba(255,255,255,.95);
  border-top: 1px solid rgba(219,226,240,.95);
  box-shadow: 0 -8px 24px rgba(56,68,96,.08);
  backdrop-filter: blur(8px);
}

.pm-app .pm-sticky-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 1.35;
  color: #5b6e8e;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-app .pm-sticky-footer-inner::-webkit-scrollbar {
  height: 0;
}

.pm-app .pm-sticky-footer-item:first-child {
  font-weight: 700;
  color: #6a5fb8;
}

.pm-app .pm-sticky-footer-dot {
  color: #a7b2c6;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .pm-app .pm-summary-grid {
    grid-auto-columns: minmax(190px, 1fr);
  }
}

@media (max-width: 900px) {
  .pm-app {
    padding-bottom: 72px;
  }

  .pm-app .pm-topbar {
    padding: 12px 14px;
  }

  .pm-app .pm-topbar-brand {
    grid-template-columns: 88px minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .pm-app .pm-topbar-logo-main {
    max-height: 44px;
  }

  .pm-app .pm-topbar-logo-govt {
    max-height: 50px;
  }

  .pm-app .pm-topbar-center h1 {
    font-size: 22px;
  }

  .pm-app .pm-topbar-school {
    font-size: 16px;
  }

  .pm-app .pm-summary-grid {
    grid-auto-columns: minmax(205px, 78%);
  }

  .pm-app .pm-sticky-footer-inner {
    font-size: 11px;
    padding: 9px 12px;
  }
}

@media (max-width: 640px) {
  .pm-app {
    padding-bottom: 76px;
  }

  .pm-app .pm-topbar {
    padding: 12px;
    margin-bottom: 12px;
  }

  .pm-app .pm-topbar-brand {
    grid-template-columns: 62px 1fr 58px;
    gap: 8px;
  }

  .pm-app .pm-topbar-logo-main {
    max-height: 34px;
  }

  .pm-app .pm-topbar-logo-govt {
    max-height: 40px;
  }

  .pm-app .pm-topbar-kicker {
    font-size: 9px;
    padding: 4px 8px;
    margin-bottom: 4px;
  }

  .pm-app .pm-topbar-center h1 {
    font-size: 18px;
    line-height: 1.15;
  }

  .pm-app .pm-topbar-school {
    margin-top: 4px;
    font-size: 14px;
  }

  .pm-app .pm-summary-grid {
    grid-auto-columns: minmax(190px, 86%);
    gap: 8px;
    margin-bottom: 12px;
  }

  .pm-app .pm-summary-card.pm-summary-card-compact {
    padding: 10px 12px 9px;
  }

  .pm-app .pm-summary-value {
    font-size: 22px;
  }

  .pm-app .pm-sticky-footer-inner {
    padding: 8px 10px;
    font-size: 10.5px;
  }
}


/* v26: progress banner + compact filters + reliable sticky footer */
.pm-app .pm-progress-banner {
  margin: 0 0 12px;
}

.pm-app .pm-progress-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(25,135,84,.08), rgba(13,202,240,.06));
  border: 1px solid rgba(25,135,84,.16);
  box-shadow: 0 6px 18px rgba(56,68,96,.05);
}

.pm-app .pm-progress-badge {
  flex: 0 0 auto;
  min-width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(25,135,84,.12), rgba(255,193,7,.14));
  color: #1f6a46;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(25,135,84,.18);
}

.pm-app .pm-progress-title {
  font-size: 18px;
  font-weight: 800;
  color: #314764;
  line-height: 1.2;
}

.pm-app .pm-progress-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #5b6e8e;
}

.pm-app .pm-filters {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.pm-app .pm-radio-group-wrap {
  padding: 10px 12px;
  border-radius: 14px;
}

.pm-app .pm-radio-group-title {
  font-size: 13px;
  margin-bottom: 8px;
}

.pm-app .pm-radio-group {
  gap: 8px;
}

.pm-app .pm-radio-pill span {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.pm-app .pm-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: block;
  background: rgba(255,255,255,.97);
  border-top: 1px solid rgba(219,226,240,.95);
  box-shadow: 0 -8px 24px rgba(56,68,96,.08);
  backdrop-filter: blur(8px);
}

.pm-app .pm-sticky-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9px 14px;
  font-size: 11px;
  line-height: 1.3;
  color: #5b6e8e;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .pm-app .pm-progress-banner-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .pm-app .pm-progress-badge {
    min-width: 58px;
    height: 58px;
    font-size: 20px;
    border-radius: 16px;
  }
  .pm-app .pm-progress-title {
    font-size: 16px;
  }
  .pm-app .pm-progress-sub {
    font-size: 12px;
  }
  .pm-app .pm-filters {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .pm-app {
    padding-bottom: 84px;
  }
  .pm-app .pm-progress-banner {
    margin-bottom: 10px;
  }
  .pm-app .pm-progress-banner-inner {
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .pm-app .pm-progress-badge {
    min-width: 52px;
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
  }
  .pm-app .pm-progress-title {
    font-size: 15px;
  }
  .pm-app .pm-progress-sub {
    margin-top: 3px;
    font-size: 11px;
  }
  .pm-app .pm-filters {
    margin-bottom: 12px;
  }
  .pm-app .pm-radio-group-wrap {
    padding: 9px 10px;
  }
  .pm-app .pm-radio-pill span {
    min-height: 32px;
    padding: 5px 11px;
    font-size: 11px;
  }
  .pm-app .pm-sticky-footer-inner {
    padding: 8px 10px;
    font-size: 10px;
  }
}


/* v27: reliable footer + modal player fit and larger info cards */
.pm-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: block !important;
  background: rgba(255,255,255,.98);
  border-top: 1px solid rgba(219,226,240,.95);
  box-shadow: 0 -8px 24px rgba(56,68,96,.10);
  backdrop-filter: blur(8px);
}

.pm-sticky-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9px 14px;
  font-size: 11px;
  line-height: 1.3;
  color: #5b6e8e;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-sticky-footer-inner::-webkit-scrollbar {
  height: 0;
}

.pm-sticky-footer-item:first-child {
  font-weight: 700;
  color: #6a5fb8;
}

.pm-sticky-footer-dot {
  color: #a7b2c6;
  flex: 0 0 auto;
}

/* keep page content above footer */
body {
  padding-bottom: 56px;
}

/* modal info sizing */
.pm-app .pm-info-card {
  padding: 16px 16px;
  min-height: 92px;
}

.pm-app .pm-info-card .pm-k {
  font-size: 13px;
  margin-bottom: 10px;
}

.pm-app .pm-info-card .pm-v {
  font-size: 18px;
  line-height: 1.2;
}

/* video fit better inside player */
.pm-app .pm-player-wrap {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-app .pm-player-wrap video,
.pm-app video {
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #111;
}

@media (max-width: 900px) {
  .pm-app .pm-info-card {
    min-height: 84px;
    padding: 14px;
  }
  .pm-app .pm-info-card .pm-k {
    font-size: 12px;
  }
  .pm-app .pm-info-card .pm-v {
    font-size: 17px;
  }
  .pm-sticky-footer-inner {
    font-size: 10.5px;
    padding: 8px 12px;
  }
  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 66px;
  }
  .pm-app .pm-info-card {
    min-height: 74px;
    padding: 12px;
  }
  .pm-app .pm-info-card .pm-k {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .pm-app .pm-info-card .pm-v {
    font-size: 16px;
  }
  .pm-app .pm-player-wrap video,
  .pm-app video {
    max-height: 220px;
    object-fit: contain;
  }
  .pm-sticky-footer-inner {
    padding: 8px 10px;
    font-size: 10px;
  }
}


/* v28: mobile footer visibility, better video fit, softer progress banner */
html, body {
  overflow-x: hidden;
}

body {
  padding-bottom: 72px !important;
}

.pm-sticky-footer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pm-sticky-footer-inner {
  width: 100%;
}

.pm-app .pm-progress-banner-inner {
  background: linear-gradient(135deg, rgba(255,193,7,.16), rgba(255,243,205,.88));
  border: 1px solid rgba(255,193,7,.26);
}

.pm-app .pm-progress-badge {
  background: linear-gradient(135deg, rgba(255,193,7,.20), rgba(255,255,255,.72));
  border: 1px solid rgba(255,193,7,.28);
  color: #9a6b00;
}

.pm-app .pm-progress-title {
  color: #6b5600;
}

.pm-app .pm-progress-sub {
  color: #7a6a2b;
}

/* video should fully fit inside modal area */
.pm-app .pm-player-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  min-height: 0;
}

.pm-app .pm-player-wrap video,
.pm-app video {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  max-height: 320px !important;
  object-fit: contain !important;
  background: #111;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 76px !important;
  }

  .pm-app .pm-player-wrap video,
  .pm-app video {
    max-height: 250px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px !important;
  }

  .pm-sticky-footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .pm-sticky-footer-inner {
    padding: 9px 10px 10px;
    font-size: 10px;
  }

  .pm-app .pm-progress-banner-inner {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .pm-app .pm-progress-badge {
    min-width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 17px;
  }

  .pm-app .pm-progress-title {
    font-size: 14px;
    line-height: 1.2;
  }

  .pm-app .pm-progress-sub {
    font-size: 11px;
  }

  .pm-app .pm-player-wrap video,
  .pm-app video {
    max-height: 190px !important;
    width: 100%;
    object-fit: contain !important;
  }
}


/* v30: final wording + filter fit + student card spacing */
.pm-app .pm-radio-group {
  flex-wrap: nowrap;
}

.pm-app .pm-radio-pill {
  flex: 1 1 0;
  min-width: 0;
}

.pm-app .pm-radio-pill span {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.pm-app .pm-student-name {
  font-size: 14px;
  font-weight: 700;
  color: #344158;
  margin: 6px 0 4px;
  min-height: 0 !important;
  line-height: 1.2;
}

.pm-app .pm-student-meta {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.pm-app .pm-badge {
  margin-top: 0;
}

@media (max-width: 640px) {
  .pm-app .pm-radio-group {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .pm-app .pm-radio-pill span {
    min-height: 30px;
    padding: 5px 5px;
    font-size: 9.5px;
    letter-spacing: -0.2px;
  }

  .pm-app .pm-student-name {
    font-size: 13px;
    margin: 5px 0 3px;
    line-height: 1.18;
  }

  .pm-app .pm-student-meta {
    font-size: 11px;
    margin: 0 0 3px;
  }

  .pm-app .pm-badge {
    font-size: 10px;
    padding: 4px 8px;
    line-height: 1.1;
  }
}


/* v36 actual floating controls */
.pm-app .pm-filter-modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
}
.pm-app .pm-filter-modal-content {
  padding: 22px;
}
.pm-app .pm-filter-modal-content h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #394761;
}
.pm-app .pm-filter-modal-content .pm-filters {
  margin-bottom: 0;
  box-shadow: none;
}

.pm-app .pm-action-fabs {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-app .pm-action-fab {
  border: 1px solid rgba(219,226,240,.95);
  background: rgba(255,255,255,.98);
  color: #37445c;
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 84px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(56,68,96,.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pm-app .pm-filter-fab {
  background: linear-gradient(135deg, rgba(165,151,231,.22), rgba(255,255,255,.98));
}
.pm-app .pm-info-fab {
  background: linear-gradient(135deg, rgba(255,193,7,.18), rgba(255,255,255,.98));
}

.pm-app .pm-info-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.pm-app .pm-info-legend-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fbfcff;
}
.pm-app .pm-info-legend-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #334055;
}
.pm-app .pm-info-legend-card span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #5b6e8e;
}

@media (max-width: 900px) {
  .pm-app .pm-action-fabs {
    right: 12px;
    bottom: 90px;
    gap: 8px;
  }
  .pm-app .pm-action-fab {
    padding: 11px 14px;
    min-width: 78px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .pm-app .pm-filter-modal-content {
    padding: 16px 14px;
  }
  .pm-app .pm-filter-modal-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .pm-app .pm-action-fabs {
    right: 10px;
    bottom: 96px;
    gap: 8px;
  }
  .pm-app .pm-action-fab {
    padding: 10px 13px;
    min-width: 74px;
    font-size: 12px;
  }
  .pm-app .pm-info-legend {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pm-app .pm-info-legend-card {
    padding: 12px;
    border-radius: 14px;
  }
  .pm-app .pm-info-legend-card strong {
    font-size: 14px;
  }
  .pm-app .pm-info-legend-card span {
    font-size: 12px;
  }
}


/* v37: ensure FAB styles always apply */
.pm-action-fabs {
  position: fixed !important;
  right: 16px !important;
  bottom: 84px !important;
  z-index: 5000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.pm-action-fab {
  border: 1px solid rgba(219,226,240,.95) !important;
  background: rgba(255,255,255,.98) !important;
  color: #37445c !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  min-width: 84px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 22px rgba(56,68,96,.12) !important;
  cursor: pointer !important;
  backdrop-filter: blur(8px) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.pm-filter-fab {
  background: linear-gradient(135deg, rgba(165,151,231,.22), rgba(255,255,255,.98)) !important;
}

.pm-info-fab {
  background: linear-gradient(135deg, rgba(255,193,7,.18), rgba(255,255,255,.98)) !important;
}

/* v37: mobile student card image scaling fix */
.pm-app .pm-student-grid {
  align-items: stretch !important;
}

.pm-app .pm-student-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  min-width: 0 !important;
}

.pm-app .pm-avatar {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  position: relative !important;
  overflow: hidden !important;
}

.pm-app .pm-avatar-fill,
.pm-app .pm-avatar img.pm-avatar-fill,
.pm-app .pm-fallback-initials {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 900px) {
  .pm-action-fabs {
    right: 12px !important;
    bottom: 90px !important;
    gap: 8px !important;
  }

  .pm-action-fab {
    padding: 11px 14px !important;
    min-width: 78px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 640px) {
  .pm-action-fabs {
    right: 10px !important;
    bottom: 96px !important;
    gap: 8px !important;
  }

  .pm-action-fab {
    padding: 10px 13px !important;
    min-width: 74px !important;
    font-size: 12px !important;
  }

  .pm-app .pm-student-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .pm-app .pm-student-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .pm-app .pm-avatar {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
  }

  .pm-app .pm-avatar-fill,
  .pm-app .pm-avatar img.pm-avatar-fill,
  .pm-app .pm-fallback-initials {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}


/* v38: compact colorful class-wise details */
.pm-app .pm-class-modal-box {
  width: min(860px, 100%);
}

.pm-app .pm-class-modal-content {
  padding: 18px;
}

.pm-app .pm-class-modal-content h3 {
  margin: 0 0 12px;
}

.pm-app .pm-class-modal-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pm-app .pm-class-modal-card {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.pm-app .pm-class-modal-card:nth-child(1) {
  background: rgba(13,110,253,.07);
}
.pm-app .pm-class-modal-card:nth-child(2) {
  background: rgba(234,119,173,.08);
}
.pm-app .pm-class-modal-card:nth-child(3) {
  background: rgba(32,201,151,.08);
}
.pm-app .pm-class-modal-card:nth-child(4) {
  background: rgba(253,126,20,.08);
}

.pm-app .pm-class-modal-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.pm-app .pm-class-modal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pm-app .pm-mini-stat {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.pm-app .pm-mini-stat span {
  font-size: 11px;
  margin-bottom: 4px;
}

.pm-app .pm-mini-stat strong {
  font-size: 18px;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .pm-app .pm-class-modal-content {
    padding: 14px;
  }

  .pm-app .pm-class-modal-grid-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pm-app .pm-class-modal-card {
    padding: 12px;
    border-radius: 14px;
  }

  .pm-app .pm-class-modal-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .pm-app .pm-class-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pm-app .pm-mini-stat {
    padding: 8px;
    border-radius: 10px;
  }

  .pm-app .pm-mini-stat span {
    font-size: 10px;
  }

  .pm-app .pm-mini-stat strong {
    font-size: 16px;
  }
}


/* v40: header collaboration line only */
.pm-app .pm-topbar-collab {
  margin-top: 6px;
  font-size: 13px;
  color: #6c7890;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .pm-app .pm-topbar-collab {
    font-size: 11px;
    margin-top: 4px;
  }
}


/* v41: section skill chips under titles */
.pm-app .pm-student-section-head-wrap {
  margin: 0 0 14px;
}

.pm-app .pm-student-section-head-wrap .pm-student-section-title {
  margin-bottom: 10px;
}

.pm-app .pm-section-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-app .pm-section-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid;
  line-height: 1;
}

.pm-app .pm-section-skill-chip.yes {
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.4);
  color: #1b6b45;
}

.pm-app .pm-section-skill-chip.no {
  background: rgba(253, 126, 20, 0.10);
  border-color: rgba(253, 126, 20, 0.28);
  color: #b76415;
}

@media (max-width: 640px) {
  .pm-app .pm-student-section-head-wrap {
    margin-bottom: 10px;
  }

  .pm-app .pm-student-section-head-wrap .pm-student-section-title {
    margin-bottom: 8px;
  }

  .pm-app .pm-section-skill-chips {
    gap: 6px;
  }

  .pm-app .pm-section-skill-chip {
    font-size: 10px;
    padding: 4px 8px;
  }
}


/* v42: force section skill chips to one line on mobile */
@media (max-width: 640px) {
  .pm-app .pm-section-skill-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pm-app .pm-section-skill-chips::-webkit-scrollbar {
    height: 0;
  }

  .pm-app .pm-section-skill-chip {
    font-size: 9px;
    padding: 3px 6px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}


/* v44: simplified footer */
.pm-app .pm-footer {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  background: rgba(255,255,255,0.9);
  border-top: 1px solid #e8ebf4;
}

.pm-app .pm-footer-line {
  font-size: 14px;
  color: #4f5f78;
  margin: 4px 0;
}

.pm-app .pm-footer-line strong {
  color: #2d3b51;
}


/* v46: two-line sticky footer only */
.pm-sticky-footer-inner-two-line {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  white-space: normal !important;
  overflow-x: visible !important;
  text-align: center !important;
  padding: 8px 12px !important;
}
.pm-sticky-footer-inner-two-line .pm-sticky-footer-item {
  display: block !important;
  width: 100%;
}


/* v48: footer smaller */
.pm-sticky-footer-item {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

/* 2. push floating buttons lower */
.pm-fab-container {
  bottom: 80px !important;
}


/* v49: footer polish */
.pm-sticky-footer {
  transition: transform .22s ease, opacity .22s ease !important;
  transform: translateY(0);
  opacity: 1;
}

.pm-sticky-footer.pm-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.pm-sticky-footer-inner,
.pm-sticky-footer-inner-two-line {
  font-family: 'Outfit', Arial, Helvetica, sans-serif !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

.pm-sticky-footer-inner-two-line {
  gap: 1px !important;
  padding: 6px 10px !important;
}

.pm-sticky-footer-inner-two-line .pm-sticky-footer-item {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.pm-sticky-footer-inner-two-line .pm-sticky-footer-item:first-child {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: -0.15px;
  white-space: nowrap !important;
  color: #6b63a8 !important;
}

.pm-sticky-footer-inner-two-line .pm-sticky-footer-item:last-child {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #6a748b !important;
  line-height: 1.15 !important;
}

@media (max-width: 640px) {
  .pm-sticky-footer-inner-two-line {
    padding: 5px 8px !important;
    gap: 0 !important;
  }

  .pm-sticky-footer-inner-two-line .pm-sticky-footer-item:first-child {
    font-size: 9px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.25px !important;
  }

  .pm-sticky-footer-inner-two-line .pm-sticky-footer-item:last-child {
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }
}


/* v50: tighter section chips and banner */
.pm-app .pm-section-skill-chips {
  gap: 6px;
}

.pm-app .pm-section-skill-chip {
  font-size: 11px;
  padding: 4px 8px;
  line-height: 1;
}

.pm-app .pm-progress-banner-inner {
  padding: 10px 12px !important;
  gap: 10px !important;
}

.pm-app .pm-progress-badge {
  min-width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  font-size: 17px !important;
}

.pm-app .pm-progress-title {
  font-size: 14px !important;
  line-height: 1.08 !important;
  margin: 0 !important;
}

.pm-app .pm-progress-sub {
  font-size: 11px !important;
  line-height: 1.15 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

.pm-sticky-footer {
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .pm-app .pm-section-skill-chips {
    gap: 4px !important;
  }

  .pm-app .pm-section-skill-chip {
    font-size: 8px !important;
    padding: 3px 5px !important;
    letter-spacing: -0.1px;
  }

  .pm-app .pm-progress-banner-inner {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .pm-app .pm-progress-badge {
    min-width: 46px !important;
    height: 46px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .pm-app .pm-progress-title {
    font-size: 11.5px !important;
    line-height: 1.04 !important;
  }

  .pm-app .pm-progress-sub {
    font-size: 9px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* v51: force chips into 2 lines max, push fabs lower, stronger footer transitions */
.pm-sticky-footer {
  transition: transform .28s ease, opacity .28s ease !important;
  transform: translateY(0);
  opacity: 1;
}
.pm-sticky-footer.pm-hidden {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .pm-app .pm-section-skill-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .pm-app .pm-section-skill-chip {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 7px !important;
    padding: 3px 2px !important;
    letter-spacing: -0.2px !important;
    line-height: 1 !important;
  }

  .pm-app .pm-action-fabs {
    bottom: 124px !important;
    right: 10px !important;
    gap: 7px !important;
  }

  .pm-app .pm-action-fab {
    min-width: 72px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  .pm-sticky-footer-inner-two-line {
    padding: 4px 8px 6px !important;
  }
}


/* === Requested restore/fix only === */
.pm-app .pm-topbar h1,
.pm-app .pm-student-section-title {
  font-family: 'Outfit', sans-serif !important;
}

@media (max-width: 640px) {
  .pm-app .pm-section-skill-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 4px 6px !important;
    overflow: visible !important;
    white-space: normal !important;
    justify-content: flex-start !important;
  }

  .pm-app .pm-section-skill-chip {
    width: auto !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 7px !important;
    padding: 3px 6px !important;
    line-height: 1 !important;
  }
}


/* === Final hard overrides requested === */
@media (max-width: 640px) {
  .pm-app .pm-section-skill-chip {
    font-size: 8.5px !important;
  }

  .pm-action-fabs {
    right: 10px !important;
    bottom: 42px !important;
    gap: 8px !important;
  }
}



@media (max-width: 640px) {
  .pm-sticky-footer-inner-two-line {
    padding: 7px 8px 8px !important;
  }
}

@media (max-width: 640px) {
  .pm-sticky-footer-inner-two-line .pm-sticky-footer-item:first-child {
    font-size: 11px !important;
    line-height: 1.68 !important;
    letter-spacing: -0.25px !important;
  }
}

@media (max-width: 640px) {
  .pm-sticky-footer-inner-two-line .pm-sticky-footer-item:last-child {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }
}



@media (max-width: 640px) {
    .pm-action-fabs {
        right: 10px !important;
        bottom: 55px !important;
        gap: 8px !important;
    }
}



/* Hide floating buttons when modal open */
.pm-modal.pm-open ~ .pm-action-fabs {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}



/* ===== Latest applied fixes ===== */

/* 1) Use Outfit globally */
.pm-app {
  font-family: 'Outfit', sans-serif !important;
}

/* 2) Fix wrong flex-wrap and keep chips in natural flow within ~2 lines */
.pm-app .pm-class-chips {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  max-height: 52px !important;
  overflow: hidden !important;
}

.pm-app .pm-chip {
  padding: 6px 10px !important;
  font-size: 9px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* 3) Push floating buttons closer to footer */
.pm-app .pm-action-fabs,
.pm-action-fabs {
  bottom: 80px !important;
}

/* 4) Light grey visual arrows on summary area (no action) */
.pm-summary-grid {
  position: relative;
}

.pm-summary-grid::before,
.pm-summary-grid::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  color: rgba(120,120,120,0.35);
  pointer-events: none;
  z-index: 5;
}

.pm-summary-grid::before {
  content: '‹';
  left: 6px;
}

.pm-summary-grid::after {
  content: '›';
  right: 6px;
}



/* Restore video availability dot */
.pm-app .pm-video-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.95);
  z-index: 4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.pm-app .pm-video-dot.has-videos {
  background: #22c55e;
}

.pm-app .pm-video-dot.no-videos {
  background: #ef4444;
}

/* Requested mobile modal box tweak */
@media (max-width: 640px) {
  .pm-app .pm-modal-box {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px;
  }
}


.pm-app .pm-avatar .pm-video-dot { z-index: 3; }
.pm-app .pm-attendance-badge {
      position: absolute;
      right: 8px;
      bottom: 8px;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 52px;
      padding: 5px 8px;
      border-radius: 999px;
      background: rgba(229, 244, 235, 0.96);
      border: 1px solid rgba(25,135,84,.18);
      color: #156a46;
      font-size: 8.5px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 6px 16px rgba(23, 56, 39, 0.10);
      backdrop-filter: blur(6px);
    }
.pm-app .pm-attendance-details {
      margin-top: 18px;
      display: grid;
      gap: 16px;
    }
.pm-app .pm-attendance-summary-head {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
    }
.pm-app .pm-attendance-title {
      font-size: 24px;
      font-weight: 700;
      color: #20314d;
      margin: 0;
    }
.pm-app .pm-attendance-percent-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 18px;
      border-radius: 20px;
      background: rgba(229, 244, 235, 0.96);
      color: #156a46;
      font-size: 20px;
      font-weight: 800;
      min-width: 110px;
    }
.pm-app .pm-attendance-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
.pm-app .pm-attendance-stat-card,
.pm-app .pm-attendance-month-card {
      border: 1px solid var(--line);
      background: #fbfcff;
      border-radius: 20px;
      padding: 18px;
    }
.pm-app .pm-attendance-stat-card .pm-k,
.pm-app .pm-attendance-month-card .pm-k {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 8px;
    }
.pm-app .pm-attendance-stat-card .pm-v {
      font-size: 18px;
      font-weight: 800;
      color: #20314d;
    }
.pm-app .pm-attendance-months-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
.pm-app .pm-attendance-month-card h4 {
      margin: 0 0 12px;
      font-size: 18px;
      font-weight: 700;
      color: #20314d;
    }
.pm-app .pm-attendance-month-line {
      margin-top: 8px;
      font-size: 15px;
      color: #314562;
    }
.pm-app .pm-attendance-month-line strong {
      color: #1f3150;
    }
.pm-app .pm-attendance-empty {
      border: 1px dashed var(--line);
      border-radius: 18px;
      padding: 16px;
      background: #fbfcff;
      color: var(--muted);
      font-size: 14px;
    }
.pm-app @media (max-width: 820px) {
  .pm-app .pm-attendance-stats-grid,
  .pm-app .pm-attendance-months-grid { grid-template-columns: 1fr; }
  .pm-app .pm-attendance-summary-head { grid-template-columns: 1fr; }
}
