:root{--bg:#f6f9fc;--surface:#fff;--text:#153149;--muted:#6b8297;--line:#dbe6ef;--blue:#2f80ed;--blue2:#eaf3ff;--green:#20b875;--green2:#eaf9f1;--amber:#e89b29;--amber2:#fff4dc;--red:#d9535f;--shadow:0 16px 45px rgba(47,83,115,.10)}
*{box-sizing:border-box}html{direction:rtl}body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,Arial,sans-serif}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:13px;padding:11px 17px;font-weight:700;font-size:13px}.primary{background:var(--blue);color:#fff}.secondary{background:#fff;color:#315b7b;border:1px solid var(--line)}.danger{background:#fff0f1;color:#af3541;border:1px solid #efc8cc}.full{width:100%}
.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:30}.brand-small{display:flex;align-items:center;gap:10px}.brand-small>span{width:40px;height:40px;display:grid;place-items:center;background:linear-gradient(135deg,#e3f8f3,#e4efff);border-radius:13px;color:#276a9f;font-weight:800}.brand-small b{display:block}.brand-small small{display:block;color:var(--muted);font-size:9px}.top-actions{display:flex;align-items:center;gap:10px;font-size:11px}.top-actions a{padding:7px 9px;border-radius:9px}.top-actions a:hover{background:#f1f6fa}.user-name{font-weight:700;color:#3f617a}
.page{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:34px 0 64px}.narrow{max-width:720px}.footer,.login-footer{border-top:1px solid var(--line);background:#fff;padding:22px;text-align:center;font-size:11px;color:#667f94}.eyebrow{font-size:10px;color:#2d77b8;font-weight:800}
.course-hero,.chapter-top{background:linear-gradient(135deg,#fff,#f1f8ff);border:1px solid var(--line);border-radius:28px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:28px;padding:34px;box-shadow:var(--shadow)}.course-hero h1,.chapter-top h1{font-size:44px;margin:8px 0 10px;line-height:1.1}.course-hero p,.chapter-top p{color:var(--muted);line-height:1.8}.course-hero img,.chapter-top img{width:100%;border-radius:20px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.progress-panel{margin:18px 0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px}.progress-panel>div:first-child{display:flex;justify-content:space-between;font-size:11px}.bar{height:8px;background:#edf3f7;border-radius:99px;margin-top:9px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#28b89c,#4f91f1)}
.journey{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px;margin-bottom:18px}.journey-step{text-align:center;color:#7890a4}.journey-step>span{width:35px;height:35px;border-radius:50%;margin:auto;display:grid;place-items:center;background:#eef3f7;font-size:11px;font-weight:800}.journey-step small{font-size:8px;line-height:1.3;display:block;margin-top:6px}.journey-step.done>span{background:var(--green);color:#fff}.journey-step.skip>span{background:var(--amber2);color:#a66b0b}
.chapter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.chapter-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;display:grid;grid-template-columns:150px 1fr;gap:15px;transition:.2s}.chapter-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.chapter-card img{width:150px;height:110px;object-fit:cover;border-radius:14px}.chapter-card h3{margin:4px 0 7px;font-size:15px}.chapter-card p{font-size:11px;color:var(--muted);line-height:1.6}.card-num{font-size:9px;color:#4881ad}.chips{display:flex;gap:5px;flex-wrap:wrap}.chips span{font-size:8px;background:#f1f6fa;padding:4px 6px;border-radius:99px}.chips .success-chip{background:var(--green2);color:#188352}
.chapter-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:18px}.lesson-column{display:flex;flex-direction:column;gap:15px}.lesson-card,.video-card,.scenario-card,.match-card,.quiz-card,.chapter-side,.form-card,.table-card,.exam-header,.locked-card,.result-card,.rating-card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:24px}.lesson-card{position:relative}.section-number{position:absolute;left:18px;top:18px;width:31px;height:31px;border-radius:10px;background:#eef6ff;color:#3777ac;display:grid;place-items:center;font-weight:800}.lesson-card h2{margin:0 0 11px;font-size:19px}.lesson-card p{font-size:13px;line-height:1.9;color:#587086}.chapter-side{height:max-content;position:sticky;top:92px}.chapter-side h3{margin-top:0}.objective{display:flex;gap:9px;font-size:11px;line-height:1.5;margin:10px 0;color:#587086}.objective span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:var(--green2);color:var(--green);flex:none}.side-note{border-top:1px solid var(--line);padding-top:13px;margin-top:14px}.side-note b{font-size:11px}.side-note p{font-size:10px;color:var(--muted);line-height:1.5}.section-head{display:flex;justify-content:space-between;align-items:center}.section-head h2{margin:6px 0}.section-head small{color:var(--muted)}.video-frame{aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#edf3f7;margin-top:12px}.video-frame iframe{width:100%;height:100%;border:0}
.scenario-card{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}.scenario-image img{width:100%;border-radius:16px}.scenario-card h2{margin:7px 0}.scenario-card p{color:var(--muted);font-size:12px;line-height:1.75}.scenario-card h3{font-size:13px}.scenario-options{display:grid;gap:8px}.scenario-options button{border:1px solid #d6e3ed;background:#fff;color:#48677f;border-radius:12px;padding:11px;text-align:right}.scenario-options button.correct{background:var(--green2);border-color:#b6e5c9;color:#197c50}.scenario-options button.wrong{background:#fff0f1;border-color:#eec6ca;color:#a23c45}.interaction-feedback{margin-top:10px;font-size:11px;line-height:1.6;color:#526f86}
.match-card>p{font-size:11px;color:var(--muted)}.match-board{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:100px;margin-top:16px}.match-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.match-col{display:grid;gap:11px;position:relative;z-index:2}.match-col button{min-height:52px;border:1px solid #d7e4ed;background:#fff;border-radius:13px;color:#4a687f;padding:10px}.match-col button.selected{background:#edf5ff;border-color:#7fb2e4}.match-col button.matched{background:var(--green2);border-color:#aee3c4;color:#18794d}.match-status{font-size:10px;color:var(--muted);margin-top:12px}
.quiz-question{border-top:1px solid var(--line);padding:16px 0}.quiz-question:first-of-type{border-top:0}.quiz-question h3{font-size:13px}.quiz-question label,.exam-question label{display:flex;align-items:center;gap:8px;border:1px solid #dde7ef;border-radius:11px;padding:9px;margin:7px 0;font-size:11px}.quiz-question input,.exam-question input{accent-color:var(--blue)}.quiz-result{font-size:11px;margin-top:10px;color:#4c708d}.chapter-nav{display:flex;justify-content:space-between}
.exam-page{max-width:900px}.exam-header{text-align:center}.exam-header h1{font-size:38px;margin:8px}.exam-header p{color:var(--muted)}.exam-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.exam-metrics div{background:#f7fafc;border-radius:14px;padding:12px}.exam-metrics b{display:block;font-size:20px}.exam-metrics span{font-size:9px;color:var(--muted)}.locked-card{text-align:center;margin-top:16px}.exam-question{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;margin:11px 0}.exam-question>span{font-size:9px;color:#4d82ad}.exam-question h3{font-size:13px}.exam-question i{font-style:normal}.exam-submit{width:100%;padding:15px}
.result-page{max-width:760px}.result-card{text-align:center}.score-circle{width:145px;height:145px;border-radius:50%;margin:10px auto;display:grid;place-items:center;background:conic-gradient(var(--green) var(--score),#e8eff4 0);position:relative}.score-circle:before{content:"";position:absolute;inset:12px;background:#fff;border-radius:50%}.score-circle b{position:relative;font-size:29px}.rating-card{margin-top:15px}.stars{display:flex;justify-content:center;direction:ltr}.stars input{display:none}.stars span{font-size:32px;color:#d2dce5}.stars input:checked+span{color:#f3b631}.rating-card textarea{width:100%;min-height:100px;margin:10px 0}
.form-card h1{margin-top:0}.form-card form{display:grid;gap:8px}.form-card label{font-size:11px;font-weight:700}.form-card input,.form-card select,.rating-card textarea,.table-head input{width:100%;border:1px solid #d5e2ec;border-radius:12px;padding:11px;background:#fbfdff;color:var(--text);outline:none}.form-card input:focus,.form-card select:focus,.table-head input:focus{border-color:#79aae0;box-shadow:0 0 0 3px #edf5ff}.field-help{font-size:9px;color:var(--muted);margin:0}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto}.danger-zone{margin-top:15px}.danger-zone hr{border:0;border-top:1px solid var(--line);margin:22px 0}.notice{background:var(--amber2);padding:10px;border-radius:10px;color:#855c18;font-size:11px}.alert{padding:11px 13px;border-radius:12px;margin-bottom:12px;font-size:11px}.alert.error{background:#fff0f1;color:#9f3540}.alert.success{background:var(--green2);color:#1d754e}
.admin-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}.admin-head h1{margin:5px 0}.admin-head p{color:var(--muted);font-size:11px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.admin-stats div{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px}.admin-stats b{font-size:26px;display:block}.admin-stats span{font-size:9px;color:var(--muted)}.table-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.table-head input{max-width:330px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;margin-top:10px;font-size:10px}th,td{text-align:right;border-top:1px solid #e4ebf1;padding:11px;white-space:nowrap}td b{display:block}td small{display:block;color:var(--muted);margin-top:3px}.mini-progress{display:inline-block;width:65px;height:6px;background:#eef3f7;border-radius:99px;overflow:hidden;margin-left:5px}.mini-progress i{display:block;height:100%;background:#57a5ee}.status{padding:4px 7px;border-radius:99px}.status.active{background:var(--green2);color:#17784d}.status.inactive{background:#f1f3f5;color:#747f89}.table-action{color:#256aa6;font-weight:700}
.login-page{min-height:calc(100vh - 54px);display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.login-visual{position:relative;background:linear-gradient(135deg,#eef8ff,#edf9f5);padding:40px 55px;overflow:hidden}.login-brand{display:flex;align-items:center;gap:11px}.login-brand>span{width:48px;height:48px;border-radius:15px;background:#fff;display:grid;place-items:center;color:#2870ad;font-weight:800}.login-brand b{display:block}.login-brand small{display:block;color:var(--muted);font-size:9px}.login-copy{max-width:620px;margin-top:65px}.login-copy h1{font-size:50px;line-height:1.1;margin:10px 0}.login-copy p{color:#5e7589;line-height:1.8}.login-features{display:flex;gap:8px;flex-wrap:wrap}.login-features span{background:#fff;padding:7px 10px;border-radius:99px;font-size:10px}.login-visual img{width:55%;max-width:520px;margin-top:20px;float:left}.login-panel{display:grid;place-items:center;padding:30px}.login-box{width:min(430px,100%)}.login-box h2{font-size:30px;margin:0 0 7px}.login-box>p{color:var(--muted);font-size:11px}.login-box form{display:grid;gap:8px;margin-top:20px}.login-box label{font-size:11px;font-weight:700}.login-box input{border:1px solid #d6e3ed;border-radius:12px;padding:12px;outline:none}.login-box input:focus{border-color:#73a8de;box-shadow:0 0 0 3px #edf5ff}.forgot-link{border:0;background:transparent;color:#2e73ad;font-size:11px;padding:12px 0}.mobile-logo{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(35,57,76,.35);z-index:100;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.support-modal{width:min(680px,100%);background:#fff;border-radius:26px;padding:34px;position:relative;box-shadow:0 25px 80px rgba(24,52,77,.25)}.support-modal h2{font-size:34px;margin:0 0 15px}.support-modal p{font-size:16px;color:#40556b;line-height:1.75}.support-modal a{color:#225cd8;font-weight:800}.modal-x{position:absolute;left:20px;top:18px;width:52px;height:52px;border-radius:50%;border:0;background:#2f6ee7;color:white;font-size:34px;font-weight:800;box-shadow:0 10px 24px rgba(47,110,231,.28)}
@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:calc(100vh - 54px)}.mobile-logo{display:block;font-weight:800;margin-bottom:25px}.course-hero,.chapter-top{grid-template-columns:1fr}.chapter-layout{grid-template-columns:1fr}.chapter-side{position:static}.chapter-grid{grid-template-columns:1fr}.scenario-card{grid-template-columns:1fr}.journey{overflow-x:auto;grid-template-columns:repeat(10,105px)}.admin-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.topbar{padding:0 12px}.top-actions .user-name{display:none}.top-actions{gap:3px}.top-actions a{font-size:9px}.page{width:min(100% - 20px,1180px);padding-top:20px}.course-hero,.chapter-top{padding:20px}.course-hero h1,.chapter-top h1{font-size:32px}.chapter-card{grid-template-columns:100px 1fr}.chapter-card img{width:100px;height:90px}.match-board{gap:22px}.admin-stats{grid-template-columns:1fr 1fr}.exam-metrics{grid-template-columns:1fr}.support-modal{padding:25px}.support-modal h2{font-size:27px}.support-modal p{font-size:14px}}

/* v4.0.1 — Persistent chapter journey inside lesson pages */
.chapter-progress-sticky{
  position:sticky;
  top:72px;
  z-index:24;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 22px rgba(47,83,115,.06);
}
.chapter-progress-inner{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:10px 0 9px;
}
.chapter-progress-head{
  display:grid;
  grid-template-columns:220px 1fr;
  align-items:center;
  gap:16px;
  margin-bottom:9px;
}
.chapter-progress-head>div:first-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.chapter-progress-head b{
  font-size:11px;
}
.chapter-progress-head span{
  font-size:9px;
  color:var(--muted);
}
.chapter-progress-bar{
  height:7px;
  background:#edf3f7;
  border-radius:99px;
  overflow:hidden;
}
.chapter-progress-bar i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#28b89c,#4f91f1);
  border-radius:99px;
}
.chapter-journey{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:7px;
  align-items:start;
}
.chapter-journey-step{
  text-align:center;
  color:#7c91a5;
  min-width:0;
}
.chapter-journey-step>span{
  width:31px;
  height:31px;
  margin:0 auto 4px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eef3f7;
  border:3px solid #fff;
  box-shadow:0 0 0 1px #d9e4ec;
  font-size:10px;
  font-weight:800;
  transition:.2s;
}
.chapter-journey-step small{
  display:block;
  font-size:7.5px;
  line-height:1.25;
  white-space:normal;
  overflow:hidden;
  min-height:19px;
}
.chapter-journey-step:hover>span{
  transform:translateY(-1px);
  box-shadow:0 0 0 3px #edf5ff;
}
.chapter-journey-step.done>span{
  background:var(--green);
  color:#fff;
  box-shadow:0 0 0 1px #bce8ce;
}
.chapter-journey-step.current>span{
  background:var(--blue);
  color:#fff;
  box-shadow:0 0 0 4px #e7f1ff;
}
.chapter-journey-step.skip>span{
  background:var(--amber2);
  color:#a66b0b;
  box-shadow:0 0 0 1px #efd59e;
}
.chapter-journey-step.upcoming>span{
  background:#eef3f7;
  color:#8fa2b3;
}
.chapter-journey-legend{
  display:flex;
  justify-content:flex-start;
  gap:13px;
  flex-wrap:wrap;
  margin-top:6px;
  font-size:8px;
  color:var(--muted);
}
.chapter-journey-legend span{
  display:flex;
  align-items:center;
  gap:4px;
}
.legend-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
}
.legend-dot.done{background:var(--green)}
.legend-dot.current{background:var(--blue)}
.legend-dot.skip{background:var(--amber)}
.legend-dot.upcoming{background:#cbd7e0}

@media(max-width:900px){
  .chapter-progress-inner{
    width:100%;
    padding:9px 12px 8px;
  }
  .chapter-progress-head{
    grid-template-columns:1fr;
    gap:6px;
  }
  .chapter-journey{
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
  .chapter-journey-step{
    flex:0 0 92px;
  }
}
@media(max-width:600px){
  .chapter-progress-sticky{top:72px}
  .chapter-journey-step small{font-size:7px}
  .chapter-journey-legend{display:none}
}

/* v4.1.0 modern interactive course */
.modern-course{max-width:1120px}
.modern-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;background:linear-gradient(135deg,#fff,#f4fbff 55%,#f4fff9);border:1px solid var(--line);border-radius:30px;padding:34px;box-shadow:var(--shadow)}
.modern-hero h1{font-size:46px;margin:8px 0 12px;line-height:1.08}.modern-hero p{color:var(--muted);line-height:1.8}.hero-visual{position:relative}.hero-visual img{width:100%;border-radius:22px}.floating-tip{position:absolute;bottom:16px;right:16px;background:#fff;padding:9px 12px;border-radius:12px;font-size:10px;box-shadow:0 8px 20px rgba(49,86,117,.15)}
.hero-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.hero-chips span{padding:6px 9px;border-radius:99px;background:#edf7ff;color:#3474a8;font-size:9px;font-weight:700}
.learning-map{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}.learning-step{background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px;display:flex;align-items:center;gap:8px;font-size:9px;color:var(--muted)}.learning-step b{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#eef4f8;color:#54728a}.learning-step.active{background:#eef7ff;border-color:#cfe2f5;color:#2b689c}.learning-step.active b{background:var(--blue);color:#fff}
.story-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.story-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;display:grid;grid-template-columns:42px 1fr;gap:12px}.story-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#eaf7ff,#e9faf3);display:grid;place-items:center;font-weight:800;color:#3675a7}.story-card h2{font-size:17px;margin:2px 0 8px}.story-card p{font-size:11px;line-height:1.75;color:#60798f}.reveal-btn{border:0;background:#eff7ff;color:#2e70a6;border-radius:10px;padding:7px 9px;font-size:9px;font-weight:700}.reveal-box{margin-top:9px;background:#f8fbfd;border-radius:12px;padding:10px}
.explore-zone{margin-top:16px;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--line);border-radius:24px;padding:24px}.explore-heading{text-align:center;max-width:680px;margin:auto}.explore-heading h2{font-size:24px;margin:7px}.explore-heading p{font-size:11px;color:var(--muted)}
.character-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.character-card{border:1px solid #dbe6ef;background:#fff;border-radius:18px;padding:18px 10px;text-align:center;color:#36566e;transition:.2s}.character-card:hover,.character-card.active{transform:translateY(-3px);border-color:#8bbbe5;box-shadow:0 12px 24px rgba(55,94,125,.10);background:#f5faff}.character-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 9px;border-radius:50%;background:linear-gradient(145deg,#e8f8f5,#eaf2ff);font-size:34px}.character-card b{display:block;font-size:12px}.character-card small{display:block;margin-top:4px;color:#8194a5;font-size:8px}
.character-detail{margin-top:15px;background:#eef8ff;border:1px solid #d4e8f8;border-radius:18px;padding:17px;display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:center;min-height:105px}.character-detail-icon{width:64px;height:64px;border-radius:18px;background:#fff;display:grid;place-items:center;font-size:31px}.character-detail span{font-size:8px;color:#3779ad}.character-detail h3{margin:3px 0 5px;font-size:15px}.character-detail p{font-size:10px;line-height:1.6;color:#5b758b;margin:0}
.modern-video{margin-top:16px}.modern-scenario{margin-top:16px;grid-template-columns:280px 1fr}.scenario-side{position:relative}.scenario-side img{width:100%;border-radius:18px}.scenario-side>span{position:absolute;right:12px;bottom:12px;background:#fff;padding:6px 9px;border-radius:9px;font-size:8px;font-weight:700}.scenario-story{background:#f7fafc;border-right:4px solid #6aa7dc;border-radius:12px;padding:13px;font-size:11px;line-height:1.7;color:#536e84;margin:10px 0}.scenario-options button{display:flex;align-items:center;gap:9px}.scenario-options button>span{width:25px;height:25px;border-radius:8px;background:#eef3f7;display:grid;place-items:center;font-weight:800;flex:none}
.modern-match{margin-top:16px;background:linear-gradient(180deg,#fff,#fcfffd)}.match-intro{text-align:center}.modern-quiz{margin-top:16px}.quiz-intro{font-size:10px;color:var(--muted)}.modern-quiz .quiz-question{position:relative;padding-right:48px}.quiz-number{position:absolute;right:0;top:17px;width:34px;height:34px;border-radius:11px;background:#eef6ff;color:#3274aa;display:grid;place-items:center;font-weight:800}.modern-nav{margin-top:16px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px}
@media(max-width:900px){.modern-hero{grid-template-columns:1fr}.story-strip{grid-template-columns:1fr}.character-grid{grid-template-columns:repeat(2,1fr)}.learning-map{grid-template-columns:1fr 1fr}.modern-scenario{grid-template-columns:1fr}}
@media(max-width:600px){.modern-hero{padding:20px}.modern-hero h1{font-size:33px}.character-grid{grid-template-columns:1fr 1fr}.learning-map{grid-template-columns:1fr}.character-detail{grid-template-columns:52px 1fr}.character-detail-icon{width:52px;height:52px}}

.error-page{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:30px;background:linear-gradient(135deg,#f7fbff,#eef8f5)}
.error-card{width:min(620px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:34px;text-align:center;box-shadow:var(--shadow)}
.error-icon{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;margin:0 auto 16px;background:#fff0f1;color:#c24650;font-size:38px;font-weight:800}
.error-card h1{font-size:30px;margin:0 0 10px}.error-card p{color:var(--muted);line-height:1.8}

.deep-lab{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:25px;padding:24px}.deep-lab-head{text-align:center;max-width:760px;margin:0 auto 20px}.deep-lab-head h2{font-size:25px;margin:7px}.deep-lab-head p{font-size:11px;line-height:1.7;color:var(--muted)}
.lab-slides{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.lab-tile{border:1px solid #dce7ef;background:#fbfdff;border-radius:17px;padding:16px;color:#3e5f77;text-align:right}.lab-tile:hover,.lab-tile.active{border-color:#75ace0;background:#f1f8ff;transform:translateY(-2px)}.lab-tile>span{font-size:30px;display:block;margin-bottom:8px}.lab-tile b{display:block;font-size:11px}.lab-tile small{display:block;color:#7b91a3;font-size:8px;margin-top:5px;line-height:1.5}.lab-detail{display:grid;grid-template-columns:60px 1fr;gap:13px;background:#eef8ff;border-radius:16px;padding:15px;margin-top:12px}.lab-detail>span{font-size:32px}.lab-detail h3{margin:0 0 5px}.lab-detail p{margin:0;color:#58738a;font-size:10px;line-height:1.7}
.phish-simulator{max-width:850px;margin:auto;border:1px solid #d8e3ec;border-radius:20px;overflow:hidden;background:#f7fafc}.phish-toolbar{display:flex;gap:18px;background:#edf3f7;padding:10px 15px;font-size:9px;color:#647d91}.phish-mail{background:#fff;padding:18px;position:relative}.mail-row{display:flex;gap:8px;border-bottom:1px solid #edf1f4;padding:10px;position:relative;font-size:11px}.mail-body{padding:18px 10px;position:relative;font-size:11px;line-height:1.7}.fake-login{position:relative;background:#286fd1;color:#fff;border:0;border-radius:8px;padding:10px 18px}.inspect-target i{display:none;position:absolute;right:-7px;top:-7px;width:24px;height:24px;border:3px solid #e14651;color:#c72f3b;background:#fff;border-radius:50%;font-style:normal;font-size:9px;font-weight:800;place-items:center}.phish-simulator.reveal .inspect-target i{display:grid}.inspect-target.highlight{outline:3px solid #e14651;outline-offset:3px;border-radius:7px}.phish-decision,.phish-analysis{padding:16px;background:#f8fbfd;text-align:center}.phish-decision button{border:1px solid #cfdde8;background:#fff;border-radius:11px;padding:9px 14px;margin:4px;color:#385c76}.phish-analysis p{font-size:10px;color:#5b7488;line-height:1.7}
.phone-sms-demo{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:center;max-width:760px;margin:auto}.phone-shell{border:8px solid #263846;border-radius:35px;background:#eef2f5;min-height:390px;padding:35px 16px 20px;position:relative}.phone-notch{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:80px;height:16px;background:#263846;border-radius:20px}.sms-from{text-align:center;font-size:10px;font-weight:800;margin-bottom:35px}.sms-bubble{background:#fff;border-radius:18px 18px 5px 18px;padding:14px;font-size:11px;line-height:1.7}.sms-check{background:#fff6e6;border-radius:18px;padding:20px}.sms-check p{font-size:11px;line-height:1.8;color:#6c624e}
.mfa-slide{display:none;grid-template-columns:130px 1fr;gap:20px;align-items:center;background:linear-gradient(135deg,#f2f9ff,#f3fff9);border-radius:20px;padding:25px;min-height:220px}.mfa-slide.active{display:grid}.mfa-big-icon{width:120px;height:120px;border-radius:30px;background:#fff;display:grid;place-items:center;font-size:55px;box-shadow:0 12px 30px rgba(47,83,115,.1)}.mfa-slide span{font-size:9px;color:#3475aa}.mfa-slide h3{font-size:21px;margin:6px 0}.mfa-slide b{font-size:11px}.mfa-slide p{font-size:11px;color:#5d768b;line-height:1.8}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:12px}.carousel-controls>button{border:0;background:#eef5fb;color:#376987;border-radius:10px;padding:8px 12px}.carousel-dots{display:flex;gap:5px}.carousel-dots button{width:9px;height:9px;border:0;border-radius:50%;background:#cbd8e2;padding:0}.carousel-dots button.active{background:var(--blue)}
@media(max-width:800px){.lab-slides{grid-template-columns:1fr 1fr}.phone-sms-demo{grid-template-columns:1fr}.phone-shell{max-width:280px;margin:auto}.mfa-slide{grid-template-columns:1fr}.mfa-big-icon{margin:auto}}

/* v4.3.0 UI refinement */
.course-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 10px;font-size:9px;font-weight:800;margin-top:4px}
.status-completed{background:#e8f8ef;color:#188153}.status-progress{background:#fff3d8;color:#966515}.status-not-started{background:#eef3f7;color:#6f8497}
.chapter-status-row{margin-top:9px}

/* Lesson sheet deck */
.lesson-deck{margin-top:17px;background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 12px 32px rgba(47,83,115,.06)}
.lesson-deck-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:17px}.lesson-deck-head h2{margin:5px 0 7px;font-size:24px}.lesson-deck-head p{margin:0;font-size:10px;color:var(--muted)}
.lesson-page-counter{min-width:70px;height:54px;border-radius:16px;background:#eef7ff;display:flex;align-items:baseline;justify-content:center;gap:3px;padding-top:11px;color:#3778aa}.lesson-page-counter b{font-size:24px}.lesson-page-counter span{font-size:10px}
.lesson-sheets{position:relative;min-height:410px}.lesson-sheet{display:none;grid-template-columns:55px minmax(0,1.2fr) minmax(260px,.8fr);gap:20px;align-items:center;background:linear-gradient(135deg,#fbfdff,#f4faff);border:1px solid #dce8f1;border-radius:22px;padding:27px;min-height:410px;animation:sheetIn .25s ease}.lesson-sheet.active{display:grid}@keyframes sheetIn{from{opacity:.3;transform:translateX(-8px)}to{opacity:1;transform:none}}
.sheet-number{width:50px;height:50px;border-radius:16px;background:#2f80ed;color:#fff;display:grid;place-items:center;font-size:19px;font-weight:800}.sheet-label{font-size:9px;color:#4280b0}.sheet-content h2{font-size:25px;margin:7px 0 13px}.sheet-content p{font-size:12px;line-height:1.95;color:#526e85}.sheet-visual img{width:100%;border-radius:18px;box-shadow:0 10px 24px rgba(43,80,110,.08)}
.lesson-deck-controls{display:grid;grid-template-columns:100px 1fr 100px;align-items:center;gap:14px;margin-top:14px}.deck-btn{border:1px solid #d6e3ed;background:#fff;color:#3c627e;border-radius:11px;padding:9px;font-size:10px;font-weight:700}.deck-btn:disabled{opacity:.45;cursor:default}.primary-deck{background:#2f80ed;color:#fff;border-color:#2f80ed}.lesson-dots{display:flex;justify-content:center;gap:6px}.lesson-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#cfdae3}.lesson-dots button.active{width:24px;border-radius:99px;background:#2f80ed}

/* Matching redesign */
.match-experience{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:25px;padding:24px}.match-experience-head{text-align:center;max-width:700px;margin:auto}.match-experience-head h2{font-size:24px;margin:6px}.match-experience-head p{font-size:10px;color:var(--muted)}
.smart-match{display:grid;grid-template-columns:1fr 120px 1fr;gap:18px;align-items:start;margin-top:22px}.smart-match-column{display:grid;gap:10px}.smart-match-column h3{text-align:center;font-size:11px;color:#668095;margin:0 0 4px}.smart-match-card{min-height:68px;border:1px solid #d7e4ed;background:#fbfdff;border-radius:16px;padding:12px;display:flex;align-items:center;gap:10px;color:#385a73;text-align:right;transition:.18s}.smart-match-card:hover{border-color:#91bce1;transform:translateY(-1px)}.smart-match-card.selected{border:2px solid #2f80ed;background:#eef7ff}.smart-match-card.matched{opacity:.3;transform:scale(.97);pointer-events:none}.match-card-index{width:31px;height:31px;border-radius:10px;background:#e9f2fa;display:grid;place-items:center;color:#3776a8;font-size:10px;font-weight:800}.smart-match-center{display:grid;place-items:center;min-height:245px;text-align:center;color:#648096}.match-link-symbol{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e9f8f2,#eaf3ff);font-size:27px;color:#2c9d77}.smart-match-center #matchStatus{font-size:9px;line-height:1.5;margin-top:8px}.smart-match-center #matchStatus.complete{color:#168052;font-weight:800}.smart-match-center #matchStatus.hint{color:#b07618}.match-error{border-color:#e56a73!important;background:#fff1f2!important;animation:matchShake .28s}@keyframes matchShake{25%{transform:translateX(5px)}75%{transform:translateX(-5px)}}
.matched-results{display:grid;gap:7px;margin-top:16px}.matched-result-row{display:grid;grid-template-columns:30px 1fr 35px 1fr;gap:9px;align-items:center;background:#edf9f2;border:1px solid #bfe8d0;border-radius:13px;padding:10px 12px;font-size:10px;color:#276b4d}.matched-check{width:26px;height:26px;border-radius:50%;background:#20b875;color:#fff;display:grid;place-items:center}.matched-arrow{text-align:center;color:#20a66e}

/* Chapter quiz redesign */
.chapter-quiz-modern{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:25px;padding:24px}.chapter-quiz-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5edf3;padding-bottom:15px}.chapter-quiz-head h2{font-size:24px;margin:5px 0}.chapter-quiz-head p{font-size:10px;color:var(--muted);margin:0}.quiz-score-badge{width:58px;height:58px;border-radius:18px;background:#eef7ff;color:#3778aa;display:grid;place-items:center;font-weight:800;font-size:16px}
.chapter-question-list{display:grid;gap:13px;margin-top:16px}.chapter-question-card{position:relative;border:1px solid #dce7ef;border-radius:18px;padding:19px 19px 19px 65px;background:#fcfdff;transition:.2s}.chapter-question-card.needs-answer{border-color:#e5a046;box-shadow:0 0 0 3px #fff3df}.chapter-question-number{position:absolute;right:auto;left:18px;top:18px;width:34px;height:34px;border-radius:11px;background:#e9f3fb;color:#3376aa;display:grid;place-items:center;font-weight:800}.chapter-question-card h3{font-size:13px;margin:0 0 12px}.chapter-answer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.chapter-answer-option{border:1px solid #dbe5ed;background:#fff;border-radius:13px;padding:10px;display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer}.chapter-answer-option input{display:none}.chapter-answer-option.chosen{border-color:#2f80ed;background:#eef6ff;box-shadow:0 0 0 2px #e1efff}.answer-letter{width:28px;height:28px;border-radius:9px;background:#eef3f7;display:grid;place-items:center;font-weight:800;flex:none}.chapter-answer-option.chosen .answer-letter{background:#2f80ed;color:#fff}.quiz-submit-row{display:flex;align-items:center;gap:15px;margin-top:15px}.quiz-result{font-size:10px;color:#58758c}.quiz-result.passed{color:#188153;font-weight:800}

/* Final exam wizard */
.exam-modern-page{max-width:1080px}.exam-modern-header{background:linear-gradient(135deg,#fff,#f2f9ff);border:1px solid var(--line);border-radius:25px;padding:25px;display:flex;justify-content:space-between;align-items:center}.exam-modern-header h1{font-size:35px;margin:5px 0}.exam-modern-header p{font-size:11px;color:var(--muted)}.exam-header-metric{width:110px;height:85px;border-radius:20px;background:#eaf8f2;display:grid;place-items:center;align-content:center}.exam-header-metric b{font-size:27px;color:#188153}.exam-header-metric span{font-size:8px;color:#688174}
.exam-progress-shell{margin:15px 0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}.exam-progress-text{display:flex;justify-content:space-between;font-size:9px;color:#668095}.exam-progress-text b{font-size:14px;color:#244e6a}.exam-progress-track{height:8px;background:#edf2f6;border-radius:99px;margin-top:9px;overflow:hidden}.exam-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#20b875,#2f80ed);transition:.25s}
.exam-layout-modern{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px}.exam-wizard{min-width:0}.exam-slide{display:none;background:#fff;border:1px solid var(--line);border-radius:23px;padding:28px;min-height:470px}.exam-slide.active{display:block;animation:sheetIn .22s}.exam-slide.needs-answer{border-color:#e5a046;box-shadow:0 0 0 3px #fff1d9}.exam-slide-meta{display:flex;justify-content:space-between;color:#5480a2;font-size:9px}.exam-slide h2{font-size:23px;line-height:1.5;margin:18px 0 22px}.exam-option-list{display:grid;gap:10px}.exam-option-modern{border:1px solid #d9e5ee;border-radius:15px;padding:13px;display:grid;grid-template-columns:38px 1fr 25px;gap:10px;align-items:center;cursor:pointer;transition:.15s}.exam-option-modern input{display:none}.exam-option-letter{width:35px;height:35px;border-radius:11px;background:#eef3f7;display:grid;place-items:center;font-weight:800}.exam-option-text{font-size:11px}.exam-option-modern i{font-style:normal;opacity:0;color:#fff;width:23px;height:23px;border-radius:50%;background:#2f80ed;display:grid;place-items:center}.exam-option-modern:hover{border-color:#9cbfdd}.exam-option-modern.selected{border:2px solid #2f80ed;background:#eef7ff}.exam-option-modern.selected .exam-option-letter{background:#2f80ed;color:#fff}.exam-option-modern.selected i{opacity:1}.exam-wizard-nav{display:flex;justify-content:space-between;gap:10px;margin-top:25px}
.answer-sheet{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;height:max-content;position:sticky;top:90px}.answer-sheet-head h3{margin:0 0 4px;font-size:15px}.answer-sheet-head p{font-size:8px;color:var(--muted);line-height:1.5}.answer-sheet-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:13px}.answer-sheet-grid button{aspect-ratio:1;border:1px solid #d8e3eb;background:#f8fafc;border-radius:10px;color:#668095;font-size:9px;font-weight:700}.answer-sheet-grid button.answered{background:#e9f8f0;border-color:#afe2c4;color:#14784b}.answer-sheet-grid button.current{box-shadow:0 0 0 2px #2f80ed;border-color:#2f80ed}.answer-sheet-legend{display:grid;gap:7px;margin-top:14px;font-size:8px;color:#6d8496}.answer-sheet-legend span{display:flex;align-items:center;gap:6px}.answer-sheet-legend i{width:10px;height:10px;border-radius:3px;background:#f1f4f7;border:1px solid #d6e0e8}.answer-sheet-legend i.answered{background:#e9f8f0;border-color:#afe2c4}.answer-sheet-legend i.current{background:#fff;border:2px solid #2f80ed}

/* Result and print report */
.result-modern-page{max-width:880px}.result-score-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;text-align:center;box-shadow:var(--shadow)}.result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:15px}.print-report{margin-top:16px;background:#fff;border:1px solid #cfdde7;border-radius:24px;padding:34px;box-shadow:0 10px 30px rgba(47,83,115,.08)}.report-header{display:grid;grid-template-columns:70px 1fr;gap:17px;align-items:center;border-bottom:2px solid #e3ebf1;padding-bottom:19px}.report-logo{width:68px;height:68px;border-radius:19px;background:linear-gradient(135deg,#dff7f0,#e1edff);color:#276fa5;display:grid;place-items:center;font-size:19px;font-weight:900}.report-header span{font-size:10px;color:#4c7fa5;font-weight:800}.report-header h1{font-size:22px;margin:4px 0}.report-header p{font-size:9px;color:var(--muted);margin:0}.report-status{display:flex;align-items:center;justify-content:space-between;border-radius:18px;padding:17px 20px;margin:20px 0}.report-status.passed{background:#eaf9f1;color:#17794e}.report-status.failed{background:#fff0f1;color:#a73a44}.report-status span{font-size:13px;font-weight:800}.report-status b{font-size:28px}.report-person,.report-time{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.report-person>div,.report-time>div{border:1px solid #dfe8ef;border-radius:14px;padding:13px;background:#fbfdff}.report-person span,.report-time span{display:block;font-size:8px;color:#7b8fa0;margin-bottom:5px}.report-person b,.report-time b{font-size:11px;color:#284b64;word-break:break-word}.report-note{background:#f4f8fb;border-radius:12px;padding:12px;margin-top:15px;font-size:8px;color:#6f8495;text-align:center}.report-footer{text-align:center;border-top:1px solid #dde7ee;margin-top:18px;padding-top:14px;color:#506e84;font-size:9px;font-weight:700}

@media(max-width:900px){
  .lesson-sheet{grid-template-columns:45px 1fr}.sheet-visual{grid-column:1/3}.sheet-visual img{max-height:230px;object-fit:cover}
  .smart-match{grid-template-columns:1fr}.smart-match-center{min-height:auto}.match-link-symbol{transform:rotate(90deg)}
  .chapter-answer-grid{grid-template-columns:1fr}
  .exam-layout-modern{grid-template-columns:1fr}.answer-sheet{position:static;order:-1}.answer-sheet-grid{grid-template-columns:repeat(10,1fr)}
}
@media(max-width:600px){
  .lesson-deck{padding:15px}.lesson-deck-head{display:block}.lesson-page-counter{margin-top:10px}.lesson-sheet{grid-template-columns:1fr;padding:18px}.sheet-number{width:42px;height:42px}.sheet-visual{grid-column:auto}.lesson-deck-controls{grid-template-columns:78px 1fr 78px}
  .exam-modern-header{display:block}.exam-header-metric{margin-top:12px}.exam-slide{padding:18px}.answer-sheet-grid{grid-template-columns:repeat(5,1fr)}
  .report-person,.report-time{grid-template-columns:1fr}.print-report{padding:20px}.report-header{grid-template-columns:55px 1fr}.report-logo{width:54px;height:54px}
}

@media print{
  @page{size:A4;margin:14mm}
  body{background:#fff!important;color:#17324d!important}
  .no-print,.topbar,.footer,.rating-card{display:none!important}
  .result-modern-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .print-report{display:block!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
  .report-header{padding-bottom:16px}.report-status{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .report-person>div,.report-time>div{break-inside:avoid}
}

/* v4.4.0 learning depth, expert videos, quiz feedback */
.sheet-visual{overflow:hidden;border-radius:20px;background:linear-gradient(135deg,#eef8ff,#edf9f5);padding:8px}
.sheet-visual img{transform:scale(1.09);transform-origin:center;transition:transform .3s ease;min-height:280px;object-fit:cover}
.lesson-sheet:hover .sheet-visual img{transform:scale(1.13)}
.sheet-content p{font-size:13px;line-height:2.05;margin:0 0 13px;color:#4f6c83}
.sheet-content{padding-inline:4px}
.lesson-sheet{min-height:470px}
.lesson-sheets{min-height:470px}

.expert-video{border:1px solid #d9e7f0;background:linear-gradient(180deg,#fff,#f9fcff)}
.video-clip-note{margin-top:9px;padding:9px 11px;border-radius:11px;background:#eef8f5;color:#387564;font-size:9px;line-height:1.6}
.expert-video .section-head small{max-width:48%;text-align:left;line-height:1.5}

/* Correct / incorrect feedback after chapter quiz grading */
.chapter-answer-option.answer-correct{
  border:2px solid #20a96b!important;
  background:#e9f9f1!important;
  color:#176c48!important;
  box-shadow:0 0 0 2px #d7f3e4;
}
.chapter-answer-option.answer-correct .answer-letter{
  background:#20a96b!important;color:#fff!important;
}
.chapter-answer-option.answer-wrong{
  border:2px solid #df5c66!important;
  background:#fff0f1!important;
  color:#9c3540!important;
  box-shadow:0 0 0 2px #ffe1e4;
}
.chapter-answer-option.answer-wrong .answer-letter{
  background:#df5c66!important;color:#fff!important;
}
.chapter-answer-option input:disabled{pointer-events:none}
.chapter-question-card:has(.answer-correct){background:#fcfffd}

/* Final exam scenario screenshots */
.exam-question-media{
  margin:17px 0 20px;
  background:#f5f9fc;
  border:1px solid #dbe6ee;
  border-radius:18px;
  padding:10px;
  text-align:center;
}
.exam-question-media img{
  display:block;
  width:100%;
  max-height:330px;
  object-fit:contain;
  border-radius:13px;
}
.exam-question-media figcaption{
  margin-top:7px;
  font-size:8px;
  color:#758b9d;
}
.exam-slide:has(.exam-question-media){min-height:650px}

/* Rating form gets a clean fresh state after successful submission redirect */
.rating-card .alert.success{margin-bottom:14px}

.copyright-line{display:inline-block;unicode-bidi:isolate}.copyright-line span{unicode-bidi:isolate}

.stars label{cursor:pointer}.stars label.lit span{color:#f3b631!important;transform:scale(1.04)}
.stars span{transition:.15s}.rating-selection{text-align:center;font-size:9px;color:#718697;margin:5px 0 12px}

/* v4.5.0: keep the footer at the viewport bottom on short pages */
html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>.page,body>main{flex:1 0 auto}
body>.footer{margin-top:auto;flex-shrink:0;width:100%}
.exam-question-media img{max-height:430px;object-fit:contain;background:#fff}

/* v4.6.1 profile menu + Time Reporting-style logout */
.top-actions{display:flex;align-items:center;gap:10px}
.admin-top-link{padding:8px 11px!important;border:1px solid #dce6ee;border-radius:11px;background:#fff;color:#315875!important;font-weight:700}
.admin-top-link:hover{background:#f4f8fb!important}

.profile-menu{position:relative}
.profile-trigger{
  border:1px solid #dbe6ee;
  background:#fff;
  border-radius:14px;
  min-height:42px;
  padding:5px 10px 5px 6px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#294e69;
  font-weight:800;
  box-shadow:0 3px 10px rgba(38,72,98,.04);
}
.profile-trigger:hover,.profile-trigger.open{background:#f5f9fc;border-color:#bad3e5}
.profile-avatar{
  width:32px;height:32px;border-radius:10px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#e4f7f2,#e5efff);
  color:#2c73a8;flex:none
}
.profile-chevron{font-size:14px;color:#7890a3;transition:.18s}
.profile-trigger.open .profile-chevron{transform:rotate(180deg)}
.profile-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:255px;
  background:#fff;
  border:1px solid #dbe6ee;
  border-radius:16px;
  padding:9px;
  box-shadow:0 18px 42px rgba(31,65,91,.16);
  z-index:90;
}
.profile-dropdown[hidden]{display:none}
.profile-dropdown-user{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:9px;
  align-items:center;
  padding:9px;
  background:#f7fafc;
  border-radius:11px;
  margin-bottom:7px
}
.profile-mini-avatar{width:36px;height:36px;border-radius:10px;background:#eaf3fa;display:grid;place-items:center}
.profile-dropdown-user b{display:block;font-size:10px;color:#284d68}
.profile-dropdown-user small{display:block;font-size:8px;color:#7890a3;margin-top:2px;direction:ltr;text-align:left;overflow:hidden;text-overflow:ellipsis}
.profile-dropdown>a{
  display:flex!important;
  padding:10px 11px!important;
  border-radius:10px!important;
  color:#315b78!important;
  font-size:10px!important;
  font-weight:700!important
}
.profile-dropdown>a:hover{background:#eef6fb!important}

.logout-top-button{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:0 13px!important;
  border-radius:12px!important;
  background:#fff3f3!important;
  border:1px solid #efc8cb!important;
  color:#b13d47!important;
  font-size:10px!important;
  font-weight:800!important;
  box-shadow:0 3px 9px rgba(167,56,66,.05)
}
.logout-top-button:hover{background:#ffe8ea!important;border-color:#e8aeb3!important}
.logout-icon{display:grid;place-items:center}

.change-password-heading{
  display:flex;justify-content:space-between;align-items:center;gap:15px;
  margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e3ebf1
}
.change-password-heading h1{margin:0!important}
.change-password-heading p{margin:5px 0 0;color:var(--muted);font-size:9px}
.return-course-button{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 13px;border-radius:12px;
  background:#eef7ff;border:1px solid #cfe3f5;
  color:#2e70a6;font-size:10px;font-weight:800;white-space:nowrap
}
.return-course-button:hover{background:#e2f1ff}
@media(max-width:700px){
  .top-actions{gap:6px}
  .profile-trigger .user-name{display:none}
  .profile-trigger{padding:5px}
  .profile-dropdown{left:0;width:235px}
  .logout-top-button span:last-child{display:none}
  .logout-top-button{width:42px;padding:0!important;justify-content:center}
  .admin-top-link{font-size:8px;padding:7px!important}
  .change-password-heading{align-items:flex-start;flex-direction:column}
  .return-course-button{width:100%;justify-content:center}
}

/* v4.6.2 logout refinement */
.logout-top-button{
  background:#173b5c!important;
  border-color:#173b5c!important;
  color:#fff!important;
  font-weight:900!important;
  box-shadow:0 5px 13px rgba(23,59,92,.16)!important;
}
.logout-top-button:hover{
  background:#102f4b!important;
  border-color:#102f4b!important;
  color:#fff!important;
}
.logout-top-button svg{stroke:#fff!important}
