:root{
  --dashboard-bg-1:#f7f3ff;
  --dashboard-bg-2:#eef3ff;
  --dashboard-surface:rgba(255,255,255,0.76);
  --dashboard-surface-strong:rgba(255,255,255,0.9);
  --dashboard-border:rgba(123,97,255,0.16);
  --dashboard-border-strong:rgba(123,97,255,0.24);
  --dashboard-shadow:0 24px 60px rgba(101,82,188,0.14);
  --dashboard-shadow-soft:0 14px 34px rgba(101,82,188,0.1);
  --dashboard-text:#211d36;
  --dashboard-muted:#726b8f;
  --dashboard-primary:#7b61ff;
  --dashboard-primary-dark:#5f48da;
  --dashboard-primary-soft:#ebe6ff;
  --dashboard-teal:#8ce5d1;
  --dashboard-pink:#ffc7df;
  --dashboard-green:#2fc98d;
  --dashboard-danger:#ff6d7a;
  --dashboard-dark:#231d3f;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--dashboard-text);
  background:
    radial-gradient(circle at top left, rgba(140,229,209,0.28), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(123,97,255,0.2), transparent 22%),
    linear-gradient(135deg,var(--dashboard-bg-1),var(--dashboard-bg-2));
  overflow-x:hidden;
}

body::before,
body::after{
  content:"";
  position:fixed;
  border-radius:50%;
  filter:blur(42px);
  pointer-events:none;
  z-index:0;
}

body::before{
  width:420px;
  height:420px;
  top:-120px;
  right:-100px;
  background:rgba(123,97,255,0.22);
}

body::after{
  width:360px;
  height:360px;
  bottom:-120px;
  left:-80px;
  background:rgba(140,229,209,0.18);
}

button,
input,
select,
textarea{
  font:inherit;
}

.sidebar{
  position:fixed;
  top:18px;
  left:18px;
  bottom:18px;
  width:88px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  padding:18px 0;
  z-index:20;
  border-radius:30px;
  background:linear-gradient(180deg,rgba(37,31,66,0.96),rgba(53,44,92,0.94));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 30px 60px rgba(35,29,63,0.34);
}

.sidebar-brand{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,0.14),rgba(123,97,255,0.34));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.2);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.sidebar-brand:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 14px 24px rgba(123,97,255,0.32);
}

.sidebar-brand img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.side-menu{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.sidebar-toggle{width:54px;min-height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font-weight:800;cursor:pointer}.sidebar-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}.sidebar[data-expanded="true"]{width:210px;align-items:stretch;padding-inline:16px}.sidebar[data-expanded="true"] .sidebar-brand{align-self:center}.sidebar[data-expanded="true"] .side-menu{align-items:stretch}.sidebar[data-expanded="true"] .item,.sidebar[data-expanded="true"] .sidebar-toggle{width:100%;justify-content:flex-start;gap:12px;padding:0 14px}.sidebar[data-expanded="true"] .item-text{display:inline;font-size:14px;font-weight:800}.sidebar[data-expanded="true"] .item::after{display:none}.sidebar[data-expanded="true"] .item::before{left:-8px}.sidebar-expanded .topbar,.sidebar-expanded .main{margin-left:246px}

.item{
  position:relative;
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  color:rgba(255,255,255,0.72);
  border:0;
  background:transparent;
  font-family:inherit;
  font-size:22px;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.mobile-qaly-nav{display:none}

.item-text{
  display:none;
}

.item::before{
  content:"";
  position:absolute;
  left:-14px;
  width:4px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--dashboard-teal),#ffffff);
  opacity:0;
  transform:scaleY(.5);
  transition:opacity .2s ease, transform .2s ease;
}

.item::after{
  content:attr(data-label);
  position:absolute;
  left:66px;
  padding:9px 12px;
  border-radius:12px;
  background:rgba(35,29,63,0.96);
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.01em;
  opacity:0;
  transform:translateY(4px);
  pointer-events:none;
  white-space:nowrap;
  transition:opacity .2s ease, transform .2s ease;
}

.item:hover{
  color:#fff;
  background:rgba(255,255,255,0.12);
  transform:translateY(-2px);
}

.item:hover::after{
  opacity:1;
  transform:translateY(0);
}

.item.active{
  color:#fff;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  box-shadow:0 18px 32px rgba(123,97,255,0.35);
}

.item.active::before{
  opacity:1;
  transform:scaleY(1);
}

.topbar,
.main{
  position:relative;
  margin-left:124px;
}

.topbar{
  position:sticky;
  top:18px;
  z-index:40;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  margin-top:18px;
  margin-right:18px;
  border-radius:30px;
  background:rgba(255,255,255,0.62);
  border:1px solid rgba(255,255,255,0.72);
  backdrop-filter:blur(18px);
  overflow:visible;
  box-shadow:var(--dashboard-shadow-soft);
}

body[data-dashboard-section="route"] .topbar{top:0;margin-top:0;padding-block:10px;border-radius:0 0 24px 24px}body[data-dashboard-section="route"] .topbar .brand-label{display:none}body[data-dashboard-section="route"] .topbar .logo-inline{width:38px;height:38px}body[data-dashboard-section="route"] .topbar .logout-btn{min-height:42px;padding-block:8px}

.top-left,
.top-right{
  display:flex;
  align-items:center;
  gap:14px;
}

.language-selector{
  position:relative;
  z-index:60;
}

.lang-btn{
  min-width:84px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px 0 12px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,0.78);
  color:var(--dashboard-text);
  box-shadow:0 12px 24px rgba(101,82,188,0.1);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lang-btn__icon{
  font-size:16px;
  line-height:1;
}

.lang-btn__text{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.lang-btn:hover{
  transform:translateY(-2px);
  background:#fff;
  box-shadow:0 18px 30px rgba(101,82,188,0.14);
}

.lang-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:188px;
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:18px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 18px 34px rgba(101,82,188,0.14);
  backdrop-filter:blur(18px);
  z-index:30;
}

.lang-dropdown.active{
  display:flex;
}

.lang-dropdown [data-lang]{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:14px;
  background:transparent;
  color:var(--dashboard-text);
  text-align:left;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.lang-dropdown [data-lang]:hover{
  color:var(--dashboard-primary-dark);
  background:rgba(123,97,255,0.1);
  transform:translateX(2px);
}

.lang-dropdown [data-lang].is-active{
  color:var(--dashboard-primary-dark);
  background:rgba(123,97,255,0.14);
  box-shadow:inset 0 0 0 1px rgba(123,97,255,0.12);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--dashboard-primary);
}

.brand h2{
  margin:0;
  font-family:'Baloo 2',cursive;
  font-size:32px;
  line-height:1;
  color:var(--dashboard-primary);
}

.logo-inline{
  width:46px;
  height:46px;
  object-fit:contain;
}

.logout-btn{
  border:none;
  padding:12px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,#ff7f8c,#ff6674);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(255,109,122,0.24);
  transition:transform .2s ease, box-shadow .2s ease;
}

.logout-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 34px rgba(255,109,122,0.32);
}

#avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  object-fit:cover;
  border:2px solid rgba(123,97,255,0.3);
  box-shadow:0 12px 26px rgba(123,97,255,0.18);
}

.main{
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,360px);
  gap:24px;
  padding:22px 18px 30px;
  align-items:start;
}

.main--full{
  grid-template-columns:1fr;
}

.left,
.right{
  min-width:0;
}

.right{
  position:sticky;
  top:114px;
}

#dashboard-section,
#route-section,
#exam-section,
#classes-section,
#bootcamp-section,
#profile-section{
  animation:dashboardFade .3s ease;
}

@keyframes dashboardFade{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.hero,
.redeem,
.panel,
.card-stat{
  position:relative;
  background:var(--dashboard-surface);
  border:1px solid rgba(255,255,255,0.74);
  border-radius:28px;
  box-shadow:var(--dashboard-shadow);
  backdrop-filter:blur(18px);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hero:hover,
.redeem:hover,
.panel:hover,
.card-stat:hover{
  transform:translateY(-3px);
  box-shadow:0 32px 70px rgba(101,82,188,0.18);
  border-color:var(--dashboard-border-strong);
}

.hero,
.redeem,
.panel{
  padding:26px;
  margin-bottom:22px;
}

.panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.panel-heading h3{
  margin:0;
}

.panel-note{
  margin:0 0 14px;
  color:var(--dashboard-muted);
  font-size:14px;
}

.panel-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.panel-error{
  padding:12px 14px;
  border-radius:14px;
  background:#fff0f0;
  color:#a21f1f;
  font-weight:700;
}

.card-stat{
  padding:22px;
}

.student-school-panel{
  position:relative;
  padding:24px;
  margin-bottom:22px;
  overflow:hidden;
  border:1px solid var(--dashboard-border);
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 8%,rgba(140,229,209,.32),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.9),rgba(240,237,255,.92));
  box-shadow:var(--dashboard-shadow-soft);
}

