/* Role account pages — unified web shell (parent / student / trainer / child) */

html.edu-view-web .edu-web-content .edu-app.parent-page-app,
html.edu-view-web .edu-web-content .edu-app.parent-home-app,
html.edu-view-web .edu-web-content .edu-app.trainer-page-app,
html.edu-view-web .edu-web-content .edu-app.child-page-app,
html.edu-view-web .edu-web-content .edu-app.child-home-app,
html.edu-view-web .edu-web-content .edu-app.company-page-app,
html.edu-view-web .edu-web-content .company-dash,
html.edu-view-web .edu-web-content .company-train-app,
html.edu-view-web .edu-web-content .company-contract-app,
html.edu-view-web .edu-web-content .company-gx-readiness-app,
html.edu-view-web .edu-web-content .student-page-app,
html.edu-view-web .edu-web-content .student-home-app {
  max-width: 1040px;
  margin-inline: auto;
  padding: 0 20px 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Flat canvas — child sky off on web */
html.edu-view-web.edu-child-mode body.edu-view-web-body,
html.edu-view-web .edu-child-mode.edu-web-content .child-home-app,
html.edu-view-web .edu-child-mode.edu-web-content .child-page-app {
  background: #fff !important;
}

html.edu-view-web .edu-child-mode .child-planet-backdrop {
  display: none;
}

/* Heroes */
html.edu-view-web .edu-parent-mode .parent-hero,
html.edu-view-web .edu-trainer-mode .trainer-hero,
html.edu-view-web .edu-child-mode .child-hero,
html.edu-view-web .edu-student-mode .student-hero {
  border-radius: 24px;
  margin-bottom: 22px;
}

html.edu-view-web .parent-hero--compact,
html.edu-view-web .child-hero--compact,
html.edu-view-web .trainer-hero--slim {
  padding: 20px 24px;
  border-radius: 20px;
}

html.edu-view-web .parent-hero--compact h1,
html.edu-view-web .child-hero--compact h1 {
  font-size: 1.25rem;
}

/* Panels & cards */
html.edu-view-web .parent-panel,
html.edu-view-web .trainer-panel,
html.edu-view-web .child-panel,
html.edu-view-web .student-panel,
html.edu-view-web .trainer-pending-box {
  border-color: #e2e8f0;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  background: #fff;
  margin-bottom: 0;
}

html.edu-view-web .parent-panel + .parent-panel,
html.edu-view-web .trainer-panel + .trainer-panel,
html.edu-view-web .child-panel + .child-panel,
html.edu-view-web .student-panel + .student-panel,
html.edu-view-web .student-dash__block .student-panel + .student-dash__plan {
  margin-top: 16px;
}

html.edu-view-web .parent-panel__head h2,
html.edu-view-web .trainer-panel__head h2,
html.edu-view-web .child-panel__head h2,
html.edu-view-web .student-panel__head h2 {
  font-size: 1.05rem;
}

/* Grids */
html.edu-view-web .parent-children-grid,
html.edu-view-web .parent-quick-grid--home {
  gap: 16px;
}

@media (min-width: 720px) {
  html.edu-view-web .parent-children-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.edu-view-web .parent-quick-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.edu-view-web .trainer-stats,
  html.edu-view-web .parent-stats--cards.parent-stats--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html.edu-view-web .parent-child-card,
html.edu-view-web .parent-quick-card,
html.edu-view-web .trainer-quick-card,
html.edu-view-web .company-dash__quick-card,
html.edu-view-web .child-quick-card,
html.edu-view-web .student-quick-card {
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Role hero toolbar (back link) */
.role-hero-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.role-hero-toolbar__back {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.role-hero-toolbar__gap {
  grid-column: 3;
}

html.edu-view-web .edu-parent-mode .role-hero-toolbar__back {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

html.edu-view-web .edu-trainer-mode .role-hero-toolbar__back {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

html.edu-view-web .edu-child-mode .role-hero-toolbar__back {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Notifications & lists */
html.edu-view-web .edu-web-content .notification-list,
html.edu-view-web .edu-web-content .parent-notif-list,
html.edu-view-web .edu-web-content .trainer-notif-list {
  max-width: 720px;
  margin-inline: auto;
}

/* Subscriptions / report layouts */
html.edu-view-web .parent-subs-app .parent-sub-card,
html.edu-view-web .parent-report-app .parent-panel {
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  html.edu-view-web .edu-web-content .edu-app.parent-page-app,
  html.edu-view-web .edu-web-content .edu-app.trainer-page-app,
  html.edu-view-web .edu-web-content .edu-app.company-page-app,
  html.edu-view-web .edu-web-content .company-dash,
  html.edu-view-web .edu-web-content .edu-app.child-page-app,
  html.edu-view-web .edu-web-content .student-page-app {
    padding-inline: 14px;
  }

  html.edu-view-web .parent-quick-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-hero-toolbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .role-hero-toolbar__back {
    grid-column: 1;
    justify-self: center;
  }

  .role-hero-toolbar__gap {
    display: none;
  }
}
