/* v34.4 — تمرین بدون قفل پنهان، داشبورد زنده و خروج امن از آزمون */
:root{
  --v344-ink:#18223a;
  --v344-muted:#6f7a90;
  --v344-line:#e5eaf2;
  --v344-blue:#315bd6;
  --v344-green:#159a73;
  --v344-amber:#b77612;
  --v344-soft:#f7f9fc;
}

.v16-immersive,.v344-student-welcome,.v344-live-dashboard,.v344-recent-card,
.v21-education,.v21-assessment,.exam-pro,.v344-practice-error,.v344-practice-advice{
  font-family:"Vazirmatn","IRANSansX","Segoe UI",Tahoma,Arial,sans-serif;
  font-feature-settings:"ss01" 1,"tnum" 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* نوار بالای محیط یادگیری: جمع‌وجور و همیشه قابل مشاهده */
.v344-topbar{gap:14px;min-height:76px}
.v344-live-scores{display:flex;align-items:center;gap:7px;margin-inline-start:auto}
.v344-live-scores>span{
  min-width:76px;padding:7px 9px;border:1px solid var(--v344-line);border-radius:13px;
  background:#fff;display:grid;grid-template-columns:21px 1fr;grid-template-areas:"icon value" "icon label";
  column-gap:6px;box-shadow:0 5px 16px rgba(35,55,110,.045)
}
.v344-live-scores i{grid-area:icon;align-self:center;font-style:normal;font-size:16px}
.v344-live-scores b{grid-area:value;color:var(--v344-ink);font-size:12px;line-height:1.25}
.v344-live-scores small{grid-area:label;color:var(--v344-muted);font-size:8.5px;line-height:1.3}
.v344-live-scores>span.done{border-color:#cde9df;background:#f0fbf7}
.v344-live-scores>span.done b{color:#08785a}

/* تمرین جلسه اول: قفل آموزشی حذف شده، اما راهنمای یادگیری حفظ می‌شود */
.v344-practice-advice{
  max-width:1180px;margin:0 auto 14px;padding:13px 16px;border:1px solid #dbe4fb;border-radius:17px;
  background:linear-gradient(90deg,#f1f5ff,#fff);display:flex;align-items:center;justify-content:space-between;gap:14px
}
.v344-practice-advice b{display:block;color:#2649ad;font-size:13px;margin-bottom:3px}
.v344-practice-advice span{display:block;color:#68758d;font-size:11px;line-height:1.8}
.v344-practice-advice button,.v344-practice-error button{
  border:0;border-radius:12px;background:var(--v344-blue);color:#fff;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap
}
.v344-practice-error{
  max-width:640px;margin:38px auto;padding:28px;border:1px solid #f0d4d9;border-radius:23px;background:#fff;text-align:center;
  box-shadow:0 18px 50px rgba(90,30,50,.08)
}
.v344-practice-error>span{width:52px;height:52px;margin:0 auto 12px;border-radius:17px;background:#fff0f3;color:#b83255;display:grid;place-items:center;font-size:26px;font-weight:900}
.v344-practice-error h2{margin:5px 0;color:#29334a;font-size:21px}
.v344-practice-error p{color:#717b90;line-height:1.9}

/* داشبورد حرفه‌ای دانش‌آموز */
.v344-student-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 25px;margin-bottom:15px;
  border:1px solid var(--v344-line);border-radius:24px;background:linear-gradient(110deg,#fff,#f5f8ff);box-shadow:0 14px 42px rgba(35,55,110,.06)
}
.v344-student-welcome>div>span,.v344-live-head span,.v344-card-title span{color:var(--v344-blue);font-size:10px;font-weight:850}
.v344-student-welcome h2{margin:5px 0 4px;color:var(--v344-ink);font-size:clamp(23px,3vw,31px)}
.v344-student-welcome p{margin:0;color:var(--v344-muted);line-height:1.9;font-size:12px}
.v344-student-welcome>button,.v344-card-title button{
  border:1px solid #dce4f5;border-radius:12px;background:#fff;color:#3150af;padding:9px 12px;font:inherit;font-size:10px;font-weight:800;cursor:pointer
}
.v344-live-dashboard{
  margin:15px 0;padding:18px;border:1px solid var(--v344-line);border-radius:24px;background:#fff;box-shadow:0 14px 42px rgba(35,55,110,.055)
}
.v344-live-head,.v344-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.v344-live-head h3,.v344-card-title h3{margin:3px 0 0;color:var(--v344-ink);font-size:17px}
.v344-live-head>small{color:#8490a4;font-size:9.5px}
.v344-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.v344-live-grid article{
  min-height:92px;padding:13px;border:1px solid #e7ebf2;border-radius:18px;background:var(--v344-soft);
  display:grid;grid-template-columns:38px 1fr;grid-template-areas:"icon content" "icon status";column-gap:10px
}
.v344-live-grid article>i{grid-area:icon;width:38px;height:38px;border-radius:13px;background:#fff;display:grid;place-items:center;font-style:normal;font-size:18px;border:1px solid #e5eaf3}
.v344-live-grid article>div{grid-area:content}
.v344-live-grid article span{display:block;color:#747f93;font-size:9px;margin-bottom:4px}
.v344-live-grid article b{display:block;color:#27324a;font-size:15px}
.v344-live-grid article>em{grid-area:status;font-style:normal;color:#506079;font-size:9.5px;align-self:end}
.v344-reminder{margin-top:11px;padding:11px 13px;border-radius:14px;background:#fff8e9;border:1px solid #f0dba8;display:flex;align-items:center;gap:10px}
.v344-reminder b{color:#94600d;font-size:11px}.v344-reminder span{color:#766544;font-size:10px;flex:1}.v344-reminder button{border:0;background:#a76e13;color:#fff;border-radius:10px;padding:8px 11px;font:inherit;font-size:9px;cursor:pointer}
.v344-recent-card{min-height:340px}
.v344-activity-list{display:grid;gap:7px}
.v344-activity-list>button{
  width:100%;border:1px solid #e8ecf3;border-radius:14px;background:#fafbfe;padding:10px 11px;display:grid;
  grid-template-columns:34px 1fr auto;gap:9px;align-items:center;text-align:right;font:inherit;cursor:pointer;transition:.15s ease
}
.v344-activity-list>button:hover{background:#f1f5ff;border-color:#cfdaf5;transform:translateY(-1px)}
.v344-activity-list>button>span{width:34px;height:34px;border-radius:11px;background:#fff;display:grid;place-items:center;border:1px solid #e5eaf3}
.v344-activity-list b{display:block;color:#303b52;font-size:10.5px}.v344-activity-list small{display:block;color:#828ca0;font-size:8.5px;margin-top:3px}.v344-activity-list em{font-style:normal;color:#3156c3;font-size:10px;font-weight:900}
.v344-empty-activity{padding:25px;text-align:center;color:#7d8799;background:#f8f9fc;border-radius:15px;font-size:11px}

/* تیک و پیشرفت درسنامه‌ها */
.v344-edu-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:13px 0 16px}
.v344-edu-overview article,.v344-module-progress{padding:10px 12px;border-radius:14px;background:#f7f9fc;border:1px solid #e5eaf2}
.v344-edu-overview span,.v344-module-progress span{display:block;color:#737e92;font-size:9px}.v344-edu-overview b{display:block;color:#29344d;font-size:15px;margin:3px 0 8px}
.v344-edu-overview i,.v344-module-progress i{display:block;height:6px;border-radius:99px;background:#e4e9f1;overflow:hidden;position:relative}
.v344-edu-overview i::after,.v344-module-progress i::after{content:"";display:block;width:var(--w);height:100%;background:linear-gradient(90deg,#315bd6,#15a982);border-radius:99px}
.v21-module-card.complete{border-color:#bfe4d6;background:linear-gradient(180deg,#fff,#f2fbf7)}
.v344-complete-mark{display:inline-flex;margin-right:7px;padding:3px 7px;border-radius:999px;background:#e5f7f0;color:#08795a;font-size:8px;font-style:normal;vertical-align:middle}
.v344-module-progress{margin:10px 0;padding:8px 9px;background:#fff}
.v344-module-progress i{margin-top:6px}
.v21-slide-rail button.done b{background:#168d69!important;color:#fff!important}
.v21-slide-rail button.done em{display:block;color:#118060;font-size:8px;font-style:normal;margin-top:2px}
.v344-paused-assessment{margin:13px 0;padding:13px 15px;border:1px solid #cbd8f7;border-radius:16px;background:#f3f6ff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.v344-paused-assessment b{display:block;color:#2949a4;font-size:12px}.v344-paused-assessment span{display:block;color:#6f7b91;font-size:10px;margin-top:3px}.v344-paused-assessment button{border:0;border-radius:11px;background:#315bd6;color:#fff;padding:10px 13px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}

/* آزمون استاندارد: خروج امن و ذخیره خودکار */
.v344-exam-pro .exam-top{gap:14px}
.v344-exam-actions{display:flex;align-items:center;gap:9px;margin-inline-start:auto}
.v344-exam-actions>span{color:#6d7890;font-size:9px;white-space:nowrap}
.v344-exam-actions>button{border:1px solid #e4c7cf;background:#fff4f6;color:#a82f50;border-radius:11px;padding:9px 12px;font:inherit;font-size:9.5px;font-weight:800;cursor:pointer}

@media(max-width:1050px){
  .v344-live-scores{order:3;width:100%;overflow:auto;padding-bottom:2px}.v344-topbar{flex-wrap:wrap}.v344-live-scores>span{min-width:72px}
  .v344-live-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .v344-student-welcome{display:block;padding:18px}.v344-student-welcome>button{margin-top:12px}
  .v344-live-dashboard{padding:13px;border-radius:19px}.v344-live-grid{grid-template-columns:1fr}.v344-live-grid article{min-height:78px}
  .v344-practice-advice,.v344-paused-assessment{display:block}.v344-practice-advice button,.v344-paused-assessment button{width:100%;margin-top:10px}
  .v344-edu-overview{grid-template-columns:1fr}
  .v344-exam-pro .exam-top{align-items:flex-start;flex-wrap:wrap}.v344-exam-actions{width:100%;display:grid;grid-template-columns:1fr auto}.v344-exam-actions>span{grid-column:1/-1}
  .v344-live-scores{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr))}
}