.student-school-heading{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.student-school-heading h2{
  margin:7px 0 4px;
  font-family:'Baloo 2',sans-serif;
  font-size:clamp(1.6rem,3vw,2.2rem);
}

.student-school-heading p{
  margin:0;
  color:var(--dashboard-muted);
}

.student-school-role{
  min-width:110px;
  padding:12px 15px;
  border:1px solid rgba(123,97,255,.15);
  border-radius:16px;
  text-align:center;
  background:rgba(255,255,255,.8);
}

.student-school-role span,
.student-school-role strong{
  display:block;
}

.student-school-role span{
  color:var(--dashboard-muted);
  font-size:.74rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.student-school-role strong{
  margin-top:4px;
  color:var(--dashboard-primary-dark);
}

.student-school-stats{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.student-school-stats>div{
  min-width:125px;
  padding:12px 14px;
  border:1px solid var(--dashboard-border);
  border-radius:15px;
  background:rgba(255,255,255,.78);
}

.student-school-stats span{
  color:var(--dashboard-muted);
  font-size:.78rem;
  font-weight:700;
}

.student-school-stats strong{
  display:block;
  margin-top:3px;
  font-size:1.3rem;
}

.student-groups-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.student-group-card{
  padding:14px 16px;
  border:1px solid var(--dashboard-border);
  border-radius:16px;
  background:rgba(255,255,255,.84);
}

.student-group-card strong,
.student-group-card span{
  display:block;
}

.student-group-card span{
  margin-top:5px;
  color:var(--dashboard-muted);
  font-size:.82rem;
}

.student-group-courses{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.student-group-courses small{
  padding:5px 8px;
  border-radius:999px;
  color:#14794b;
  font-size:.72rem;
  font-weight:800;
  background:rgba(20,121,75,.09);
}

.student-group-courses small.upcoming{
  color:#6b4cc5;
  background:rgba(115,87,245,.09);
}

.student-group-courses small.overdue{
  color:#b42318;
  background:rgba(180,35,24,.08);
}

.student-group-courses small.empty{
  padding:0;
  color:var(--dashboard-muted);
  font-weight:600;
  background:transparent;
}

.student-school-empty{
  grid-column:1/-1;
  margin:0;
  padding:12px 0 0;
  color:var(--dashboard-muted);
}

.student-activities-panel{
  padding:24px;
  margin-bottom:22px;
  border:1px solid var(--dashboard-border);
  border-radius:26px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--dashboard-shadow-soft);
}

.student-activities-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.student-activities-heading h2{
  margin:7px 0 4px;
  font-family:'Baloo 2',sans-serif;
  font-size:clamp(1.6rem,3vw,2.2rem);
}

.student-activities-heading p{
  max-width:680px;
  margin:0;
  color:var(--dashboard-muted);
}

.student-activity-count{
  min-width:110px;
  padding:12px 15px;
  border:1px solid var(--dashboard-border);
  border-radius:16px;
  text-align:center;
  background:#fff;
}

.student-activity-count span,.student-activity-count strong{display:block}
.student-activity-count span{color:var(--dashboard-muted);font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.student-activity-count strong{margin-top:4px;color:var(--dashboard-primary-dark);font-size:1.35rem}
.student-activities-list{display:grid;gap:14px;margin-top:18px}
.student-activity-card{padding:18px;border:1px solid var(--dashboard-border);border-radius:19px;background:#fff}
.student-activity-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.student-activity-card h3{margin:4px 0;font-family:'Baloo 2',sans-serif;font-size:1.3rem}
.student-activity-card p{margin:6px 0;color:var(--dashboard-muted);line-height:1.55;white-space:pre-wrap}
.student-activity-state{padding:7px 10px;border-radius:999px;color:var(--dashboard-primary-dark);font-size:.73rem;font-weight:800;background:rgba(123,97,255,.1)}
.student-activity-state.late{color:#b42318;background:rgba(180,35,24,.08)}
.student-submission-form{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--dashboard-border)}
.student-submission-form label{display:grid;gap:7px;color:var(--dashboard-muted);font-size:.78rem;font-weight:800}
.student-submission-form textarea,.student-submission-form input[type='file']{width:100%;padding:11px 12px;border:1px solid var(--dashboard-border);border-radius:13px;color:var(--dashboard-text);font:inherit;background:#fff}
.student-submission-form button{justify-self:start;padding:11px 15px;border:0;border-radius:12px;color:#fff;font-weight:800;background:var(--dashboard-primary)}
.student-submission-status{min-height:20px;margin:2px 0 0!important;font-weight:700}
.student-submission-status.success{color:#14794b}.student-submission-status.error{color:#b42318}
.student-grade-result{margin-top:14px;padding:14px;border-radius:15px;color:#18583d;background:rgba(20,121,75,.08)}
.student-grade-result strong,.student-grade-result span{display:block}
.student-grade-result span{margin-top:5px;font-size:.85rem}
.student-notifications-panel{padding:24px;margin-bottom:22px;border:1px solid var(--dashboard-border);border-radius:26px;background:rgba(255,255,255,.9);box-shadow:var(--dashboard-shadow-soft)}
.student-notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.student-notifications-heading h2{margin:7px 0 0;font-family:'Baloo 2',sans-serif;font-size:clamp(1.6rem,3vw,2.2rem)}
.student-notification-actions{display:flex;align-items:center;gap:10px}
.student-notification-actions button{padding:9px 12px;border:1px solid var(--dashboard-border);border-radius:11px;color:var(--dashboard-primary-dark);font-weight:800;background:#fff}
.student-notification-badge{min-width:25px;padding:4px 7px;border-radius:999px;color:#fff;text-align:center;font-size:.76rem;font-weight:900;background:var(--dashboard-primary)}
.student-notifications-list{display:grid;gap:10px;margin-top:18px}
.student-notification{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--dashboard-border);border-radius:16px;background:#fff}
.student-notification.unread{border-color:var(--dashboard-border-strong);box-shadow:0 8px 18px rgba(101,82,188,.08)}
.student-notification-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;color:#fff;font-weight:900;background:linear-gradient(135deg,var(--dashboard-primary),#a18cff)}
.student-notification-copy{min-width:0;flex:1}
.student-notification-copy strong,.student-notification-copy span,.student-notification-copy small{display:block}
.student-notification-copy span{margin-top:3px;color:var(--dashboard-muted);font-size:.85rem}
.student-notification-copy small{margin-top:5px;color:var(--dashboard-muted);font-size:.72rem}
.student-notification button{padding:7px 9px;border:1px solid var(--dashboard-border);border-radius:9px;color:var(--dashboard-primary-dark);font-weight:800;background:#fff}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);
  gap:24px;
  min-height:250px;
  background:
    linear-gradient(140deg,rgba(255,255,255,0.82),rgba(243,239,255,0.96));
}

@media(max-width:680px){
  .student-school-heading{
    flex-direction:column;
  }

  .student-activities-heading{
    display:block;
  }

  .student-activity-count{
    width:max-content;
    margin-top:14px;
  }

  .student-activity-card-head{
    display:block;
  }

  .student-activity-state{
    display:inline-block;
    margin-top:10px;
  }

  .student-notifications-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .student-school-role{
    text-align:left;
  }

  .student-school-stats,
  .student-groups-list{
    display:grid;
    grid-template-columns:1fr;
  }
}

.hero::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-50px;
  top:-50px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(123,97,255,0.16), transparent 62%);
}

.hero-copy,
.hero-aside{
  position:relative;
  z-index:1;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

.hero-kicker{
  display:inline-flex;
  align-self:flex-start;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(123,97,255,0.12);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  font-size:clamp(34px,5vw,48px);
  line-height:.98;
  letter-spacing:-.03em;
}

.hero-subtitle{
  max-width:640px;
  margin:0;
  color:var(--dashboard-muted);
  font-size:16px;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:4px;
}

.hero-aside{
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
}

.hero-aside-card{
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.12);
  border-radius:22px;
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
  padding:22px;
}

.hero-aside-card strong{
  display:block;
  margin-top:8px;
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.hero-aside-card p{
  margin:10px 0 0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.hero-aside-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--dashboard-primary);
}

.hero-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:13px;
  font-weight:700;
}

.primary,
.secondary,
.redeem button,
.btn-primary,
.btn-danger,
.admin-add-course button,
.course-admin-actions button,
.code-generate button,
.bootcamp-btn{
  border:none;
  border-radius:16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.primary,
.secondary,
.redeem button,
.btn-primary,
.admin-add-course button,
.course-admin-actions button,
.code-generate button{
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.btn-danger{
  padding:12px 18px;
  background:linear-gradient(135deg,#ff4d4d,#ff7a7a);
  color:#fff;
  box-shadow:0 16px 28px rgba(255,77,77,.18);
}

.primary:hover,
.secondary:hover,
.redeem button:hover,
.btn-primary:hover,
.btn-danger:hover,
.admin-add-course button:hover,
.course-admin-actions button:hover,
.code-generate button:hover,
.bootcamp-btn:hover{
  transform:translateY(-2px);
}

.primary{
  padding:14px 22px;
  font-size:15px;
}

.secondary{
  padding:12px 18px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.enrollments-scroll{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:420px;
  overflow-y:auto;
  padding-right:6px;
}

.enrollment-card{
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);
  gap:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 25px rgba(0,0,0,.07);
}

.enrollment-main h4{
  margin:0 0 5px;
  color:var(--dashboard-text);
}

.enrollment-main span,
.enrollment-main small,
.enrollment-detail span{
  display:block;
  color:var(--dashboard-muted);
  line-height:1.45;
}

.enrollment-main span{
  font-weight:800;
  color:var(--dashboard-primary);
}

.enrollment-detail{
  display:grid;
  gap:5px;
  font-size:14px;
}

.enrollment-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:10px;
}

.enrollment-actions button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:#ff5b5b;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.card-stat{
  min-height:124px;
}

.card-stat::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(123,97,255,0.08),transparent 60%);
}

.card-stat--courses::before{
  background:linear-gradient(135deg,rgba(140,229,209,0.18),transparent 65%);
}

.card-stat span,
.card-stat strong{
  position:relative;
  z-index:1;
}

.card-stat span{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--dashboard-muted);
}

.card-stat strong{
  display:block;
  margin-top:12px;
  font-size:42px;
  line-height:1;
}

.redeem h3,
.panel h3{
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.redeem-help,
.panel p{
  color:var(--dashboard-muted);
  line-height:1.6;
}

.redeem-help{
  margin:10px 0 0;
  max-width:640px;
}

.redeem-box{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.redeem input,
.admin-input-group input,
.admin-input-group select,
.select-courses,
.admin-filters input,
.admin-filters select,
.admin-users-container input,
.admin-add-course input,
.module-editor textarea{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(123,97,255,0.14);
  background:rgba(255,255,255,0.9);
  color:var(--dashboard-text);
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.8);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.redeem input:focus,
.admin-input-group input:focus,
.admin-input-group select:focus,
.select-courses:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.admin-users-container input:focus,
.admin-add-course input:focus,
.module-editor textarea:focus{
  border-color:rgba(123,97,255,0.38);
  box-shadow:0 0 0 5px rgba(123,97,255,0.08);
  background:#fff;
}

.admin-input-group input[readonly]{
  color:var(--dashboard-muted);
  background:rgba(245,242,255,0.78);
  cursor:not-allowed;
}

.redeem button{
  padding:0 20px;
  white-space:nowrap;
}

#codeMsg{
  min-height:20px;
  margin:12px 0 0;
  font-size:13px;
  color:var(--dashboard-primary-dark);
  font-weight:600;
}

.section-title{
  margin:0 0 18px;
  font-size:32px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.section-title--left{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.section-title--left::after{
  content:"";
  width:84px;
  height:5px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--dashboard-primary),rgba(140,229,209,0.85));
}

.courses{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.courses > p{
  margin:0;
  padding:22px 24px;
  border-radius:22px;
  background:rgba(255,255,255,0.72);
  border:1px dashed rgba(123,97,255,0.22);
  color:var(--dashboard-muted);
  text-align:center;
}

.course-row{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.course-row-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.course-row-head--empty{
  align-items:center;
  padding:18px;
  border:1px solid rgba(123,97,255,0.12);
  border-radius:18px;
  background:rgba(255,255,255,0.72);
}

.course-row-head--empty p{
  margin:0;
  color:var(--dashboard-muted);
  font-weight:800;
}

.course-title{
  margin:0;
  font-size:24px;
  letter-spacing:-.02em;
}

.validity-badge{
  min-width:190px;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(47,201,141,0.14),rgba(140,229,209,0.18));
  border:1px solid rgba(47,201,141,0.18);
  color:#147a56;
  box-shadow:0 12px 22px rgba(47,201,141,0.08);
}

.validity-badge.expired{
  background:rgba(255,109,122,0.12);
  border-color:rgba(255,109,122,0.18);
  color:#a52636;
}

.validity-badge span{
  font-weight:900;
  line-height:1.2;
}

.validity-badge small{
  color:inherit;
  opacity:.76;
  font-size:12px;
  font-weight:700;
}

.course-row-lessons{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
}

.course-row-lessons::-webkit-scrollbar{
  height:8px;
}

.course-row-lessons::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.2);
  border-radius:999px;
}

.lesson-card{
  min-width:280px;
  max-width:280px;
  flex:0 0 auto;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,0.95),rgba(247,244,255,0.98));
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 14px 28px rgba(101,82,188,0.1);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lesson-card:hover{
  transform:translateY(-4px);
  border-color:rgba(123,97,255,0.22);
  box-shadow:0 22px 36px rgba(101,82,188,0.15);
}

.lesson-card.locked{
  cursor:not-allowed;
  opacity:.65;
  background:linear-gradient(180deg,rgba(248,248,252,0.96),rgba(241,241,246,0.96));
}

.lesson-card h4{
  margin:0;
  font-size:16px;
  line-height:1.35;
}

.lesson-card small{
  color:var(--dashboard-muted);
  font-weight:600;
}

.progress-bar{
  width:100%;
  height:10px;
  background:rgba(123,97,255,0.1);
  border-radius:999px;
  overflow:hidden;
}

.progress{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),#a492ff 70%,var(--dashboard-teal));
}

.panel > p{
  margin:12px 0 0;
}

.diagnostic-panel{
  display:grid;
  grid-template-columns:minmax(250px,.88fr) minmax(0,1.12fr);
  gap:18px;
  padding:26px;
  margin-bottom:24px;
  border-radius:28px;
  background:linear-gradient(145deg,rgba(255,255,255,0.88),rgba(244,241,255,0.94));
  border:1px solid rgba(255,255,255,0.74);
  box-shadow:var(--dashboard-shadow);
  overflow:hidden;
}

.diagnostic-intro{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

.diagnostic-intro h2{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.diagnostic-intro p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.diagnostic-kpis{
  display:grid;
  gap:10px;
}

.diagnostic-kpis span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.1);
  color:var(--dashboard-muted);
  font-weight:700;
}

.diagnostic-kpis strong{
  color:var(--dashboard-text);
}

.diagnostic-workbench{
  display:grid;
  gap:14px;
}

.diagnostic-progress,
.diagnostic-card,
.diagnostic-result{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.82);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.diagnostic-progress{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  padding:14px 16px;
  border-radius:20px;
}

.diagnostic-progress span{
  color:var(--dashboard-muted);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-progress strong{
  color:var(--dashboard-primary-dark);
}

.diagnostic-progress div{
  grid-column:1 / -1;
  height:10px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.diagnostic-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.diagnostic-card{
  min-height:310px;
  padding:18px;
  border-radius:24px;
}

.diagnostic-question-head{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:start;
  margin-bottom:16px;
}

.diagnostic-question-head > span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:900;
}

.diagnostic-question-head strong{
  display:block;
  font-size:17px;
  line-height:1.35;
}

.diagnostic-question-head small{
  display:inline-flex;
  margin-top:10px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.diagnostic-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.diagnostic-option{
  min-height:58px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(123,97,255,0.14);
  background:#fff;
  color:var(--dashboard-text);
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.diagnostic-option:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.3);
  box-shadow:0 14px 24px rgba(101,82,188,0.1);
}

.diagnostic-option:disabled,
.diagnostic-sort-row button:disabled,
.diagnostic-confirm-order:disabled,
.diagnostic-match select:disabled,
.diagnostic-budget input:disabled,
.diagnostic-textarea:disabled{
  cursor:not-allowed;
  opacity:.78;
}

.diagnostic-option:disabled:hover{
  transform:none;
  box-shadow:none;
}

.diagnostic-option.selected{
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.diagnostic-feedback{
  margin:14px 0 0;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(140,229,209,0.16);
  color:#276b62;
  line-height:1.55;
  font-weight:700;
}

.diagnostic-feedback strong{
  display:block;
  margin-bottom:3px;
  color:inherit;
}

.diagnostic-feedback.try{
  background:rgba(255,109,122,0.12);
  color:#9a3040;
}

.diagnostic-feedback.ok{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.diagnostic-sort,
.diagnostic-match,
.diagnostic-budget{
  display:grid;
  gap:10px;
}

.diagnostic-sort-row,
.diagnostic-match label,
.diagnostic-budget label{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(123,97,255,0.12);
}

.diagnostic-sort-row span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-weight:900;
}

.diagnostic-sort-row button,
.diagnostic-confirm-order,
.diagnostic-nav button,
.diagnostic-result button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-weight:900;
  cursor:pointer;
}

.diagnostic-confirm-order{
  min-height:46px;
  background:linear-gradient(135deg,var(--dashboard-dark),#40356d);
  color:#fff;
}

.diagnostic-sort-row div{
  display:flex;
  gap:6px;
}

.diagnostic-match label{
  grid-template-columns:minmax(120px,.7fr) minmax(0,1fr);
}

.diagnostic-match span,
.diagnostic-budget span{
  color:var(--dashboard-text);
  font-weight:900;
  text-transform:capitalize;
}

.diagnostic-match select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(123,97,255,0.14);
  background:rgba(255,255,255,0.9);
}

.diagnostic-textarea{
  width:100%;
  min-height:140px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(123,97,255,0.14);
  background:#fff;
  color:var(--dashboard-text);
  resize:vertical;
  outline:none;
}

.diagnostic-budget label{
  grid-template-columns:110px minmax(0,1fr) 44px;
}

.diagnostic-budget input{
  accent-color:var(--dashboard-primary);
}

.diagnostic-total{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,109,122,0.12);
  color:#a52636;
  font-weight:900;
  text-align:center;
}

.diagnostic-total.ok{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.diagnostic-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.diagnostic-nav button{
  min-height:48px;
  flex:1 1 0;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  box-shadow:0 14px 24px rgba(123,97,255,0.18);
}

.diagnostic-nav button:disabled{
  opacity:.46;
  cursor:not-allowed;
  box-shadow:none;
}

.diagnostic-result{
  display:grid;
  grid-template-columns:1fr auto auto auto auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-radius:20px;
}

.diagnostic-result span{
  color:var(--dashboard-muted);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-result strong{
  font-size:28px;
  color:var(--dashboard-primary-dark);
}

.diagnostic-result p{
  margin:0;
  color:var(--dashboard-muted);
  font-weight:800;
}

.diagnostic-save-btn{
  background:linear-gradient(135deg,var(--dashboard-green),#57dbab) !important;
  color:#fff !important;
}

.diagnostic-save-btn:disabled{
  opacity:.52;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.diagnostic-summary-hero,
.diagnostic-summary-panel{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.82);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.diagnostic-summary-hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:24px;
  border-radius:24px;
}

.diagnostic-summary-hero h2{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.diagnostic-summary-hero p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.diagnostic-summary-score{
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:16px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(123,97,255,0.12),rgba(140,229,209,0.18));
}

.diagnostic-summary-score strong{
  color:var(--dashboard-primary-dark);
  font-size:54px;
  line-height:.9;
}

.diagnostic-summary-score span{
  color:var(--dashboard-muted);
  font-weight:900;
}

.diagnostic-retake-btn{
  min-height:52px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(123,97,255,0.22);
}

.diagnostic-summary-panel{
  display:grid;
  gap:16px;
  padding:20px;
  border-radius:24px;
}

.diagnostic-metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.diagnostic-metric-grid article{
  min-height:112px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
}

.diagnostic-metric-grid span,
.diagnostic-metric-grid small{
  display:block;
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.diagnostic-metric-grid strong{
  display:block;
  margin-top:10px;
  color:var(--dashboard-text);
  font-size:21px;
  line-height:1.15;
}

.diagnostic-metric-grid small{
  margin-top:8px;
  text-transform:none;
  letter-spacing:0;
}

.diagnostic-area-table{
  display:grid;
  gap:10px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

.diagnostic-area-row{
  display:grid;
  grid-template-columns:minmax(150px,.8fr) minmax(120px,1fr) 54px;
  gap:12px;
  align-items:center;
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
}

.diagnostic-area-row strong,
.diagnostic-area-row span{
  display:block;
}

.diagnostic-area-row strong{
  font-size:14px;
}

.diagnostic-area-row span{
  margin-top:4px;
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.diagnostic-area-bar{
  height:10px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.diagnostic-area-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.diagnostic-area-row b{
  color:var(--dashboard-primary-dark);
  text-align:right;
}

.assistant-panel{
  padding:18px;
}

.ai-metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.ai-metric-summary{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.ai-summary-pill{
  min-width:130px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(130,108,255,.16);
  background:rgba(255,255,255,.86);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ai-summary-pill span{
  color:#655f7f;
  font-size:.78rem;
  font-weight:700;
}

.ai-summary-pill strong{
  color:#211b3d;
  font-size:1.08rem;
}

.ai-metric-group{
  border:1px solid rgba(130,108,255,.18);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.78);
}

.ai-metric-group--wide{
  grid-column:1 / -1;
}

.ai-metric-group h4{
  margin:0 0 10px;
  color:#211b3d;
  font-size:.95rem;
}

.ai-metric-row,
.ai-alert-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-top:1px solid rgba(130,108,255,.12);
  color:#5f5a7a;
}

.ai-metric-row:first-of-type,
.ai-alert-row:first-of-type{
  border-top:0;
}

.ai-metric-row strong{
  color:#7a5cff;
}

.ai-student-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(130,108,255,.12);
}

.ai-student-row:first-of-type{
  border-top:0;
}

.ai-student-row div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.ai-student-row strong{
  color:#211b3d;
}

.ai-student-row span,
.ai-student-row small{
  color:#655f7f;
}

.ai-student-row button,
.ai-alert-row button{
  align-self:flex-start;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(130,108,255,.18);
  background:#fff;
  color:#31285f;
  font-weight:800;
  cursor:pointer;
}

.ai-student-row button:hover,
.ai-alert-row button:hover{
  border-color:rgba(130,108,255,.34);
}

.ai-alert-row{
  align-items:flex-start;
  flex-direction:column;
  gap:3px;
  border-radius:12px;
  padding:10px;
  margin-bottom:8px;
  background:#fff8e8;
}

.ai-alert-row.critical{
  background:#fff1f2;
}

.ai-alert-row strong{
  color:#9b1c1c;
}

.ai-alert-row span,
.ai-alert-row small{
  color:#655f7f;
}

.ai-student-detail{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(130,108,255,.18);
  background:rgba(255,255,255,.86);
}

.ai-student-detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.ai-student-detail-header h4{
  margin:0;
  color:#211b3d;
}

.ai-student-detail-header span,
.ai-student-detail-header small{
  display:block;
  color:#655f7f;
}

.ai-student-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ai-detail-card{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(123,97,255,.05);
  border:1px solid rgba(123,97,255,.12);
}

.ai-detail-card h5{
  margin:0 0 8px;
  color:#211b3d;
  font-size:.92rem;
}

.ai-detail-card p{
  margin:0;
  color:#655f7f;
}

.ai-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ai-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(130,108,255,.16);
  color:#40366f;
  font-size:.82rem;
  font-weight:700;
}

.ai-activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ai-activity-row{
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(130,108,255,.14);
}

.ai-activity-row strong,
.ai-activity-row span,
.ai-activity-row small{
  display:block;
}

.ai-activity-row strong{
  color:#211b3d;
}

.ai-activity-row span,
.ai-activity-row small{
  color:#655f7f;
  margin-top:4px;
}

#analytics .stats{
  margin-top:18px;
  margin-bottom:0;
}

#adminPanel{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.admin-view-switcher{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 24px;
  padding:12px 14px;
  border:1px solid var(--dashboard-border);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--dashboard-shadow-soft);
  backdrop-filter:blur(18px);
  animation:admin-view-enter .45s cubic-bezier(.2,.8,.2,1) both;
}

.admin-view-switcher>div{
  display:flex;
  gap:8px;
}

.admin-view-switcher a,
.admin-view-switcher button{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border:0;
  border-radius:13px;
  color:var(--dashboard-muted);
  font-size:.84rem;
  font-weight:800;
  text-decoration:none;
  background:transparent;
  cursor:pointer;
  transition:transform .22s ease,color .22s ease,background .22s ease,box-shadow .22s ease;
}

.admin-view-switcher a:hover,
.admin-view-switcher button:hover{
  transform:translateY(-2px);
  color:var(--dashboard-primary-dark);
}

.admin-view-switcher [data-admin-view].active{
  color:#fff;
  background:linear-gradient(135deg,var(--dashboard-primary),#9c84ff);
  box-shadow:0 12px 24px rgba(95,72,218,.22);
}

.admin-view-home{
  color:var(--dashboard-primary-dark)!important;
}

.admin-deep-link-panel{
  scroll-margin-top:28px;
}

body.admin-category-schools .admin-section-users,
body.admin-category-users .admin-section-schools{
  display:none;
}

.admin-section-schools,
.admin-section-users{
  transform-origin:top center;
}

.admin-deep-link-active{
  animation:admin-panel-arrive .62s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes admin-view-enter{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes admin-panel-arrive{
  0%{opacity:0;transform:translateY(22px) scale(.985);box-shadow:0 0 0 rgba(123,97,255,0)}
  65%{opacity:1;transform:translateY(0) scale(1);box-shadow:0 26px 58px rgba(101,82,188,.2)}
  100%{opacity:1;transform:translateY(0) scale(1);box-shadow:var(--dashboard-shadow-soft)}
}

.admin-content-panel{
  overflow:visible;
}

.admin-content-heading{
  align-items:flex-start;
}

.admin-eyebrow{
  display:inline-flex;
  margin-bottom:7px;
  color:var(--dashboard-primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.content-builder{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,340px);
  gap:18px;
  margin-top:18px;
}

.content-builder-main,
.content-library,
.module-editor,
.module-pill{
  border:1px solid rgba(123,97,255,0.12);
  background:rgba(255,255,255,0.72);
  box-shadow:0 14px 28px rgba(101,82,188,0.08);
}

.content-builder-main,
.content-library{
  border-radius:24px;
  padding:18px;
}

.builder-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.builder-grid .wide{
  grid-column:1 / -1;
}

.builder-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:16px 0;
}

.builder-status{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:13px;
  font-weight:800;
}

.builder-status.success{
  background:rgba(47,201,141,0.14);
  color:#147a56;
}

.builder-status.warning{
  background:rgba(255,109,122,0.14);
  color:#a52636;
}

.module-workspace{
  display:grid;
  grid-template-columns:minmax(190px,240px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}

.modules-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:620px;
  overflow:auto;
  padding-right:4px;
}

.module-pill{
  width:100%;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  color:var(--dashboard-text);
  text-align:left;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.module-pill:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.24);
}

.module-pill.active{
  background:linear-gradient(135deg,rgba(123,97,255,0.16),rgba(140,229,209,0.18));
  border-color:rgba(123,97,255,0.28);
}

.module-pill span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:800;
  grid-row:1 / 3;
}

.module-pill strong,
.module-pill small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.module-pill small{
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.module-editor{
  min-height:360px;
  border-radius:22px;
  padding:18px;
}

.module-editor.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--dashboard-muted);
  text-align:center;
}

.module-editor-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.module-editor-head h4{
  margin:0;
  font-size:22px;
  line-height:1.15;
}

.module-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.icon-action{
  min-height:38px;
  padding:8px 11px;
  border:none;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.icon-action.danger{
  background:rgba(255,109,122,0.14);
  color:#aa2535;
}

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

.module-editor textarea{
  min-height:104px;
  resize:vertical;
  line-height:1.45;
}

.content-library{
  position:sticky;
  top:132px;
}

.content-library-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.content-library-header .secondary{
  padding:10px 12px;
  font-size:13px;
}

.admin-bootcamps-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:640px;
  overflow:auto;
}

.content-sync-admin-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.12);
}

.content-sync-admin-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.content-sync-admin-stat{
  border-radius:14px;
  padding:12px;
  background:rgba(245,244,255,0.95);
  border:1px solid rgba(123,97,255,0.1);
}

.content-sync-admin-stat strong{
  display:block;
  font-size:22px;
  color:var(--dashboard-primary-dark);
}

.content-sync-admin-stat span{
  display:block;
  margin-top:4px;
  color:var(--dashboard-muted);
  font-size:13px;
}

.content-sync-admin-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.content-sync-admin-card{
  border-radius:14px;
  padding:12px;
  background:rgba(245,244,255,0.95);
  border:1px solid rgba(123,97,255,0.1);
}

.content-sync-admin-card h4{
  margin:0 0 10px;
  font-size:14px;
  color:var(--dashboard-primary-dark);
}

.content-sync-admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.content-sync-admin-list--jobs{
  max-height:280px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
  scrollbar-width:thin;
}

.content-sync-admin-list--jobs::-webkit-scrollbar{
  width:8px;
}

.content-sync-admin-list--jobs::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.24);
  border-radius:999px;
}

.content-sync-admin-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  padding:10px 0;
  border-top:1px solid rgba(123,97,255,0.08);
  min-width:0;
  flex-wrap:wrap;
}

.content-sync-admin-row:first-child{
  border-top:none;
  padding-top:0;
}

.content-sync-admin-row:last-child{
  padding-bottom:0;
}

.content-sync-admin-row strong,
.content-sync-admin-row span,
.content-sync-admin-row small{
  display:block;
  overflow-wrap:anywhere;
}

.content-sync-admin-row span,
.content-sync-admin-row small{
  color:var(--dashboard-muted);
}

.content-sync-admin-row > div:first-child{
  flex:1 1 220px;
  min-width:0;
}

.content-sync-admin-row > div:last-child{
  flex:0 1 auto;
  max-width:100%;
}

.content-sync-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
}

