:root{
  --navy:#0b1f3a;--blue:#1667d9;--blue2:#2e8cff;--sky:#eef6ff;--text:#172033;
  --muted:#697386;--border:#dfe8f2;--bg:#f6f9fc;--white:#fff;--danger:#c62828;--success:#15803d;
  --shadow:0 12px 35px rgba(20,60,110,.08)
}
*{box-sizing:border-box}body{margin:0;font-family:'B Nazanin', 'Kamran', Tahoma, Arial, sans-serif;background:var(--bg);color:var(--text);line-height:1.75}
a{text-decoration:none;color:var(--blue)}.container{width:min(1120px,92%);margin:auto}
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.topbar-inner{min-height:72px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-weight:800;font-size:20px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--navy),var(--blue2));color:#fff}
.topnav{display:flex;gap:18px;flex:1}.topnav a{color:#42526a}.account-links{display:flex;gap:12px;align-items:center}.user-chip{background:var(--sky);padding:4px 10px;border-radius:999px}
.btn,button,input[type=submit]{display:inline-block;border:0;border-radius:12px;background:var(--blue);color:#fff;padding:10px 18px;cursor:pointer;font-weight:700}
.btn:hover,button:hover{filter:brightness(.96)}.btn.secondary{background:var(--navy)}.btn.ghost{background:#fff;color:var(--blue);border:1px solid var(--border)}.btn.danger{background:var(--danger)}
.small{padding:7px 12px;font-size:13px}.hero{padding:72px 0 48px;background:radial-gradient(circle at 20% 10%,#d8ecff,transparent 28%),linear-gradient(180deg,#fff,#f4f8ff)}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:36px;align-items:center}.hero h1{font-size:44px;line-height:1.35;margin:0 0 14px;color:var(--navy)}
.hero p{font-size:18px;color:var(--muted)}.hero-card,.card{background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:24px}
.page{padding:38px 0}.page h1,.page h2{color:var(--navy)}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}
.stat{padding:20px;border-radius:18px;background:#fff;border:1px solid var(--border)}.stat b{display:block;font-size:26px;color:var(--navy)}
.card h3{margin-top:0}.muted{color:var(--muted)}.badge{display:inline-block;background:var(--sky);color:var(--blue);padding:4px 10px;border-radius:999px;font-size:12px}
.form-card{max-width:640px;margin:36px auto;background:#fff;border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:var(--shadow)}
label{display:block;font-weight:700;margin:12px 0 6px}input,select,textarea{width:100%;padding:11px 13px;border:1px solid #cfd9e6;border-radius:10px;background:#fff;font:inherit}
textarea{min-height:120px}input:focus,select:focus,textarea:focus{outline:2px solid #b7d9ff;border-color:var(--blue)}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:right;vertical-align:top}th{background:#f2f7fd;color:var(--navy)}
.flashes{padding-top:16px}.flash{padding:12px 16px;border-radius:12px;margin-bottom:8px}.flash.success{background:#eaf8ef;color:#166534}.flash.error{background:#fff0f0;color:#9b1c1c}
.course-list .card,.semester-list .card{transition:.2s}.course-list .card:hover,.semester-list .card:hover{transform:translateY(-2px);border-color:#bad8fb}
.resource-item{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff;margin:10px 0}
.quiz-shell{display:grid;grid-template-columns:1fr 260px;gap:20px}.question-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px}
.option{display:block;border:1px solid var(--border);padding:12px;border-radius:12px;margin:10px 0;cursor:pointer}.option:hover{border-color:#9fc7f7;background:#f8fbff}
.timer{font-weight:800;color:var(--danger);font-size:20px}.navigator{display:flex;flex-wrap:wrap;gap:7px}.navigator button{width:36px;height:36px;padding:0;border-radius:9px;background:#eaf2fb;color:var(--navy)}
.review-box{padding:14px;border-radius:14px;margin-top:12px}.review-box.good{background:#ebf8f0}.review-box.bad{background:#fff0f0}.review-box.info{background:#eef6ff}
.admin-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.admin-sidebar{position:sticky;top:88px;height:calc(100vh - 110px);overflow:auto;background:linear-gradient(180deg,#0b1f3a,#0d294d);border-radius:22px;padding:16px;box-shadow:0 18px 45px rgba(11,31,58,.18);display:flex;flex-direction:column}
.admin-sidebar-brand{display:flex;align-items:center;gap:12px;padding:8px 8px 18px;border-bottom:1px solid rgba(255,255,255,.10)}
.admin-sidebar-brand strong{display:block;color:#fff;font-size:19px}.admin-sidebar-brand small{display:block;color:#9fc8f4;margin-top:2px}
.admin-logo{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#2e8cff,#7fc5ff);color:#fff;font-size:20px;font-weight:900}
.admin-sidebar-group{padding-top:15px}.admin-sidebar-title{display:block;color:#7fa8d5;font-size:11px;padding:0 10px 6px}
.admin-sidebar a{display:flex;align-items:center;gap:10px;color:#d8e6f7;padding:10px 11px;border-radius:12px;margin:2px 0;transition:.18s}
.admin-sidebar a span{width:24px;text-align:center;color:#8fc7ff}.admin-sidebar a:hover{background:rgba(255,255,255,.09);color:#fff;transform:translateX(-2px)}
.admin-sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.10);padding:14px 8px 2px;color:#b9d7f5;font-size:12px;text-align:center}
.actions{display:flex;gap:7px;flex-wrap:wrap}.footer{margin-top:40px;border-top:1px solid var(--border);background:#fff}.footer-inner{min-height:70px;display:flex;justify-content:space-between;align-items:center;color:var(--muted)}
@media(max-width:850px){.topnav{display:none}.hero-grid,.grid-2,.grid-3,.grid-4,.quiz-shell,.admin-layout{grid-template-columns:1fr}.hero h1{font-size:34px}.admin-sidebar{position:static;height:auto}.account-links .user-chip{display:none}}

/* MED403 v0.3 portal layout */
.portal-bg{min-height:100vh;background:
linear-gradient(180deg,#f8fbff 0,#f3f7fc 45%,#eef4fb 100%);
position:relative}
.portal-bg:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.32;
background-image:radial-gradient(circle at 20% 10%,rgba(46,140,255,.10),transparent 25%),
radial-gradient(circle at 82% 30%,rgba(11,31,58,.07),transparent 22%)}
.portal-page{position:relative;z-index:1;max-width:820px}
.portal-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;
background:linear-gradient(135deg,#0b1f3a,#123963);color:#fff;border-radius:28px;padding:28px;
box-shadow:0 22px 50px rgba(11,31,58,.16);margin-bottom:20px}
.portal-welcome h1{color:#fff;margin:3px 0 6px}.portal-welcome p{margin:0;color:#cfe0f2}
.welcome-badge{width:76px;height:76px;display:grid;place-items:center;border-radius:24px;
background:linear-gradient(135deg,#2e8cff,#86c8ff);font-size:24px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.section-kicker{font-size:13px;color:#4f8fe5;font-weight:800;margin-bottom:3px}
.portal-section{background:rgba(255,255,255,.78);border:1px solid #dbe6f2;border-radius:26px;padding:20px;margin:18px 0;box-shadow:0 14px 38px rgba(15,48,90,.06)}
.portal-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.portal-section-head h2{margin:2px 0 0;font-size:24px}.count-pill{min-width:38px;height:38px;padding:0 10px;border-radius:14px;display:grid;place-items:center;background:#edf5ff;color:#1667d9;font-weight:900}
.portal-stack{display:grid;gap:12px}
.portal-card{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid #d7e2ee;border-radius:20px;background:#fff;color:inherit;transition:.18s;box-shadow:0 8px 18px rgba(20,60,110,.03)}
.portal-card:hover{transform:translateY(-2px);border-color:#a9cdf7;box-shadow:0 12px 28px rgba(20,60,110,.08)}
.portal-card.large-card{min-height:118px}
.portal-card-body{flex:1;min-width:0}.portal-card-body h3{margin:0 0 2px;color:#15233a;font-size:20px}.portal-card-body p{margin:0;color:#778397}
.portal-eyebrow{color:#4f8fe5;font-size:12px;font-weight:800;margin-bottom:2px}
.portal-arrow{font-size:34px;color:#7ba8dc;line-height:1;padding:0 6px}
.module-icon{flex:0 0 58px;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-weight:900;font-size:18px;border:1px solid rgba(0,0,0,.04)}
.module-icon.blue{background:linear-gradient(135deg,#edf6ff,#d7eaff);color:#176bdc}
.module-icon.green{background:linear-gradient(135deg,#edfbf7,#d8f5ec);color:#168c68}
.module-icon.pink{background:linear-gradient(135deg,#fff2f7,#ffe0eb);color:#c4537d}
.muted-card{opacity:.78}.empty-card{text-align:center}
.portal-notice{display:flex;gap:12px;align-items:flex-start;background:#eef8f4;border:1px solid #d1ede1;color:#246a54;border-radius:18px;padding:14px 16px;margin:14px 0}
.portal-notice p{margin:2px 0 0}
.mobile-dock{display:none}
.simple-landing{min-height:calc(100vh - 140px);display:grid;place-items:center;padding:50px 0;background:linear-gradient(180deg,#f8fbff,#eef5fd)}
.landing-panel{max-width:720px;margin:auto;text-align:center;background:#fff;border:1px solid #dce7f3;border-radius:30px;padding:48px;box-shadow:0 24px 60px rgba(20,60,110,.10)}
.brand-orb{width:86px;height:86px;border-radius:26px;margin:0 auto 18px;display:grid;place-items:center;background:linear-gradient(135deg,#0b1f3a,#2e8cff);color:#fff;font-weight:900;font-size:24px}
.landing-panel h1{font-size:42px;margin:5px 0;color:#0b1f3a}.landing-panel p{color:#697386;font-size:17px}
.landing-actions{justify-content:center}.landing-mini-grid{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.landing-mini-grid div{padding:14px;border:1px solid #e1e9f2;border-radius:16px;background:#f9fbfe}.landing-mini-grid b,.landing-mini-grid span{display:block}.landing-mini-grid span{font-size:12px;color:#7b8797}
@media(max-width:850px){
  .portal-page{width:min(94%,720px);padding-bottom:100px}.portal-welcome{padding:22px;border-radius:24px}.portal-welcome h1{font-size:25px}.welcome-badge{width:62px;height:62px;border-radius:19px}
  .portal-section{padding:14px;border-radius:24px}.portal-card{padding:14px;border-radius:18px}.portal-card-body h3{font-size:18px}.portal-card-body p{font-size:13px}
  .module-icon{width:52px;height:52px;flex-basis:52px;border-radius:16px}.mobile-dock{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:50;display:flex;direction:rtl;gap:4px;padding:7px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border:1px solid #d9e4f0;border-radius:24px;box-shadow:0 18px 45px rgba(11,31,58,.16)}
  .mobile-dock a{min-width:66px;display:grid;place-items:center;color:#718096;border-radius:18px;padding:7px 9px;font-size:12px}.mobile-dock a span{font-size:19px}.mobile-dock a b{font-size:10px}.mobile-dock a.active{background:#1667d9;color:#fff}
  .landing-panel{padding:30px 20px}.landing-panel h1{font-size:30px}.landing-mini-grid{grid-template-columns:1fr}
}

/* MED403 v1 Beta */
.profile-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:20px;align-items:start}
.profile-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.admin-filter-grid{display:grid;grid-template-columns:1.7fr 1fr auto;gap:12px;align-items:end}
.filter-action{padding-bottom:1px}.permission-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0 18px}
.permission-card{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:14px;background:#f9fbfe;margin:0}
.permission-card span{display:block}.permission-card b,.permission-card small{display:block}.permission-card small{color:var(--muted)}
.switch-line{display:flex;gap:9px;align-items:center;margin:12px 0}.reset-row{display:grid;grid-template-columns:1fr auto;gap:10px}.table-scroll{overflow:auto}
@media(max-width:850px){.profile-grid,.admin-filter-grid,.permission-grid,.reset-row{grid-template-columns:1fr}}

/* MED403 v1.1 Beta */
.notification-bell{position:relative;font-size:18px;display:inline-flex;align-items:center;justify-content:center}
.notification-bell span{position:absolute;top:-8px;left:-8px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#e14f72;color:#fff;font-size:10px;display:grid;place-items:center;border:2px solid #fff}
.audience-box{background:#f5f9fe;border:1px solid #d9e8f7;border-radius:18px;padding:14px 16px;margin:14px 0}
.resource-filter{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;background:#f8fbfe;border:1px solid var(--border);padding:12px;border-radius:16px;margin-bottom:14px}
.notice-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #dbe6f2;border-radius:20px;padding:16px}.notice-card.unread{border-color:#9cc9fa;box-shadow:0 10px 26px rgba(22,103,217,.08)}.notice-card.read{opacity:.78}
.notice-icon{width:48px;height:48px;flex:0 0 48px;border-radius:15px;display:grid;place-items:center;font-weight:900}.notice-icon.blue{background:#e5f1ff;color:#1667d9}.notice-icon.green{background:#e1f7ef;color:#188769}.notice-icon.pink{background:#ffe6ef;color:#c34f79}
.notice-body{flex:1}.notice-body h3{margin:2px 0}.notice-body p{margin:4px 0;color:#5f6d80}.notice-meta{display:flex;gap:8px;justify-content:space-between;color:#7b8a9e;font-size:12px}
.notice-highlight{box-shadow:inset -4px 0 #2e8cff}
.notice-tabs{display:flex;gap:8px;margin-bottom:14px}
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.calendar-head h2,.calendar-head h3{margin:0}.calendar-nav{width:38px;height:38px;padding:0;border-radius:12px;background:#eef5ff;color:#1667d9}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-weekdays{color:#758398;text-align:center;font-size:12px;margin-bottom:6px}.calendar-day{min-height:66px;border:1px solid #e0e8f1;background:#fff;border-radius:13px;padding:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#23324a}.calendar-day.blank{border:0;background:transparent}.calendar-day.today{border-color:#2e8cff;background:#eef6ff;color:#0d5abb}.calendar-grid.compact .calendar-day{min-height:56px}
.event-dots{display:flex;gap:3px}.event-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#6da5e5}.event-dots i.exam,.event-dots i.quiz{background:#dc6688}.event-dots i.education{background:#37a580}.event-dots i.deadline{background:#e5a247}
.deck-card{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #dbe6f2;border-radius:20px;padding:17px;color:inherit;transition:.18s}.deck-card:hover{transform:translateY(-2px);border-color:#a9cdf7}.deck-card h3{margin:0 0 3px}.deck-card p{margin:0;color:#748196}
.deck-icon{width:58px;height:58px;flex:0 0 58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#fff7da,#ffe69b);font-size:24px}
.flash-study{max-width:760px}.flash-study-head{display:flex;align-items:center;justify-content:space-between}.flashcard-stage{max-width:620px;margin:25px auto}.study-card{width:100%;min-height:330px;border-radius:28px;border:1px solid #cfe0f3;background:linear-gradient(145deg,#fff,#f2f8ff);box-shadow:0 22px 50px rgba(20,60,110,.10);padding:34px;color:#15233a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.study-card span{color:#2c79da;font-size:13px;font-weight:800}.study-card strong{font-size:25px;line-height:1.8}.study-card small{color:#8491a2}.study-card.flipped{background:linear-gradient(145deg,#f0fbf7,#fff);border-color:#bde5d6}.flash-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.flash-stats{display:flex;justify-content:center;gap:20px;color:#758398;margin-top:12px}
.mobile-dock.five a{min-width:58px}
@media(max-width:850px){.resource-filter{grid-template-columns:1fr 1fr}.resource-filter .filter-action{grid-column:1/-1}.notice-card{align-items:stretch;flex-wrap:wrap}.notice-body{min-width:0}.calendar-day{min-height:48px;padding:4px;border-radius:10px}.calendar-grid.compact .calendar-day{min-height:45px}.flash-actions{grid-template-columns:1fr}.study-card{min-height:280px;padding:24px}.study-card strong{font-size:21px}.mobile-dock.five a{min-width:54px}}


/* MED403 v1.2 — colored section strip + unified event engine */
.portal-color-strip{background:linear-gradient(90deg,#0b1f3a,#123b68 58%,#0d3158);box-shadow:0 8px 26px rgba(11,31,58,.12);position:sticky;top:72px;z-index:18}
.portal-color-strip-inner{min-height:50px;display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding-top:6px;padding-bottom:6px}
.portal-color-strip-inner::-webkit-scrollbar{display:none}
.portal-color-strip a{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#edf6ff;padding:7px 12px;border-radius:11px;border:1px solid rgba(255,255,255,.10);font-size:13px;font-weight:800;transition:.18s}
.portal-color-strip a:hover{background:rgba(255,255,255,.11);transform:translateY(-1px)}
.portal-color-strip a span{font-size:16px}
.portal-color-strip .strip-home{box-shadow:inset 0 -3px #7bb8ff}
.portal-color-strip .strip-resources{box-shadow:inset 0 -3px #55d6bc}
.portal-color-strip .strip-calendar{box-shadow:inset 0 -3px #ac8cff}
.portal-color-strip .strip-flash{box-shadow:inset 0 -3px #ffd166}
.portal-color-strip .strip-exams{box-shadow:inset 0 -3px #ff7b9c}
.portal-color-strip .strip-notices{box-shadow:inset 0 -3px #65c9ff}
.admin-color-strip{background:linear-gradient(90deg,#102943,#19466f);color:#eaf5ff;border-bottom:1px solid rgba(255,255,255,.09)}
.admin-color-strip .container{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}
.admin-color-strip b{color:#fff}.admin-color-strip span{color:#acd0f2}
.sync-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(90deg,#eef8ff,#f3fbf8);border:1px solid #cfe5f3;border-radius:16px;padding:12px 14px;margin:12px 0 16px;color:#24536e}
.sync-banner b{color:#0d5d91}.sync-banner span{font-size:12px;color:#5d7486}
.sync-chip{display:inline-flex;align-items:center;gap:5px;background:#e9f8f2;color:#177657;border:1px solid #ccecdf;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800}
.event-type-chip{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800}
.event-type-chip.type-exam{background:#ffe7ef;color:#b8426b}
.event-type-chip.type-quiz{background:#fff1cf;color:#8d6a12}
.event-type-chip.type-deadline{background:#fff0df;color:#a75c18}
.event-type-chip.type-education{background:#e4f8ef;color:#177657}
.event-type-chip.type-class{background:#e8f2ff;color:#2267b5}
.event-type-chip.type-other{background:#edf0f4;color:#627083}
@media(max-width:850px){
  .portal-color-strip{top:72px}
  .portal-color-strip-inner{width:100%;padding-right:12px;padding-left:12px}
  .portal-color-strip a{font-size:12px;padding:7px 10px}
  .admin-color-strip .container{padding-top:7px;padding-bottom:7px}
  .sync-banner{align-items:flex-start;flex-direction:column}
}


/* MED403 v1.2.2 — event titles inside calendar cells */
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
}
.calendar-day{
  min-height:92px;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  text-align:right;
  padding:9px 8px;
  background:#fff;
  color:#26364d;
  border:1px solid #dfe8f2;
  border-radius:14px;
  overflow:hidden;
}
.calendar-day > b{
  align-self:flex-start;
  min-width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:9px;
  font-size:13px;
}
.calendar-day.today{
  border-color:#73aef3;
  box-shadow:inset 0 0 0 1px #a8cef8;
  background:#f8fbff;
}
.calendar-day.today > b{
  background:#1667d9;
  color:#fff;
}
.calendar-day.blank{
  background:transparent;
  border-color:transparent;
  min-height:92px;
}
.calendar-day.has-event{
  cursor:pointer;
}
.calendar-event-list{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:6px;
  min-width:0;
}
.calendar-event-label{
  display:flex;
  align-items:flex-start;
  gap:5px;
  min-width:0;
  border-radius:7px;
  padding:3px 5px;
  font-size:10px;
  line-height:1.45;
  font-weight:700;
  background:#f1f5f9;
  color:#405166;
}
.calendar-event-label i{
  flex:0 0 6px;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-top:4px;
  background:#718096;
}
.calendar-event-label > span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.calendar-event-label.type-exam{background:#fff0f5;color:#a83d64}
.calendar-event-label.type-exam i{background:#d75b88}
.calendar-event-label.type-quiz{background:#fff6df;color:#86630e}
.calendar-event-label.type-quiz i{background:#d6a82e}
.calendar-event-label.type-deadline{background:#fff1e5;color:#9a571c}
.calendar-event-label.type-deadline i{background:#e39147}
.calendar-event-label.type-education{background:#eaf8f2;color:#187055}
.calendar-event-label.type-education i{background:#37a67e}
.calendar-event-label.type-class{background:#eaf3ff;color:#2767a8}
.calendar-event-label.type-class i{background:#5a9ce1}
.calendar-event-label.type-other{background:#eef1f5;color:#59697c}
.calendar-event-label.type-other i{background:#7f8b99}
.calendar-event-more{
  font-size:9px;
  color:#7c8998;
  padding:0 4px;
}
.calendar-grid.compact .calendar-day{
  min-height:72px;
  padding:7px 5px;
}
.calendar-grid.compact .calendar-day.blank{
  min-height:72px;
}
.calendar-grid.compact .calendar-event-label{
  font-size:9px;
  padding:2px 4px;
}
.calendar-grid.compact .calendar-event-label > span{
  max-width:100%;
}
@media(max-width:700px){
  .calendar-grid{gap:4px}
  .calendar-day{min-height:74px;padding:6px 4px;border-radius:11px}
  .calendar-day.blank{min-height:74px}
  .calendar-day > b{min-width:23px;height:23px;font-size:11px}
  .calendar-event-list{margin-top:4px;gap:3px}
  .calendar-event-label{font-size:8px;padding:2px 3px;gap:3px;border-radius:5px}
  .calendar-event-label i{width:5px;height:5px;flex-basis:5px;margin-top:3px}
  .calendar-event-more{font-size:8px}
}


/* MED403 v1.2.3 — larger calendar typography + Jalali form */
.jalali-date-box{
  display:grid;
  grid-template-columns:1fr 1.35fr .8fr 1fr;
  gap:10px;
  align-items:end;
  border:1px solid #dce7f2;
  background:#f8fbff;
  padding:12px;
  border-radius:15px;
}
.jalali-date-box small{
  display:block;
  margin:0 2px 5px;
  color:#687b91;
  font-weight:700;
}
.jalali-date-box input,.jalali-date-box select{background:#fff}
.jalali-hint{
  margin-top:7px;
  font-size:12px;
  color:#53708d;
}
.calendar-day{
  min-height:108px;
}
.calendar-day.blank{
  min-height:108px;
}
.calendar-day > b{
  min-width:31px;
  height:31px;
  font-size:14px;
}
.calendar-event-list{
  gap:5px;
  margin-top:7px;
}
.calendar-event-label{
  padding:5px 7px;
  font-size:12px;
  line-height:1.55;
  border-radius:8px;
}
.calendar-event-label i{
  width:7px;
  height:7px;
  flex-basis:7px;
  margin-top:6px;
}
.calendar-event-label > span{
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.calendar-event-more{
  font-size:10px;
  font-weight:700;
}
.calendar-grid.compact .calendar-day{
  min-height:88px;
}
.calendar-grid.compact .calendar-day.blank{
  min-height:88px;
}
.calendar-grid.compact .calendar-event-label{
  font-size:10.5px;
  line-height:1.5;
  padding:4px 5px;
}
@media(max-width:700px){
  .jalali-date-box{
    grid-template-columns:1fr 1.35fr;
    gap:8px;
  }
  .calendar-day{
    min-height:88px;
    padding:7px 5px;
  }
  .calendar-day.blank{
    min-height:88px;
  }
  .calendar-day > b{
    min-width:26px;
    height:26px;
    font-size:12px;
  }
  .calendar-event-label{
    font-size:10.5px;
    line-height:1.45;
    padding:4px 4px;
  }
  .calendar-grid.compact .calendar-day{
    min-height:82px;
  }
  .calendar-grid.compact .calendar-day.blank{
    min-height:82px;
  }
  .calendar-grid.compact .calendar-event-label{
    font-size:10px;
  }
}

/* MED403 v1.2.4 — notice publish status */
.status-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.status-live{background:#e9f8f2;color:#177657;border:1px solid #ccecdf}
.status-wait{background:#fff6df;color:#85620d;border:1px solid #f0dfac}
.status-off{background:#f1f3f6;color:#6c7787;border:1px solid #dde2e8}


/* MED403 v1.3 — UI refresh: prettier typography + right sidebar navigation */
body{
  font-family:"Vazirmatn","IRANSansX","IRANSans","Dana","Segoe UI",Tahoma,Arial,sans-serif;
  letter-spacing:-0.12px;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
button,input,select,textarea{font-family:inherit}
h1,h2,h3,h4,h5,h6,.brand,.section-kicker,.topnav a,.portal-color-strip a,.admin-sidebar a{
  letter-spacing:-0.25px;
}
h1{font-size:clamp(1.85rem,2.3vw,2.45rem);line-height:1.3}
h2{font-size:clamp(1.3rem,1.6vw,1.65rem);line-height:1.35}
h3{font-size:1.05rem;line-height:1.45}
p,.muted,li,td,th,label,input,textarea,select{font-size:14.5px}
.topbar{
  background:rgba(255,255,255,.92);
}
.brand{
  font-size:21px;
  font-weight:900;
}
body.portal-user .topnav{display:none}
body.portal-user .topbar-inner{justify-content:space-between}
body.portal-user .container{
  width:min(1120px, calc(100vw - 320px));
  margin-left:auto;
  margin-right:26px;
}
body.portal-user .hero,
body.portal-user .page,
body.portal-user .container.page{
  scroll-margin-top:90px;
}

/* Right-side main navigation for students */
body.portal-user .portal-color-strip{
  position:fixed;
  top:94px;
  right:18px;
  width:220px;
  z-index:18;
  background:linear-gradient(180deg,#0b1f3a 0%,#123b68 52%,#0d3158 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  box-shadow:0 22px 50px rgba(11,31,58,.22);
  overflow:hidden;
}
body.portal-user .portal-color-strip::before{
  content:"داشبورد";
  display:block;
  padding:14px 16px 10px;
  color:#dfeeff;
  font-size:12px;
  font-weight:900;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0));
}
body.portal-user .portal-color-strip-inner{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  min-height:auto;
  padding:12px;
  overflow:visible;
}
body.portal-user .portal-color-strip a{
  width:100%;
  justify-content:flex-start;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#edf7ff;
  font-size:13px;
  font-weight:850;
  box-shadow:none;
}
body.portal-user .portal-color-strip a:hover{
  background:rgba(255,255,255,.10);
  transform:translateX(-2px);
}
body.portal-user .portal-color-strip a span{
  width:26px;
  height:26px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  font-size:14px;
}
body.portal-user .portal-color-strip .strip-home{box-shadow:inset 3px 0 0 #7bb8ff}
body.portal-user .portal-color-strip .strip-resources{box-shadow:inset 3px 0 0 #55d6bc}
body.portal-user .portal-color-strip .strip-calendar{box-shadow:inset 3px 0 0 #ac8cff}
body.portal-user .portal-color-strip .strip-flash{box-shadow:inset 3px 0 0 #ffd166}
body.portal-user .portal-color-strip .strip-exams{box-shadow:inset 3px 0 0 #ff7b9c}
body.portal-user .portal-color-strip .strip-notices{box-shadow:inset 3px 0 0 #65c9ff}

/* Softer, less article-like look across cards */
.card,.portal-card,.resource-card,.stat-card,.course-card,.calendar-shell,.form-card,.auth-card,.notice-card,.widget-card{
  border-radius:22px;
}
.card h2,.section h2,.widget-title{
  font-weight:900;
}
.muted{color:#66778d}
button,.btn{
  border-radius:14px;
  font-weight:850;
}
input,select,textarea{
  border-radius:13px;
  padding:11px 12px;
}
table th{
  font-weight:900;
}
table td{
  font-weight:600;
}
.account-links a,.topnav a{
  font-weight:800;
}

@media (max-width: 980px){
  body.portal-user .container{
    width:min(1120px,92%);
    margin:auto;
  }
  body.portal-user .portal-color-strip{
    position:sticky;
    top:72px;
    right:auto;
    width:auto;
    border-radius:0;
    border-left:0;border-right:0;
    box-shadow:0 8px 26px rgba(11,31,58,.12);
  }
  body.portal-user .portal-color-strip::before{display:none}
  body.portal-user .portal-color-strip-inner{
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:6px 12px;
    overflow-x:auto;
  }
  body.portal-user .portal-color-strip a{
    width:auto;
    white-space:nowrap;
    padding:8px 12px;
    border-radius:12px;
  }
  body.portal-user .portal-color-strip a:hover{transform:translateY(-1px)}
}


/* MED403 v1.4 — Luxury UI Refresh */
:root{
  --lux-bg:#07111f;
  --lux-panel:#0d1b2d;
  --lux-panel-2:#102440;
  --lux-card:#0f2037;
  --lux-border:rgba(138,180,255,.16);
  --lux-text:#f7f9ff;
  --lux-muted:#9fb1ca;
  --lux-blue:#5f8cff;
  --lux-teal:#3fd5c1;
  --lux-purple:#9f7aea;
  --lux-gold:#f7c35f;
  --lux-pink:#ef7aa9;
  --lux-cyan:#62c7ff;
  --lux-shadow:0 20px 55px rgba(0,0,0,.28);
}

/* Elegant typography */
body{
  font-family:"B Nazanin","Kamran","Tahoma","Arial",sans-serif !important;
  background:
    radial-gradient(circle at 15% 15%,rgba(67,114,255,.13),transparent 28%),
    radial-gradient(circle at 85% 10%,rgba(63,213,193,.08),transparent 24%),
    linear-gradient(180deg,#08111f 0%,#0a1422 55%,#09111d 100%) !important;
  color:var(--lux-text) !important;
  font-size:17px;
}
body.portal-user{
  min-height:100vh;
}
body.portal-user .topbar{
  background:rgba(8,17,31,.88) !important;
  border-bottom:1px solid var(--lux-border) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.16);
  backdrop-filter:blur(18px);
}
body.portal-user .brand,
body.portal-user .account-links a,
body.portal-user .account-links span{
  color:#f4f8ff !important;
}
body.portal-user .user-chip{
  background:rgba(95,140,255,.14) !important;
  border:1px solid rgba(95,140,255,.2);
}
body.portal-user .brand-mark{
  background:linear-gradient(135deg,#2d5eea,#6d5cf6) !important;
  box-shadow:0 8px 24px rgba(71,92,255,.28);
}
body.portal-user .notification-bell{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  padding:7px 10px;
  border-radius:12px;
}

/* Main content cards */
body.portal-user .card,
body.portal-user .portal-card,
body.portal-user .hero-card,
body.portal-user .form-card,
body.portal-user .stat,
body.portal-user .resource-card,
body.portal-user .course-card,
body.portal-user .calendar-shell,
body.portal-user .notice-card,
body.portal-user .widget-card{
  background:
    linear-gradient(180deg,rgba(20,42,72,.96),rgba(12,29,50,.96)) !important;
  border:1px solid var(--lux-border) !important;
  box-shadow:var(--lux-shadow) !important;
  border-radius:24px !important;
  color:var(--lux-text) !important;
}
body.portal-user .card:hover,
body.portal-user .portal-card:hover,
body.portal-user .resource-card:hover,
body.portal-user .course-card:hover{
  transform:translateY(-2px);
  box-shadow:0 26px 65px rgba(0,0,0,.32) !important;
  border-color:rgba(138,180,255,.25) !important;
}
body.portal-user .card,
body.portal-user .portal-card,
body.portal-user .resource-card,
body.portal-user .course-card{
  transition:.2s ease;
}
body.portal-user h1,
body.portal-user h2,
body.portal-user h3{
  color:#fff !important;
  font-weight:900 !important;
}
body.portal-user .muted,
body.portal-user .portal-eyebrow,
body.portal-user .section-kicker{
  color:var(--lux-muted) !important;
}
body.portal-user .section-kicker{
  color:#7eb1ff !important;
  font-weight:900;
}

/* Hero */
body.portal-user .hero{
  background:
    radial-gradient(circle at 20% 15%,rgba(83,111,255,.22),transparent 30%),
    linear-gradient(135deg,#0d1d35 0%,#132c4f 48%,#1b2d61 100%) !important;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.05);
}
body.portal-user .hero-card{
  background:
    radial-gradient(circle at 85% 20%,rgba(95,140,255,.25),transparent 30%),
    linear-gradient(135deg,#112844,#1a3560) !important;
}

/* Right sidebar */
body.portal-user .portal-color-strip{
  background:
    linear-gradient(180deg,#09182b 0%,#0d2240 52%,#0a1930 100%) !important;
  border:1px solid rgba(123,166,255,.19) !important;
  box-shadow:0 22px 55px rgba(0,0,0,.34) !important;
}
body.portal-user .portal-color-strip::before{
  color:#f5f8ff !important;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,0)) !important;
}
body.portal-user .portal-color-strip a{
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  color:#f7f9ff !important;
  min-height:54px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
body.portal-user .portal-color-strip a:hover{
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.13) !important;
}
body.portal-user .portal-color-strip a span{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
}
body.portal-user .strip-home span{background:linear-gradient(135deg,rgba(95,140,255,.24),rgba(95,140,255,.08)) !important;color:#82a8ff}
body.portal-user .strip-resources span{background:linear-gradient(135deg,rgba(63,213,193,.24),rgba(63,213,193,.08)) !important;color:#59e0cb}
body.portal-user .strip-calendar span{background:linear-gradient(135deg,rgba(159,122,234,.25),rgba(159,122,234,.08)) !important;color:#b596ff}
body.portal-user .strip-flash span{background:linear-gradient(135deg,rgba(247,195,95,.24),rgba(247,195,95,.08)) !important;color:#ffd27b}
body.portal-user .strip-exams span{background:linear-gradient(135deg,rgba(239,122,169,.24),rgba(239,122,169,.08)) !important;color:#ff9cc3}
body.portal-user .strip-notices span{background:linear-gradient(135deg,rgba(98,199,255,.24),rgba(98,199,255,.08)) !important;color:#84d5ff}

/* Calendar */
body.portal-user .calendar-shell{
  padding:20px !important;
}
body.portal-user .calendar-grid{
  gap:6px;
}
body.portal-user .calendar-day{
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.055) !important;
  color:#eaf1ff !important;
  min-height:102px;
}
body.portal-user .calendar-day.today{
  background:linear-gradient(135deg,#3556e8,#4289f2) !important;
  border-color:rgba(122,173,255,.6) !important;
  box-shadow:0 10px 24px rgba(53,86,232,.28) !important;
}
body.portal-user .calendar-day.today > b{
  background:rgba(255,255,255,.14) !important;
}
body.portal-user .calendar-day.blank{
  background:rgba(255,255,255,.01) !important;
}
body.portal-user .calendar-event-label{
  border:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(8px);
}
body.portal-user .calendar-event-label.type-exam{background:rgba(239,122,169,.13)!important;color:#ffc0d9!important}
body.portal-user .calendar-event-label.type-quiz{background:rgba(247,195,95,.13)!important;color:#ffe0a0!important}
body.portal-user .calendar-event-label.type-deadline{background:rgba(243,145,71,.13)!important;color:#ffc99a!important}
body.portal-user .calendar-event-label.type-education{background:rgba(63,213,193,.13)!important;color:#a7f4e7!important}
body.portal-user .calendar-event-label.type-class{background:rgba(98,199,255,.13)!important;color:#bce8ff!important}
body.portal-user .calendar-event-label.type-other{background:rgba(177,190,210,.1)!important;color:#d8e0ec!important}

/* Tables/forms */
body.portal-user table{
  background:transparent !important;
  color:#eff4ff !important;
}
body.portal-user th{
  background:rgba(255,255,255,.035) !important;
  color:#cfe0f6 !important;
}
body.portal-user td,
body.portal-user th{
  border-color:rgba(255,255,255,.07) !important;
}
body.portal-user input,
body.portal-user select,
body.portal-user textarea{
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#f5f7fb !important;
}
body.portal-user input::placeholder,
body.portal-user textarea::placeholder{
  color:#8293ab;
}
body.portal-user input:focus,
body.portal-user select:focus,
body.portal-user textarea:focus{
  outline:2px solid rgba(95,140,255,.24) !important;
  border-color:#5f8cff !important;
}
body.portal-user button,
body.portal-user .btn{
  background:linear-gradient(135deg,#3f6cf0,#6e5df2) !important;
  box-shadow:0 10px 24px rgba(68,84,240,.23);
}
body.portal-user button:hover,
body.portal-user .btn:hover{
  filter:brightness(1.06);
}

/* Pills and notices */
body.portal-user .badge,
body.portal-user .status-chip,
body.portal-user .sync-chip{
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
body.portal-user .badge{
  background:rgba(95,140,255,.13) !important;
  color:#a9c2ff !important;
}

/* Premium divider / section spacing */
body.portal-user .page{
  padding-top:32px;
}
body.portal-user section + section{
  margin-top:20px;
}

/* Mobile fallback stays usable */
@media(max-width:980px){
  body.portal-user{
    background:linear-gradient(180deg,#08111f,#0a1422) !important;
  }
  body.portal-user .portal-color-strip{
    border-radius:0 !important;
  }
}


/* =========================================================
   MED403 v1.4.1 — Exact Luxury UI Fix
   Fixes actual dashboard classes + robust sidebar icons
   ========================================================= */

body.portal-user{
  --u-bg:#07111e;
  --u-bg2:#0a1524;
  --u-panel:#0d1d33;
  --u-panel2:#112642;
  --u-panel3:#142d4d;
  --u-line:rgba(137,174,235,.16);
  --u-text:#f8fbff;
  --u-muted:#9eb0c8;
  --u-blue:#6a8dff;
  --u-cyan:#67c8ff;
  --u-teal:#4dd8c3;
  --u-violet:#a17bff;
  --u-gold:#f3bf58;
  --u-pink:#ef7faf;
  background:
    radial-gradient(circle at 18% 6%,rgba(65,96,219,.15),transparent 28%),
    radial-gradient(circle at 92% 18%,rgba(86,193,255,.07),transparent 28%),
    linear-gradient(180deg,#06101c 0%,#091522 52%,#08121f 100%) !important;
  color:var(--u-text) !important;
}

/* Remove all light backgrounds that were leaking through */
body.portal-user .portal-bg{
  background:transparent !important;
  min-height:100vh;
}
body.portal-user main{
  background:transparent !important;
}
body.portal-user .portal-page{
  background:transparent !important;
}

/* Header closer to reference */
body.portal-user .topbar{
  background:rgba(7,16,29,.92) !important;
  border-bottom:1px solid rgba(130,168,230,.14) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.24) !important;
}
body.portal-user .topbar-inner{
  min-height:74px;
}
body.portal-user .brand{
  color:#fff !important;
  font-size:22px !important;
}
body.portal-user .brand-mark{
  width:44px !important;
  height:44px !important;
  border-radius:13px !important;
  background:linear-gradient(145deg,#3970f1,#5d59e8) !important;
  box-shadow:
    0 10px 28px rgba(62,92,237,.34),
    inset 0 1px 0 rgba(255,255,255,.18);
}
body.portal-user .account-links{
  color:#fff;
}
body.portal-user .account-links a{
  color:#eef5ff !important;
}
body.portal-user .user-chip{
  color:#fff !important;
  background:linear-gradient(135deg,rgba(87,120,255,.16),rgba(119,93,244,.12)) !important;
  border:1px solid rgba(122,155,255,.18) !important;
}

/* Welcome hero — actual class */
body.portal-user .portal-welcome{
  background:
    radial-gradient(circle at 12% 45%,rgba(95,114,255,.20),transparent 28%),
    linear-gradient(135deg,#10264a 0%,#142b54 52%,#18295a 100%) !important;
  border:1px solid rgba(123,158,255,.16) !important;
  border-radius:24px !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
  color:#fff !important;
  padding:30px 34px !important;
}
body.portal-user .portal-welcome h1{
  color:#fff !important;
  font-size:clamp(2rem,3vw,3.2rem) !important;
  margin:4px 0 8px !important;
  text-shadow:0 5px 22px rgba(0,0,0,.16);
}
body.portal-user .portal-welcome p{
  color:#bcc9dc !important;
  font-size:17px !important;
}
body.portal-user .welcome-badge{
  width:82px !important;
  height:82px !important;
  border-radius:22px !important;
  display:grid !important;
  place-items:center !important;
  background:
    linear-gradient(145deg,#24b7ff 0%,#3584ff 55%,#5c62ff 100%) !important;
  color:#fff !important;
  font-size:28px !important;
  font-weight:900 !important;
  box-shadow:
    0 18px 36px rgba(36,147,255,.34),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
}

/* Main dashboard section cards — actual class */
body.portal-user .portal-section{
  background:
    linear-gradient(180deg,rgba(17,37,64,.98),rgba(11,27,47,.98)) !important;
  border:1px solid var(--u-line) !important;
  border-radius:24px !important;
  padding:22px !important;
  box-shadow:
    0 22px 52px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body.portal-user .portal-section + .portal-section{
  margin-top:22px !important;
}
body.portal-user .portal-section-head{
  margin-bottom:16px !important;
}
body.portal-user .portal-section-head h2{
  margin:2px 0 0 !important;
  color:#fff !important;
  font-size:1.55rem !important;
}
body.portal-user .section-kicker{
  color:#70b6ff !important;
  font-size:12px !important;
  font-weight:900 !important;
}

/* Calendar actual classes */
body.portal-user .calendar-home{
  overflow:hidden;
}
body.portal-user .calendar-head{
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:16px !important;
  padding:10px 12px !important;
  margin-bottom:10px !important;
}
body.portal-user .calendar-head h3{
  color:#f8fbff !important;
}
body.portal-user .calendar-nav{
  width:38px !important;
  height:38px !important;
  padding:0 !important;
  border-radius:11px !important;
  background:rgba(255,255,255,.055) !important;
  color:#dce9ff !important;
  border:1px solid rgba(255,255,255,.07) !important;
  box-shadow:none !important;
}
body.portal-user .calendar-weekdays{
  color:#9eafc6 !important;
  border-bottom:1px solid rgba(255,255,255,.06) !important;
}
body.portal-user .calendar-weekdays span{
  color:#9eafc6 !important;
}
body.portal-user .calendar-day{
  background:rgba(255,255,255,.018) !important;
  border:1px solid rgba(255,255,255,.052) !important;
  color:#e8effa !important;
  box-shadow:none !important;
}
body.portal-user .calendar-day:hover{
  background:rgba(255,255,255,.036) !important;
}
body.portal-user .calendar-day.today{
  background:linear-gradient(135deg,#3558df,#3b8bf3) !important;
  border-color:rgba(131,178,255,.62) !important;
  box-shadow:0 12px 26px rgba(48,95,225,.30) !important;
}
body.portal-user .calendar-day.today > b{
  background:rgba(255,255,255,.13) !important;
  color:#fff !important;
}

/* Buttons */
body.portal-user .btn,
body.portal-user button{
  background:linear-gradient(135deg,#376df0,#5d5de8) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.06) !important;
  box-shadow:0 9px 22px rgba(48,81,214,.25) !important;
}
body.portal-user .btn.ghost{
  background:rgba(255,255,255,.055) !important;
  color:#cfe1ff !important;
  border:1px solid rgba(255,255,255,.075) !important;
  box-shadow:none !important;
}
body.portal-user .btn.ghost:hover{
  background:rgba(255,255,255,.085) !important;
}

/* Upcoming / notice / resources cards — actual classes */
body.portal-user .portal-stack{
  gap:12px !important;
}
body.portal-user .portal-card{
  background:
    linear-gradient(180deg,rgba(21,45,77,.90),rgba(15,34,59,.90)) !important;
  border:1px solid rgba(134,174,242,.13) !important;
  border-radius:18px !important;
  color:#fff !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.025) !important;
  padding:16px !important;
}
body.portal-user .portal-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(134,174,242,.25) !important;
  background:
    linear-gradient(180deg,rgba(25,53,90,.95),rgba(16,38,67,.95)) !important;
}
body.portal-user .portal-card h3{
  color:#fff !important;
  margin:2px 0 4px !important;
}
body.portal-user .portal-card p{
  color:#9fb1c8 !important;
}
body.portal-user .portal-eyebrow{
  color:#78b4ff !important;
}
body.portal-user .portal-arrow{
  color:#b9d0f5 !important;
  background:rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.06) !important;
}
body.portal-user .muted-card{
  opacity:.92;
}
body.portal-user .notice-highlight{
  border-color:rgba(104,186,255,.24) !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,.20),
    inset 3px 0 0 rgba(104,186,255,.75) !important;
}
body.portal-user .count-pill{
  background:rgba(102,142,255,.14) !important;
  color:#9fbdff !important;
  border:1px solid rgba(102,142,255,.18) !important;
}

/* Module icon cards */
body.portal-user .module-icon{
  color:#fff !important;
  border:1px solid rgba(255,255,255,.07) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body.portal-user .module-icon.blue{
  background:linear-gradient(145deg,rgba(86,128,255,.26),rgba(86,128,255,.10)) !important;
  color:#9db9ff !important;
}
body.portal-user .module-icon.green{
  background:linear-gradient(145deg,rgba(69,214,190,.24),rgba(69,214,190,.09)) !important;
  color:#7fe9d7 !important;
}
body.portal-user .module-icon.pink{
  background:linear-gradient(145deg,rgba(239,127,175,.25),rgba(239,127,175,.09)) !important;
  color:#ffacd0 !important;
}

/* Flashcard deck cards */
body.portal-user .deck-card{
  background:
    linear-gradient(180deg,rgba(20,43,74,.94),rgba(14,33,57,.94)) !important;
  color:#fff !important;
  border:1px solid rgba(137,174,235,.14) !important;
  border-radius:18px !important;
  box-shadow:0 12px 28px rgba(0,0,0,.18) !important;
}
body.portal-user .deck-card h3{
  color:#fff !important;
}
body.portal-user .deck-icon{
  background:linear-gradient(145deg,rgba(243,191,88,.25),rgba(243,191,88,.08)) !important;
  color:#ffd47d !important;
  border:1px solid rgba(243,191,88,.14);
}

/* Badges/forms/tables */
body.portal-user .badge{
  background:rgba(91,136,255,.13) !important;
  color:#a9c1ff !important;
  border:1px solid rgba(91,136,255,.18) !important;
}
body.portal-user input,
body.portal-user select,
body.portal-user textarea{
  background:#0d1d31 !important;
  color:#f6f9ff !important;
  border:1px solid rgba(139,176,232,.15) !important;
}
body.portal-user select option{
  color:#111 !important;
  background:#fff !important;
}
body.portal-user table{
  background:transparent !important;
  color:#eff5ff !important;
}
body.portal-user th{
  background:rgba(255,255,255,.03) !important;
  color:#cddcf1 !important;
}
body.portal-user th,
body.portal-user td{
  border-color:rgba(255,255,255,.06) !important;
}

/* Sidebar: exact structure and robust SVG icons */
@media(min-width:981px){
  body.portal-user .portal-color-strip{
    position:fixed !important;
    top:96px !important;
    right:22px !important;
    width:238px !important;
    border-radius:24px !important;
    background:
      linear-gradient(180deg,#09182b 0%,#0d2240 54%,#0a1930 100%) !important;
    border:1px solid rgba(123,166,255,.18) !important;
    box-shadow:0 24px 56px rgba(0,0,0,.34) !important;
  }
  body.portal-user .portal-color-strip::before{
    content:"✦  داشبورد  ✦" !important;
    font-size:15px !important;
    color:#f8fbff !important;
    text-align:center;
    padding:16px 14px 12px !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
  }
  body.portal-user .portal-color-strip .portal-color-strip-inner,
  body.portal-user .portal-color-strip .container{
    width:100% !important;
    margin:0 !important;
    padding:12px !important;
  }
  body.portal-user .container{
    width:auto !important;
    max-width:none !important;
    margin-right:286px !important;
    margin-left:34px !important;
  }
  body.portal-user .topbar .container{
    margin-right:34px !important;
    margin-left:34px !important;
  }
}
body.portal-user .portal-color-strip a{
  min-height:58px !important;
  padding:10px 12px !important;
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  background:rgba(255,255,255,.032) !important;
  border:1px solid rgba(255,255,255,.072) !important;
  border-radius:15px !important;
  color:#fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 8px 18px rgba(0,0,0,.10) !important;
}
body.portal-user .portal-color-strip a:hover{
  background:rgba(255,255,255,.065) !important;
  transform:translateX(-2px) !important;
}
body.portal-user .portal-color-strip .menu-icon{
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:13px !important;
  margin:0 !important;
}
body.portal-user .portal-color-strip .menu-label{
  flex:1 !important;
  width:auto !important;
  height:auto !important;
  background:none !important;
  display:block !important;
  color:#fff !important;
  font-size:16px !important;
  font-weight:900 !important;
}
body.portal-user .portal-color-strip svg{
  width:22px !important;
  height:22px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
body.portal-user .strip-home .menu-icon{
  color:#7eaaff !important;
  background:linear-gradient(145deg,rgba(77,119,255,.25),rgba(77,119,255,.08)) !important;
  box-shadow:0 8px 20px rgba(77,119,255,.12);
}
body.portal-user .strip-resources .menu-icon{
  color:#58dfcb !important;
  background:linear-gradient(145deg,rgba(58,213,188,.24),rgba(58,213,188,.08)) !important;
}
body.portal-user .strip-calendar .menu-icon{
  color:#b089ff !important;
  background:linear-gradient(145deg,rgba(151,111,238,.25),rgba(151,111,238,.08)) !important;
}
body.portal-user .strip-flash .menu-icon{
  color:#ffd168 !important;
  background:linear-gradient(145deg,rgba(242,184,68,.24),rgba(242,184,68,.08)) !important;
}
body.portal-user .strip-exams .menu-icon{
  color:#ff98c1 !important;
  background:linear-gradient(145deg,rgba(235,113,165,.24),rgba(235,113,165,.08)) !important;
}
body.portal-user .strip-notices .menu-icon{
  color:#ffd66f !important;
  background:linear-gradient(145deg,rgba(243,193,81,.22),rgba(243,193,81,.07)) !important;
}

/* Make reference-like desktop proportions */
@media(min-width:1100px){
  body.portal-user .portal-page{
    max-width:1180px !important;
  }
  body.portal-user .calendar-day{
    min-height:96px !important;
  }
}

/* Mobile: stay functional, no fixed sidebar */
@media(max-width:980px){
  body.portal-user .portal-color-strip{
    position:sticky !important;
    top:72px !important;
    width:auto !important;
    right:auto !important;
    border-radius:0 !important;
  }
  body.portal-user .portal-color-strip::before{
    display:none !important;
  }
  body.portal-user .portal-color-strip .portal-color-strip-inner{
    display:flex !important;
    flex-direction:row !important;
    overflow-x:auto !important;
    gap:8px !important;
    padding:7px 10px !important;
  }
  body.portal-user .portal-color-strip a{
    min-height:46px !important;
    width:auto !important;
    white-space:nowrap !important;
    padding:7px 10px !important;
  }
  body.portal-user .portal-color-strip .menu-icon{
    width:30px !important;
    height:30px !important;
    flex-basis:30px !important;
    border-radius:10px !important;
  }
  body.portal-user .portal-color-strip .menu-label{
    font-size:13px !important;
  }
}


/* MED403 v1.4.2 — requested Persian font + compact account dropdown */
body,
button,input,select,textarea,
h1,h2,h3,h4,h5,h6,
.brand,.portal-color-strip,.portal-section,.portal-card,
.account-links,.user-menu-dropdown{
  font-family:"B Nazanin","BNazanin","Nazanin","Kamran","B Kamran","Tahoma","Arial",sans-serif !important;
  letter-spacing:0 !important;
}

/* Header: only notifications, admin panel, and the user's name */
body.portal-user .account-links{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
}
body.portal-user .account-links > a:not(.notification-bell):not(.admin-quick-link){
  display:none !important;
}
.notification-bell{
  position:relative;
  width:42px;
  height:42px;
  display:grid !important;
  place-items:center;
  padding:0 !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.075) !important;
  color:#ffd46b !important;
}
.notification-bell .header-icon{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.notification-bell > span{
  position:absolute;
  top:-5px;
  left:-5px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  display:grid;
  place-items:center;
  background:#ef557d !important;
  color:white !important;
  border:2px solid #08111f;
  border-radius:999px;
  font-family:'B Nazanin', 'Kamran', Tahoma, Arial, sans-serif !important;
  font-size:9px !important;
  font-weight:800;
}

.admin-quick-link{
  min-height:42px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  padding:0 14px !important;
  color:#dce8ff !important;
  background:rgba(91,124,255,.105) !important;
  border:1px solid rgba(112,147,255,.15) !important;
  border-radius:13px !important;
  font-size:15px;
  font-weight:900 !important;
}
.admin-quick-link:hover{
  background:rgba(91,124,255,.18) !important;
}

/* Name dropdown */
.user-menu{
  position:relative;
  z-index:120;
}
.user-menu-toggle{
  min-height:42px !important;
  padding:4px 8px 4px 11px !important;
  display:flex !important;
  align-items:center;
  gap:8px;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:#f5f8ff !important;
  white-space:nowrap;
}
.user-menu-toggle:hover{
  background:rgba(255,255,255,.045) !important;
}
.user-avatar{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:linear-gradient(145deg,#315edb,#6059e6);
  box-shadow:0 8px 18px rgba(49,87,215,.24);
  color:#fff;
  font-size:16px;
  font-weight:900;
}
.user-menu-name{
  font-size:16px;
  font-weight:900;
  color:#f4f7fc;
}
.chevron-icon{
  width:16px;
  height:16px;
  fill:none;
  stroke:#91a5c3;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease;
}
.user-menu.open .chevron-icon{
  transform:rotate(180deg);
}
.user-menu-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  width:205px;
  padding:7px;
  background:rgba(10,23,40,.98);
  border:1px solid rgba(133,172,234,.17);
  border-radius:16px;
  box-shadow:0 22px 48px rgba(0,0,0,.36);
  backdrop-filter:blur(18px);
  z-index:130;
}
.user-menu.open .user-menu-dropdown{
  display:block;
  animation:userMenuIn .14s ease-out;
}
@keyframes userMenuIn{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}
.user-menu-dropdown a{
  min-height:43px;
  display:flex !important;
  align-items:center;
  gap:10px;
  padding:8px 10px !important;
  border-radius:11px;
  color:#eaf1fc !important;
  background:transparent !important;
  font-size:15px;
  font-weight:800 !important;
}
.user-menu-dropdown a:hover{
  background:rgba(255,255,255,.06) !important;
}
.user-menu-dropdown svg{
  width:19px;
  height:19px;
  flex:0 0 19px;
  fill:none;
  stroke:#83a9df;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.user-menu-dropdown .logout-item{
  color:#ffb6c6 !important;
}
.user-menu-dropdown .logout-item svg{
  stroke:#ef8ba3;
}
.user-menu-separator{
  height:1px;
  margin:6px 4px;
  background:rgba(255,255,255,.075);
}

/* Make B Nazanin-like type feel intentional instead of oversized */
body.portal-user{
  font-size:18px !important;
}
body.portal-user p,
body.portal-user .muted,
body.portal-user td,
body.portal-user th,
body.portal-user label{
  font-size:16px !important;
}
body.portal-user .portal-section-head h2{
  font-size:1.65rem !important;
}
body.portal-user .portal-welcome h1{
  line-height:1.35 !important;
}

@media(max-width:720px){
  .admin-quick-link{
    padding:0 10px !important;
    font-size:13px;
  }
  .user-menu-name{
    max-width:105px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .user-menu-dropdown{
    left:0;
    width:190px;
  }
}


/* MED403 v1.4.3 — Admin visual parity with student dashboard */
body.portal-admin{
  background:
    radial-gradient(circle at 15% 8%,rgba(66,96,220,.13),transparent 28%),
    radial-gradient(circle at 88% 12%,rgba(77,209,197,.06),transparent 26%),
    linear-gradient(180deg,#07111e 0%,#091522 55%,#08121f 100%) !important;
  color:#f8fbff !important;
}
body.portal-admin .topbar{
  background:rgba(7,16,29,.92) !important;
  border-bottom:1px solid rgba(130,168,230,.14) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.24) !important;
}
body.portal-admin .brand,
body.portal-admin .topnav a,
body.portal-admin .account-links a,
body.portal-admin .user-menu-name{
  color:#f3f7ff !important;
}
body.portal-admin .admin-color-strip{
  background:linear-gradient(90deg,#0c1c31,#102c4d) !important;
  border-bottom:1px solid rgba(255,255,255,.06) !important;
}
body.portal-admin .admin-color-strip b{color:#fff !important}
body.portal-admin .admin-color-strip span{color:#9fb5cf !important}

/* Admin cards and stats: no more white blocks */
body.portal-admin .card,
body.portal-admin .stat,
body.portal-admin .form-card{
  background:linear-gradient(180deg,rgba(17,37,64,.98),rgba(11,27,47,.98)) !important;
  color:#f8fbff !important;
  border:1px solid rgba(137,174,235,.15) !important;
  border-radius:22px !important;
  box-shadow:0 20px 48px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body.portal-admin .stat b,
body.portal-admin h1,
body.portal-admin h2,
body.portal-admin h3{
  color:#fff !important;
}
body.portal-admin .muted{color:#99acc5 !important}
body.portal-admin table{
  background:transparent !important;
  color:#eef5ff !important;
}
body.portal-admin th{
  background:rgba(255,255,255,.035) !important;
  color:#cad9ed !important;
}
body.portal-admin th,
body.portal-admin td{
  border-color:rgba(255,255,255,.065) !important;
}
body.portal-admin input,
body.portal-admin select,
body.portal-admin textarea{
  background:#0d1d31 !important;
  color:#f6f9ff !important;
  border-color:rgba(139,176,232,.15) !important;
}
body.portal-admin select option{
  color:#111 !important;
  background:#fff !important;
}

/* Sidebar: SVG icons, consistent color order, no emoji */
body.portal-admin .admin-sidebar{
  background:linear-gradient(180deg,#09182b 0%,#0d2240 54%,#0a1930 100%) !important;
  border:1px solid rgba(123,166,255,.17) !important;
  box-shadow:0 24px 56px rgba(0,0,0,.34) !important;
}
body.portal-admin .admin-sidebar-brand{
  border-bottom-color:rgba(255,255,255,.08) !important;
}
body.portal-admin .admin-sidebar-brand strong{color:#fff !important}
body.portal-admin .admin-sidebar-brand small{color:#91a9c7 !important}
body.portal-admin .admin-sidebar-title{
  color:#7698c1 !important;
  font-size:12px !important;
  font-weight:900 !important;
}
body.portal-admin .admin-nav-item{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-height:49px !important;
  padding:7px 9px !important;
  border-radius:13px !important;
  color:#eaf2ff !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid transparent !important;
  margin:4px 0 !important;
  transition:.18s ease;
}
body.portal-admin .admin-nav-item:hover{
  transform:translateX(-2px) !important;
  background:rgba(255,255,255,.055) !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.portal-admin .admin-nav-icon{
  flex:0 0 34px !important;
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:11px !important;
}
body.portal-admin .admin-nav-icon svg{
  width:19px !important;
  height:19px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
body.portal-admin .nav-blue .admin-nav-icon{color:#82a8ff!important;background:rgba(88,126,255,.15)!important}
body.portal-admin .nav-cyan .admin-nav-icon{color:#76d1ff!important;background:rgba(87,190,244,.14)!important}
body.portal-admin .nav-teal .admin-nav-icon{color:#64e0cb!important;background:rgba(63,213,193,.14)!important}
body.portal-admin .nav-violet .admin-nav-icon{color:#b496ff!important;background:rgba(158,122,234,.14)!important}
body.portal-admin .nav-gold .admin-nav-icon{color:#ffd16f!important;background:rgba(247,195,95,.14)!important}
body.portal-admin .nav-pink .admin-nav-icon{color:#ff9cc3!important;background:rgba(239,122,169,.14)!important}
body.portal-admin .nav-red .admin-nav-icon{color:#ff9a9a!important;background:rgba(239,105,105,.13)!important}
body.portal-admin .nav-slate .admin-nav-icon{color:#b8c5d8!important;background:rgba(164,181,205,.11)!important}
body.portal-admin .admin-sidebar-footer{
  border-top:1px solid rgba(255,255,255,.07) !important;
  color:#7891b1 !important;
}

/* Header account controls should also match dark admin theme */
body.portal-admin .notification-bell{
  background:rgba(255,255,255,.045) !important;
  border-color:rgba(255,255,255,.075) !important;
}
body.portal-admin .admin-quick-link{
  background:rgba(91,124,255,.12) !important;
  color:#e3edff !important;
}
body.portal-admin .user-menu-toggle{
  color:#f5f8ff !important;
}


/* MED403 v1.4.5 — clean footer */
.site-footer.clean-footer{
  background:#07111e !important;
  border-top:1px solid rgba(137,174,235,.10) !important;
  color:#8fa3bd !important;
  box-shadow:none !important;
}
.site-footer.clean-footer .clean-footer-inner{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  color:#8fa3bd !important;
}
.site-footer.clean-footer a,
.site-footer.clean-footer strong,
.site-footer.clean-footer b{
  color:inherit !important;
}

/* MED403 v1.5 — Quiz bank UI */
.quiz-guide{border-color:rgba(104,186,255,.22)!important}
.quiz-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.quiz-steps span{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);border-radius:14px;padding:12px;color:#dce8f8}
.quiz-steps i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:rgba(91,136,255,.17);color:#9db9ff;font-style:normal;font-weight:900}
.question-bank-head{display:flex;align-items:center;justify-content:space-between}
.bulk-import-card{align-self:start}
.question-image{display:block;max-width:100%;max-height:520px;object-fit:contain;margin:14px auto;border-radius:16px;border:1px solid rgba(137,174,235,.16);background:rgba(255,255,255,.03)}
@media(max-width:800px){.quiz-steps{grid-template-columns:1fr}}

/* MED403 v1.6 — PDF/Image/Link exam + online answer sheet */
.quiz-mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quiz-mode-cards>div{padding:15px;border:1px solid rgba(137,174,235,.13);border-radius:16px;background:rgba(255,255,255,.025)}
.quiz-mode-cards b,.quiz-mode-cards span{display:block}.quiz-mode-cards span{color:#9fb1c8;margin-top:4px}
.quiz-mode-choice{display:flex!important;gap:10px;align-items:center;padding:14px;border:1px solid rgba(137,174,235,.13);border-radius:16px;background:rgba(255,255,255,.025);cursor:pointer}
.quiz-mode-choice input{width:auto!important}.quiz-mode-choice span{display:flex;flex-direction:column}.quiz-mode-choice small{color:#95a8c0}
.paper-builder{margin-top:16px;padding:18px;border-radius:18px;border:1px solid rgba(101,185,255,.16);background:rgba(70,128,220,.055)}
.or-divider{text-align:center;color:#8195ad;margin:8px 0}
.answer-key-input{min-height:90px;font-family:'B Nazanin', 'Kamran', Tahoma, Arial, sans-serif!important;direction:ltr;text-align:left}
.paper-exam-top{display:flex;justify-content:space-between;align-items:center;gap:18px}
.paper-exam-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr);gap:18px;margin-top:18px;align-items:start}
.paper-viewer-card{position:sticky;top:88px}
.paper-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.paper-preview-frame{display:block;width:100%;height:72vh;min-height:650px;border:1px solid rgba(137,174,235,.15);border-radius:16px;background:#fff}
.paper-image-preview{max-height:75vh;overflow:auto;border-radius:16px;background:rgba(255,255,255,.03);text-align:center}
.paper-image-preview img{max-width:100%;height:auto}
.paper-preview-fallback{padding-top:9px;font-size:13px}
.answer-sheet{max-height:82vh;overflow:auto}
.answer-sheet-grid{display:grid;gap:7px;margin:14px 0}
.answer-row{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:8px;padding:7px;border:1px solid rgba(137,174,235,.10);border-radius:12px;background:rgba(255,255,255,.02)}
.answer-row>b{text-align:center;color:#bcd0ec}
.answer-options{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.answer-options label{margin:0!important}
.answer-options input{display:none}
.answer-options span{display:grid;place-items:center;height:34px;border-radius:10px;border:1px solid rgba(137,174,235,.13);background:rgba(255,255,255,.03);cursor:pointer;font-family:'B Nazanin', 'Kamran', Tahoma, Arial, sans-serif!important;font-weight:800}
.answer-options input:checked+span{background:linear-gradient(135deg,#376df0,#5d5de8);color:#fff;border-color:#759cff;box-shadow:0 7px 18px rgba(55,109,240,.24)}
.paper-flag{width:32px!important;height:32px!important;padding:0!important;background:rgba(255,255,255,.04)!important;box-shadow:none!important;color:#8fa4c1!important}
.paper-flag.active{color:#ffd267!important;background:rgba(243,191,88,.13)!important}
.submit-paper{width:100%}
.answer-status{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:900}
.answer-status.correct{background:rgba(61,193,135,.14);color:#73e0ab}
.answer-status.wrong{background:rgba(239,105,105,.13);color:#ffaaaa}
@media(max-width:1000px){.paper-exam-layout{grid-template-columns:1fr}.paper-viewer-card{position:static}.paper-preview-frame{height:60vh;min-height:500px}.answer-sheet{max-height:none}}
@media(max-width:700px){.quiz-mode-cards{grid-template-columns:1fr}.paper-exam-top{align-items:flex-start;flex-direction:column}.answer-row{grid-template-columns:28px 1fr 30px}.answer-options span{height:32px}}

/* MED403 v2.0 core polish */
.header-search-btn{width:42px;height:42px;display:grid!important;place-items:center;border-radius:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.075);color:#8fc8ff!important}
.header-search-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.global-search-form{display:grid;grid-template-columns:1fr auto;gap:10px;margin:16px 0 20px}
.advanced-quiz-settings{margin:18px 0;padding:16px;border-radius:16px;border:1px solid rgba(137,174,235,.13);background:rgba(255,255,255,.025)}
.admin-mini-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.065)}
.admin-mini-row:last-child{border-bottom:0}.admin-mini-row span{color:#9eb1c8}
.dashboard-today .portal-card{min-height:105px}
@media(max-width:700px){
 .global-search-form{grid-template-columns:1fr}
 .paper-preview-frame{height:48vh;min-height:360px}
 .answer-sheet{padding:14px!important}
 .calendar-day{min-height:76px!important}
 .portal-welcome{padding:20px!important}
 .portal-section{padding:15px!important}
 body.portal-user .page{padding-top:18px!important}
}

/* MED403 v2.1 — self registration / login */
.auth-page{min-height:calc(100vh - 160px);display:grid;place-items:center;padding-top:42px;padding-bottom:42px}
.registration-card,.login-card{width:min(620px,100%);margin:auto}
.login-card{width:min(500px,100%)}
.field-hint{margin:5px 2px 12px;color:#8ea4c0;font-size:13px}
.full-btn{width:100%;min-height:48px}
.auth-switch{text-align:center;margin:18px 0 0;color:#9db0c8}
.auth-switch a{font-weight:900}
body.guest{background:radial-gradient(circle at 20% 10%,rgba(65,96,219,.13),transparent 30%),linear-gradient(180deg,#07111e,#091522)!important;color:#f7f9ff}
body.guest .form-card{background:linear-gradient(180deg,rgba(17,37,64,.98),rgba(11,27,47,.98))!important;border:1px solid rgba(137,174,235,.15)!important;color:#f7f9ff!important;box-shadow:0 22px 54px rgba(0,0,0,.28)!important}
body.guest input,body.guest select{background:#0d1d31!important;color:#f7f9ff!important;border-color:rgba(139,176,232,.15)!important}

/* MED403 v2.3 — optional profile fields */
.registration-card .grid.grid-2 > div,
.profile-grid form{min-width:0}
.profile-grid input[type="tel"],
.registration-card input[type="tel"]{direction:ltr;text-align:left}

/* MED403 v3.0 — feature-complete polish */
.resource-super-filter{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin:18px 0 26px}
.resource-tags{display:inline-flex;margin-top:7px;padding:4px 8px;border-radius:999px;background:rgba(91,136,255,.08);color:#9db9ff;font-size:12px}
.mistake-option{padding:10px 12px;border:1px solid rgba(137,174,235,.10);border-radius:12px;margin:6px 0}
.mistake-option.correct{border-color:rgba(77,207,148,.35);background:rgba(77,207,148,.08)}
.mistake-option.wrong{border-color:rgba(255,109,109,.35);background:rgba(255,109,109,.08)}
.user-activity-mini{margin:18px 0;padding:14px;border-radius:16px;background:rgba(255,255,255,.025);border:1px solid rgba(137,174,235,.10)}
.mobile-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.deck-icon{font-size:0!important}
.deck-icon:before{content:"";width:22px;height:22px;display:block;background:currentColor;clip-path:polygon(55% 0,20% 54%,48% 54%,38% 100%,80% 40%,53% 40%)}
.portal-card,.card,.stat,.deck-card,.notice-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
@media(hover:hover){.portal-card:hover,.deck-card:hover{transform:translateY(-2px);border-color:rgba(128,170,255,.24)!important;box-shadow:0 16px 34px rgba(0,0,0,.18)}}
@media(max-width:800px){
 .resource-super-filter{grid-template-columns:1fr}
 .paper-exam-layout{gap:12px}
 .paper-viewer-card,.answer-sheet{border-radius:16px!important}
 .paper-preview-frame{height:52vh!important;min-height:340px!important}
 .answer-options{gap:4px}
 .topbar-inner{gap:8px}
 .user-menu-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .portal-page,.page{padding-left:12px!important;padding-right:12px!important}
}

/* MED403 v3.1 — student preview in admin */
.student-preview-picker{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.student-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}
.student-device-frame{
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(137,174,235,.16);
  background:#06101c;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}
.student-device-top{
  min-height:42px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 14px;
  border-bottom:1px solid rgba(137,174,235,.10);
  color:#8fa4c1;
  background:#0a1728;
  font-size:12px;
}
.student-device-top span:first-child:before{
  content:"";
  display:block;
  width:9px;height:9px;border-radius:50%;
  background:#4ed29b;
  box-shadow:15px 0 0 #f0bd58,30px 0 0 #ee6d80;
}
.student-preview-iframe{
  display:block;
  width:100%;
  height:78vh;
  min-height:720px;
  border:0;
  background:#07111e;
}
.student-preview-body .topbar{position:relative!important}
.student-preview-body .portal-color-strip{position:relative!important;top:auto!important}
@media(max-width:800px){
  .student-preview-picker{grid-template-columns:1fr}
  .student-preview-toolbar{align-items:flex-start;flex-direction:column}
  .student-preview-iframe{height:76vh;min-height:620px}
}


/* MED403 Hub 403 additions */
.registration-intake-note{margin-top:14px;padding:12px 14px;border:1px solid rgba(37,99,235,.16);background:rgba(37,99,235,.05);border-radius:14px}
.dashboard-admin-announcement{max-width:1200px;margin:0 auto 18px;padding:13px 16px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}
.resource-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:10px}.source-card{padding:14px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:#fafcff}.source-card small{display:block;margin-top:7px;color:#64748b}
.storage-card{display:grid;gap:9px}.storage-card>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}.storage-meter{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.storage-meter i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#06b6d4);border-radius:inherit}
.support-layout{align-items:start}.support-item{padding:14px 0;border-bottom:1px solid #edf0f4}.support-item:last-child{border-bottom:0}.support-item .badge{float:left}.support-item small{display:block;padding:9px 11px;background:#f8fafc;border-radius:10px}.support-admin-item{margin-bottom:14px}
@media(max-width:760px){.resource-source-grid{grid-template-columns:1fr}.storage-card>div:first-child{display:block}.storage-card>div:first-child span{display:block;margin-top:4px}.support-layout{grid-template-columns:1fr!important}}


/* MED403 UI Refresh v4 — calm, professional student hub */
:root{
  --hub-navy:#0a1626;
  --hub-panel:#0f2035;
  --hub-panel-2:#132a45;
  --hub-blue:#4f83ff;
  --hub-cyan:#52c8df;
  --hub-line:rgba(139,176,232,.12);
  --hub-muted:#93a9c3;
}

/* Header: cleaner brand, aligned controls */
body.portal-user .topbar,
body.portal-admin .topbar{
  background:rgba(7,16,29,.96)!important;
  border-bottom:1px solid rgba(141,176,226,.10)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
}
body.portal-user .topbar-inner,
body.portal-admin .topbar-inner{min-height:68px!important;gap:12px!important}
body.portal-user .brand,
body.portal-admin .brand{font-size:18px!important;font-weight:900!important;gap:9px!important}
body.portal-user .brand-mark,
body.portal-admin .brand-mark{
  width:36px!important;height:36px!important;border-radius:11px!important;
  background:linear-gradient(145deg,#2f6fe8,#249bc5)!important;
  box-shadow:0 7px 18px rgba(49,111,232,.18)!important;
}
.notification-bell,.header-search-btn,.admin-quick-link,.user-menu-toggle{
  min-height:40px!important;height:40px!important;border-radius:12px!important;
}
.notification-bell,.header-search-btn{
  width:40px!important;background:rgba(255,255,255,.035)!important;
  border-color:rgba(255,255,255,.065)!important;
}
.admin-quick-link{padding:0 13px!important;background:rgba(79,131,255,.08)!important;border-color:rgba(93,143,255,.12)!important}
.user-avatar{width:30px!important;height:30px!important;border-radius:9px!important;background:linear-gradient(145deg,#356fdd,#2d91b5)!important;box-shadow:none!important}

/* Student navigation: one visual language + a clear active state */
body.portal-user .portal-color-strip{
  background:#0b1b2d!important;
  border-bottom:1px solid rgba(134,169,216,.08)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.12)!important;
}
body.portal-user .portal-color-strip::before{opacity:.18!important}
body.portal-user .portal-color-strip a{
  box-shadow:none!important;
  color:#bcd0e8!important;
  background:transparent!important;
  border:1px solid transparent!important;
  position:relative;
}
body.portal-user .portal-color-strip a .menu-icon{
  color:#7da6d8!important;background:rgba(86,133,190,.08)!important;
}
body.portal-user .portal-color-strip a:hover{
  color:#f3f8ff!important;background:rgba(255,255,255,.035)!important;
}
body.portal-user .portal-color-strip a.active{
  color:#fff!important;background:rgba(79,131,255,.10)!important;
  border-color:rgba(99,150,255,.11)!important;
}
body.portal-user .portal-color-strip a.active::after{
  content:"";position:absolute;right:9px;left:9px;bottom:-7px;height:2px;border-radius:99px;background:linear-gradient(90deg,#4f83ff,#52c8df);
}
body.portal-user .portal-color-strip a.active .menu-icon{color:#8fb8ff!important;background:rgba(79,131,255,.14)!important}

/* Calm canvas and cards: less glow, softer contrast */
body.portal-user{
  background:linear-gradient(180deg,#081421 0%,#0a1726 42%,#091522 100%)!important;
}
body.portal-user .portal-bg{
  background:radial-gradient(circle at 12% 0%,rgba(58,103,190,.07),transparent 26%),transparent!important;
}
body.portal-user .portal-welcome{
  background:linear-gradient(135deg,#10243c,#132d49)!important;
  border:1px solid rgba(124,161,214,.12)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.14)!important;
}
body.portal-user .welcome-badge{
  background:rgba(79,131,255,.11)!important;border:1px solid rgba(105,154,255,.18)!important;color:#a9c6ff!important;box-shadow:none!important;
}
body.portal-user .portal-section{
  background:rgba(13,29,49,.74)!important;
  border:1px solid rgba(126,164,216,.10)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.12)!important;
}
body.portal-user .portal-card,
body.portal-user .deck-card{
  background:#10243a!important;
  border:1px solid rgba(130,167,218,.10)!important;
  box-shadow:none!important;
}
body.portal-user .portal-card:hover,
body.portal-user .deck-card:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(94,143,224,.20)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}
body.portal-user .portal-card h3,
body.portal-user .deck-card h3{color:#f3f7fc!important}
body.portal-user .portal-card p{color:#91a5bd!important}
body.portal-user .section-kicker{color:#6f9ddd!important;letter-spacing:0!important}
body.portal-user .portal-section-head h2{font-size:1.48rem!important;font-weight:900!important}
body.portal-user{font-size:17px!important}
body.portal-user p,body.portal-user .muted,body.portal-user td,body.portal-user th,body.portal-user label{font-size:15px!important}

/* Icon palette: mostly blue/cyan; alert color is reserved for actual alerts */
body.portal-user .module-icon,
body.portal-user .module-icon.blue,
body.portal-user .module-icon.green,
body.portal-user .module-icon.pink{
  color:#8eb7ff!important;
  background:rgba(79,131,255,.09)!important;
  border-color:rgba(99,151,255,.10)!important;
  box-shadow:none!important;
}
body.portal-user .notice-highlight{border-color:rgba(82,200,223,.23)!important;background:linear-gradient(180deg,#112940,#10243a)!important}

/* Priority dashboard hierarchy */
.dashboard-priority-section{padding:18px!important}
.dashboard-priority-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:14px}
.priority-card,.priority-mini{color:inherit;text-decoration:none}
.priority-card{
  min-height:250px;padding:22px;border-radius:21px;position:relative;overflow:hidden;
  background:linear-gradient(145deg,#163154,#102740)!important;
  border:1px solid rgba(99,151,255,.17)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.13);
}
.priority-card::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-60px;bottom:-90px;background:rgba(79,131,255,.07)}
.priority-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:28px}
.priority-label{font-size:13px;font-weight:900;color:#a8c4e7}
.priority-count{font-size:12px;color:#8ea8c4;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.04)}
.priority-main-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:14px;color:#9ec0ff;background:rgba(79,131,255,.10);margin-bottom:13px}
.priority-main-icon svg,.priority-mini-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.priority-card h3{font-size:24px!important;margin:5px 0 4px!important;color:#fff!important}
.priority-card p{max-width:650px;color:#a8b9cd!important;margin:0 0 14px!important}
.priority-action{display:inline-flex;margin-top:12px;color:#9fc2ff;font-weight:900;font-size:13px}
.priority-side-grid{display:grid;grid-template-rows:repeat(3,1fr);gap:10px}
.priority-mini{display:flex;align-items:center;gap:12px;padding:14px;border-radius:17px;background:#10243a!important;border:1px solid rgba(130,167,218,.10)!important}
.priority-mini:hover{border-color:rgba(94,143,224,.20)!important;background:#122943!important}
.priority-mini-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;color:#7faef7;background:rgba(79,131,255,.08)}
.priority-mini div{min-width:0;display:grid}.priority-mini span:not(.priority-mini-icon){font-size:11px;color:#718baa}.priority-mini strong{font-size:16px;color:#f2f6fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.priority-mini small{font-size:12px;color:#92a5bc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.continue-block{margin-top:16px}.continue-block>h3{font-size:17px!important;color:#dce8f6!important}

/* Resource library: clean visual cards */
.resource-visual-card{min-height:92px!important}
.resource-type-mark{
  width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:14px;
  background:rgba(79,131,255,.09);border:1px solid rgba(99,151,255,.11);color:#8fb7ff;font-weight:900;font-size:13px;direction:ltr;
}
.resource-card-meta{display:flex;align-items:center;gap:8px;margin-top:7px;color:#8198b3;font-size:12px}
.resource-card-meta span+span::before{content:"•";margin-left:8px;color:#506c8c}
.resource-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.resource-library-card{padding:16px;border-radius:18px;background:#10243a;border:1px solid rgba(130,167,218,.10);color:#f4f7fb}
.resource-card-head{display:flex;align-items:center;gap:12px}.resource-card-head h3{margin:2px 0 0;font-size:18px;color:#fff}
.resource-library-card>p{margin:12px 0;color:#91a5bd;font-size:14px;min-height:46px}
.resource-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid rgba(137,174,235,.08);color:#8198b3;font-size:12px}

/* Admin sidebar: coherent icon color + active indicator */
body.portal-admin{
  background:linear-gradient(180deg,#07111d,#091522)!important;
}
body.portal-admin .admin-sidebar{
  background:#0b1a2d!important;border-color:rgba(125,164,218,.11)!important;box-shadow:0 16px 38px rgba(0,0,0,.22)!important;
}
body.portal-admin .admin-sidebar-brand{padding-bottom:16px!important}
body.portal-admin .admin-sidebar-brand strong{font-size:16px!important;line-height:1.35}
body.portal-admin .admin-sidebar-brand small{font-size:11px!important}
body.portal-admin .admin-sidebar-title{color:#607e9f!important;font-size:11px!important;padding-right:8px}
body.portal-admin .admin-nav-item{
  min-height:46px!important;background:transparent!important;color:#b9cbe0!important;border:1px solid transparent!important;border-radius:12px!important;position:relative;
}
body.portal-admin .admin-nav-item .admin-nav-icon,
body.portal-admin .admin-nav-item[class*="nav-"] .admin-nav-icon{
  color:#7da6d8!important;background:rgba(79,131,255,.07)!important;width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:10px!important;
}
body.portal-admin .admin-nav-item:hover{background:rgba(255,255,255,.028)!important;color:#eef5ff!important;transform:none!important}
body.portal-admin .admin-nav-item.active{
  background:rgba(79,131,255,.08)!important;color:#fff!important;border-color:rgba(99,150,255,.09)!important;
}
body.portal-admin .admin-nav-item.active::before{
  content:"";position:absolute;right:-1px;top:9px;bottom:9px;width:3px;border-radius:99px;background:linear-gradient(180deg,#4f83ff,#52c8df);
}
body.portal-admin .admin-nav-item.active .admin-nav-icon{color:#9ec1ff!important;background:rgba(79,131,255,.13)!important}
body.portal-admin .admin-sidebar-group{padding-top:10px!important}
body.portal-admin .card,body.portal-admin .stat,body.portal-admin .form-card{
  background:#0f2035!important;border-color:rgba(130,167,218,.10)!important;box-shadow:0 10px 26px rgba(0,0,0,.15)!important;
}
body.portal-admin .stat{border-radius:18px!important}
body.portal-admin .admin-color-strip{background:#09182a!important;border-bottom-color:rgba(255,255,255,.05)!important}

@media(max-width:900px){
  .dashboard-priority-grid{grid-template-columns:1fr}.priority-side-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:none}.priority-mini{align-items:flex-start}.resource-card-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  body.portal-user .brand{font-size:15px!important}.dashboard-priority-section{padding:14px!important}.priority-card{min-height:220px;padding:18px}.priority-card h3{font-size:21px!important}.priority-side-grid{grid-template-columns:1fr}.priority-mini{align-items:center}.resource-type-mark{width:44px;height:44px;flex-basis:44px;border-radius:12px}
}
body.portal-admin .admin-logo{
  width:40px!important;height:40px!important;border-radius:12px!important;
  background:linear-gradient(145deg,#2f6fe8,#249bc5)!important;
  box-shadow:none!important;font-size:18px!important;
}


/* Mobile polish patch v5 */
.brand-text-short{display:none}
@media(max-width:760px){
  body.portal-user .topbar{position:sticky!important;top:0!important}
  body.portal-user .topbar-inner{min-height:62px!important;gap:8px!important;justify-content:space-between!important}
  body.portal-user .brand{min-width:0!important;gap:8px!important;font-size:14px!important;white-space:nowrap!important}
  body.portal-user .brand-mark{width:34px!important;height:34px!important;border-radius:10px!important}
  body.portal-user .brand-text-full{display:none!important}
  body.portal-user .brand-text-short{display:inline!important}
  body.portal-user .account-links{gap:8px!important;flex:1 1 auto!important;justify-content:flex-start!important;min-width:0!important}
  body.portal-user .header-search-btn{display:none!important}
  body.portal-user .user-menu-toggle{max-width:146px!important;padding:0 10px!important}
  body.portal-user .user-menu-name{max-width:84px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important}
  body.portal-user .notification-bell{flex:0 0 40px!important}
  body.portal-user .portal-color-strip{display:none!important}
  body.portal-user main{padding-top:10px!important;padding-bottom:118px!important}
  body.portal-user .portal-page{max-width:none!important;width:100%!important;padding-left:12px!important;padding-right:12px!important}
  body.portal-user .portal-welcome{padding:16px!important;border-radius:18px!important;gap:10px!important}
  body.portal-user .portal-welcome h1{font-size:20px!important;line-height:1.35!important}
  body.portal-user .welcome-badge{width:48px!important;height:48px!important;font-size:18px!important;border-radius:14px!important}
  body.portal-user .portal-section{padding:16px!important;border-radius:20px!important;margin:12px 0!important}
  body.portal-user .portal-section-head{align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
  body.portal-user .portal-section-head h2{font-size:1.18rem!important;line-height:1.35!important}
  body.portal-user .portal-section-head .btn{padding:8px 12px!important;font-size:12px!important}
  .dashboard-priority-grid{gap:10px!important}
  .priority-card{min-height:auto!important;padding:16px!important;border-radius:18px!important}
  .priority-top{margin-bottom:14px!important}
  .priority-card h3{font-size:20px!important;line-height:1.35!important}
  .priority-card p{font-size:13px!important}
  .priority-side-grid{grid-template-columns:1fr!important;gap:8px!important}
  .priority-mini{padding:12px!important;align-items:center!important}
  .priority-mini strong,.priority-mini small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .calendar-home .portal-section-head{margin-bottom:10px!important}
  .calendar-head{gap:10px!important}
  .calendar-head h3{font-size:22px!important}
  .calendar-weekdays span{font-size:12px!important}
  .calendar-grid.compact{gap:8px!important}
  .calendar-grid.compact .calendar-day{min-height:56px!important;border-radius:14px!important;padding:6px!important}
  .resource-card-grid{grid-template-columns:1fr!important}
  .resource-library-card>p{min-height:auto!important}
  .mobile-dock{left:12px!important;right:12px!important;bottom:12px!important;transform:none!important;justify-content:space-between!important;width:auto!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;border-radius:22px!important}
  .mobile-dock.five a{min-width:0!important;flex:1 1 0!important}
  .mobile-dock a{padding:7px 4px!important}
  .mobile-dock a b{font-size:11px!important}
}


/* Mobile rebuild v5.1 — force compact header + safe SVG sizing */
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.portal-user .topbar{position:sticky!important;top:0!important;z-index:100!important}
  body.portal-user .topbar .container{width:100%!important;max-width:none!important;padding:0 12px!important}
  body.portal-user .topbar-inner{min-height:62px!important;height:62px!important;gap:8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important}
  body.portal-user .brand{flex:0 0 auto!important;min-width:0!important;width:auto!important;max-width:128px!important;display:flex!important;align-items:center!important;gap:7px!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important}
  body.portal-user .brand-mark{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:10px!important}
  body.portal-user .brand-text-full{display:none!important}
  body.portal-user .brand-text-short{display:inline!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.portal-user .account-links{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important}
  body.portal-user .header-search-btn, body.portal-user .admin-quick-link{display:none!important}
  body.portal-user .notification-bell{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:11px!important}
  body.portal-user .notification-bell .header-icon{width:20px!important;height:20px!important}
  body.portal-user .user-menu{min-width:0!important;max-width:150px!important}
  body.portal-user .user-menu-toggle{height:40px!important;min-height:40px!important;max-width:150px!important;padding:3px 8px!important;gap:6px!important;border-radius:11px!important;background:rgba(79,131,255,.08)!important}
  body.portal-user .user-avatar{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important}
  body.portal-user .user-menu-name{font-size:14px!important;max-width:82px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.portal-user .chevron-icon{width:16px!important;height:16px!important;flex:0 0 16px!important}
  body.portal-user .portal-color-strip{display:none!important}
  body.portal-user main{padding-top:0!important;padding-bottom:118px!important}
  body.portal-user .portal-bg{padding-top:8px!important}
  body.portal-user .portal-page, body.portal-user .container.page{width:100%!important;max-width:none!important;padding-left:12px!important;padding-right:12px!important}
  body.portal-user .portal-welcome{display:none!important}
  body.portal-user .portal-section{margin:10px 0!important;padding:14px!important;border-radius:18px!important}
  body.portal-user .portal-section-head{margin-bottom:10px!important;gap:8px!important;align-items:center!important;flex-wrap:nowrap!important}
  body.portal-user .portal-section-head h2{font-size:20px!important;line-height:1.25!important}
  body.portal-user .portal-section-head .section-kicker{font-size:11px!important}
  body.portal-user .portal-section-head .btn{padding:7px 10px!important;font-size:12px!important;white-space:nowrap!important}
  .dashboard-priority-section{padding:14px!important}
  .dashboard-priority-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .priority-card{min-height:0!important;padding:15px!important;border-radius:17px!important}
  .priority-top{margin-bottom:11px!important}
  .priority-main-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;overflow:hidden!important;margin-bottom:9px!important}
  .priority-main-icon svg,.priority-mini-icon svg,.module-icon svg{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;min-width:0!important;min-height:0!important;display:block!important;fill:none!important;stroke:currentColor!important}
  .priority-card h3{font-size:19px!important;line-height:1.3!important;margin:3px 0!important}
  .priority-card p{font-size:13px!important;line-height:1.65!important;margin-bottom:8px!important}
  .priority-action{margin-top:5px!important;font-size:12px!important}
  .priority-side-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .priority-mini{min-height:66px!important;padding:10px 11px!important;border-radius:15px!important;gap:10px!important;overflow:hidden!important}
  .priority-mini-icon{width:38px!important;height:38px!important;min-width:38px!important;flex:0 0 38px!important;overflow:hidden!important;border-radius:11px!important}
  .priority-mini div{min-width:0!important;overflow:hidden!important}
  .priority-mini span:not(.priority-mini-icon){font-size:10px!important}
  .priority-mini strong{font-size:14px!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .priority-mini small{font-size:11px!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .portal-card{min-height:0!important;padding:12px!important;border-radius:15px!important;gap:10px!important}
  .portal-card .module-icon{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;border-radius:12px!important;font-size:14px!important;overflow:hidden!important}
  .portal-card-body h3{font-size:16px!important;line-height:1.4!important;margin:2px 0!important}
  .portal-card-body p{font-size:12px!important;line-height:1.6!important;margin:3px 0!important}
  .portal-eyebrow{font-size:11px!important;line-height:1.4!important}
  .calendar-home{padding-bottom:16px!important}
  .calendar-head{margin-bottom:9px!important}
  .calendar-head h3{font-size:18px!important}
  .calendar-nav{width:36px!important;height:36px!important;border-radius:10px!important}
  .calendar-weekdays,.calendar-grid{gap:5px!important}
  .calendar-weekdays span{font-size:11px!important}
  .calendar-grid.compact .calendar-day{min-height:48px!important;height:48px!important;padding:4px!important;border-radius:10px!important;font-size:12px!important}
  .event-dots{gap:2px!important}.event-dots i{width:4px!important;height:4px!important}
  .mobile-dock{left:12px!important;right:12px!important;bottom:10px!important;width:auto!important;transform:none!important;justify-content:space-between!important;gap:2px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;border-radius:20px!important}
  .mobile-dock.five a,.mobile-dock a{min-width:0!important;flex:1 1 0!important;padding:7px 3px!important;border-radius:15px!important}
  .mobile-dock svg{width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important}
  .mobile-dock a b{font-size:10px!important;margin-top:2px!important}
}

/* Resources default-all filter patch */
.resource-super-filter-all{grid-template-columns:minmax(220px,2fr) repeat(4,minmax(125px,1fr)) auto auto!important;align-items:center}
.resource-filter-reset{display:grid;place-items:center;min-height:44px}
.resources-intro{margin-top:-4px;margin-bottom:8px}
.semester-section-title{margin-top:28px}
@media(max-width:1100px){.resource-super-filter-all{grid-template-columns:repeat(3,minmax(0,1fr))!important}.resource-super-filter-all input{grid-column:1/-1}.resource-super-filter-all button,.resource-super-filter-all .resource-filter-reset{width:100%}}
@media(max-width:700px){.resource-super-filter-all{grid-template-columns:1fr!important}.resource-super-filter-all input,.resource-super-filter-all select,.resource-super-filter-all button,.resource-super-filter-all .resource-filter-reset{grid-column:auto!important;width:100%}.resources-all-section{padding:14px!important}}


/* MED403 v4.6 — Drive/PDF exam preview + editable timer */
.paper-exam-page.container{width:min(1480px,96%)!important;max-width:none!important}
.paper-exam-page .paper-exam-layout{grid-template-columns:minmax(0,1.65fr) minmax(360px,.72fr)!important;gap:16px!important}
.paper-exam-page .paper-preview-frame{height:76vh!important;min-height:640px!important}
.paper-exam-page .answer-sheet{position:sticky;top:88px;max-height:82vh!important;overflow:auto!important}
.quick-duration-form{display:flex;align-items:center;gap:6px;min-width:158px}
.quick-duration-form input{width:72px!important;min-width:72px!important;margin:0!important;padding:7px 8px!important;text-align:center}
.quick-duration-form button{white-space:nowrap;margin:0!important}
.preview-admin-note{margin:14px 0;padding:11px 14px;border-radius:14px;background:rgba(82,200,223,.08);border:1px solid rgba(82,200,223,.16);color:#b8d9e5}
.preview-answer-sheet .submit-paper:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1000px){
 .paper-exam-page .paper-exam-layout{grid-template-columns:1fr!important}
 .paper-exam-page .paper-viewer-card,.paper-exam-page .answer-sheet{position:static!important;max-height:none!important}
 .paper-exam-page .paper-preview-frame{height:58vh!important;min-height:430px!important}
}
@media(max-width:700px){
 .paper-exam-page.container{width:100%!important;padding-left:10px!important;padding-right:10px!important}
 .paper-exam-page .paper-preview-frame{height:52vh!important;min-height:360px!important}
 .quick-duration-form{min-width:145px}
}


/* MED403 v4.6.2 — Interactive quiz contrast/readability fix */
body.portal-user .quiz-shell .question-card{
  background:linear-gradient(180deg,#10243a,#0e2034)!important;
  border:1px solid rgba(130,167,218,.14)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.16)!important;
  color:#f4f8ff!important;
}
body.portal-user .quiz-shell .question-card h3{
  color:#f8fbff!important;
  line-height:1.95!important;
}
body.portal-user .quiz-shell .question-card .option{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  background:#132a43!important;
  border:1px solid rgba(145,178,224,.15)!important;
  color:#eef5ff!important;
  padding:13px 14px!important;
  line-height:1.75!important;
}
body.portal-user .quiz-shell .question-card .option b{
  color:#a9c7ff!important;
  flex:0 0 auto!important;
}
body.portal-user .quiz-shell .question-card .option:hover{
  background:#17314e!important;
  border-color:rgba(111,157,236,.35)!important;
}
body.portal-user .quiz-shell .question-card .option:has(input:checked){
  background:rgba(79,131,255,.16)!important;
  border-color:rgba(112,158,255,.55)!important;
  box-shadow:inset 0 0 0 1px rgba(112,158,255,.12)!important;
}
body.portal-user .quiz-shell .question-card input[type="radio"]{
  accent-color:#5f8cff!important;
  margin-top:6px!important;
  flex:0 0 auto!important;
}
body.portal-user .quiz-shell .question-card .badge{
  background:rgba(79,131,255,.12)!important;
  color:#aec9ff!important;
  border:1px solid rgba(112,158,255,.16)!important;
}
body.portal-user .quiz-shell .question-card [data-flag-btn]{
  color:#a9c5ea!important;
  background:rgba(255,255,255,.035)!important;
  border-color:rgba(148,181,225,.13)!important;
}
body.portal-user .quiz-shell .question-card [data-flag-btn].active,
body.portal-user .quiz-shell .question-card [data-flag-btn][aria-pressed="true"]{
  color:#ffd47a!important;
  border-color:rgba(247,195,95,.3)!important;
  background:rgba(247,195,95,.08)!important;
}
@media(max-width:700px){
  body.portal-user .quiz-shell{gap:12px!important}
  body.portal-user .quiz-shell .question-card{padding:15px!important;border-radius:18px!important;margin-bottom:12px!important}
  body.portal-user .quiz-shell .question-card h3{font-size:17px!important;line-height:1.85!important}
  body.portal-user .quiz-shell .question-card .option{padding:11px 12px!important;font-size:14px!important;border-radius:12px!important;margin:8px 0!important}
  body.portal-user .quiz-shell .question-card .actions{gap:8px!important;align-items:center!important}
}


/* MED403 v4.6.3 — flagged-question navigator state */
body.portal-user .quiz-shell .navigator button{
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
body.portal-user .quiz-shell .navigator button.flagged{
  background:rgba(247,195,95,.18)!important;
  color:#ffd76f!important;
  border:1px solid rgba(247,195,95,.48)!important;
  box-shadow:0 0 0 2px rgba(247,195,95,.07),inset 0 0 0 1px rgba(255,220,129,.05)!important;
  font-weight:900!important;
}
body.portal-user .quiz-shell .navigator button.flagged:hover{
  background:rgba(247,195,95,.25)!important;
  transform:translateY(-1px)!important;
}
.nav-legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle;margin-left:5px}
.flagged-dot{background:#f7c35f;box-shadow:0 0 0 3px rgba(247,195,95,.12)}


/* MED403 v4.6.5 — result page contrast and readability */
body.portal-user .result-page{color:#eaf2fb!important}
body.portal-user .result-page>h2{color:#f5f8fc!important;margin:18px 0 12px!important}
body.portal-user .result-page .result-summary-card,
body.portal-user .result-page .result-hero{
  background:linear-gradient(145deg,#102741,#0e2035)!important;
  border:1px solid rgba(126,164,216,.13)!important;
  color:#eef5fd!important;
  box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
}
body.portal-user .result-page .result-summary-card h1,
body.portal-user .result-page .result-hero h1{color:#fff!important}
body.portal-user .result-page .stat{
  background:#132b46!important;
  border:1px solid rgba(132,171,224,.14)!important;
  color:#a9bdd4!important;
  box-shadow:none!important;
}
body.portal-user .result-page .stat b{color:#fff!important}
body.portal-user .interactive-result-page .question-card{
  background:#10243a!important;
  border:1px solid rgba(130,167,218,.13)!important;
  color:#eaf2fb!important;
  box-shadow:0 10px 24px rgba(0,0,0,.13)!important;
}
body.portal-user .interactive-result-page .question-card h3{
  color:#f8fbff!important;
  line-height:1.9!important;
}
body.portal-user .interactive-result-page .question-card .badge{
  background:rgba(79,131,255,.12)!important;
  border:1px solid rgba(108,157,255,.17)!important;
  color:#b8d1ff!important;
}
body.portal-user .interactive-result-page .review-box{
  color:#eaf2fb!important;
  border:1px solid transparent!important;
  line-height:1.85!important;
}
body.portal-user .interactive-result-page .review-box b{color:#fff!important}
body.portal-user .interactive-result-page .review-box.good{
  background:rgba(38,164,111,.13)!important;
  border-color:rgba(74,211,148,.24)!important;
  color:#bff4d9!important;
}
body.portal-user .interactive-result-page .review-box.bad{
  background:rgba(214,72,72,.13)!important;
  border-color:rgba(255,105,105,.23)!important;
  color:#ffd0d0!important;
}
body.portal-user .interactive-result-page .review-box.info{
  background:rgba(69,125,210,.11)!important;
  border-color:rgba(105,158,235,.18)!important;
  color:#c8d9ed!important;
}
body.portal-user .interactive-result-page details{
  margin-top:12px;padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.025);border:1px solid rgba(130,167,218,.09);
}
body.portal-user .interactive-result-page details summary{color:#a9c5e8!important;cursor:pointer;font-weight:800}
body.portal-user .interactive-result-page textarea{background:#0c1c2e!important;color:#fff!important;border-color:rgba(130,167,218,.16)!important}
body.portal-user .paper-result-page .table-scroll{background:#10243a!important;border-color:rgba(130,167,218,.13)!important;color:#eaf2fb!important}
body.portal-user .paper-result-page table{background:#10243a!important;color:#eaf2fb!important}
body.portal-user .paper-result-page th{background:#132b46!important;color:#dceaff!important}
body.portal-user .paper-result-page td{border-bottom-color:rgba(130,167,218,.10)!important}
@media(max-width:700px){
  body.portal-user .result-page{padding-top:18px!important}
  body.portal-user .result-page .result-summary-card,body.portal-user .result-page .result-hero{padding:16px!important;border-radius:18px!important}
  body.portal-user .result-page .grid.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body.portal-user .result-page .stat{padding:12px 8px!important;border-radius:14px!important;font-size:12px!important;text-align:center}
  body.portal-user .result-page .stat b{font-size:20px!important}
  body.portal-user .interactive-result-page .question-card{padding:16px!important;border-radius:18px!important}
  body.portal-user .interactive-result-page .question-card h3{font-size:16px!important}
  body.portal-user .interactive-result-page .review-box{padding:12px!important;font-size:14px!important}
}


/* MED403 v4.7.1 — cleaner mobile calendar */
.calendar-event-dots{display:none}
.calendar-event-preview{display:none}
@media(max-width:760px){
  body.portal-user .calendar-head{padding:2px 0 6px!important}
  body.portal-user .calendar-head h2,
  body.portal-user .calendar-head h3{font-size:19px!important;margin:0!important}
  body.portal-user .calendar-weekdays{margin-bottom:7px!important;padding-bottom:7px!important}
  body.portal-user .calendar-weekdays span{font-size:11px!important;color:#7f98b7!important;font-weight:800!important}
  body.portal-user .calendar-grid{gap:6px!important}
  body.portal-user .calendar-day,
  body.portal-user .calendar-grid.compact .calendar-day{
    min-height:58px!important;height:58px!important;padding:6px 4px!important;border-radius:13px!important;
    align-items:center!important;justify-content:flex-start!important;overflow:visible!important;
    background:rgba(255,255,255,.018)!important;border-color:rgba(142,177,226,.075)!important;
  }
  body.portal-user .calendar-grid:not(.compact) .calendar-day{min-height:62px!important;height:62px!important}
  body.portal-user .calendar-day.blank,
  body.portal-user .calendar-grid.compact .calendar-day.blank{min-height:58px!important;height:58px!important;background:transparent!important;border-color:transparent!important}
  body.portal-user .calendar-grid:not(.compact) .calendar-day.blank{min-height:62px!important;height:62px!important}
  body.portal-user .calendar-day>b{
    align-self:center!important;min-width:27px!important;width:27px!important;height:27px!important;
    font-size:13px!important;border-radius:9px!important;color:#e7eef8!important;
  }
  body.portal-user .calendar-day.today{transform:none!important;box-shadow:0 7px 18px rgba(48,95,225,.22)!important}
  body.portal-user .calendar-day.selected:not(.today){
    background:rgba(79,131,255,.09)!important;border-color:rgba(104,153,255,.34)!important;
    box-shadow:inset 0 0 0 1px rgba(104,153,255,.06)!important;
  }
  body.portal-user .calendar-event-list{display:none!important}
  body.portal-user .calendar-event-dots{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    min-height:9px!important;margin-top:5px!important;direction:ltr!important;
  }
  body.portal-user .calendar-event-dots i{
    display:block!important;width:6px!important;height:6px!important;flex:0 0 6px!important;border-radius:999px!important;
    background:#7d91aa!important;box-shadow:0 0 0 2px rgba(125,145,170,.08)!important;
  }
  body.portal-user .calendar-event-dots i.type-exam{background:#ef6b96!important;box-shadow:0 0 0 2px rgba(239,107,150,.10)!important}
  body.portal-user .calendar-event-dots i.type-quiz{background:#f2c458!important;box-shadow:0 0 0 2px rgba(242,196,88,.10)!important}
  body.portal-user .calendar-event-dots i.type-deadline{background:#f29a58!important;box-shadow:0 0 0 2px rgba(242,154,88,.10)!important}
  body.portal-user .calendar-event-dots i.type-education{background:#54c49b!important;box-shadow:0 0 0 2px rgba(84,196,155,.10)!important}
  body.portal-user .calendar-event-dots i.type-class{background:#69aaf2!important;box-shadow:0 0 0 2px rgba(105,170,242,.10)!important}
  body.portal-user .calendar-event-dots em{font-style:normal!important;font-size:8px!important;line-height:1!important;color:#8197b3!important;margin-left:1px!important}
  body.portal-user .calendar-event-preview{
    display:block;margin-top:12px;padding:12px;border-radius:15px;
    background:linear-gradient(180deg,#10253e,#0d2035);border:1px solid rgba(130,167,218,.12);
    box-shadow:0 10px 24px rgba(0,0,0,.13);
  }
  body.portal-user .calendar-event-preview[hidden]{display:none!important}
  body.portal-user .calendar-preview-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
  body.portal-user .calendar-preview-title strong{font-size:13px;color:#f2f7ff}
  body.portal-user .calendar-preview-title span{font-size:10px;color:#7f9abb;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.035)}
  body.portal-user .calendar-preview-list{display:grid;gap:6px}
  body.portal-user .calendar-preview-item{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.026);color:#cbd8e9;font-size:12px;line-height:1.55}
  body.portal-user .calendar-preview-item i{width:7px;height:7px;flex:0 0 7px;border-radius:999px;background:#7d91aa}
  body.portal-user .calendar-preview-item i.type-exam{background:#ef6b96}
  body.portal-user .calendar-preview-item i.type-quiz{background:#f2c458}
  body.portal-user .calendar-preview-item i.type-deadline{background:#f29a58}
  body.portal-user .calendar-preview-item i.type-education{background:#54c49b}
  body.portal-user .calendar-preview-item i.type-class{background:#69aaf2}
  body.portal-user .calendar-preview-item span{min-width:0;overflow-wrap:anywhere}
}

/* MED403 v4.7.2 — dedicated sample-question / quiz bank */
.portal-color-strip .strip-quizbank{box-shadow:inset 0 -3px #ff9f6e}
body.portal-user .portal-color-strip .strip-quizbank{box-shadow:inset 3px 0 0 #ff9f6e}
body.portal-user .strip-quizbank span{background:linear-gradient(135deg,rgba(255,142,94,.24),rgba(255,142,94,.08))!important;color:#ffae84}
body.portal-user .strip-quizbank .menu-icon{color:#ffad82!important;background:linear-gradient(145deg,rgba(255,137,87,.24),rgba(255,137,87,.08))!important}
body.portal-user .strip-quizbank .menu-label{font-size:12px!important;line-height:1.35;white-space:nowrap!important}
.quiz-bank-page{max-width:1180px}
.quiz-bank-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 24px;border:1px solid rgba(130,168,230,.13);border-radius:24px;background:linear-gradient(135deg,rgba(52,89,143,.14),rgba(17,39,66,.64));box-shadow:0 16px 34px rgba(0,0,0,.12)}
.quiz-bank-hero h1{margin:3px 0 7px}.quiz-bank-hero p{margin:0;max-width:760px}
.quiz-bank-hero-icon{width:66px;height:66px;flex:0 0 66px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,137,87,.22),rgba(255,137,87,.07));color:#ffad82;border:1px solid rgba(255,173,130,.18)}
.quiz-bank-hero-icon svg,.quiz-bank-folder-card svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quiz-bank-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;font-size:13px;color:#9fb2c9}.quiz-bank-breadcrumbs a{color:#8ebcff}.quiz-bank-breadcrumbs b{color:#eef6ff}
.quiz-bank-folder-card{min-height:112px}.quiz-bank-folder-card.is-empty{opacity:.72}
.quiz-bank-quiz-card{display:flex;flex-direction:column;gap:10px;min-height:225px}.quiz-bank-quiz-card h3{margin:0}.quiz-bank-quiz-card p{margin:0;line-height:1.8}
.quiz-bank-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.quiz-bank-type{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900}.quiz-bank-type.interactive{background:rgba(76,184,255,.13);color:#8bd0ff;border:1px solid rgba(76,184,255,.16)}.quiz-bank-type.paper{background:rgba(255,172,91,.13);color:#ffc27f;border:1px solid rgba(255,172,91,.16)}
.quiz-bank-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.quiz-bank-meta span{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);color:#afc1d5;font-size:11px;font-weight:800}
.quiz-bank-actions{margin-top:3px}
@media(max-width:850px){
  body.portal-user .strip-quizbank .menu-label{font-size:11.5px!important}
  .quiz-bank-page{padding-top:6px!important}.quiz-bank-hero{padding:17px 16px;border-radius:20px;align-items:flex-start}.quiz-bank-hero h1{font-size:23px}.quiz-bank-hero-icon{width:52px;height:52px;flex-basis:52px;border-radius:16px}.quiz-bank-hero-icon svg{width:24px;height:24px}
  .quiz-bank-folder-grid,.quiz-bank-list{grid-template-columns:1fr!important}.quiz-bank-folder-card{min-height:98px}.quiz-bank-quiz-card{min-height:auto;padding:16px!important}.quiz-bank-actions{display:grid!important;grid-template-columns:1fr!important}.quiz-bank-actions .btn{width:100%;text-align:center}
}


/* v4.7.4 — six-item mobile dock with exam schedule */
@media(max-width:760px){
  .mobile-dock.six{gap:1px!important;padding-left:6px!important;padding-right:6px!important}
  .mobile-dock.six a{min-width:0!important;flex:1 1 0!important;padding:7px 2px!important}
  .mobile-dock.six svg{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important}
  .mobile-dock.six a b{font-size:9px!important;line-height:1.25!important;white-space:nowrap!important;letter-spacing:-.15px}
  .mobile-dock.six .dock-exam-program b{font-size:8.7px!important}
}
@media(max-width:370px){
  .mobile-dock.six a b{font-size:8.4px!important}
  .mobile-dock.six .dock-exam-program b{font-size:8px!important}
}
