@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

/* === Design tokens === */
:root {
  --purple: #542368;
  --ink: #282333;
  --muted: #817c87;
  --green: #34785c;
  --line: #eae6ed;
}
/* === Base styles and shared controls === */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf9fc;
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
a,
select {
  cursor: pointer;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  background: var(--purple);
  color: white;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button.secondary {
  background: #f1ebf6;
  color: var(--purple);
}
button.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
/* === Sidebar and experience selector === */
aside {
  position: fixed;
  width: 245px;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    700 23px/1.1 Manrope,
    sans-serif;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -1px;
}
.brand strong {
  font-size: 29px;
}
.brand span {
  color: #ac79bc;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.4px;
  display: block;
  margin-top: 14px;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin: 44px 0 22px;
}
select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  color: #77717e;
  margin: 6px 0;
  font-weight: 500;
}
nav button.active {
  background: #f2eaf7;
  color: var(--purple);
}
.aside-bottom {
  margin-top: auto;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #efdfed;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple);
  font-weight: 700;
}
.aside-bottom small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
/* === Main shell and page headings === */
main {
  margin-left: 245px;
  padding: 0 42px;
  max-width: 1600px;
}
header {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #a88cba;
  border-radius: 50%;
  margin-right: 8px;
}
.demo {
  margin-left: 14px;
  background: #f0ebf5;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 8px;
  color: var(--purple);
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 35px 0 27px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--purple);
  font-weight: 700;
}
h1 {
  font:
    800 31px Manrope,
    sans-serif;
  letter-spacing: -1px;
  margin: 8px 0;
}
p {
  line-height: 1.7;
  color: var(--muted);
  margin: 5px 0;
}
h2 {
  font:
    700 18px Manrope,
    sans-serif;
  margin: 0 0 18px;
}
h3 {
  font:
    700 15px Manrope,
    sans-serif;
  margin: 0 0 7px;
}
/* === Cards and content layouts === */
.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 23px;
}
.hero {
  background: #542368;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.hero:after {
  content: "↗";
  position: absolute;
  right: 22px;
  top: -40px;
  font: 240px Manrope;
  color: #ffffff0d;
  pointer-events: none;
}
.hero p {
  color: #ded0e7;
  max-width: 380px;
}
.hero h2 {
  font-size: 27px;
  max-width: 370px;
  line-height: 1.35;
  margin: 12px 0;
}
.hero button {
  background: white;
  color: var(--purple);
  margin-top: 22px;
}
.hero .eyebrow {
  color: #d4b7e1;
}
/* === Shared rows, badges, and session details === */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.label {
  font-size: 11px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: #edf6ef;
  color: var(--green);
  border-radius: 20px;
  padding: 6px 10px;
  white-space: nowrap;
}
.pill.pending {
  color: #9b772a;
  background: #fbf3df;
}
.pill.purple {
  color: var(--purple);
  background: #f2ebf7;
}
.session {
  border-top: 1px solid var(--line);
  padding: 19px 0 0;
  margin-top: 18px;
}
.date {
  min-width: 51px;
  text-align: center;
  background: #f6f2f9;
  border-radius: 10px;
  padding: 10px;
  color: var(--purple);
  font-size: 10px;
}
.date b {
  display: block;
  font: 800 23px Manrope;
}
.details {
  flex: 1;
}
.details p {
  font-size: 12px;
}
.note {
  font-size: 14px;
  line-height: 1.85;
  color: #655b6c;
  background: #faf7fc;
  padding: 17px;
  border-radius: 10px;
  margin: 17px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actions button {
  font-size: 11px;
  padding: 10px 12px;
}
/* === Children, skill progress, and program cards === */
.child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 15px;
}
.child .avatar {
  width: 43px;
  height: 43px;
  background: #e9f0e6;
  color: #5e7c50;
}
.bar {
  height: 6px;
  border-radius: 9px;
  background: #eee8f2;
  margin: 10px 0 18px;
}
.bar i {
  display: block;
  background: #a281b6;
  height: 100%;
  border-radius: 9px;
}
.program {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.program-icon {
  font-size: 22px;
  background: #f4edf9;
  padding: 10px;
  border-radius: 12px;
}
/* === Owner statistics and request table === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stats .card {
  margin: 0;
}
.stats b {
  display: block;
  font: 800 29px Manrope;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
td,
th {
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
}
td button {
  font-size: 11px;
  padding: 9px;
}
.zone {
  max-width: 220px;
  margin: 0;
}
.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa2b0;
  padding: 25px 0 30px;
  gap: 15px;
}
/* === Forms and modals === */
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(460px, 92vw);
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #21152f66;
  backdrop-filter: blur(3px);
}
dialog label {
  display: block;
  margin: 17px 0 6px;
  font-size: 12px;
}
input,
textarea,
dialog select {
  width: 100%;
  border: 1px solid #ded7e4;
  border-radius: 8px;
  padding: 12px;
  background: white;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
dialog .actions {
  margin-top: 23px;
}
/* === Transient feedback === */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #30213d;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 30px #0002;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: auto;
}
.school {
  background: #eef4eb;
}
/* === Coach route === */
.schedule-row {
  border-left: 3px solid #b997cb;
  padding: 0 0 24px 22px;
  margin-left: 12px;
}
.schedule-row:last-child {
  padding-bottom: 0;
}
/* === Wide desktop layout === */
@media (min-width: 1450px) {
  main {
    padding: 0 65px;
  }
  .hero {
    min-height: 270px;
  }
}
/* === Tablet layout === */
@media (max-width: 1000px) {
  aside {
    width: 205px;
    padding: 28px 18px;
  }
  main {
    margin-left: 205px;
    padding: 0 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stats .card {
    padding: 17px;
  }
  .hero {
    min-height: 220px;
  }
}
/* === Phone layout === */
@media (max-width: 650px) {
  aside {
    position: relative;
    width: auto;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    font-size: 15px;
  }
  .brand strong {
    font-size: 20px;
  }
  .brand small,
  .aside-bottom {
    display: none;
  }
  .workspace {
    position: absolute;
    right: 18px;
    top: 13px;
    margin: 0;
    font-size: 8px;
    width: 150px;
  }
  .workspace select {
    padding: 7px;
    margin-top: 4px;
  }
  nav {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    margin: 0;
    font-size: 11px;
    padding: 10px;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  header {
    height: 55px;
    font-size: 8px;
  }
  .demo {
    display: none;
  }
  .heading {
    margin: 26px 0 22px;
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading > button {
    padding: 10px;
    font-size: 11px;
  }
  .card {
    padding: 20px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .stats .card {
    padding: 13px;
  }
  .stats b {
    font-size: 22px;
  }
  .stats .label {
    font-size: 10px;
  }
  .table-wrap {
    overflow: auto;
  }
  table {
    min-width: 580px;
  }
  footer {
    flex-direction: column;
    line-height: 1.6;
  }
  .zone {
    max-width: 130px;
    font-size: 11px;
  }
  .row {
    gap: 10px;
  }
}
/* Phone refinements: intentionally follow the base phone rules. */
@media (max-width: 650px) {
  .heading {
    flex-wrap: wrap;
  }
  .heading > div {
    width: 100%;
  }
  .heading > button {
    padding: 12px 16px;
  }
  h1 {
    font-size: 27px;
  }
  .eyebrow {
    line-height: 1.7;
  }
  dialog {
    max-height: 90vh;
    overflow: auto;
  }
}