.content-sync-pill.ready,
.content-sync-pill.completed{
  background:rgba(47,201,141,0.16);
  color:#0b8f5c;
}

.content-sync-pill.pending,
.content-sync-pill.in_progress{
  background:rgba(123,97,255,0.14);
  color:var(--dashboard-primary-dark);
}

.content-sync-pill.retrying{
  background:rgba(255,184,77,0.18);
  color:#a05d00;
}

.content-sync-pill.failed,
.content-sync-pill.deleted,
.content-sync-pill.stalled{
  background:rgba(255,109,122,0.14);
  color:#c53d55;
}

.admin-bootcamp-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.1);
}

.admin-bootcamp-card div{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.admin-bootcamp-card strong,
.admin-bootcamp-card span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-bootcamp-card span{
  color:var(--dashboard-muted);
  font-size:13px;
}

.admin-bootcamp-actions{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.admin-bootcamp-card .admin-bootcamp-actions button{
  border:none;
  border-radius:12px;
  padding:9px 12px;
  background:var(--dashboard-dark);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.admin-bootcamp-card .admin-bootcamp-actions button.danger{
  background:linear-gradient(135deg,#ff4d5f,#ff7d87);
  box-shadow:0 12px 22px rgba(255,77,95,0.18);
}

.bootcamp-preview h2{
  margin:6px 0 10px;
  font-size:34px;
  line-height:1.08;
}

.bootcamp-preview p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.preview-validity{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(47,201,141,0.14);
  color:#147a56;
  font-weight:800;
}

.preview-validity span{
  color:inherit;
  font-size:13px;
}

.preview-modules{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.preview-module{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.8);
  border:1px solid rgba(123,97,255,0.12);
}

.preview-module span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff);
  color:#fff;
  font-weight:800;
}

.preview-module div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.preview-module small{
  color:var(--dashboard-muted);
}

.admin-code-box,
.admin-add-course,
.admin-filters{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:18px;
}

.school-create-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) auto;
  align-items:end;
  gap:14px;
  margin-top:18px;
}

