:root{
  --fltb-student-bg:#fcfaf6;
  --fltb-student-card:#ffffff;
  --fltb-student-border:#e8e3d8;
  --fltb-student-text:#25304d;
  --fltb-student-muted:#657086;
  --fltb-student-primary:#8798cf;
  --fltb-student-primary-dark:#6f7fd0;
  --fltb-student-soft:#eef1fb;
  --fltb-student-yellow:#f8c94d;
  --fltb-student-shadow:0 14px 38px rgba(38,50,65,.07);
}
.fltb-student-dashboard{
  max-width:1280px;
  margin:0 auto;
  padding:34px 20px 52px;
  color:var(--fltb-student-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.fltb-student-hero{
  background:linear-gradient(135deg,#fff,#fbfaf5);
  border:1px solid var(--fltb-student-border);
  border-radius:28px;
  box-shadow:var(--fltb-student-shadow);
  padding:30px 34px;
  margin-bottom:20px;
}
.fltb-student-kicker{
  display:inline-flex;
  color:var(--fltb-student-primary-dark);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:10px;
}
.fltb-student-hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:40px;
  line-height:1.1;
  margin:0 0 10px;
  color:var(--fltb-student-text);
}
.fltb-student-hero p{
  margin:0;
  max-width:820px;
  color:var(--fltb-student-muted);
  font-size:16px;
  line-height:1.6;
}
.fltb-student-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-bottom:20px;
}
.fltb-student-card{
  background:var(--fltb-student-card);
  border:1px solid var(--fltb-student-border);
  border-radius:22px;
  padding:22px 24px;
  box-shadow:0 10px 28px rgba(38,50,65,.05);
}
.fltb-student-card span{
  display:block;
  color:var(--fltb-student-muted);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:8px;
}
.fltb-student-card strong{
  display:block;
  font-size:28px;
  line-height:1.2;
  color:var(--fltb-student-primary-dark);
  margin-bottom:5px;
}
.fltb-student-card small{
  display:block;
  color:var(--fltb-student-muted);
  font-size:14px;
}
.fltb-student-calendar-shell{
  background:#fff;
  border:1px solid var(--fltb-student-border);
  border-radius:28px;
  padding:18px;
  box-shadow:var(--fltb-student-shadow);
}
.fltb-student-calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.fltb-student-calendar-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.fltb-student-calendar-left h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  margin:0 0 0 8px;
  color:var(--fltb-student-text);
  white-space:nowrap;
}
.fltb-student-calendar-views{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.fltb-student-button{
  appearance:none;
  border:1px solid #cfd5f7;
  background:#fff;
  color:var(--fltb-student-primary-dark);
  border-radius:12px;
  padding:9px 14px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.fltb-student-button:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(38,50,65,.08);
}
.fltb-student-button.is-active{
  background:var(--fltb-student-primary-dark);
  border-color:var(--fltb-student-primary-dark);
  color:#fff;
}
.fltb-student-icon-btn{
  font-size:22px;
  line-height:1;
  padding:6px 13px 8px;
}
.fltb-student-calendar-note{
  display:inline-flex;
  background:#fff8df;
  color:#80620b;
  border:1px solid #f3dc86;
  border-radius:999px;
  padding:7px 12px;
  font-size:13px;
  font-weight:700;
  margin-bottom:14px;
}
.fltb-student-calendar-grid{
  border:1px solid var(--fltb-student-border);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
}
.fltb-student-month-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
}
.fltb-student-day-name{
  background:#fbfaf5;
  color:#657086;
  font-weight:900;
  font-size:12px;
  letter-spacing:.06em;
  padding:10px 12px;
  border-right:1px solid var(--fltb-student-border);
  border-bottom:1px solid var(--fltb-student-border);
}
.fltb-student-day-name:nth-child(7n){
  border-right:0;
}
.fltb-student-month-day{
  min-height:122px;
  padding:10px;
  border-right:1px solid var(--fltb-student-border);
  border-bottom:1px solid var(--fltb-student-border);
  background:#fff;
}
.fltb-student-month-day:nth-child(7n){
  border-right:0;
}
.fltb-student-muted-day{
  background:#fcfbf8;
  color:#a2a8b6;
}
.fltb-student-today .fltb-student-day-number{
  background:var(--fltb-student-primary-dark);
  color:#fff;
}
.fltb-student-day-number{
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  margin-bottom:6px;
}
.fltb-student-event-chip{
  border:0;
  display:block;
  width:100%;
  text-align:left;
  margin:5px 0;
  padding:7px 9px;
  border-radius:10px;
  background:#eaf0ff;
  color:#315bba;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  cursor:pointer;
  box-shadow:none;
}
.fltb-student-event-chip:hover{
  background:#dfe7ff;
}
.fltb-student-week-view,
.fltb-student-day-view{
  display:grid;
  grid-template-columns:90px 1fr;
}
.fltb-student-week-view{
  grid-template-columns:90px repeat(7,1fr);
}
.fltb-student-time-col,
.fltb-student-week-day,
.fltb-student-day-column{
  border-right:1px solid var(--fltb-student-border);
}
.fltb-student-time-col{
  background:#fbfaf5;
}
.fltb-student-time-slot{
  height:58px;
  border-bottom:1px solid var(--fltb-student-border);
  color:#7b8495;
  font-size:12px;
  font-weight:800;
  padding:8px;
}
.fltb-student-week-day:last-child,
.fltb-student-day-column:last-child{
  border-right:0;
}
.fltb-student-week-header,
.fltb-student-day-header{
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fbfaf5;
  color:#4d5872;
  font-weight:900;
  border-bottom:1px solid var(--fltb-student-border);
}
.fltb-student-hour-cell{
  min-height:58px;
  border-bottom:1px solid var(--fltb-student-border);
  padding:5px;
}
.fltb-student-day-view .fltb-student-hour-cell{
  min-height:66px;
}
.fltb-student-empty{
  padding:34px;
  text-align:center;
  color:var(--fltb-student-muted);
  font-weight:700;
}
.fltb-student-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(24,31,46,.42);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:99999;
}
.fltb-student-modal-backdrop.is-open{
  display:flex;
}
.fltb-student-modal{
  width:min(460px,100%);
  background:#fff;
  border-radius:24px;
  box-shadow:0 24px 80px rgba(12,18,31,.25);
  padding:22px;
}
.fltb-student-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.fltb-student-modal-header h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  margin:0;
}
.fltb-student-modal-close{
  border:0;
  background:#f2f4fb;
  color:#55617a;
  border-radius:999px;
  width:38px;
  height:38px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.fltb-student-event-details{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px 16px;
  margin:0 0 22px;
}
.fltb-student-event-details dt{
  font-weight:900;
  color:#3b455e;
}
.fltb-student-event-details dd{
  margin:0;
  color:#657086;
}
.fltb-student-modal-actions{
  display:flex;
  justify-content:flex-end;
}
.fltb-student-noscript{
  margin-top:18px;
  background:#fff;
  border:1px solid var(--fltb-student-border);
  border-radius:20px;
  padding:22px;
}

@media (max-width:900px){
  .fltb-student-summary{grid-template-columns:1fr}
  .fltb-student-calendar-toolbar{align-items:flex-start;flex-direction:column}
  .fltb-student-calendar-left{flex-wrap:wrap}
  .fltb-student-calendar-left h2{width:100%;margin:4px 0 0}
  .fltb-student-month-day{min-height:100px}
  .fltb-student-week-view{grid-template-columns:70px repeat(7,minmax(120px,1fr));overflow:auto}
  .fltb-student-calendar-grid{overflow:auto}
}
@media (max-width:640px){
  .fltb-student-dashboard{padding:22px 14px 38px}
  .fltb-student-hero{padding:24px 22px}
  .fltb-student-hero h1{font-size:32px}
  .fltb-student-month-grid{min-width:760px}
  .fltb-student-calendar-shell{padding:12px}
  .fltb-student-calendar-note{border-radius:14px}
}


.fluentia-profile-box{max-width:1040px;margin:0 auto;padding:32px 20px 70px}
.fluentia-profile-card{
  margin-top:24px;
  background:#fff;
  border:1px solid #ebe7df;
  border-radius:24px;
  box-shadow:0 18px 48px rgba(45,52,84,.08);
  padding:28px;
}
.fluentia-profile-card h2{margin:0 0 20px;color:#202842;font-size:28px;line-height:1.15}
.fluentia-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.fluentia-profile-grid label{display:flex;flex-direction:column;gap:7px;font-weight:800;color:#202842}
.fluentia-profile-grid span{font-size:13px;color:#66708a}
.fluentia-profile-grid input{
  height:48px;
  border:1px solid #ded8cf;
  border-radius:14px;
  padding:0 14px;
  background:#fffdf8;
  color:#202842;
  font-weight:700;
}
.fluentia-profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.fltb-student-button.is-primary{background:#747ed6;color:#fff;border-color:#747ed6}
@media(max-width:760px){.fluentia-profile-grid{grid-template-columns:1fr}.fluentia-profile-box{padding:20px 16px 50px}}


.fltb-student-lessons{
  margin-top:28px;
  background:#fff;
  border:1px solid #ebe7df;
  border-radius:24px;
  box-shadow:0 18px 48px rgba(45,52,84,.08);
  padding:26px;
}
.fltb-student-lessons h2{margin:0 0 18px;color:#202842}
.fltb-student-lesson-card{
  border:1px solid #ebe7df;
  border-radius:18px;
  padding:20px;
  margin:14px 0;
  background:#fffdf8;
}
.fltb-student-lesson-card h3{margin:0 0 8px;color:#202842}
.fltb-student-lesson-card p{color:#4b5567;margin:0 0 10px}
.fltb-student-lesson-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.fltb-lesson-embed{width:100%;margin-top:10px}
.fltb-lesson-embed summary{cursor:pointer;list-style:none;width:max-content}
.fltb-lesson-embed iframe{
  width:100%;
  min-height:680px;
  border:1px solid #dfe3ea;
  border-radius:18px;
  background:#fff;
  margin-top:14px;
}
@media(max-width:760px){
  .fltb-student-lessons{padding:18px}
  .fltb-lesson-embed iframe{min-height:720px}
}


/* v0.4.1 pastel student calendar colors + visible note */
.fltb-student-event-chip{
  color:#24304d!important;
  border:1px solid rgba(36,48,77,.08)!important;
  box-shadow:0 6px 14px rgba(38,50,65,.06)!important;
}
.fltb-student-event-chip strong{
  display:block;
  font-weight:900;
}
.fltb-student-event-chip small{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.25;
  opacity:.82;
  font-weight:700;
  white-space:normal;
}
.fltb-student-event-chip.paid{background:#B8E6C8!important;color:#173B27!important}
.fltb-student-event-chip.pending{background:#F8D96B!important;color:#3F3100!important}
.fltb-student-event-chip.trial{background:#CDBAF6!important;color:#2D2154!important}
.fltb-student-event-chip.normal{background:#DCE5FF!important;color:#22375F!important}
.fltb-student-event-details dd#fltb-student-detail-note{
  color:#25304d;
  line-height:1.55;
  font-weight:700;
}


/* v0.4.2 student calendar note truncation + scalable modal */
.fltb-student-event-chip{
  height:44px!important;
  max-height:44px!important;
  overflow:hidden!important;
  padding:6px 9px!important;
  max-width:100%!important;
}
.fltb-student-event-chip strong{
  display:block!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.fltb-student-event-chip small{
  display:block!important;
  max-width:100%!important;
  margin-top:2px!important;
  font-size:11px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.fltb-student-modal{
  width:min(620px,calc(100vw - 36px))!important;
  max-height:calc(100vh - 42px)!important;
  overflow:auto!important;
}
.fltb-student-event-details{
  grid-template-columns:120px minmax(0,1fr)!important;
  align-items:start!important;
}
.fltb-student-event-details dd{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  white-space:normal!important;
}
.fltb-student-event-details dd#fltb-student-detail-note{
  display:block!important;
  line-height:1.55!important;
  max-height:38vh!important;
  overflow:auto!important;
  padding-right:4px!important;
}
@media(max-width:560px){
  .fltb-student-modal{width:calc(100vw - 24px)!important;padding:18px!important}
  .fltb-student-event-details{grid-template-columns:1fr!important;gap:5px 0!important}
  .fltb-student-event-details dt{margin-top:8px}
}


/* v0.4.3 serious lesson embed + PPT viewer */
.fltb-student-lesson-card{
  overflow:hidden;
}
.fltb-student-lesson-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.fltb-student-lesson-actions{
  display:block!important;
}
.fltb-lesson-embed,
.fltb-ppt-viewer{
  width:100%;
  margin-top:14px;
}
.fltb-lesson-embed > summary,
.fltb-ppt-viewer > summary{
  cursor:pointer;
  list-style:none;
  width:max-content;
  max-width:100%;
}
.fltb-lesson-embed > summary::-webkit-details-marker,
.fltb-ppt-viewer > summary::-webkit-details-marker{
  display:none;
}
.fltb-html-frame-wrap,
.fltb-ppt-frame-wrap{
  width:100%;
  margin-top:14px;
  border:1px solid #dfe3ea;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 34px rgba(38,50,65,.08);
}
.fltb-html-frame{
  display:block;
  width:100%;
  height:820px;
  min-height:720px;
  max-height:135vh;
  border:0;
  background:#fff;
}
.fltb-ppt-frame-wrap iframe{
  display:block;
  width:100%;
  height:min(78vh,780px);
  min-height:620px;
  border:0;
  background:#fff;
}
.fltb-viewer-help{
  margin:10px 2px 0!important;
  color:#657086!important;
  font-size:13px!important;
}
@media(max-width:760px){
  .fltb-student-lesson-card{
    padding:14px!important;
    border-radius:18px!important;
  }
  .fltb-html-frame-wrap,
  .fltb-ppt-frame-wrap{
    border-radius:16px;
    margin-left:-4px;
    margin-right:-4px;
    width:calc(100% + 8px);
  }
  .fltb-html-frame{
    min-height:82vh;
    height:92vh;
    max-height:150vh;
  }
  .fltb-ppt-frame-wrap iframe{
    min-height:78vh;
    height:82vh;
  }
}


/* v0.4.4 calendar min-width fix + real lesson iframe endpoint */
.fltb-student-month-grid{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
}
.fltb-student-month-day,
.fltb-student-week-day,
.fltb-student-day-column,
.fltb-student-hour-cell{
  min-width:0!important;
  overflow:hidden!important;
}
.fltb-student-event-chip{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
}
.fltb-student-event-chip strong,
.fltb-student-event-chip small{
  min-width:0!important;
  max-width:100%!important;
}
.fltb-html-frame{
  display:block!important;
  width:100%!important;
  height:86vh!important;
  min-height:760px!important;
  max-height:none!important;
  border:0!important;
  background:#fff!important;
}
.fltb-html-frame-wrap{
  overflow:hidden!important;
  background:#fff!important;
}
@media(max-width:760px){
  .fltb-student-month-grid{min-width:720px!important}
  .fltb-html-frame{
    height:92vh!important;
    min-height:720px!important;
  }
}


/* v0.4.6 standalone HTML file viewer */
.fltb-html-frame-wrap{
  height:86vh!important;
  min-height:760px!important;
  overflow:hidden!important;
}
.fltb-html-frame{
  height:100%!important;
  min-height:100%!important;
}
@media(max-width:760px){
  .fltb-html-frame-wrap{
    height:92vh!important;
    min-height:720px!important;
  }
}


/* v0.4.8 safe click-to-load HTML exercise */
.fltb-student-shell,
.fluentia-profile-box{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}
.fltb-lesson-embed{
  width:100%;
  margin-top:14px;
}
.fltb-lesson-embed-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.fltb-html-frame-wrap.is-empty{
  min-height:90px!important;
  height:auto!important;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:18px;
  color:#667085;
  font-weight:800;
}
.fltb-html-frame-wrap.is-empty p{
  margin:0!important;
}
.fltb-html-frame-wrap{
  width:100%;
  margin-top:14px;
  border:1px solid #dfe3ea;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 34px rgba(38,50,65,.08);
  height:86vh;
  min-height:760px;
}
.fltb-html-frame{
  display:block;
  width:100%;
  height:100%;
  min-height:100%;
  border:0;
  background:#fff;
}
@media(max-width:760px){
  .fltb-student-shell,
  .fluentia-profile-box{
    width:calc(100% - 20px);
  }
  .fltb-html-frame-wrap{
    height:92vh;
    min-height:720px;
    border-radius:16px;
  }
  .fltb-lesson-embed-actions .fltb-student-button{
    width:100%;
    justify-content:center;
  }
}


/* v0.5.0 student dashboard full width + safe loader */
.fltb-student-dashboard{
  width:min(1240px,calc(100vw - 96px))!important;
  max-width:none!important;
  margin-left:50%!important;
  transform:translateX(-50%)!important;
  padding:34px 0 52px!important;
}
.fltb-student-calendar-shell,
.fltb-student-lessons,
.fltb-student-hero,
.fltb-student-summary{
  width:100%!important;
  max-width:none!important;
}
.fltb-lesson-embed{
  width:100%!important;
  margin-top:16px!important;
}
.fltb-lesson-embed-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
}
.fltb-html-frame-wrap.is-empty{
  min-height:92px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:18px!important;
  color:#667085!important;
  font-weight:800!important;
}
.fltb-html-frame-wrap.is-empty p{
  margin:0!important;
}
.fltb-html-frame-wrap:not(.is-empty){
  height:86vh!important;
  min-height:760px!important;
}
@media(max-width:760px){
  .fltb-student-dashboard{
    width:calc(100vw - 22px)!important;
    padding:22px 0 38px!important;
  }
  .fltb-lesson-embed-actions .fltb-student-button{
    width:100%!important;
    justify-content:center!important;
    text-align:center!important;
  }
}


/* v0.6.3 hard center override: neutralize old full-bleed student dashboard rules */
.fsdash.fltb-student-dashboard,
body .fsdash.fltb-student-dashboard{
  left:auto!important;
  right:auto!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:none!important;
  width:min(1180px, calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
}
html.fluentia-student-dashboard-page body .fl-page-header,
body.fluentia-student-dashboard-page .fl-page-header{
  display:none!important;
}
html.fluentia-student-dashboard-page body .fl-page-shell,
body.fluentia-student-dashboard-page .fl-page-shell,
html.fluentia-student-dashboard-page body .fl-page-content,
body.fluentia-student-dashboard-page .fl-page-content{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:visible!important;
}


/* v0.6.4 dynamic same-origin exercise iframe height */
.fsdash-frame-wrap{
  height:auto!important;
  overflow:hidden!important;
  padding:0!important;
}
.fsdash-frame-wrap > p{
  padding:18px!important;
  margin:0!important;
}
.fsdash-frame-wrap iframe{
  width:100%!important;
  height:760px;
  min-height:760px!important;
  border:0!important;
  overflow:hidden!important;
}

/* v0.6.5 real content height for embedded HTML exercises */
.fsdash-frame-wrap{
  height:auto!important;
  min-height:92px!important;
  overflow:hidden!important;
  padding:0!important;
}
.fsdash-frame-wrap > p{
  padding:18px!important;
  margin:0!important;
}
.fsdash-frame-wrap iframe{
  width:100%!important;
  height:420px;
  min-height:0!important;
  border:0!important;
  overflow:hidden!important;
}