.school-create-form .btn-primary{
  min-height:48px;
}

.school-create-form .btn-primary:disabled{
  cursor:wait;
  opacity:.65;
  transform:none;
}

.school-create-status{
  min-height:22px;
  margin:14px 0 0;
  color:var(--dashboard-muted);
  font-weight:700;
}

.school-create-status.success{
  color:#16794b;
}

.school-create-status.error{
  color:#b42318;
}

.schools-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.school-admin-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid rgba(123,97,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}

.school-admin-row strong,
.school-admin-row span,
.school-admin-row small{
  display:block;
}

.school-admin-row span,
.school-admin-row small{
  margin-top:4px;
  color:var(--dashboard-muted);
}

.school-admin-row code{
  align-self:center;
  padding:7px 10px;
  border-radius:10px;
  background:rgba(123,97,255,.08);
  color:var(--dashboard-primary-dark);
}

.admin-input-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 180px;
  min-width:180px;
}

.admin-input-group label{
  font-size:13px;
  font-weight:700;
  color:var(--dashboard-muted);
}

@media(max-width:900px){
  .school-create-form{
    grid-template-columns:1fr;
  }

  .school-admin-row{
    flex-direction:column;
  }

  .school-admin-row code{
    align-self:flex-start;
  }
}

.code-generate{
  display:flex;
  gap:10px;
}

.code-generate button{
  min-width:54px;
}

.btn-primary,
.admin-add-course button{
  padding:13px 20px;
}

.admin-filters input,
.admin-filters select,
.admin-users-container input{
  flex:1 1 20px;
}

.codes-scroll,
.users-scroll{
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

#codesList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.code-row,
#codesList > div{
  display:grid;
  grid-template-columns:1.2fr minmax(100px,.8fr) 100px;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
  box-shadow:0 10px 22px rgba(101,82,188,0.08);
}

.code-row strong{
  font-size:15px;
}

.code-row span{
  color:var(--dashboard-muted);
  font-size:13px;
}

.code-usage{
  grid-column:1 / -1;
  width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(123,97,255,0.1);
  overflow:hidden;
}

.code-usage-fill{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dashboard-primary),var(--dashboard-teal));
}

.admin-users-container{
  display:flex;
  flex-direction:column;
}

.course-admin-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px;
  margin-top:12px;
  border-radius:22px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(123,97,255,0.1);
  box-shadow:0 12px 24px rgba(101,82,188,0.08);
}

.course-admin-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.course-admin-info h4{
  margin:0;
  font-size:16px;
}

.course-admin-info span,
.course-admin-info small{
  color:var(--dashboard-muted);
}

.course-admin-actions{
  display:flex;
  gap:10px;
}

.course-admin-actions button{
  padding:10px 14px;
}

.course-admin-actions button.danger{
  background:linear-gradient(135deg,#ff8691,#ff6674);
  color:#fff;
  box-shadow:0 14px 26px rgba(255,109,122,0.2);
}

.profile-card{
  display:grid;
  gap:14px;
}

.profile-card p{
  margin:0;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(123,97,255,0.1);
}

.learning-profile-panel{
  margin-top:28px;
}

.learning-profile-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.learning-profile-heading h3{
  margin:4px 0 8px;
  font-size:24px;
}

.learning-profile-heading p,
.learning-profile-accessibility > p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.learning-profile-eyebrow{
  color:var(--dashboard-purple);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.learning-profile-badge{
  padding:8px 12px;
  border-radius:999px;
  background:#e7f8ef;
  color:#176b43;
  font-size:13px;
  font-weight:800;
}

.learning-profile-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.learning-profile-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.learning-profile-field--wide,
.learning-profile-accessibility,
.learning-profile-actions{
  grid-column:1 / -1;
}

.learning-profile-field label,
.learning-profile-accessibility legend{
  color:var(--dashboard-text);
  font-weight:800;
}

.learning-profile-field input,
.learning-profile-field select,
.learning-profile-field textarea{
  width:100%;
  min-height:46px;
  box-sizing:border-box;
  border:1px solid rgba(83,68,148,.22);
  border-radius:14px;
  background:#fff;
  color:var(--dashboard-text);
  font:inherit;
  padding:11px 13px;
}

.learning-profile-field textarea{
  resize:vertical;
}

.learning-profile-field input:focus,
.learning-profile-field select:focus,
.learning-profile-field textarea:focus{
  border-color:var(--dashboard-purple);
  box-shadow:0 0 0 3px rgba(123,97,255,.14);
  outline:none;
}

.learning-profile-field [aria-invalid="true"]{
  border-color:#c53945;
}

.learning-profile-field small{
  color:var(--dashboard-muted);
  line-height:1.45;
}

.learning-profile-error{
  min-height:1.2em;
  color:#a3232f;
  font-size:13px;
  font-weight:700;
}

.learning-profile-accessibility{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 18px;
  margin:6px 0 0;
  padding:20px;
  border:1px solid rgba(123,97,255,.18);
  border-radius:18px;
}

.learning-profile-accessibility legend{
  padding:0 8px;
}

.learning-profile-accessibility > p,
.learning-profile-checks{
  grid-column:1 / -1;
}

.learning-profile-checks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.learning-profile-checks label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(123,97,255,.06);
  cursor:pointer;
}

.learning-profile-checks input{
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.learning-profile-checks--single{
  grid-template-columns:1fr;
}

.brief-diagnostic-panel{
  margin-top:28px;
}

.brief-diagnostic-form{
  display:grid;
  gap:20px;
}

#briefDiagnosticQuestions{
  display:grid;
  gap:18px;
}

.brief-diagnostic-question{
  margin:0;
  padding:18px;
  border:1px solid rgba(123,97,255,.18);
  border-radius:18px;
}

.brief-diagnostic-question legend{
  padding:0 8px;
  color:var(--dashboard-text);
  font-weight:800;
}

.brief-diagnostic-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.brief-diagnostic-options label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(123,97,255,.06);
  cursor:pointer;
}

.brief-diagnostic-options input{
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.brief-diagnostic-question[data-invalid="true"]{
  border-color:#c53945;
}

.brief-diagnostic-error{
  min-height:1.2em;
  margin:8px 0 0;
  color:#a3232f;
  font-size:13px;
  font-weight:700;
}

.brief-diagnostic-summary{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:#f2efff;
  color:var(--dashboard-text);
}

.brief-diagnostic-summary h4,
.brief-diagnostic-summary p{
  margin:0 0 8px;
}

#briefDiagnosticStatus[data-tone="error"]{
  color:#a3232f;
}

#briefDiagnosticStatus[data-tone="success"]{
  color:#176b43;
}

.learning-profile-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}

.learning-profile-actions button{
  min-height:46px;
}

#learningProfileStatus{
  min-height:1.4em;
  margin:0;
  color:var(--dashboard-muted);
}

#learningProfileStatus[data-tone="error"]{
  color:#a3232f;
}

#learningProfileStatus[data-tone="success"]{
  color:#176b43;
}

@media (max-width:720px){
  .learning-profile-form,
  .learning-profile-accessibility,
  .learning-profile-checks{
    grid-template-columns:1fr;
  }

  .learning-profile-heading{
    flex-direction:column;
  }

  .brief-diagnostic-options{
    grid-template-columns:1fr;
  }

  .route-list,
  .route-generation-steps{
    grid-template-columns:1fr;
  }

  .route-collection-heading{
    flex-direction:column;
  }
}

.route-status-cluster{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.route-collection{margin-bottom:22px}
.route-collection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.route-collection-heading h3,.route-collection-heading p{margin:0 0 6px}
.route-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.route-list-item{position:relative;display:grid;min-width:0}
.route-list-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;min-height:176px;padding:16px 16px 62px;border:1px solid rgba(123,97,255,.18);border-radius:16px;background:#fff;color:var(--dashboard-text);text-align:left;cursor:pointer}
.route-list-card[aria-current="true"]{border-color:var(--dashboard-purple);box-shadow:0 0 0 3px rgba(123,97,255,.12)}
.route-list-card strong{font-size:17px}
.route-list-card small{margin-top:auto;color:var(--dashboard-muted)}
.route-card-actions{position:absolute;right:12px;bottom:12px;left:12px;display:flex;justify-content:flex-end;gap:8px;pointer-events:none}
.route-delete-button,.route-upgrade-button{min-height:36px;padding:7px 11px;border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;pointer-events:auto}
.route-delete-button{border:1px solid rgba(163,35,47,.18);color:#9f2532}
.route-upgrade-button{border:1px solid rgba(91,69,202,.24);color:#5943c7}
.route-delete-button:hover,.route-delete-button:focus-visible{border-color:#a3232f;box-shadow:0 0 0 3px rgba(163,35,47,.1);outline:none}
.route-upgrade-button:hover,.route-upgrade-button:focus-visible{border-color:#6b52df;box-shadow:0 0 0 3px rgba(123,97,255,.12);outline:none}
.route-generation-form{width:100%;display:grid;gap:18px;text-align:left}
.route-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.route-builder-card{display:grid;align-content:start;gap:16px;min-width:0;padding:22px;border:1px solid rgba(123,97,255,.14);border-radius:22px;background:rgba(255,255,255,.9)}
.route-generation-field{display:grid;gap:8px}
.route-generation-field label,.route-worlds legend,.route-experience-types legend{font-weight:800}
.route-generation-field label,.route-experience-types legend,.route-worlds legend{font-size:20px;color:var(--dashboard-text)}
.route-generation-field p,.route-worlds>p{margin:0;color:var(--dashboard-muted);font-size:14px;line-height:1.45}
.route-generation-field textarea{width:100%;min-height:144px;box-sizing:border-box;border:2px solid rgba(83,68,148,.15);border-radius:20px;padding:16px;color:var(--dashboard-text);background:#faf9ff;font:inherit;font-size:17px;line-height:1.55;resize:vertical}
.route-generation-field textarea:focus{border-color:#7b61ff;box-shadow:0 0 0 4px rgba(123,97,255,.12);outline:none}
.route-suggestions,.route-worlds{display:flex;flex-wrap:wrap;gap:10px}
.route-suggestions button{min-height:40px;border:0;border-radius:999px;background:rgba(123,97,255,.09);padding:9px 13px;color:#5943c7;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.route-form-step{display:inline-flex;width:max-content;padding:4px 9px;border-radius:999px;background:rgba(123,97,255,.1);color:var(--dashboard-primary-dark);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.route-diagnostic-summary{width:min(760px,100%);display:flex;align-items:center;gap:10px;box-sizing:border-box;margin:18px 0;padding:12px 14px;border-radius:16px;background:rgba(140,229,209,.16);color:#245f55;text-align:left}
.route-diagnostic-summary span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:12px;background:#fff;font-weight:900}
.route-diagnostic-summary p{margin:0;font-size:14px;line-height:1.45}
.route-experience-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;padding:0;border:0}
.route-experience-types legend{margin-bottom:10px}
.route-experience-types label{position:relative;display:block;cursor:pointer}
.route-experience-types input{position:absolute;inset:0;opacity:0;pointer-events:none}
.route-experience-types label>span{display:grid;gap:3px;min-height:66px;box-sizing:border-box;padding:12px;border:1px solid rgba(123,97,255,.16);border-radius:16px;background:#f9f7ff;transition:border-color .2s,box-shadow .2s,transform .2s}
.route-experience-types label>span small{color:var(--dashboard-muted);font-size:12px}
.route-experience-types input:checked+span{border-color:var(--dashboard-primary);box-shadow:0 0 0 3px rgba(123,97,255,.12);transform:translateY(-1px)}
.route-experience-types input:focus-visible+span{outline:3px solid rgba(123,97,255,.28);outline-offset:2px}
.route-worlds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;border:0}
.route-worlds legend{grid-column:1/-1;padding:0;margin-bottom:3px}
.route-worlds>p{grid-column:1/-1;margin-bottom:4px}
.route-worlds label{position:relative;display:block;min-width:0;cursor:pointer}
.route-worlds input{position:absolute;inset:0;opacity:0;pointer-events:none}
.route-worlds label>span{display:flex;align-items:center;gap:9px;min-height:58px;box-sizing:border-box;padding:11px 13px;border:1px solid rgba(123,97,255,.16);border-radius:16px;background:#f5f2ff;color:#4d3ca2;font-weight:850}
.route-worlds label>span b{font-size:22px}
.route-worlds input:checked+span{border-color:#7259ed;background:linear-gradient(135deg,#7259ed,#9989f4);box-shadow:0 8px 18px rgba(91,68,202,.2);color:#fff}
.route-worlds input:focus-visible+span{outline:3px solid rgba(123,97,255,.28);outline-offset:2px}
.route-worlds label.disabled{opacity:.55;cursor:not-allowed}
.route-generate-button{min-width:min(100%,360px);justify-content:center;font-size:16px}
.route-preparing{display:grid;justify-items:center;gap:8px;width:min(100%,720px);box-sizing:border-box;margin:30px auto;padding:38px;text-align:center;background:linear-gradient(145deg,#fff,#faf8ff)}
.route-preparing[hidden]{display:none}
.route-preparing-icon{display:grid;place-items:center;width:82px;height:82px;margin-bottom:10px;border-radius:50%;background:#eee9ff;font-size:38px;animation:route-preparing-float 2.4s ease-in-out infinite}
.route-preparing h3{margin:8px 0 4px;font-size:30px}
.route-preparing>p{margin:0;color:var(--dashboard-muted)}
.route-generation-steps{width:100%;display:grid;grid-template-columns:1fr;gap:10px;margin:24px auto 14px;padding:0;list-style:none;text-align:left}
.route-generation-steps li{display:flex;align-items:center;gap:12px;min-height:56px;box-sizing:border-box;padding:12px 16px;border-radius:16px;background:#f2efff;color:var(--dashboard-muted);font-weight:700}
.route-generation-steps li>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.78)}
.route-generation-steps li[data-state="active"]{background:#fff2c7;color:#714f00}
.route-generation-steps li[data-state="complete"]{background:#e7f8ef;color:#176b43}
.route-generation-steps[hidden],.route-collection[hidden]{display:none}
@keyframes route-preparing-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

.route-connection-status{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  background:#e7f8ef;
  color:#176b43;
  font-size:13px;
  font-weight:800;
}

.route-connection-status::before{
  content:"";
  width:8px;
  height:8px;
  margin-right:7px;
  border-radius:50%;
  background:#2ca36f;
}

.route-connection-status[data-state="offline"]{
  background:#fff1d7;
  color:#7b5110;
}

.route-connection-status[data-state="offline"]::before{
  background:#d98a17;
}

.route-lesson-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.route-lesson-tools button{
  min-height:44px;
  padding:8px 11px;
  font-size:13px;
}

.route-storage-status{
  align-self:center;
  color:var(--dashboard-muted);
  font-size:12px;
  text-align:center;
}

.route-break-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(24,28,38,.72);
  backdrop-filter:blur(8px);
}

.route-break-overlay[hidden]{
  display:none;
}

.route-break-overlay section{
  width:min(100%,480px);
  padding:36px;
  border-radius:28px;
  background:#fff;
  box-shadow:0 34px 80px rgba(20,18,35,.32);
  text-align:center;
}

.route-break-overlay section > span{
  font-size:42px;
}

.route-break-overlay h2{
  margin:12px 0 8px;
  font-size:28px;
}

.route-break-overlay p{
  margin:0 0 22px;
  color:#5d5872;
  line-height:1.65;
}

#routeBreakReturnButton{
  min-height:44px;
}

.route-celebration{
  position:fixed;
  inset:0;
  z-index:1300;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(34,29,63,.72);
  backdrop-filter:blur(8px);
}

.route-celebration[hidden]{display:none}

.route-celebration>section{
  position:relative;
  z-index:2;
  width:min(100%,520px);
  box-sizing:border-box;
  padding:38px;
  border-radius:30px;
  background:#fff;
  box-shadow:0 32px 90px rgba(21,17,46,.34);
  text-align:center;
}

.route-celebration-visual{
  display:grid;
  place-items:center;
  width:96px;
  height:96px;
  margin:0 auto 18px;
  border-radius:28px;
  background:linear-gradient(145deg,#fff2b8,#eee7ff);
  font-size:48px;
}

.route-celebration h2{margin:8px 0;font-size:34px}
.route-celebration p{margin:0;color:var(--dashboard-muted);line-height:1.55}
.route-celebration-rewards{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:20px 0}
.route-celebration-rewards span{padding:9px 14px;border-radius:999px;background:#f0ecff;color:#553fc0;font-weight:900}
.route-celebration-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.route-celebration-confetti i{position:absolute;top:-10%;left:var(--confetti-left,50%);width:12px;height:22px;border-radius:4px;background:var(--confetti-color,#7b61ff);animation:route-confetti-fall 2.8s linear infinite;animation-delay:var(--confetti-delay,0s)}
@keyframes route-confetti-fall{to{transform:translate3d(var(--confetti-drift,20px),120vh,0) rotate(620deg)}}

@media (max-width:1100px){
  .route-builder-grid,.route-layout{grid-template-columns:1fr}
  .route-modules,.route-lesson{grid-column:1;grid-row:auto;position:static;max-height:none}
  .route-modules{order:2}
  .route-lesson{order:1}
}

@media (max-width:720px){
  .route-create-stage{padding:20px}
  .route-create-heading{align-items:flex-start}
  .route-create-heading .route-empty-icon{width:54px;height:54px;flex-basis:54px;border-radius:18px;font-size:26px}
  .route-create-heading h3,.route-preparing h3{font-size:25px}
  .route-builder-card{padding:17px}
  .route-experience-types,.route-worlds,.route-challenge-options{grid-template-columns:1fr}
  .route-block,.route-challenge{padding:20px}
  .route-block h4{font-size:21px}
  .lesson-step-navigation{position:sticky;bottom:76px;z-index:4;padding:10px;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 8px 30px rgba(38,31,75,.16)}
  .lesson-step-navigation button{flex:1}
}

:root{
  --qaly-text-scale:1;
}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

html{
  font-size:calc(16px * var(--qaly-text-scale));
}

html[data-qaly-spacing="comfortable"] .route-block,
html[data-qaly-spacing="comfortable"] .learning-profile-field{
  line-height:1.75;
}

html[data-qaly-spacing="wide"] .route-block,
html[data-qaly-spacing="wide"] .learning-profile-field{
  line-height:2;
  letter-spacing:.025em;
}

html[data-qaly-large-targets="true"] button,
html[data-qaly-large-targets="true"] input,
html[data-qaly-large-targets="true"] select{
  min-height:52px;
}

html[data-qaly-reduced-motion="true"] *,
html[data-qaly-reduced-motion="true"] *::before,
html[data-qaly-reduced-motion="true"] *::after{
  scroll-behavior:auto!important;
  animation-duration:.01ms!important;
  animation-iteration-count:1!important;
  transition-duration:.01ms!important;
}

html[data-qaly-contrast="high"]{
  --dashboard-bg-1:#fff;
  --dashboard-bg-2:#fff;
  --dashboard-surface:#fff;
  --dashboard-surface-strong:#fff;
  --dashboard-border:#111;
  --dashboard-border-strong:#000;
  --dashboard-text:#000;
  --dashboard-muted:#292929;
  --dashboard-primary:#3d22c7;
  --dashboard-primary-dark:#24117f;
}

html[data-qaly-contrast="high"] body{
  background:#fff;
}

html[data-qaly-contrast="high"] body::before,
html[data-qaly-contrast="high"] body::after{
  display:none;
}

html[data-qaly-contrast="high"] .panel,
html[data-qaly-contrast="high"] .route-block,
html[data-qaly-contrast="high"] .learning-profile-field input,
html[data-qaly-contrast="high"] .learning-profile-field select,
html[data-qaly-contrast="high"] .learning-profile-field textarea{
  border-color:#111;
  background:#fff;
  box-shadow:none;
}

html[data-qaly-contrast="dark"]{
  --dashboard-bg-1:#14121f;
  --dashboard-bg-2:#1b1730;
  --dashboard-surface:#242038;
  --dashboard-surface-strong:#2c2742;
  --dashboard-border:rgba(255,255,255,.26);
  --dashboard-border-strong:rgba(255,255,255,.4);
  --dashboard-text:#fff;
  --dashboard-muted:#d2cce7;
  --dashboard-primary:#aa98ff;
  --dashboard-primary-dark:#c1b3ff;
}

html[data-qaly-contrast="dark"] body{
  background:linear-gradient(135deg,#14121f,#211a3b);
}

html[data-qaly-contrast="dark"] .panel,
html[data-qaly-contrast="dark"] .route-block,
html[data-qaly-contrast="dark"] .route-overview,
html[data-qaly-contrast="dark"] .route-builder-card,
html[data-qaly-contrast="dark"] .learning-profile-checks label{
  border-color:rgba(255,255,255,.22);
  background:#242038;
  color:#fff;
}

html[data-qaly-contrast="dark"] .learning-profile-field input,
html[data-qaly-contrast="dark"] .learning-profile-field select,
html[data-qaly-contrast="dark"] .learning-profile-field textarea,
html[data-qaly-contrast="dark"] .route-generation-field textarea,
html[data-qaly-contrast="dark"] .route-challenge-options label,
html[data-qaly-contrast="dark"] .route-help-actions button,
html[data-qaly-contrast="dark"] .route-challenge-text textarea{
  border-color:rgba(255,255,255,.3);
  background:#181524;
  color:#fff;
}

html[data-qaly-contrast="dark"] .route-break-overlay section{
  background:#242038;
  color:#fff;
}

html[data-qaly-contrast="dark"] .route-break-overlay p{
  color:#d2cce7;
}

html[data-qaly-focus-mode="true"] .sidebar,
html[data-qaly-focus-mode="true"] .topbar,
html[data-qaly-focus-mode="true"] #dashboardAssistant,
html[data-qaly-focus-mode="true"] .route-page-heading,
html[data-qaly-focus-mode="true"] .route-overview,
html[data-qaly-focus-mode="true"] .route-modules{
  display:none!important;
}

html[data-qaly-focus-mode="true"] .main{
  grid-template-columns:1fr;
  width:min(100%,980px);
  margin:0 auto;
  padding:20px;
}

html[data-qaly-calm-mode="true"] .lesson-audio-controls,
html[data-qaly-calm-mode="true"] .lesson-phase-track,
html[data-qaly-calm-mode="true"] [data-xp],
html[data-qaly-calm-mode="true"] [data-achievement-celebration],
html[data-qaly-calm-mode="true"] .confetti,
html[data-qaly-calm-mode="true"] .route-celebration-confetti,
html[data-qaly-gamification="false"] [data-xp],
html[data-qaly-gamification="false"] [data-achievement-celebration]{
  display:none!important;
}

html[data-qaly-calm-mode="true"] *,
html[data-qaly-calm-mode="true"] *::before,
html[data-qaly-calm-mode="true"] *::after{
  animation:none!important;
  scroll-behavior:auto!important;
  transition-duration:.01ms!important;
}

html[data-qaly-calm-mode="true"] .route-lesson,
html[data-qaly-calm-mode="true"] .route-block,
html[data-qaly-calm-mode="true"] .route-challenge{
  box-shadow:none!important;
  background:#fff;
}

html[data-qaly-calm-mode="true"][data-qaly-contrast="dark"] .route-lesson,
html[data-qaly-calm-mode="true"][data-qaly-contrast="dark"] .route-block,
html[data-qaly-calm-mode="true"][data-qaly-contrast="dark"] .route-challenge{
  background:#242038;
}

html[data-qaly-focus-mode="true"] .route-layout{
  grid-template-columns:1fr;
}

html[data-qaly-focus-mode="true"] .route-lesson{
  min-height:calc(100vh - 40px);
}

@media (max-width:720px){
  .route-status-cluster,
  .route-lesson-tools{
    width:100%;
    justify-content:flex-start;
  }

  .route-lesson-tools button{
    width:100%;
  }

  .route-lesson-navigation .route-storage-status{
    order:3;
  }
}

.route-shell{
  display:grid;
  gap:22px;
}

.route-page-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.route-page-heading h2{
  margin:5px 0 8px;
  font-size:34px;
  letter-spacing:-.03em;
}

.route-page-heading p{
  margin:0;
  color:var(--dashboard-muted);
}

.route-eyebrow{
  color:var(--dashboard-purple);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.route-local-badge,
.route-level,
.route-duration{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(123,97,255,.1);
  color:#5943c7;
  font-size:13px;
  font-weight:800;
}

.route-empty{
  display:grid;
  justify-items:center;
  padding:46px 28px;
  text-align:center;
}

.route-create-stage{
  justify-items:stretch;
  padding:32px;
  text-align:left;
  background:
    radial-gradient(circle at 90% 8%,rgba(255,191,221,.28),transparent 28%),
    linear-gradient(145deg,#fff,#fbf9ff);
}

.route-create-heading{display:flex;align-items:center;gap:18px}
.route-create-heading .route-empty-icon{flex:0 0 74px;margin:0}
.route-create-heading h3{margin:5px 0 8px;font-size:30px}
.route-create-heading p{max-width:780px}

.route-empty[hidden],
#personalRouteView[hidden]{
  display:none;
}

.route-empty-icon{
  display:grid;
  place-items:center;
  width:74px;
  height:74px;
  margin-bottom:14px;
  border-radius:24px;
  background:linear-gradient(145deg,#eeeaff,#fff4f8);
  font-size:34px;
}

.route-empty h3{
  margin:0 0 10px;
  font-size:26px;
}

.route-empty p{
  max-width:620px;
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.route-empty-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:22px;
}

.route-profile-link{border:0;background:transparent;color:var(--dashboard-primary-dark);font-weight:850;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

.route-generated-tasks{margin:0 0 20px;padding:0;overflow:hidden}
.route-generated-tasks[hidden]{display:none}
.route-generated-tasks>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;font-weight:900}
.route-generated-tasks>summary small{color:var(--dashboard-muted)}
#personalRouteTasksList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 18px 18px}
.route-task-card{display:grid;gap:8px;padding:15px;border:1px solid rgba(123,97,255,.12);border-radius:16px;background:#fff}
.route-task-card h4,.route-task-card p{margin:0}
.route-task-card p{color:var(--dashboard-muted);line-height:1.5}
.route-task-card small{color:var(--dashboard-primary-dark);font-weight:800}
.route-task-criteria{margin:0;padding-left:20px;color:var(--dashboard-muted);font-size:13px}

#personalRouteStatus{
  min-height:1.5em;
  margin-top:14px;
}

#personalRouteStatus[data-tone="error"]{
  color:#a3232f;
}

#personalRoutePreparingStatus[data-tone="error"]{color:#a3232f;font-weight:800}
#personalRoutePreparingStatus[data-tone="success"]{color:#176b43;font-weight:800}

.route-overview{
  display:grid;
  gap:22px;
  margin-bottom:20px;
  background:
    radial-gradient(circle at top right,rgba(255,183,213,.32),transparent 38%),
    linear-gradient(145deg,#fff,#f7f4ff);
}

.route-overview h3{
  margin:10px 0 8px;
  font-size:28px;
  letter-spacing:-.02em;
}

.route-overview p{
  max-width:760px;
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.65;
}

.route-overview-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.route-overview-metrics div{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border:1px solid rgba(123,97,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.76);
}

.route-overview-metrics span{
  color:var(--dashboard-muted);
  font-size:13px;
}

.route-overview-metrics strong{
  font-size:20px;
}

.route-progress-track{
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#e9e5f5;
}

.route-progress-track span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#7b61ff,#ff8fba);
  transition:width .25s ease;
}

.route-insights-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1rem;
}
.route-insight-panel h3{margin:.25rem 0}.route-insight-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.route-insight-metrics div{background:var(--card-bg,#f7f8fb);border-radius:.75rem;padding:.75rem}.route-insight-metrics dt{font-size:.8rem}.route-insight-metrics dd{font-size:1.25rem;font-weight:700;margin:.25rem 0 0}.route-insight-list{padding-left:1.25rem}.route-insight-list li+li{margin-top:.5rem}
@media (max-width: 760px){.route-insights-grid{grid-template-columns:1fr}}
.learning-library-create{margin-bottom:1rem}.learning-library-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.learning-library-form label{display:grid;gap:.4rem}.learning-library-form input,.learning-library-form select{min-height:44px}.learning-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.learning-resource-card{display:grid;gap:.6rem}.learning-resource-card h3,.learning-resource-card p{margin:0}.learning-resource-actions{display:flex;flex-wrap:wrap;gap:.5rem}@media(max-width:760px){.learning-library-form{grid-template-columns:1fr}}

.route-layout{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(260px,.72fr);
  align-items:start;
  gap:20px;
}

.route-modules{
  grid-column:2;
  grid-row:1;
  position:sticky;
  top:100px;
  display:grid;
  gap:18px;
  max-height:calc(100vh - 122px);
  overflow:auto;
}

.route-modules-heading{
  display:grid;
  gap:6px;
}

.route-modules-heading h3{
  margin:0;
  font-size:19px;
}

.route-modules-heading span{
  color:#287253;
  font-size:12px;
  font-weight:700;
}

#personalRouteModules{
  display:grid;
  gap:18px;
}
.route-path-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.route-path-controls button{min-height:36px;padding:7px 12px;border:1px solid #ded7ff;border-radius:999px;background:#fff;color:#5943c7;font-weight:800}.route-path-controls button[aria-pressed="true"]{background:#6f57df;color:#fff}.route-node[data-node-state="completed"]>span:first-child{border-color:#65cda9!important;background:#dff8ef!important;color:#176b52!important}.route-node[data-node-state="current"]{box-shadow:0 0 0 3px rgba(113,88,232,.15)}
#personalRouteModules[data-view="path"] .route-module-lessons .route-node:nth-of-type(even){margin-left:24px}
#personalRouteModules[data-view="path"] .route-module-lessons .route-node:nth-of-type(odd){margin-right:24px}
#personalRouteModules[data-view="list"]{display:grid;grid-auto-flow:row;grid-template-columns:1fr;overflow:visible}
#personalRouteModules[data-view="list"] .route-module{display:grid;grid-template-columns:minmax(180px,.5fr) minmax(0,1fr);gap:16px}
#personalRouteModules[data-view="list"] .route-module-title p{display:block}
#personalRouteModules[data-view="list"] .route-module-lessons::before{display:none}

.route-module{
  display:grid;
  gap:10px;
}

.route-module-title{
  display:flex;
  gap:10px;
}

.route-module-title > span{
  display:grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#eeeaff;
  color:#5b45c8;
  font-weight:900;
}

.route-module-title h4{
  margin:1px 0 4px;
  font-size:15px;
}

.route-module-title p{
  margin:0;
  color:var(--dashboard-muted);
  font-size:12px;
  line-height:1.4;
}

.route-module-lessons{
  display:grid;
  gap:7px;
  padding-left:40px;
}

.route-module-lessons button{
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:44px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:var(--dashboard-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.route-module-lessons button:hover,
.route-module-lessons button:focus-visible,
.route-module-lessons button.active{
  border-color:rgba(123,97,255,.2);
  background:rgba(123,97,255,.08);
  outline:none;
}

.route-module-lessons button small{
  color:var(--dashboard-muted);
}

.route-lesson{
  grid-column:1;
  grid-row:1;
  display:grid;
  gap:24px;
}

.lesson-journey{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid rgba(123,97,255,.18);
  border-radius:20px;
  background:linear-gradient(145deg,#faf8ff,#fff);
}

.lesson-journey-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.lesson-journey-heading h4{
  margin:5px 0 0;
  font-size:18px;
}

#personalLessonStepStatus{
  color:#5d48c3;
  font-size:13px;
}

.lesson-phase-track{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.lesson-phase-track li{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border-radius:12px;
  background:#f0edf8;
  color:var(--dashboard-muted);
  font-size:13px;
  font-weight:800;
}

.lesson-phase-track li > span{
  display:grid;
  place-items:center;
  flex:0 0 25px;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff;
}

.lesson-phase-track li[data-state="active"]{
  background:#e9e3ff;
  color:#4e37b4;
}

.lesson-phase-track li[data-state="complete"]{
  background:#e5f7ed;
  color:#176b43;
}

.lesson-audio-controls{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.lesson-audio-controls button,
.lesson-audio-controls select{
  min-height:44px;
}

.lesson-audio-controls label{
  margin-left:4px;
  font-size:13px;
  font-weight:800;
}

.lesson-audio-controls select{
  padding:7px 10px;
  border:1px solid var(--dashboard-border-strong);
  border-radius:10px;
  background:var(--dashboard-surface-strong);
  color:var(--dashboard-text);
  font:inherit;
}

.lesson-step-navigation{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.lesson-step-navigation button{
  min-height:44px;
}

.route-module-lessons .route-repeat-module{
  grid-template-columns:1fr;
  justify-items:center;
  border-color:rgba(123,97,255,.18);
  color:#5b45c8;
  text-align:center;
}

.route-module-lessons button:disabled{
  cursor:not-allowed;
  opacity:.58;
}

.route-lesson-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.route-lesson-heading h3{
  margin:6px 0 8px;
  font-size:27px;
}

.route-lesson-heading p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.55;
}

.route-blocks{
  display:grid;
  gap:14px;
}

.route-block{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  padding:28px;
  border:1px solid rgba(123,97,255,.12);
  border-radius:18px;
  background:#fff;
}

.route-block > span{
  color:#6954d1;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.route-block h4{
  margin:7px 0 8px;
  font-size:25px;
}

.route-block p{
  margin:0;
  line-height:1.7;
}

.route-block figure{
  display:grid;
  gap:8px;
  margin:14px 0 0;
}

.route-block figure img,
.route-block video{
  display:block;
  width:min(100%,720px);
  max-height:460px;
  border-radius:14px;
  object-fit:contain;
}

.route-block audio{
  width:min(100%,560px);
  margin-top:12px;
}

.lesson-block-attribution,
.lesson-block-attribution a{
  color:var(--dashboard-muted);
}

.lesson-block-fallback,
.lesson-empty-state{
  padding:12px;
  border-radius:12px;
  background:#fff5dd;
  color:#68480f;
}

.lesson-simplified-text{
  max-width:62ch;
  font-size:1.08em;
  line-height:1.9!important;
}

.lesson-countable-objects{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  color:#6d55dc;
  font-size:38px;
}

.lesson-number-line{
  display:flex;
  justify-content:flex-start;
  gap:4px;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  margin:24px 0 4px;
  padding:10px 0 0;
  border-top:3px solid currentColor;
  list-style:none;
}

.lesson-number-line li{
  position:relative;
  flex:1 0 28px;
  min-width:28px;
  text-align:center;
}

.lesson-number-line li::before{
  position:absolute;
  top:-15px;
  left:50%;
  width:2px;
  height:9px;
  background:currentColor;
  content:"";
}

.lesson-number-line li[data-marker="true"]{
  color:#5b3ed1;
  font-size:1.15em;
  font-weight:900;
}

.lesson-option-list,
.lesson-matching-list{
  display:grid;
  gap:8px;
  margin:14px 0 0;
}

.lesson-matching-list{
  grid-template-columns:minmax(100px,.7fr) minmax(0,1fr);
}

.lesson-matching-list dt,
.lesson-matching-list dd{
  margin:0;
  padding:9px 11px;
  border-radius:10px;
  background:#f4f1ff;
}

.route-block pre{
  overflow:auto;
  padding:16px;
  border-radius:14px;
  background:#201c2d;
  color:#f6f2ff;
  white-space:pre-wrap;
}

.lesson-evidence-control{
  display:grid;
  gap:8px;
  margin-top:14px;
  font-weight:800;
}

.lesson-evidence-control textarea,
.lesson-evidence-control input{
  min-height:48px;
  padding:10px;
  border:1px solid var(--dashboard-border-strong);
  border-radius:12px;
  background:var(--dashboard-surface-strong);
  color:var(--dashboard-text);
  font:inherit;
}

.route-block--objective{
  border-left:5px solid #7b61ff;
}

.route-block--practice,
.route-block--challenge{
  border-left:5px solid #f29b45;
  background:#fffaf3;
}

.route-block--summary{
  border-left:5px solid #45a87c;
  background:#f4fcf8;
}

.route-block[data-qaly-reading="true"]{
  border-color:#6247d8;
  box-shadow:0 0 0 4px rgba(98,71,216,.14);
  background:#f8f6ff;
}

.route-help{
  display:grid;
  gap:14px;
  padding:20px;
  border-radius:20px;
  background:linear-gradient(145deg,#f2efff,#fff5f9);
}

.route-help h4,
.route-challenge h4{
  margin:5px 0 0;
  font-size:21px;
}

.route-help-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-qaly-states{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.route-qaly-states span{
  display:inline-flex;
  gap:5px;
  padding:7px 10px;
  border:1px solid rgba(69,168,124,.25);
  border-radius:999px;
  background:#f7fcf9;
  font-size:12px;
}

.route-qaly-states strong[data-state="offline"]{
  color:#9b5b00;
}

#personalChallengeDictateButton[data-listening="true"]{
  border-color:#a3232f;
  color:#a3232f;
}

.route-help-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.route-help-actions button{
  min-height:44px;
  padding:9px 13px;
  border:1px solid rgba(92,71,190,.2);
  border-radius:999px;
  background:#fff;
  color:#4f3cab;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}

.route-help-actions button:hover,
.route-help-actions button:focus-visible{
  border-color:#765ee9;
  box-shadow:0 0 0 3px rgba(123,97,255,.13);
  outline:none;
}

#routeHelpStatus{
  min-height:1.3em;
  margin:0;
  color:var(--dashboard-muted);
  font-size:13px;
}

.route-challenge{
  display:grid;
  gap:14px;
  padding:28px;
  border:1px solid rgba(69,168,124,.25);
  border-radius:20px;
  background:#f7fcf9;
}

.route-challenge form{
  display:grid;
  gap:16px;
}

#personalChallengePrompt{
  margin:0;
  font-size:21px;
  font-weight:750;
  line-height:1.55;
}

.route-challenge-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0;
  padding:0;
  border:0;
}

.route-challenge-options legend{
  grid-column:1/-1;
  margin-bottom:8px;
  font-weight:800;
}

.route-challenge-options label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:82px;
  padding:16px 18px;
  border:1px solid rgba(35,74,55,.12);
  border-radius:18px;
  background:#fff;
  font-size:20px;
  font-weight:850;
  cursor:pointer;
}

.route-challenge-options input{
  width:24px;
  height:24px;
}

.route-challenge-options label:has(input:checked){
  border-color:#7259ed;
  box-shadow:0 0 0 4px rgba(114,89,237,.12);
  background:#f4f1ff;
  color:#4d37b5;
}

.route-challenge-text{
  display:grid;
  gap:8px;
  font-weight:800;
}

.route-challenge-text textarea{
  min-height:110px;
  padding:12px;
  border:1px solid rgba(35,74,55,.2);
  border-radius:13px;
  font:inherit;
  resize:vertical;
}

#personalChallengeSubmit{
  justify-self:start;
}

#personalChallengeResult{
  min-height:1.4em;
  margin:0;
  font-weight:750;
}

#personalChallengeResult[data-tone="success"]{
  color:#176b43;
}

#personalChallengeResult[data-tone="error"]{
  color:#a3232f;
}

.route-adaptive-support{
  display:grid;
  gap:9px;
  padding:16px;
  border:2px solid #8e79e8;
  border-radius:16px;
  background:#f7f4ff;
  color:#2f275d;
}

.route-adaptive-support[hidden]{
  display:none;
}

.route-adaptive-support h5,
.route-adaptive-support p,
.route-adaptive-support ol{
  margin:0;
}

.route-adaptive-support ol{
  display:grid;
  gap:6px;
  padding-left:22px;
}

.route-adaptation-reason{
  color:var(--dashboard-muted);
  font-size:13px;
}

.route-reviews{
  display:grid;
  gap:10px;
  padding:20px;
  border:1px solid rgba(123,97,255,.22);
  border-radius:18px;
  background:#fbfaff;
}

.route-reviews[hidden]{display:none}

.route-reviews h4,
.route-reviews p{margin:0}

.route-reviews ul{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.route-reviews li{
  display:grid;
  gap:4px;
  padding:12px;
  border-radius:12px;
  background:#fff;
}

.route-lesson-navigation{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:4px;
}

.route-lesson-navigation button{
  min-height:44px;
}

.route-lesson-navigation button:disabled{
  cursor:not-allowed;
  opacity:.45;
}

@media (prefers-reduced-motion:reduce){
  .route-progress-track span{
    transition:none;
  }
}

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

  .route-modules{
    position:static;
    max-height:none;
  }
}

@media (max-width:720px){
  .route-page-heading,
  .route-lesson-heading{
    flex-direction:column;
  }

  .route-overview-metrics{
    grid-template-columns:1fr;
  }

  .route-experience-types,
  #personalRouteTasksList{
    grid-template-columns:1fr 1fr;
  }

  .route-empty{
    padding:34px 18px;
  }

  .route-module-lessons{
    padding-left:0;
  }

  .route-help-actions,
  .route-empty-actions,
  .lesson-step-navigation,
  .route-lesson-navigation{
    align-items:stretch;
    flex-direction:column;
  }

  .route-help-actions button,
  .route-empty-actions button,
  .lesson-step-navigation button,
  .route-lesson-navigation button{
    width:100%;
  }

  .lesson-phase-track{
    grid-template-columns:1fr;
  }

  .lesson-audio-controls,
  .lesson-audio-controls button,
  .lesson-audio-controls select{
    width:100%;
  }
}

.bootcamp-container{
  max-width:960px;
  margin:0 auto;
  padding:14px 4px 6px;
}

.bootcamp-title{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.bootcamp-sub{
  margin:14px 0 0;
  color:var(--dashboard-muted);
  line-height:1.7;
}

.bootcamp-row{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:24px 0 8px;
}

.bootcamp-card{
  position:relative;
  min-width:290px;
  min-height:220px;
  padding:22px;
  border-radius:28px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 24px 42px rgba(35,29,63,0.22);
  transition:transform .25s ease, box-shadow .25s ease;
}

.bootcamp-card:hover{
  transform:translateY(-4px) scale(1.01);
  box-shadow:0 32px 52px rgba(35,29,63,0.28);
}

.bootcamp-card.emprendimiento{
  background:linear-gradient(145deg,#7b61ff,#a892ff 68%,#ffcadc);
}

.bootcamp-card.tech{
  background:linear-gradient(145deg,#162447,#3756ff 58%,#8ce5d1);
}

.bootcamp-card.emprendedores{
  background:linear-gradient(145deg,#105f62,#28b48f 58%,#f8d76d);
}

.bootcamp-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(18,14,34,0.46));
}

.bootcamp-content,
.bootcamp-overlay{
  position:relative;
  z-index:1;
}

.bootcamp-content{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  height:100%;
}

.bootcamp-name{
  font-size:24px;
  font-weight:800;
  color:#fff;
}

.bootcamp-desc{
  margin-top:8px;
  color:rgba(255,255,255,0.84);
}

.bootcamp-action{
  width:max-content;
  margin-top:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bootcamp-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(25,20,48,0.28);
  opacity:0;
  transition:opacity .25s ease;
}

.bootcamp-card:hover .bootcamp-overlay{
  opacity:1;
}

.bootcamp-overlay span{
  padding:12px 18px;
  border-radius:16px;
  background:#fff;
  color:var(--dashboard-dark);
  font-weight:800;
}

.bootcamp-section{
  margin-top:28px;
}

.bootcamp-section h3{
  margin:0 0 14px;
  font-size:20px;
}

.bootcamp-card-info{
  padding:22px;
  border-radius:24px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(123,97,255,0.12);
  box-shadow:0 14px 26px rgba(101,82,188,0.08);
}

.bootcamp-list{
  list-style:none;
  padding:0;
  margin:0;
}

.bootcamp-list li{
  position:relative;
  padding:12px 12px 12px 42px;
  margin-top:10px;
  border-radius:16px;
  background:rgba(255,255,255,0.86);
  color:var(--dashboard-text);
}

.bootcamp-list li::before{
  content:"✦";
  position:absolute;
  left:16px;
  top:11px;
  color:var(--dashboard-primary);
  font-size:16px;
}

.bootcamp-highlight{
  margin-top:26px;
  padding:22px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--dashboard-primary),#9f8eff 60%,rgba(140,229,209,0.85));
  color:#fff;
  box-shadow:0 22px 34px rgba(123,97,255,0.24);
}

.bootcamp-highlight p{
  margin:0;
  color:rgba(255,255,255,0.92);
}

.bootcamp-btn{
  margin-top:28px;
  padding:14px 22px;
  background:linear-gradient(135deg,var(--dashboard-dark),#3b2f70);
  color:#fff;
  box-shadow:0 18px 28px rgba(35,29,63,0.28);
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(23,18,40,0.5);
  backdrop-filter:blur(8px);
  z-index:999;
}

body.danger-modal-open{
  overflow:hidden;
}

.danger-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(23,18,40,0.58);
  backdrop-filter:blur(10px);
  z-index:1200;
}

.danger-modal.active{
  display:flex;
}

.danger-modal-card{
  position:relative;
  width:min(560px,100%);
  padding:28px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(255,246,247,0.98));
  border:1px solid rgba(255,255,255,0.78);
  box-shadow:0 34px 72px rgba(23,18,40,0.34);
  animation:dangerModalIn .22s ease;
}

@keyframes dangerModalIn{
  from{
    opacity:0;
    transform:translateY(12px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.danger-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:none;
  border-radius:14px;
  background:rgba(35,29,63,0.08);
  color:var(--dashboard-dark);
  font-weight:900;
  cursor:pointer;
}

.danger-modal-icon{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  border-radius:20px;
  background:linear-gradient(135deg,#ff4d5f,#ff9aa3);
  color:#fff;
  font-size:28px;
  font-weight:900;
  box-shadow:0 18px 30px rgba(255,77,95,0.22);
}

.danger-modal-card h2{
  margin:0;
  font-size:30px;
  line-height:1.08;
}

.danger-modal-card p{
  margin:12px 0 0;
  color:var(--dashboard-muted);
  line-height:1.6;
}

.danger-modal-card p strong{
  color:var(--dashboard-text);
}

.delete-confirm-steps{
  display:grid;
  gap:10px;
  margin-top:20px;
}

.delete-step{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(255,109,122,0.16);
  color:var(--dashboard-text);
  font-weight:700;
  cursor:pointer;
}

.delete-step input{
  width:18px;
  height:18px;
  accent-color:var(--dashboard-danger);
}

.delete-safe-word{
  margin-top:18px;
}

.danger-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

.danger-modal-actions .secondary,
.danger-modal-actions .btn-danger{
  min-height:46px;
}

.danger-modal-actions .btn-danger:disabled{
  opacity:.48;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.modal-content{
  position:relative;
  width:min(1080px,100%);
  max-height:90vh;
  padding:28px;
  border-radius:30px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(245,242,255,0.96));
  border:1px solid rgba(255,255,255,0.78);
  box-shadow:0 34px 68px rgba(23,18,40,0.3);
}

.modal-body{
  display:flex;
  flex-direction:column;
}

.modal-actions{
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:flex-end;
  padding-top:18px;
  margin-top:20px;
  background:linear-gradient(180deg,rgba(245,242,255,0),rgba(245,242,255,0.98) 32%);
  z-index:2;
}

.close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(35,29,63,0.08);
  color:var(--dashboard-dark);
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.close:hover{
  transform:rotate(90deg);
  background:rgba(35,29,63,0.14);
}

.complete-btn{
  position:relative;
  display:none;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-green),#57dbab);
  color:#fff;
  font-weight:800;
  box-shadow:0 18px 28px rgba(47,201,141,0.24);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.complete-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 32px rgba(47,201,141,0.28);
}

.complete-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

.complete-btn.is-visible{
  display:inline-flex;
}

.class-view{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.class-view h2{
  margin:0;
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.video-container,
.pdf-container{
  width:100%;
  border-radius:24px;
  overflow:hidden;
  background:#0f0c1e;
  box-shadow:0 22px 44px rgba(23,18,40,0.16);
}

.video-container{
  aspect-ratio:16/9;
}

.pdf-container{
  height:72vh;
}

.video-container iframe,
.pdf-container iframe{
  width:100%;
  height:100%;
  border:none;
}

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

.tab-btn{
  border:none;
  padding:11px 16px;
  border-radius:14px;
  background:rgba(123,97,255,0.08);
  color:var(--dashboard-primary-dark);
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease;
}

.tab-btn:hover{
  transform:translateY(-1px);
  background:rgba(123,97,255,0.14);
}

.tab-btn.active{
  background:linear-gradient(135deg,var(--dashboard-dark),#40356d);
  color:#fff;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
}

.gallery-grid img{
  width:100%;
  height:138px;
  object-fit:cover;
  border-radius:18px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 12px 20px rgba(35,29,63,0.08);
}

.gallery-grid img:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 18px 28px rgba(35,29,63,0.14);
}

.empty-tab-message{
  margin:0;
  padding:18px;
  border:1px dashed rgba(123,97,255,0.2);
  border-radius:18px;
  background:rgba(255,255,255,0.72);
  color:var(--dashboard-muted);
  text-align:center;
  font-weight:700;
}

.resources-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}

.resource-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:74px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(123,97,255,0.12);
  color:var(--dashboard-text);
  text-decoration:none;
  box-shadow:0 12px 24px rgba(101,82,188,0.08);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resource-card:hover{
  transform:translateY(-2px);
  border-color:rgba(123,97,255,0.24);
  box-shadow:0 18px 30px rgba(101,82,188,0.13);
}

.resource-card.disabled{
  opacity:.68;
  cursor:not-allowed;
}

.resource-card-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--dashboard-dark),#4d4082);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}

.resource-card-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.resource-card-copy strong,
.resource-card-copy small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.resource-card-copy strong{
  font-size:15px;
}

.resource-card-copy small{
  color:var(--dashboard-muted);
  font-size:12px;
  font-weight:700;
}

.resource-card-action{
  padding:8px 10px;
  border-radius:12px;
  background:rgba(123,97,255,0.1);
  color:var(--dashboard-primary-dark);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-thumb{
  background:rgba(123,97,255,0.22);
  border-radius:999px;
}

@media (max-width:1240px){
  .main{
    grid-template-columns:1fr;
  }

  .right{
    position:static;
  }

  .hero{
    grid-template-columns:1fr;
  }

  .assistant-panel{
    padding:16px;
  }

  .content-library{
    position:static;
  }
}

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

  .sidebar{
    top:auto;
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    height:auto;
    flex-direction:row;
    gap:10px;
    padding:10px;
    border-radius:26px;
    background:linear-gradient(180deg,rgba(37,31,66,0.98),rgba(46,39,80,0.98));
    box-shadow:0 26px 52px rgba(23,18,40,0.28);
  }

  .sidebar-toggle{display:none}.sidebar[data-expanded="true"]{left:12px;right:12px;width:auto;align-items:center;padding:10px}.sidebar[data-expanded="true"] .side-menu{align-items:center}.sidebar[data-expanded="true"] .item{width:auto;justify-content:center;padding:0}.sidebar[data-expanded="true"] .item-text{font-size:11px}.sidebar-expanded .topbar,.sidebar-expanded .main{margin-left:0}

  .sidebar-brand{
    display:none;
  }

  .side-menu{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    gap:8px;
  }

  #learningLibraryNav,
  #examNav,
  #bootcampNav{display:none!important}

  .mobile-qaly-nav{display:flex}

  .topbar,
  .main{
    margin-left:0;
  }

  .topbar{
    margin-left:18px;
    flex-wrap:wrap;
    align-items:center;
  }

  .top-right{
    justify-content:space-between;
    margin-left:auto;
  }

  .lang-dropdown{
    right:0;
  }

  .item{
    width:auto;
    height:auto;
    min-width:0;
    flex:1 1 0;
    flex-direction:column;
    gap:6px;
    padding:10px 8px 8px;
    border-radius:18px;
    font-size:20px;
  }

  .item::before{
    display:none;
  }

  .item::after{
    position:static;
    padding:0;
    border-radius:0;
    background:none;
    color:currentColor;
    font-size:11px;
    font-weight:700;
    letter-spacing:.02em;
    opacity:1;
    transform:none;
    white-space:normal;
    pointer-events:auto;
  }

  .stats{
    grid-template-columns:1fr;
  }

  .redeem-box{
    flex-direction:column;
  }

  .code-row,
  #codesList > div{
    grid-template-columns:1fr;
  }

  .hero-aside-card strong{
    font-size:22px;
  }

  .course-row-lessons,
  .bootcamp-row{
    margin-right:-6px;
    padding-right:6px;
  }

  .lesson-card{
    min-width:250px;
    max-width:250px;
  }

  .course-admin-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .enrollment-card{
    grid-template-columns:1fr;
  }

  .content-builder,
  .module-workspace,
  .diagnostic-panel{
    grid-template-columns:1fr;
  }

  .modules-list{
    max-height:none;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .modal{
    padding:16px 16px 120px;
  }

  .diagnostic-result{
    grid-template-columns:1fr 1fr;
  }

  .diagnostic-result button{
    grid-column:1 / -1;
  }

  .diagnostic-metric-grid,
  .diagnostic-area-row{
    grid-template-columns:1fr;
  }

  .diagnostic-area-row b{
    text-align:left;
  }
}

@media (max-width:640px){
  .topbar{
    padding:16px;
    margin-right:12px;
    margin-left:12px;
    border-radius:24px;
    top:12px;
    gap:14px;
    align-items:stretch;
  }

  .main{
    gap:18px;
    padding:18px 12px 24px;
  }

  .hero,
  .redeem,
  .panel,
  .card-stat,
  .modal-content{
    border-radius:24px;
  }

  .hero,
  .redeem,
  .panel{
    padding:20px;
  }

  .top-left,
  .top-right{
    width:100%;
  }

  .top-right{
    justify-content:space-between;
    gap:12px;
  }

  .language-selector{
    margin-left:auto;
  }

  .brand{
    min-width:0;
  }

  .brand-copy{
    min-width:0;
  }

  .brand-label{
    font-size:10px;
  }

  .brand h2{
    font-size:28px;
  }

  .hero h1{
    font-size:34px;
  }

  .hero-subtitle{
    font-size:15px;
    line-height:1.65;
  }

  .hero-tag-row{
    gap:8px;
  }

  .hero-tag{
    font-size:12px;
    padding:9px 12px;
  }

  .section-title{
    font-size:28px;
  }

  .course-title{
    font-size:22px;
  }

  .card-stat strong{
    font-size:36px;
  }

  .redeem-box{
    gap:10px;
  }

  .redeem button,
  .btn-primary,
  .primary,
  .secondary{
    width:100%;
  }

  .lesson-card{
    min-width:78vw;
    max-width:78vw;
  }

  .code-generate{
    flex-direction:column;
  }

  .code-generate button{
    width:100%;
  }

  .admin-input-group{
    min-width:100%;
  }

  .builder-grid,
  .module-fields,
  .diagnostic-options{
    grid-template-columns:1fr;
  }

  .builder-toolbar,
  .module-editor-head,
  .content-library-header{
    align-items:stretch;
    flex-direction:column;
  }

  .modules-list{
    grid-template-columns:1fr;
  }

  .module-actions{
    justify-content:flex-start;
  }

  .class-view h2,
  .bootcamp-title{
    font-size:28px;
  }

  .modal{
    padding:12px;
  }

  .danger-modal{
    padding:12px;
  }

  .danger-modal-card{
    padding:22px;
    border-radius:24px;
  }

  .danger-modal-actions{
    flex-direction:column-reverse;
  }

  .danger-modal-actions .secondary,
  .danger-modal-actions .btn-danger{
    width:100%;
  }

  .modal-content{
    padding:20px;
    max-height:min(88vh,760px);
  }

  .modal-actions{
    margin-top:18px;
  }

  .close{
    top:14px;
    right:14px;
  }

  .complete-btn{
    width:100%;
    margin-top:16px;
  }

  .pdf-container{
    height:58vh;
  }

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

  .resources-grid{
    grid-template-columns:1fr;
  }

  .diagnostic-panel{
    padding:20px;
    border-radius:24px;
  }

  .diagnostic-intro h2{
    font-size:28px;
  }

  .diagnostic-card{
    padding:16px;
  }

  .diagnostic-sort-row,
  .diagnostic-budget label{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .diagnostic-sort-row span{
    width:100%;
  }

  .diagnostic-sort-row div{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .diagnostic-match label{
    grid-template-columns:1fr;
  }

  .resource-card{
    grid-template-columns:44px minmax(0,1fr);
  }

  .resource-card-action{
    grid-column:1 / -1;
    text-align:center;
  }

  .admin-bootcamp-card{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-bootcamp-actions{
    justify-content:flex-start;
  }
}

@media (max-width:480px){
  body{
    padding-bottom:112px;
  }

  .topbar{
    padding:14px;
  }

  .brand-label{
    display:none;
  }

  .brand h2{
    font-size:25px;
  }

  .logo-inline{
    width:40px;
    height:40px;
  }

  .logout-btn{
    flex:1 1 auto;
    min-height:44px;
    padding:10px 14px;
    border-radius:14px;
  }

  .lang-btn{
    min-width:74px;
    height:42px;
    padding:0 12px;
    border-radius:14px;
  }

  #avatar{
    width:42px;
    height:42px;
    border-radius:14px;
  }

  .hero,
  .redeem,
  .panel,
  .card-stat,
  .assistant-panel,
  .modal-content{
    border-radius:22px;
  }

  .hero,
  .redeem,
  .panel,
  .assistant-panel,
  .modal-content{
    padding:18px;
  }

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

  .hero-kicker{
    padding:8px 12px;
    font-size:11px;
  }

  .hero-aside-card{
    padding:18px;
  }

  .hero-aside-card strong{
    font-size:20px;
  }

  .section-title{
    font-size:24px;
  }

  .lesson-card{
    min-width:84vw;
    max-width:84vw;
    padding:16px;
  }

  .item{
    font-size:18px;
    padding:9px 6px 7px;
  }

  .item::after{
    font-size:10px;
  }

  .modal{
    padding:10px 10px 118px;
  }

  .tabs{
    flex-direction:column;
  }

  .tab-btn{
    width:100%;
  }
}
.privacy-panel {
  margin-top: 28px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

#privacyActionStatus {
  min-height: 1.4em;
  margin: 12px 0 0;
}

/* Camino Kuali: una decisión principal por momento. */
#personalRouteGoalStep[hidden],
#personalRouteOptionsStep[hidden],
[data-route-builder-step][hidden],
#personalRouteGenerateActions[hidden],
#personalLessonBlocks[hidden],
#personalLessonStepNavigation[hidden],
#personalQalyActions[hidden],
#personalChallengePanel[hidden]{
  display:none!important;
}

.route-builder-grid{
  grid-template-columns:minmax(0,720px);
  justify-content:center;
}

.route-builder-card{
  min-height:420px;
  align-content:start;
  padding:clamp(24px,5vw,44px);
}

.route-builder-next{
  justify-self:end;
  min-width:170px;
  margin-top:auto;
}

.route-builder-back{
  justify-self:start;
  margin-top:14px;
}

.route-empty-actions{
  justify-content:center;
}

.route-builder-card h4{font-size:clamp(24px,4vw,34px);margin:8px 0 6px}.route-compact-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.route-compact-fields label{display:grid;gap:8px;font-weight:800}.route-compact-fields select,.route-compact-fields input{min-height:48px;border:1px solid #ded7ff;border-radius:14px;padding:10px;background:#fff}.route-choice-pills,.route-choice-grid{border:0;padding:0;margin:20px 0;display:flex;flex-wrap:wrap;gap:10px}.route-choice-pills legend,.route-choice-grid legend{width:100%;font-weight:900;margin-bottom:8px}.route-choice-pills label,.route-choice-grid label{cursor:pointer}.route-choice-pills input,.route-choice-grid input{position:absolute;opacity:0}.route-choice-pills span,.route-choice-grid span{display:block;border:1px solid #ded7ff;border-radius:16px;padding:13px 16px;background:#fff;font-weight:800}.route-choice-pills input:checked+span,.route-choice-grid input:checked+span{border-color:#755ee8;background:#eeeaff;color:#4d38bd;box-shadow:0 0 0 2px rgba(117,94,232,.12)}.route-choice-pills input:focus-visible+span,.route-choice-grid input:focus-visible+span{outline:3px solid #2b6cff;outline-offset:2px}.route-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.route-more-options{border:1px solid #e5e0ff;border-radius:16px;padding:14px}.route-more-options summary{cursor:pointer;font-weight:900}.route-step-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto}.route-specific-diagnostic{display:grid;gap:14px}.route-specific-diagnostic fieldset{border:1px solid #e5e0ff;border-radius:16px;padding:14px;display:grid;gap:8px}.route-specific-diagnostic legend{font-weight:900;padding:0 4px}.route-specific-diagnostic legend span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eeeaff;color:#5540c5;margin-right:8px}.route-specific-diagnostic label{display:flex;gap:9px;align-items:center;border-radius:12px;padding:9px;background:#faf9ff}.route-builder-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.route-builder-preview>div{display:grid;gap:5px;padding:16px;border-radius:16px;background:#f7f5ff}.route-builder-preview strong{font-size:18px}.route-builder-preview p{grid-column:1/-1;padding:16px;border-radius:16px;background:#ecfbf5;color:#185e4b}.route-builder-card:has(.route-specific-diagnostic){min-height:auto}.route-builder-card:has(.route-builder-preview){min-height:420px}

@media(max-width:720px){.route-compact-fields,.route-choice-grid,.route-builder-preview{grid-template-columns:1fr}.route-builder-preview p{grid-column:1}.route-builder-card{padding:22px 18px}.route-step-actions{position:sticky;bottom:88px;background:rgba(255,255,255,.96);padding:10px 0}}
.route-challenge-structured{border:0;padding:0;display:grid;gap:12px}.route-challenge-structured legend{font-weight:900;margin-bottom:8px}.route-challenge-structured label{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(160px,1fr);align-items:center;gap:12px;padding:12px;border:1px solid #e2dcff;border-radius:14px;background:#fff}.route-challenge-structured select{min-height:46px;border:1px solid #cfc5ff;border-radius:12px;padding:8px;background:#fff}@media(max-width:600px){.route-challenge-structured label{grid-template-columns:1fr}}

.route-layout{
  grid-template-columns:minmax(0,1fr);
  gap:22px;
}

.route-modules{
  grid-column:1;
  grid-row:1;
  position:static;
  max-height:none;
  overflow:hidden;
  padding:22px;
}

.route-modules-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.route-modules-heading p{
  max-width:62ch;
  margin:6px 0 0;
  color:var(--dashboard-muted);
  font-size:14px;
  line-height:1.5;
}

#personalRouteModules{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(230px,1fr);
  gap:14px;
  overflow-x:auto;
  padding:4px 2px 10px;
  scroll-snap-type:x proximity;
}

.route-module{
  align-content:start;
  min-width:0;
  padding:16px;
  border:1px solid rgba(123,97,255,.12);
  border-radius:18px;
  background:#fbfaff;
  scroll-snap-align:start;
}

.route-module-title p{
  display:none;
}

.route-module-lessons{
  position:relative;
  gap:10px;
  padding:8px 0 0;
}

.route-module-lessons::before{
  position:absolute;
  top:28px;
  bottom:28px;
  left:20px;
  width:2px;
  background:#e7e1ff;
  content:"";
}

.route-module-lessons button{
  position:relative;
  grid-template-columns:32px minmax(0,1fr);
  min-height:58px;
  padding:9px 10px 9px 4px;
  border-color:transparent;
  border-radius:16px;
  background:#fbfaff;
}

.route-module-lessons button > span:first-child{
  z-index:1;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:2px solid #d9d1ff;
  border-radius:50%;
  background:#fff;
  color:#6048cd;
  font-weight:900;
}

.route-module-lessons button > span:nth-child(2){
  align-self:end;
  font-weight:800;
}

.route-module-lessons button small{
  grid-column:2;
  font-size:11px;
}

.route-module-lessons button.active > span:first-child,
.route-module-lessons button:hover > span:first-child,
.route-module-lessons button:focus-visible > span:first-child{
  border-color:#7158e8;
  background:#7158e8;
  color:#fff;
}

.route-module-lessons button:disabled{
  opacity:.52;
  cursor:not-allowed;
}

.route-lesson{
  grid-column:1;
  grid-row:2;
  width:min(100%,900px);
  margin:0 auto;
  padding:clamp(20px,4vw,40px);
  gap:22px;
}

.route-lesson-utilities{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.route-lesson-options{
  position:relative;
}

.route-lesson-options summary,
.lesson-audio-options summary{
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(123,97,255,.18);
  border-radius:999px;
  background:#fff;
  color:#5844b8;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}

.route-lesson-options summary::-webkit-details-marker,
.lesson-audio-options summary::-webkit-details-marker{
  display:none;
}

.route-lesson-options[open] .route-lesson-tools{
  position:absolute;
  z-index:8;
  top:50px;
  right:0;
  width:min(290px,80vw);
  padding:12px;
  border:1px solid rgba(123,97,255,.14);
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 45px rgba(42,31,92,.16);
}

.route-lesson-tools{
  display:grid;
  gap:8px;
}

.route-lesson-tools button{
  width:100%;
}

.lesson-journey{
  padding:16px;
  background:#fbfaff;
}

.lesson-audio-options{
  justify-self:start;
}

.lesson-audio-options .lesson-audio-controls{
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  background:#fff;
}

.route-block{
  min-height:280px;
  padding:clamp(24px,5vw,48px);
  border:0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 38px rgba(45,34,92,.08);
}

.route-block h4{
  font-size:clamp(25px,4vw,34px);
}

.route-block p{
  max-width:62ch;
  font-size:clamp(17px,2vw,20px);
}

.route-help{
  padding:14px 16px;
  border:1px solid rgba(123,97,255,.12);
  background:#fbfaff;
}

.route-help:has(#personalQalyActions[hidden]){
  gap:0;
}

.route-help:has(#personalQalyActions[hidden]) .route-eyebrow,
.route-help:has(#personalQalyActions[hidden]) #routeHelpStatus{
  display:none;
}

.route-help-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.route-challenge{
  min-height:380px;
  padding:clamp(24px,5vw,46px);
  border:0;
  border-radius:24px;
  background:#f7fcf9;
  box-shadow:0 12px 38px rgba(25,91,61,.08);
}

.route-challenge-options{
  grid-template-columns:1fr;
}

.route-challenge-options label{
  min-height:68px;
  font-size:18px;
}

.route-lesson[data-lesson-phase="practice"] .lesson-journey{
  background:#f5fbf8;
}

@media(max-width:720px){
  .route-modules-heading,
  .route-lesson-heading{
    align-items:stretch;
    flex-direction:column;
  }

  #personalRouteModules{
    grid-auto-columns:minmax(78vw,1fr);
  }

  .route-lesson-utilities{
    justify-content:space-between;
  }

  .route-help-actions{
    grid-template-columns:1fr;
  }
}
