/* Change 29 — dashboard layout for Students, Classes, Games, My Library (classroom.html only).
   Everything is scoped to html.cvd, which only classroom.html sets. The homepage (index.html) never loads this file. */
html.cvd{--cvd-side:220px;--cvd-head:76px;--cvd-ink:#1e1147;--cvd-purple:#6d28d9;--cvd-purple2:#7c3aed;--cvd-lav:#f1ecff;--cvd-line:#ebe5fb;--cvd-bg:#faf8ff;--cvd-gold:#f5b301}
html.cvd body{background:var(--cvd-bg)!important}

/* ---------- header ---------- */
html.cvd body>header{position:sticky!important;top:0!important;z-index:60!important;height:var(--cvd-head);min-height:0!important;padding:0!important;margin:0!important;background:#fff!important;color:var(--cvd-ink)!important;border-bottom:1px solid var(--cvd-line)!important;box-shadow:0 4px 16px rgba(76,29,149,.06)!important;text-align:left!important;display:block!important;background-image:none!important}
html.cvd body>header>p,html.cvd body>header>.teacher-mobile-account-name,html.cvd body>header>.classivo-account-name{display:none!important}
html.cvd body>header>.teacher-section-nav{display:none!important}
html.cvd body>header>.teacher-home-nav{position:relative!important;display:flex!important;align-items:center!important;height:100%!important;width:100%!important;max-width:none!important;margin:0!important;padding:0 16px 0 0!important;gap:14px!important;background:none!important;min-height:0!important}
html.cvd body>header .teacher-nav-left,html.cvd #classivo-home-back{display:none!important}
html.cvd body>header>.teacher-home-nav{justify-content:flex-start!important}
html.cvd body>header>.teacher-home-nav::before,html.cvd body>header>.teacher-home-nav::after{content:none!important;display:none!important}
html.cvd body>header .teacher-home-nav>h1{position:static!important;transform:none!important;order:0;flex:none;margin:0!important;padding:0 26px 0 22px!important;height:60px;display:flex!important;align-items:center;border-radius:0 32px 32px 0;background:linear-gradient(135deg,#3b0f8c 0%,#5b21b6 48%,#7c3aed 100%);box-shadow:0 6px 16px rgba(76,29,149,.28),inset 0 1px 0 rgba(255,255,255,.18);font-size:0!important;line-height:0!important;left:auto!important;top:auto!important}
html.cvd body>header .teacher-home-nav .classivo-logo-wrap{width:150px!important;max-width:none!important;display:block!important;margin:0!important}
html.cvd body>header .teacher-home-nav .classivo-logo-wrap:hover{transform:scale(1.03)}
#cvdLabel{display:flex;align-items:center;gap:14px;min-width:0;flex:0 1 auto;order:1}
#cvdLabel::before{content:"";width:1px;height:34px;background:#ddd5f5;flex:none}
#cvdLabel .cvd-chip{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:min(46vw,520px);padding:7px 18px;border-radius:14px;background:var(--cvd-lav);color:#4c1d95;font:800 22px/1.2 'Plus Jakarta Sans',system-ui,sans-serif;white-space:nowrap}
#cvdLabel .cvd-chip span{overflow:hidden;text-overflow:ellipsis}
#cvdLabel .cvd-chip svg{width:26px;height:26px;flex:none}
html.cvd body>header .auth-header-actions{flex:none!important;width:auto!important;min-width:0!important;max-width:none!important;left:auto!important;position:static!important;transform:none!important;margin-left:auto!important;order:3;display:flex!important;align-items:center!important;gap:12px!important;top:auto!important;right:auto!important}
html.cvd body>header #cvcInboxBtn,html.cvd body>header #phoneAuthMenuBtn{width:52px!important;height:46px!important;min-width:0!important;padding:0!important;display:grid!important;place-items:center;border-radius:14px!important;border:2px solid var(--cvd-purple)!important;background:#fff!important;color:#4c1d95!important;box-shadow:0 2px 0 #ddd3f7!important;position:relative}
html.cvd body>header #cvcInboxBtn svg,html.cvd body>header #phoneAuthMenuBtn svg{width:24px!important;height:24px!important;stroke:currentColor}
html.cvd body>header #cvcInboxBtn:hover,html.cvd body>header #phoneAuthMenuBtn:hover{background:var(--cvd-lav)!important}
html.cvd body>header #authUserPill{height:46px;display:inline-flex;align-items:center;padding:0 22px!important;border-radius:14px!important;border:2px solid var(--cvd-purple)!important;background:#fff!important;color:#2e1065!important;font:800 18px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.cvd body>header #authOpen,html.cvd body>header #authJoin{height:44px;padding:0 18px!important;border-radius:14px!important;font:800 16px/1 'Plus Jakarta Sans',system-ui,sans-serif!important}
html.cvd body>header #authOpen{border:2px solid var(--cvd-purple)!important;background:#fff!important;color:#4c1d95!important}
html.cvd body>header #authJoin{border:2px solid var(--cvd-purple)!important;background:var(--cvd-purple)!important;color:#fff!important}
html.cvd body>header #authLogout{display:none!important}
/* Resume Board / Resume PPT (shown only while one is paused) sit in the header */
html.cvd #cvBP.cvd-in-head{position:static!important;transform:none!important;left:auto!important;top:auto!important;width:auto!important;flex:none!important;order:2;display:flex;align-items:center;gap:10px;margin-left:auto;padding:0;background:none;border:0}
html.cvd #cvBP.cvd-in-head #cvBoardBtn,html.cvd #cvBP.cvd-in-head #cvPptBtn{display:none!important}
html.cvd #cvBP.cvd-in-head .cvbp-resume{height:44px;padding:0 16px;border-radius:14px;font-size:15px}
html.cvd #cvBP.cvd-in-head:not(:has(.cvbp-resume)){display:none}
html.cvd #cvBP.cvd-in-head:has(.cvbp-resume)~.auth-header-actions{margin-left:12px!important}

/* ---------- sidebar ---------- */
#cvdSide{display:none}
html.cvd #cvdSide{position:fixed;z-index:55;left:0;top:var(--cvd-head);bottom:0;width:var(--cvd-side);box-sizing:border-box;display:flex;flex-direction:column;gap:6px;padding:22px 12px 16px;background:#fff;border-right:1px solid var(--cvd-line);overflow-y:auto;font-family:'Plus Jakarta Sans',system-ui,sans-serif}
#cvdSide .cvd-item{display:flex;align-items:center;gap:14px;width:100%;min-height:58px;padding:10px 14px;box-sizing:border-box;border:0;border-radius:16px;background:none;color:var(--cvd-ink);font:600 19px/1.15 'Plus Jakarta Sans',system-ui,sans-serif;text-align:left;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .15s,color .15s}
#cvdSide .cvd-item svg{width:30px;height:30px;flex:none}
#cvdSide .cvd-item>span:first-of-type{white-space:nowrap}
#cvdSide .cvd-item:hover{background:#f7f4ff}
#cvdSide .cvd-item.on{background:var(--cvd-lav);color:#5b21b6;font-weight:800}
#cvdSide .cvd-item:focus-visible{outline:3px solid #a78bfa;outline-offset:1px}
#cvdSide .cvd-item .cvd-res{margin-left:auto;padding:2px 8px;border-radius:999px;background:#22c55e;color:#fff;font:800 11px/1.4 system-ui,sans-serif}
#cvdSide .cvd-sep{margin-top:auto;border-top:1px solid var(--cvd-line);padding-top:10px}
html.cvd.cvd-play #cvdSide{display:none}

/* ---------- page area ---------- */
html.cvd body>main,html.cvd body>#myLibrary,html.cvd body>footer{margin-left:var(--cvd-side)!important;box-sizing:border-box}
html.cvd.cvd-play body>main,html.cvd.cvd-play body>footer{margin-left:0!important}
html.cvd body>main{padding:24px 26px 18px!important;max-width:none!important;width:auto!important}
html.cvd body>#myLibrary{padding:24px 26px 18px!important;max-width:none!important;width:auto!important}
html.cvd body>footer{background:transparent!important}
html.cvd .panel{border-radius:22px}

/* ---------- Students ---------- */
html.cvd[data-cvd-page="students"]{
  --cvd-bg:#f7f7fe;
  --cvd-ink:#121036;
  --cvd-class-action:#4000e0;
  --cvd-class-line:#d4bcfa;
  --cvd-class-outline:linear-gradient(180deg,#fcfbff,#efebfd);
  --cvd-class-button:linear-gradient(180deg,#ac55fa,#8125f2 44%,#6209dc 78%,#4000bc);
  --cvd-toolbar-height:clamp(38px,3.3vw,53px);
}
html.cvd[data-cvd-page="students"] body>header #authUserPill{display:none!important}
html.cvd[data-cvd-page="students"] body>header :is(#cvcInboxBtn,#phoneAuthMenuBtn){
  color:var(--cvd-class-action)!important;border-color:#651cf4!important;
  background:var(--cvd-class-outline)!important;box-shadow:0 2px 0 #dfd4f8!important;
}
html.cvd[data-cvd-page="students"] #cvdLabel .cvd-chip{
  color:#200887;background:linear-gradient(135deg,#ecddff,#d9c6fa);
}
html.cvd[data-cvd-page="students"] #cvdSide .cvd-item.on{
  background:linear-gradient(135deg,#eddefc,#e3d8fa);color:var(--cvd-class-action);
}

/* Let the roster start directly below its toolbar, independent of the class tools. */
html.cvd #students:not(.hidden){
  display:grid!important;grid-template-columns:minmax(0,1fr) clamp(220px,18.7vw,296px)!important;
  grid-template-areas:"bar side" "page side"!important;grid-template-rows:auto 1fr;
  gap:clamp(14px,1.65vw,26px) clamp(12px,1.35vw,20px)!important;align-items:start;
}
html.cvd #students>.class-workspace-sidebar{
  grid-area:side!important;display:flex!important;flex-direction:column!important;
  gap:clamp(8px,.95vw,15px)!important;width:auto!important;position:static!important;
  margin:0!important;padding:0!important;align-self:start!important;height:auto!important;
}
html.cvd #students>.classivo-students-top-toolbar{
  grid-area:bar!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  align-self:start;justify-content:flex-start!important;min-width:0;gap:8px clamp(7px,.82vw,13px)!important;
  margin:0!important;padding:clamp(8px,1.25vw,20px) 0 0!important;
  background:none!important;border:0!important;box-shadow:none!important;
}
html.cvd #students>#studentsPage,html.cvd #students>#groupsPage{grid-area:page!important;margin:0!important;min-width:0}
html.cvd #students .groups-toggle-row{display:contents!important}
html.cvd #students :is(#cvStudentsBar,#cvGroupsBar):not([hidden]){display:contents!important}
/* Students | Groups — one joined control */
html.cvd #students .cvd-seg{
  order:1;flex:none;display:inline-flex;align-items:stretch;height:var(--cvd-toolbar-height);
  max-width:100%;padding:2px;margin:0;border:1px solid var(--cvd-class-line);border-radius:15px;
  background:var(--cvd-class-outline);box-shadow:0 2px 3px #29126a12;box-sizing:border-box;
}
html.cvd #students .cvd-seg>button{
  flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:100%!important;
  margin:0!important;padding:0 clamp(8px,1.18vw,19px)!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:clamp(5px,.58vw,9px)!important;
  border:0!important;border-radius:12px!important;background:transparent!important;color:var(--cvd-class-action)!important;
  font:700 clamp(14px,1.27vw,20px)/1 'Plus Jakarta Sans',system-ui,sans-serif!important;box-shadow:none!important;white-space:nowrap;
}
html.cvd #students .cvd-seg>button.active{
  background:var(--cvd-class-button)!important;color:#fff!important;
  box-shadow:inset 0 1px 2px #ffffff60,0 1px 3px #3a12923b!important;
}
html.cvd #students .cvd-seg>button:focus-visible{outline:2px solid #a78bfa;outline-offset:-3px}
html.cvd #students .cvd-seg>button>:is(img,svg){
  width:clamp(18px,1.84vw,29px)!important;height:clamp(18px,1.84vw,29px)!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;flex:none!important;
}
html.cvd #students .cvd-seg #showGroupsView:not(.active) svg{color:#8a2cf2}
/* Students page tools: Attendance | Edit / Timer | Spin Wheel (2 x 2) */
html.cvd #students #classivoClassTools{display:grid!important;grid-template-columns:1fr 1fr;gap:6px 8px;width:max-content;max-width:100%}
html.cvd #students #classivoClassTools>#classivoSelectionTools:not([hidden]){grid-column:1/-1}
html.cvd #students #classivoClassTools>button{height:34px!important;align-self:stretch}
html.cvd #students #openSpinWheel{justify-self:stretch;background:#f1ebff!important;color:#5b21b6!important;border:1px solid #d6c8fb!important;box-shadow:none!important;font-size:11px!important;gap:5px!important}
html.cvd #students #openSpinWheel:hover{background:#e6dcff!important;transform:translateY(-1px)}
html.cvd #students #openSpinWheel:focus-visible{outline:2px solid #a78bfa;outline-offset:2px}
html.cvd #students #openSpinWheel>span{font-size:11px}
html.cvd #students :is(#cvStudentsBar,#cvGroupsBar) .cv-count{
  order:2;padding-left:clamp(7px,.8vw,12px);border-left:1px solid #dcd3f4;white-space:nowrap;
  color:var(--cvd-ink)!important;font:800 clamp(16px,1.6vw,25px)/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;
}
html.cvd #students :is(#addStudentForm,#cvGroupsBar .group-create){
  order:3;flex:1 1 158px!important;min-width:138px;max-width:288px;width:auto!important;
  height:var(--cvd-toolbar-height);margin:0!important;border:1px solid var(--cvd-class-line);background:#fbfaff;
}
html.cvd #students :is(#addStudentForm,#cvGroupsBar .group-create):focus-within{border-color:#8d4cf2}
html.cvd #students :is(#addStudent,#createGroup){
  width:clamp(28px,2.65vw,40px)!important;height:clamp(28px,2.65vw,40px)!important;min-width:0!important;
  margin-right:5px!important;border-radius:50%!important;background:var(--cvd-class-button)!important;
  box-shadow:inset 0 1px 2px #ffffff65,0 2px 0 #4700b8,0 3px 5px #4000bc2b!important;
}
html.cvd #students :is(#studentName,#groupNameInput){
  color:#34285d;font:600 clamp(14px,1.18vw,19px)/1 'Plus Jakarta Sans',system-ui,sans-serif;
}
html.cvd #students :is(#studentName,#groupNameInput)::placeholder{color:#68548e;opacity:1}
html.cvd #students #cvMoreSkillsBtn{
  order:4;height:var(--cvd-toolbar-height);margin:0!important;padding:0 clamp(9px,1.3vw,22px)!important;
  border-radius:14px!important;border:1px solid var(--cvd-class-line)!important;
  background:var(--cvd-class-outline)!important;color:#5500d5!important;
  font:800 clamp(14px,1.22vw,19px)/1 'Plus Jakarta Sans',system-ui,sans-serif!important;
  box-shadow:0 2px 3px #29126a12!important;white-space:nowrap;
}
html.cvd #students #cvMoreSkillsBtn svg{width:clamp(20px,1.8vw,28px);height:clamp(20px,1.8vw,28px);flex:none}
html.cvd #students #cvNavTools{min-width:0;margin:0!important;padding:0!important}
html.cvd #students #cvNavTools #classivoClassTools{
  width:100%;display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:5px 7px!important;
}
html.cvd #students #cvNavTools #classivoClassTools>:is(#classivoAttendanceOpen,#classivoEditStudents,#classivoTimerOpen){
  width:100%!important;height:clamp(29px,2.45vw,39px)!important;padding:0 6px!important;border-radius:999px!important;
  gap:clamp(4px,.5vw,8px);border:1px solid var(--cvd-class-line)!important;
  background:var(--cvd-class-outline)!important;color:var(--cvd-class-action)!important;
  font:700 clamp(12px,1.16vw,18px)/1 'Plus Jakarta Sans',system-ui,sans-serif!important;
  box-shadow:0 1px 2px #32117e1c!important;white-space:nowrap;
}
html.cvd #students #cvNavTools #classivoClassTools>button>svg{
  width:clamp(14px,1.45vw,23px);height:clamp(14px,1.45vw,23px);max-width:none;max-height:none;flex:none;
}
html.cvd #students #cvNavTools #classivoClassTools>button:hover,html.cvd #students #cvMoreSkillsBtn:hover{background:#eae2fd!important}
html.cvd #students:has(#groupsPage.active) #classivoEditStudents{display:none!important}
html.cvd #students #cvNavTools #classivoSelectionTools:not([hidden]){
  grid-column:1/-1;justify-content:flex-start;max-width:100%;
}
/* Delete Students, Save and Cancel stay together on one row */
html.cvd #students #cvNavTools #classivoSelectionTools:not([hidden]){column-gap:6px!important}
html.cvd #students #cvNavTools #classivoSelectionTools :is(#classivoDeleteSelected,#classivoSaveEdit,#classivoCancelEdit){padding:6px 8px!important;font-size:11.5px!important}
html.cvd #students #cvNavTools #classivoSelectionTools #classivoDeleteSelected{order:1}
html.cvd #students #cvNavTools #classivoSelectionTools #classivoSaveEdit{order:2}
html.cvd #students #cvNavTools #classivoSelectionTools #classivoCancelEdit{order:3}

/* Shared roster cards: full-width art, name and stars, then point buttons. */
html.cvd #students :is(#studentCards,#groupsGrid){gap:8px!important}
html.cvd #students :is(#studentCards,#groupsGrid)>:is(.student,.cv-gcard){
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,max-content) auto minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto;
  grid-template-areas:
    "art art art art"
    ". name star ."
    "members members members members"
    "pm pm pm pm"!important;
  align-items:center!important;justify-items:stretch;gap:0!important;padding:0!important;
  border:1px solid #e1d2fa!important;border-radius:clamp(12px,1.2vw,19px)!important;
  background:#fff!important;box-shadow:0 2px 4px #36207215!important;overflow:hidden!important;text-align:center;
}
html.cvd #students :is(#studentCards,#groupsGrid)>:is(.student,.cv-gcard):hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(76,29,149,.13)!important}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar{grid-area:art!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;border-radius:0!important;aspect-ratio:1/1.08;overflow:hidden;background:var(--cv-card,#f3eeff)!important;line-height:0}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar:hover{transform:none}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar:hover .avatar{transform:scale(1.03)}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar .avatar{--cv-av:100%;width:100%!important;height:100%!important;max-width:none!important;min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;display:grid!important;place-items:center;font:900 clamp(44px,5.6vw,88px)/1 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#6d28d9!important;transition:transform .2s;overflow:hidden}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar .avatar img,html.cvd #students :is(#studentCards,#groupsGrid) .cv-avatar .avatar .avatar-img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;display:block}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-starbox{display:contents!important}
html.cvd #students :is(#studentCards,#groupsGrid) .student-caption{grid-area:name!important;margin:4px 0 0!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 clamp(15px,1.27vw,21px)/1.25 'Plus Jakarta Sans',system-ui,sans-serif!important;color:var(--cvd-ink)!important;padding:0 0 0 6px}
html.cvd #students :is(#studentCards,#groupsGrid) .student-caption .student-name{overflow:hidden;text-overflow:ellipsis}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-stars{grid-area:star!important;position:relative!important;top:auto!important;right:auto!important;margin:4px 5px 0!important;padding:2px 7px 2px 5px!important;border-radius:999px!important;background:linear-gradient(180deg,#fff1b5,#ffda62)!important;border:1px solid #f5c653!important;box-shadow:inset 0 1px 0 #fff8db!important;font:800 15px/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;justify-self:start}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-stars .cv-star-icon{width:15px!important;height:15px!important}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-stars .pt-num{font-size:15px!important;color:#3b2a05!important}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm{grid-area:pm!important;position:static!important;display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center;gap:clamp(21px,1.85vw,30px)!important;margin:0!important;padding:6px 0 8px!important;opacity:1!important;visibility:visible!important;transform:none!important}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm-minus{order:-1}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm>button,html.cvd #students .current-class-panel .point-nudge{
  position:relative;width:clamp(22px,1.72vw,28px)!important;height:clamp(22px,1.59vw,26px)!important;
  min-width:0!important;min-height:0!important;padding:0!important;display:grid!important;place-items:center;
  border-radius:7px!important;font:900 clamp(16px,1.22vw,19px)/1 system-ui,sans-serif!important;
  box-shadow:inset 0 1px 1px #ffffffb3,inset 0 -2px 0 #2e10651f,0 1px 2px #32117e26!important;
  cursor:pointer;transition:transform .1s,filter .15s;
}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm>button::after,html.cvd #students .current-class-panel .point-nudge::after{content:"";position:absolute;inset:-5px -8px}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm-minus,html.cvd #students .current-class-panel .point-nudge.minus{
  background:linear-gradient(180deg,#ffe7eb,#f5b1bc)!important;color:#8c1831!important;border:1px solid #e8a0b0!important;
}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm-plus,html.cvd #students .current-class-panel .point-nudge.plus{
  background:var(--cvd-class-button)!important;color:#fff!important;border:1px solid #8546e3!important;
}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm>button:active,html.cvd #students .current-class-panel .point-nudge:active{transform:scale(.9)}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm>button:hover,html.cvd #students .current-class-panel .point-nudge:hover{filter:brightness(1.05)}
html.cvd #students :is(#studentCards,#groupsGrid) .cv-reward{top:8px!important;left:8px!important;width:clamp(25px,2.3vw,36px)!important;height:clamp(25px,2.3vw,36px)!important;min-width:0!important;border:1px solid #ce8cff!important;background:var(--cvd-class-button)!important}

/* Size group initials to fit the card. */
html.cvd #students #groupsGrid>.cv-gcard{container-type:inline-size}
html.cvd #students #groupsGrid .cv-avatar .avatar{font-size:min(46cqw,clamp(44px,5.6vw,88px))!important}
/* The group name opens its member list. The count occupies the optional row. */
html.cvd #students #groupsGrid .student-name{
  display:block;max-width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:4px;
  background:none;color:inherit;font:inherit;box-shadow:none;white-space:nowrap;
}
html.cvd #students #groupsGrid .student-name:hover{text-decoration:underline;text-underline-offset:2px}
html.cvd #students #groupsGrid .student-name:focus-visible{outline:2px solid #8d4cf2;outline-offset:-2px}
html.cvd #students #groupsGrid .cv-gcount{
  grid-area:members;margin:2px 4px 0;color:#665784;
  font:600 12px/1.25 'Plus Jakarta Sans',system-ui,sans-serif;
}

/* right column */
html.cvd #students .cvd-class-panels{display:flex;flex-direction:column;gap:8px;min-width:0}
html.cvd #students #cvdClassTeacher{
  align-self:flex-end;max-width:100%;min-width:min(53%,158px);box-sizing:border-box;padding:7px 16px;text-align:center;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:14px;
  background:var(--cvd-class-button);color:#fff;box-shadow:inset 0 1px 1px #ffffff65;
  font:600 clamp(15px,1.31vw,21px)/1.2 'Plus Jakarta Sans',system-ui,sans-serif;
}
html.cvd #students #cvdClassTeacher:empty{display:none}
html.cvd #students .cvd-class-panels>.panel{margin:0!important;border-radius:clamp(13px,1.2vw,19px)!important;border:1px solid #ded4f6!important;background:#fff!important;box-shadow:0 2px 4px #3620720d!important}
html.cvd #students .cvd-class-panels>.current-class-panel{height:auto!important;min-height:0!important;flex:none!important;padding:5px 10px 8px!important;border-left:4px solid #6513f3!important;display:block!important}
html.cvd #students .current-class-panel>.row{display:block!important;min-height:0!important;height:auto!important}
html.cvd #students #studentsClassDetails{display:grid!important;grid-template-columns:1fr 1fr;grid-template-areas:"art art" "txt txt" "minus plus";justify-items:center;align-items:center;gap:2px 0!important;width:100%;text-align:center;min-height:0!important;height:auto!important}
html.cvd #students #studentsClassDetails .class-avatar-controls{display:contents!important}
html.cvd #students #studentsClassAvatar{
  grid-area:art;width:min(172px,100%)!important;height:clamp(84px,8.95vw,142px)!important;
  flex:none!important;border-radius:0!important;background:transparent!important;border:0!important;
  box-shadow:none!important;padding:0!important;margin:0!important;display:flex;
  align-items:center;justify-content:center;font-size:64px;
}
html.cvd #students #studentsClassAvatar img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;background:none!important;mix-blend-mode:multiply}
html.cvd #students #studentsClassDetails>div:last-child{grid-area:txt;min-width:0;max-width:100%}
html.cvd #students #studentsClassDetails .small{display:block;color:#665784!important;font-size:clamp(12px,1.07vw,16px);line-height:1.15}
html.cvd #students #studentsClassName{margin:0 0 3px!important;font:800 clamp(22px,2.03vw,32px)/1.08 'Plus Jakarta Sans',system-ui,sans-serif!important;color:var(--cvd-ink)!important;overflow-wrap:anywhere}
html.cvd #students .current-class-panel .point-nudge.minus{grid-area:minus;justify-self:end;margin-right:14px!important}
html.cvd #students .current-class-panel .point-nudge.plus{grid-area:plus;justify-self:start;margin-left:14px!important}
html.cvd #students .cvd-class-panels>.today-hero-panel{
  height:auto!important;min-height:0!important;flex:none!important;padding:8px 10px clamp(16px,1.8vw,29px)!important;
  justify-content:flex-start!important;background:radial-gradient(ellipse at center,#fff7fc,#f2e4fd)!important;border-color:#dfc8f8!important;
}
html.cvd #students .today-hero-panel::before,html.cvd #students .today-hero-panel::after{
  content:"";position:absolute;pointer-events:none;width:20px;height:20px;background:#ffc94e;
  clip-path:polygon(50% 0,65% 32%,100% 37%,75% 62%,80% 100%,50% 83%,20% 100%,25% 62%,0 37%,35% 32%);
}
html.cvd #students .today-hero-panel::before{left:11px;top:40px;transform:rotate(-12deg)}
html.cvd #students .today-hero-panel::after{right:11px;bottom:12px;transform:rotate(12deg)}
html.cvd #students .today-hero-panel h3{margin:0 25px 7px!important;color:#5800d8!important;font:800 clamp(18px,1.57vw,25px)/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;text-align:center}
html.cvd #students .today-hero-panel #todayHero{flex:none!important;min-height:0!important;justify-content:flex-start!important}
html.cvd #students .today-hero-panel .hero-sound{top:11px!important;right:10px!important;width:26px!important;height:26px!important}
html.cvd #students .today-hero-panel .hero-start{
  background:var(--cvd-class-button)!important;color:#fff!important;border:0!important;border-radius:999px!important;
  box-shadow:inset 0 1px 2px #ffffff70,0 3px 0 #4c0bbb,0 5px 12px #7213cc24!important;
  font:800 clamp(18px,1.78vw,28px)/1 'Plus Jakarta Sans',system-ui,sans-serif!important;padding:9px 13px!important;
  width:min(210px,calc(100% - 26px))!important;min-height:clamp(42px,4vw,64px)!important;margin:0 auto!important;text-shadow:none;
}
html.cvd #students .today-hero-panel .hero-sound{background:#fff!important;border-radius:50%!important}
html.cvd #students #cvcCoPanel .cvc-co-h b{color:#5800d8;font-size:clamp(16px,1.35vw,22px)}
html.cvd #students #cvcCoPanel .cvc-btn{background:var(--cvd-class-button);border-color:#8b39ec;color:#fff}
html.cvd #students #cvcCoPanel .cvc-btn.ghost{
  background:var(--cvd-class-outline);border-color:var(--cvd-class-line);color:var(--cvd-class-action);
}

@media (min-width:1181px){
  html.cvd{--cvd-side:clamp(159px,11.5vw,188px)}
  html.cvd{--cvd-head:clamp(64px,5.8vw,92px)}
  html.cvd body>header .teacher-home-nav>h1{height:clamp(50px,4.9vw,78px);border-radius:40px}
  html.cvd body>header .teacher-home-nav .classivo-logo-wrap{width:clamp(126px,10.7vw,170px)!important}
  html.cvd body>header :is(#cvcInboxBtn,#phoneAuthMenuBtn){width:clamp(44px,4.45vw,72px)!important;height:clamp(40px,3.4vw,54px)!important}
  html.cvd #cvdSide{
    gap:clamp(5px,1.3vh,12px);padding:clamp(10px,2.1vh,21px) 6px 14px;scrollbar-width:thin;
  }
  html.cvd #cvdSide .cvd-item{
    gap:clamp(6px,.52vw,8px);min-height:clamp(40px,6.65vh,58px);padding:6px 8px;
    font-size:clamp(14px,1.18vw,19px);
  }
  html.cvd #cvdSide .cvd-item svg{width:clamp(22px,1.86vw,30px);height:clamp(22px,1.86vw,30px)}
  html.cvd[data-cvd-page="students"] body>main{padding:clamp(13px,1.28vw,20px) clamp(14px,1.15vw,18px) 18px!important}
  html.cvd #cvdLabel{margin-left:clamp(10px,3.6vw,56px);gap:22px}
}

/* ---------- Classes ---------- */
html.cvd[data-cvd-page="classes"] body>main{padding:clamp(12px,1.28vw,20px) clamp(12px,1.15vw,18px) 16px!important}

html.cvd #dashboard{--cvd-classes-control:38px;--cvd-class-thumb:clamp(88px,8.4vw,120px)}
html.cvd #dashboard>#cvdTeacherRow{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0 0 14px}
html.cvd #cvdTeacherRow .teacher-profile{flex:none!important;width:auto!important;display:flex!important;align-items:center;gap:0;margin:0!important}
html.cvd #cvdTeacherRow #teacherDisplay,html.cvd #cvdTeacherRow .teacher-profile>div:has(>#teacherDisplay){display:none!important}
html.cvd #cvdTeacherRow #teacherAvatarButton{
  width:56px!important;height:56px!important;min-width:0!important;border-radius:50%!important;
  border:3px solid #fff!important;box-shadow:0 3px 10px rgba(76,29,149,.16)!important;overflow:hidden;
}
html.cvd #cvdTeacherRow #teacherAvatarView{font-size:22px}
html.cvd #cvdTeacherRow .cv-tavatar-cam{width:21px!important;height:21px!important;min-width:0!important;min-height:0!important}
html.cvd #cvdTeacherRow .cv-tavatar-cam svg{width:11px!important;height:11px!important}
html.cvd #cvdTeacherRow #cvTeacherBar{display:flex;width:auto;min-width:0;justify-content:flex-start;margin:0!important;padding:0!important}
html.cvd #cvdTeacherRow #cvTeacherBar[hidden]{display:none}
html.cvd #cvdTeacherRow .teacher-edit{display:flex!important;align-items:center;gap:8px!important}
html.cvd #cvdTeacherRow .teacher-edit label{font:800 14px/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;color:var(--cvd-ink)!important}
html.cvd #cvdTeacherRow #teacherNameInput{
  width:190px!important;height:var(--cvd-classes-control)!important;font-size:14px!important;
  border-radius:10px!important;border:1px solid var(--cvd-line)!important;padding:0 10px!important;
}
html.cvd #cvdTeacherRow #saveTeacherName{
  height:var(--cvd-classes-control)!important;padding:0 14px!important;font-size:14px!important;
  border-radius:10px!important;background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;border:0!important;
}
html.cvd #dashboard .cv-classes-panel{
  display:grid!important;grid-template-columns:minmax(0,1fr) clamp(210px,18.6vw,258px);
  grid-template-areas:"head arr" "cards arr";gap:12px 16px;align-items:start;padding:0!important;
  margin:0 0 14px!important;background:none!important;border:0!important;box-shadow:none!important;
}
html.cvd #dashboard .cv-classes-panel>.section-head{
  grid-area:head;display:flex!important;align-items:center!important;flex-direction:row;flex-wrap:wrap;
  gap:8px 12px!important;margin:0!important;
}
html.cvd #dashboard .cv-classes-panel .cv-head-left{flex:1 1 auto;min-width:0}
html.cvd #dashboard .cv-classes-panel .cv-head-left>*:not(.cvd-h){display:none!important}
html.cvd #dashboard .cvd-h{
  display:block!important;margin:0!important;font:800 clamp(23px,2.15vw,34px)/1.1 'Plus Jakarta Sans',system-ui,sans-serif;
  color:var(--cvd-ink);letter-spacing:-.35px;
}
html.cvd #dashboard .cv-classes-panel .cv-head-right{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap;margin:0!important}
html.cvd #dashboard #cvAddClassForm{
  width:clamp(158px,17vw,216px);min-width:0;height:var(--cvd-classes-control);
  border-radius:10px!important;border:1px solid var(--cvd-line)!important;background:#fff!important;
}
html.cvd #dashboard #cvAddClassBtn{
  width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;
  margin:0 5px 0 0!important;border-radius:8px!important;
}
html.cvd #dashboard #cvAddClassBtn::before{width:14px;height:14px}
html.cvd #dashboard #cvAddClassName{width:0;font-size:14px}
html.cvd #dashboard #removeClass{
  height:var(--cvd-classes-control);padding:0 12px!important;border-radius:10px!important;
  background:#eef0f6!important;color:var(--cvd-ink)!important;
  font:800 14px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;border:0!important;
}
html.cvd #dashboard .cv-classes-panel>.classes-body{display:contents!important}
html.cvd #dashboard .classes-actions{grid-area:arr;margin:0!important;width:auto!important;max-width:none!important;position:static!important}
html.cvd #dashboard #classOrderBox{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  border:1px solid #e2d8fb!important;border-radius:14px!important;background:#fbf9ff!important;
  box-shadow:0 3px 10px rgba(76,29,149,.06)!important;
}
html.cvd #dashboard #classOrderBox>summary{
  padding:9px 11px!important;font:800 16px/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;
  color:#5b21b6!important;border-radius:13px;background:#f4efff;
}
html.cvd #dashboard #classOrderBox[open]>summary{border-radius:13px 13px 0 0}
html.cvd #dashboard #classOrderList{
  display:flex;flex-direction:column;gap:5px;max-height:min(260px,48vh);
  padding:7px 8px 0!important;scrollbar-width:thin;
}
html.cvd #dashboard .class-order-row{
  display:flex!important;align-items:center;gap:5px;padding:4px 6px!important;border-radius:10px!important;
  border:1px solid var(--cvd-line)!important;background:#f8f4ff!important;margin:0!important;
}
html.cvd #dashboard .class-order-row button{
  width:29px!important;height:29px!important;min-width:0!important;min-height:29px!important;
  flex:none;border-radius:8px!important;
}
html.cvd #dashboard .class-order-row button.co-vis{font-size:14px}
html.cvd #dashboard #classOrderBox .class-order-note{margin:0;padding:7px 9px 9px}
html.cvd #dashboard #classCards{
  grid-area:cards;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(136px,38vw,164px)),1fr))!important;
  gap:12px!important;margin:0!important;
}
html.cvd #dashboard #classCards .class-card{
  position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;
  max-width:224px;min-width:0;min-height:0!important;padding:10px 8px 11px!important;border-radius:16px!important;
  border-width:1px!important;box-shadow:0 2px 7px rgba(76,29,149,.07)!important;
  cursor:pointer;transition:transform .15s,box-shadow .15s;
}
html.cvd #dashboard #classCards .class-card.skeleton{min-height:calc(var(--cvd-class-thumb) + 56px)!important}
html.cvd #dashboard #classCards .class-card:hover{transform:translateY(-2px);box-shadow:0 5px 14px rgba(76,29,149,.14)!important}
html.cvd #dashboard #classCards .class-card.active{border:2px solid #8b5cf6!important;background:#eee6ff;box-shadow:0 0 0 2px #efe7ff,0 4px 12px rgba(124,58,237,.16)!important}
html.cvd #dashboard #classCards .class-card :is(.class-avatar,.class-avatar-button){
  width:min(100%,142px)!important;height:var(--cvd-class-thumb)!important;margin:0 auto 5px!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;display:flex;align-items:center;justify-content:center;font-size:50px;flex:none;
}
html.cvd #dashboard #classCards .class-card [data-class-avatar]{pointer-events:none}
html.cvd :is(#classCards,#groupsGrid) .cvd-pic{
  position:absolute;top:7px;right:7px;z-index:4;width:28px;height:28px;min-width:0;padding:0;
  display:grid;place-items:center;border-radius:50%;border:1px solid #e2d8fb;background:#fff;color:#6d28d9;
  box-shadow:0 2px 5px rgba(76,29,149,.12);cursor:pointer;opacity:.9;transition:opacity .15s,transform .15s;
}
html.cvd :is(#classCards,#groupsGrid) .cvd-pic svg{width:14px;height:14px}
html.cvd :is(#classCards,#groupsGrid) :is(.class-card,.cv-gcard):hover .cvd-pic,
html.cvd :is(#classCards,#groupsGrid) .cvd-pic:focus-visible{opacity:1;transform:scale(1.06)}
html.cvd #dashboard #classCards .class-card .class-avatar img{
  width:auto!important;max-width:100%;height:100%!important;object-fit:contain!important;mix-blend-mode:multiply;
  mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),
             linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent);
  mask-composite:intersect;
}
html.cvd #dashboard #classCards :is(.class-card-name,.class-card h3){
  max-width:100%;padding:0;font:800 clamp(16px,1.34vw,20px)/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;
  color:var(--cvd-ink)!important;margin:2px 0 3px!important;overflow-wrap:anywhere;
}
html.cvd #dashboard #classCards :is(.class-card-meta,.class-card .small){
  max-width:100%;margin:0;font:600 12px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;
  color:#5b5675!important;overflow-wrap:anywhere;
}
html.cvd #dashboard #classCards .class-card.active .class-card-meta{color:#4c3d86!important}
html.cvd #dashboard .class-summary-grid{grid-template-columns:repeat(2,minmax(0,150px)) minmax(0,1fr);gap:10px;margin-top:0}
html.cvd #dashboard :is(.class-count-stat,.classes-calendar){padding:7px 9px;border-radius:11px}
html.cvd #dashboard .class-count-stat .muted{font-size:12px}
html.cvd #dashboard .class-count-stat b{font-size:20px}
html.cvd #dashboard .classes-calendar{width:176px}
html.cvd #dashboard :is(#classesMonth,#classesDate){font-size:14px}
html.cvd #dashboard #classesClock{font-size:16px}
html.cvd[data-cvd-page="classes"] #cvt-help{padding:7px 10px;font-size:12px}
#rosterNameDialog .class-modal-actions{flex-wrap:wrap}
#rosterNamePicture{margin-right:auto}

/* ---------- Games (lesson picker only) ---------- */
html.cvd #games #lessonPanel{border-radius:26px!important;border:1px solid var(--cvd-line)!important;background:#fff!important;box-shadow:0 8px 24px rgba(76,29,149,.06)!important;padding:30px 28px!important}
html.cvd #games #lessonPanel>.row h2{font:900 34px/1.15 'Plus Jakarta Sans',system-ui,sans-serif!important;color:var(--cvd-ink)!important}
html.cvd #games #lessonGrid{display:grid!important;grid-template-columns:repeat(var(--cvd-gcols,5),minmax(0,1fr))!important;gap:18px!important}
html.cvd #games #lessonGrid .lesson-flashcard{display:flex!important;flex-direction:column;align-items:stretch;gap:12px;min-height:0!important;height:auto!important;padding:14px 14px 18px!important;border-radius:22px!important;border:1px solid rgba(120,90,200,.12)!important;background:color-mix(in srgb,var(--lesson-color,#f3eeff) 55%,#fff)!important;box-shadow:0 6px 16px rgba(76,29,149,.07)!important;transform:none}
html.cvd #games #lessonGrid .lesson-flashcard:hover{transform:translateY(-3px)!important;box-shadow:0 12px 24px rgba(76,29,149,.13)!important}
html.cvd #games #lessonGrid .lesson-flashcard .lesson-picture{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:16px!important;overflow:hidden;background:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.08)!important;margin:0!important}
html.cvd #games #lessonGrid .lesson-flashcard .lesson-picture img{width:100%!important;height:100%!important;object-fit:cover!important}
html.cvd #games #lessonGrid .lesson-flashcard strong{font:800 18px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;color:var(--cvd-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center}
html.cvd #games #lessonGrid .lesson-flashcard>.small{display:none!important}
html.cvd body:has(#games:not(.hidden)) #cvt-help{bottom:22px}

/* ---------- My Library ---------- */
html.cvd #myLibrary>.panel{padding:24px 28px 28px!important;margin:0!important;border-radius:26px!important;border:1px solid var(--cvd-line)!important;background:#fff!important;box-shadow:0 8px 24px rgba(76,29,149,.06)!important}
html.cvd #myLibrary .lf-head{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px}
html.cvd #myLibrary.lf-in-folder .lf-back{display:none!important}
html.cvd #myLibrary .lf-crumbs{order:-1;flex:1 0 100%;margin:0 0 4px!important;font-size:20px!important;color:var(--cvd-ink)!important}
html.cvd #myLibrary .lf-crumbs button{font-size:20px!important;color:#5b21b6!important}
html.cvd #myLibrary .lf-crumbs b{color:var(--cvd-ink)!important}
html.cvd #myLibrary .lf-tools{display:flex!important;flex-wrap:wrap;gap:10px;margin-left:auto}
html.cvd #myLibrary .lf-tools .lf-tool{height:46px;padding:0 16px!important;border-radius:14px!important;font:800 17px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;border:0!important;background:#f1ecff!important;color:#2e1065!important;box-shadow:none!important}
html.cvd #myLibrary .lf-tools .lf-tool-lesson{background:linear-gradient(135deg,#4f2bd6,#6d28d9)!important;color:#fff!important}
html.cvd #myLibrary .lf-tools .lf-tool-folder{background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important}
html.cvd #myLibrary .lf-tools .lf-tool-del{background:#fff!important;color:#dc2626!important;border:2px solid #f87171!important}
html.cvd #myLibrary .lf-title h3{font:900 36px/1.15 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#4c1d95!important}
/* inside a folder: path, then folder name + tools, then counts + Adjust, then the lessons */
html.cvd #myLibrary.lf-in-folder>.panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;row-gap:0;align-items:center}
html.cvd #myLibrary.lf-in-folder .lf-crumbs{padding-bottom:12px}
html.cvd #myLibrary.lf-in-folder .lf-title>h3,html.cvd #myLibrary.lf-in-folder .lf-head{margin-bottom:16px!important}
html.cvd #myLibrary.lf-in-folder .lf-grid{margin-top:16px}
html.cvd #myLibrary.lf-in-folder>.panel>*,html.cvd #myLibrary.lf-in-folder #libraryContent>*,html.cvd #myLibrary.lf-in-folder #lfBar>*{grid-column:1/-1;min-width:0}
html.cvd #myLibrary.lf-in-folder #libraryContent,html.cvd #myLibrary.lf-in-folder #lfBar,html.cvd #myLibrary.lf-in-folder .lf-title{display:contents!important}
html.cvd #myLibrary.lf-in-folder>.panel>p:not([id]),html.cvd #myLibrary.lf-in-folder .library-head,html.cvd #myLibrary.lf-in-folder .library-summary>h2{display:none!important}
html.cvd #myLibrary.lf-in-folder .lf-crumbs{grid-row:1;grid-column:1/-1;margin:0!important}
html.cvd #myLibrary.lf-in-folder .lf-title>h3{grid-row:2;grid-column:1;margin:0!important;display:flex;align-items:center;gap:12px;min-width:0;width:auto!important;overflow:hidden;white-space:nowrap;position:relative;z-index:0}
html.cvd #myLibrary.lf-in-folder .lf-title>h3 .lf-icon{flex:none}
html.cvd #myLibrary.lf-in-folder .lf-head{position:relative;z-index:1;min-width:0}
html.cvd #myLibrary.lf-in-folder .lf-head{grid-row:2;grid-column:2;justify-content:flex-end;margin:0!important}
html.cvd #myLibrary.lf-in-folder .library-summary{grid-row:3;grid-column:1;display:flex!important;align-items:center;gap:18px;flex-wrap:wrap;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.cvd #myLibrary.lf-in-folder .lf-title>.lf-sort{grid-row:3;grid-column:2;justify-self:end;margin:0!important}
html.cvd #myLibrary.lf-in-folder .lf-grid{grid-row:4}
html.cvd #myLibrary.lf-in-folder #libraryNotices,html.cvd #myLibrary.lf-in-folder #libraryStatus{margin:0!important}
html.cvd #myLibrary.lf-in-folder #libraryNotices{grid-row:6}
html.cvd #myLibrary.lf-in-folder #libraryStatus{grid-row:7}
html.cvd #myLibrary.lf-in-folder #librarySignedOut{grid-row:8}
html.cvd #myLibrary.lf-in-folder #cvcSharedWithMe{grid-row:9}
html.cvd #myLibrary.lf-in-folder #libraryContent>.library-section:not(#cvcSharedWithMe):nth-last-child(2){grid-row:10;margin-top:22px}
html.cvd #myLibrary.lf-in-folder #libraryContent>.library-section:not(#cvcSharedWithMe):last-child{grid-row:11}
html.cvd #myLibrary.lf-in-folder #libraryStatus:empty,html.cvd #myLibrary.lf-in-folder #libraryNotices:empty{display:none!important}
html.cvd #myLibrary.lf-in-folder #libraryOwn{grid-row:5;border-top:1px solid var(--cvd-line);padding-top:18px;margin-top:16px}
html.cvd #myLibrary .library-summary{color:#3f3a5a}
html.cvd #myLibrary .library-summary .library-totals{display:flex;gap:18px;font-size:17px}
html.cvd #myLibrary .library-summary .library-favorites{display:flex;align-items:center;gap:10px;font-size:17px}
html.cvd #myLibrary .library-summary .library-favorites>span{color:#4c1d95;text-decoration:underline;text-underline-offset:3px;font-weight:700}
html.cvd #myLibrary .library-summary #manageLibraryFavorites{height:36px;padding:0 14px!important;border-radius:10px!important;background:#f1ecff!important;color:#2e1065!important;border:0!important;font-weight:800}
html.cvd #myLibrary .lf-sort .lf-adj{height:42px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-radius:12px;background:#f1ecff;color:#2e1065;font-weight:800}
html.cvd #myLibrary .lf-sort select{height:44px;border-radius:12px;border:2px solid #e2d8fb;font-weight:800;padding:0 12px;min-width:150px}
/* lesson cards: View, Edit (and Publish for drafts) visible; the rest in the ⋯ menu */
html.cvd #myLibrary .library-card{overflow:visible!important;position:relative;border-radius:18px!important;border:1px solid var(--cvd-line)!important;box-shadow:0 4px 12px rgba(76,29,149,.06)!important}
html.cvd #myLibrary .library-card h3{color:#4c1d95!important}
html.cvd #myLibrary .library-card .library-actions{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:5px!important;position:relative}
html.cvd #myLibrary .library-card .library-actions>button,html.cvd #myLibrary .library-card .library-actions>.cvd-more>button.cvd-dots{height:34px;min-height:0!important;min-width:0!important;padding:0 10px!important;border-radius:10px!important;font:800 14px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;flex:0 0 auto}
html.cvd #myLibrary .library-card .library-actions>button[data-library-view],html.cvd #myLibrary .library-card .library-actions>button[data-library-edit]{background:linear-gradient(135deg,#4f2bd6,#6d28d9)!important;color:#fff!important;border:0!important}
html.cvd #myLibrary .library-card .library-actions>button[data-library-publish]{order:5;flex:1 1 100%!important;background:#16a34a!important;color:#fff!important;border:0!important}
html.cvd .cvd-more{position:relative;margin-left:auto}
html.cvd .cvd-more .cvd-dots{background:#f1ecff!important;color:#4c1d95!important;border:0!important;letter-spacing:0;font-size:18px!important;padding:0 8px!important}
html.cvd .cvd-more .cvd-dots[aria-expanded=true]{background:#e4d9ff!important}
html.cvd .cvd-menu.up{top:auto;bottom:calc(100% + 6px)}
html.cvd .cvd-menu{position:absolute;z-index:40;right:0;top:calc(100% + 6px);min-width:170px;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:16px;background:#fff;border:1.5px solid #e2d8fb;box-shadow:0 16px 34px rgba(46,16,101,.2)}
html.cvd .cvd-menu[hidden]{display:none}
html.cvd .cvd-menu button,html.cvd .cvd-menu .lf-move>button{display:flex!important;align-items:center;gap:8px;width:100%!important;height:auto!important;min-height:40px!important;padding:8px 12px!important;border-radius:10px!important;border:0!important;background:none!important;color:var(--cvd-ink)!important;font:700 15px/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;text-align:left;box-shadow:none!important;white-space:nowrap}
html.cvd .cvd-menu button:hover,html.cvd .cvd-menu .lf-move>button:hover{background:#f4f0ff!important}
html.cvd .cvd-menu button.red,html.cvd .cvd-menu button[data-library-delete]{color:#dc2626!important}
html.cvd .cvd-menu .lf-move{display:block;width:100%}

/* ---------- smaller screens ---------- */
@media (max-width:1280px){html.cvd #games #lessonGrid{--cvd-gcols:4}}
@media (max-width:1180px){
 html.cvd{--cvd-side:92px}
 html.cvd #cvdSide{padding-inline:6px;scrollbar-width:thin}
 #cvdSide .cvd-item{flex-direction:column;justify-content:center;gap:4px;min-height:64px;padding:8px 3px;font-size:12px!important;text-align:center}
 #cvdSide .cvd-item .cvd-res{margin:0}
}
@media (max-width:1000px){html.cvd #games #lessonGrid{--cvd-gcols:3}}
@media (max-width:900px){
 html.cvd #students:not(.hidden){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"bar" "tools" "page" "side"!important;gap:12px!important}
 html.cvd #students>.classivo-students-top-toolbar{padding:0!important}
 html.cvd #students>.class-workspace-sidebar{display:contents!important}
 html.cvd #students #cvNavTools{grid-area:tools}
 html.cvd #students .cvd-class-panels{grid-area:side;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:start}
 html.cvd #students #cvdClassTeacher{grid-column:1/-1;justify-self:end}
 html.cvd #students #cvNavTools #classivoClassTools{display:flex!important;justify-content:flex-start;flex-wrap:wrap}
 html.cvd #students #cvNavTools #classivoClassTools>:is(#classivoAttendanceOpen,#classivoEditStudents,#classivoTimerOpen){width:auto!important;height:34px!important;padding-inline:10px!important;font-size:14px!important}
 html.cvd #dashboard .cv-classes-panel{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "cards" "arr"}
}
@media (max-width:760px){
 html.cvd{--cvd-side:0px;--cvd-head:62px}
 html.cvd #cvdSide{top:var(--cvd-head);bottom:auto;left:0;right:0;width:auto;height:auto;flex-direction:row;gap:4px;padding:6px 8px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--cvd-line);scrollbar-width:none;position:sticky;z-index:55}
 html.cvd #cvdSide::-webkit-scrollbar{display:none}
 #cvdSide .cvd-item{flex:1 1 0;min-width:0;width:auto;min-height:56px;padding:6px 0;font-size:10px!important;letter-spacing:-.2px;line-height:1.1}
 #cvdSide .cvd-item>span:first-of-type{white-space:normal;overflow-wrap:normal}
 #cvdSide .cvd-item svg{width:22px;height:22px}
 #cvdSide .cvd-sep{margin:0;border:0;padding:0}
 html.cvd body>main,html.cvd body>#myLibrary{padding:14px 12px 14px!important}
 html.cvd body>header .teacher-home-nav{gap:8px!important;padding-right:8px!important}
 html.cvd body>header .teacher-home-nav>h1{height:48px;padding:0 16px 0 12px!important}
 html.cvd body>header .teacher-home-nav .classivo-logo-wrap{width:104px!important}
 #cvdLabel{gap:8px}#cvdLabel::before{display:none}
 #cvdLabel .cvd-chip{font-size:16px;padding:6px 10px;max-width:34vw}
 #cvdLabel .cvd-chip svg{display:none}
 html.cvd body>header .auth-header-actions{gap:6px!important}
 html.cvd body>header #cvcInboxBtn,html.cvd body>header #phoneAuthMenuBtn{width:42px!important;height:40px!important;border-radius:12px!important}
 html.cvd body>header #authUserPill{display:none!important}
 html.cvd body>header #authOpen,html.cvd body>header #authJoin{height:38px;padding:0 10px!important;font-size:13px!important}
 html.cvd #cvBP.cvd-in-head .cvbp-resume{height:38px;padding:0 10px;font-size:13px}
 html.cvd[data-cvd-page="students"]{--cvd-toolbar-height:42px}
 html.cvd #students :is(#cvStudentsBar,#cvGroupsBar) .cv-count{border-left:0;padding-left:0;flex:1 1 auto}
 html.cvd #students :is(#addStudentForm,#cvGroupsBar .group-create){flex:1 1 100%!important;max-width:none;order:5}
 html.cvd #students :is(#studentCards,#groupsGrid) .student-caption{font-size:15px!important}
 html.cvd #students :is(#studentCards,#groupsGrid) .cv-pm{gap:22px!important}
 html.cvd #games #lessonGrid{--cvd-gcols:2;gap:12px!important}
 html.cvd #games #lessonPanel{padding:18px 14px!important}
 html.cvd #games #lessonPanel>.row h2{font-size:24px!important}
 html.cvd #games #lessonGrid .lesson-flashcard strong{font-size:15px!important}
 html.cvd #myLibrary .lf-tools{margin-left:0}
 html.cvd #myLibrary .library-card .library-actions>button,html.cvd #myLibrary .library-card .library-actions>.cvd-more>button.cvd-dots{padding:0 8px!important;font-size:13px!important}
 html.cvd #myLibrary .library-card .library-actions{gap:4px!important}
 html.cvd #myLibrary.lf-in-folder>.panel{display:flex!important;flex-direction:column;align-items:stretch}
 html.cvd #myLibrary.lf-in-folder>.panel>*,html.cvd #myLibrary.lf-in-folder #libraryContent>*,html.cvd #myLibrary.lf-in-folder #lfBar>*{order:9}
 html.cvd #myLibrary.lf-in-folder .lf-crumbs{order:1}
 html.cvd #myLibrary.lf-in-folder .lf-title>h3{order:2}
 html.cvd #myLibrary.lf-in-folder .lf-head{order:3;justify-content:flex-start}
 html.cvd #myLibrary.lf-in-folder .library-summary{order:4}
 html.cvd #myLibrary.lf-in-folder .lf-title>.lf-sort{order:5;align-self:flex-start}
 html.cvd #myLibrary.lf-in-folder .lf-grid{order:6}
 html.cvd #myLibrary.lf-in-folder #libraryOwn{order:7}
 html.cvd #myLibrary .lf-tools .lf-tool{height:40px;font-size:14px!important;padding:0 12px!important}
 html.cvd #myLibrary .lf-title h3{font-size:26px!important}
}
@media (max-width:650px){
 html.cvd #dashboard>#cvdTeacherRow{flex-wrap:nowrap;gap:10px}
 html.cvd #cvdTeacherRow #cvTeacherBar{flex:1}
 html.cvd #cvdTeacherRow .teacher-edit{flex:1;flex-direction:column;align-items:flex-start;gap:4px!important}
 html.cvd #cvdTeacherRow .teacher-edit .row{width:100%}
 html.cvd #cvdTeacherRow #teacherNameInput{width:100%!important;flex:1}
 html.cvd #cvdTeacherRow .teacher-edit label{display:block;font-size:12px!important}
 html.cvd #dashboard .class-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
 html.cvd #dashboard #cvAddClassForm{flex:1;width:auto}
}
@media (max-width:420px){html.cvd #cvdLabel .cvd-chip{max-width:30vw}}
html.cvd #myLibrary .library-card:has(.cvd-menu:not([hidden])){z-index:45;content-visibility:visible!important;contain:none!important;overflow:visible!important}
html.cvd #myLibrary #libraryOwn:has(.cvd-menu:not([hidden])){overflow:visible!important;contain:none!important;content-visibility:visible!important}

/* Anything the page hides (search results, Messages when signed out, menu items that do not apply...) stays hidden,
   even where this layout sets its own display. */
html.cvd #games #lessonGrid .lesson-flashcard[hidden],
html.cvd body>header #cvcInboxBtn[hidden],
html.cvd body>header #phoneAuthMenuBtn[hidden],
html.cvd body>header .auth-header-actions>[hidden],
html.cvd .cvd-menu button[hidden],html.cvd .cvd-menu .lf-move[hidden],html.cvd .cvd-menu .lf-move>button[hidden],
html.cvd #myLibrary .library-card[hidden],html.cvd #myLibrary .library-card .library-actions[hidden],html.cvd #myLibrary .library-card .library-actions>[hidden],
html.cvd #myLibrary .lf-head[hidden],html.cvd #myLibrary .lf-tools[hidden],html.cvd #myLibrary .lf-tools>[hidden],
html.cvd #myLibrary.lf-in-folder .library-summary[hidden],html.cvd #myLibrary.lf-in-folder .lf-title[hidden],
html.cvd #students #cvNavTools #classivoClassTools[hidden],html.cvd #students #cvNavTools #classivoClassTools>[hidden],
html.cvd #students :is(#studentCards,#groupsGrid)>[hidden],
html.cvd #dashboard #classCards .class-card[hidden],html.cvd #dashboard .cv-classes-panel .cv-head-right>[hidden],
html.cvd #cvdTeacherRow .teacher-edit[hidden],html.cvd #cvdTeacherRow .teacher-profile[hidden]{display:none!important}

/* =====================================================================
   My Library – folder view (compact layout). Only applies inside a folder
   (Big English 3, nested folders, any folder).
   crumbs / title / actions / counts + sort / sub-folders / lessons
   ===================================================================== */
html.cvd section#myLibrary.lf-in-folder>.panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:0;align-items:center;padding:16px 22px 22px!important}
html.cvd section#myLibrary.lf-in-folder .lf-crumbs{grid-row:1;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 6px!important;padding:0!important;font:600 14px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#4b4470!important;order:0}
html.cvd section#myLibrary.lf-in-folder .lf-crumbs button{font:600 14px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#5b21b6!important;padding:1px 2px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9bbf3}
html.cvd section#myLibrary.lf-in-folder .lf-crumbs b{font-weight:600;color:#2e1065!important;overflow-wrap:anywhere}
/* title: own row, folder icon + full name, long names wrap */
html.cvd section#myLibrary.lf-in-folder .lf-title>h3{grid-row:2;grid-column:1/-1;display:flex!important;align-items:center;gap:12px;margin:0 0 10px!important;min-width:0;width:auto!important;overflow:visible!important;white-space:normal!important;font:800 26px/1.2 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#2e1065!important;overflow-wrap:anywhere;word-break:break-word;order:0}
html.cvd section#myLibrary.lf-in-folder .lf-title>h3{align-items:flex-start!important}
html.cvd section#myLibrary.lf-in-folder .lf-title>h3 .lf-icon{margin-top:2px;flex:none;width:34px;height:28px;border-radius:5px 8px 8px 8px}
/* action row */
html.cvd section#myLibrary.lf-in-folder .lf-head{grid-row:3;grid-column:1/-1;display:flex!important;justify-content:flex-start!important;margin:0 0 12px!important;position:relative;z-index:3;min-width:0;order:0}
html.cvd section#myLibrary.lf-in-folder .lf-tools{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;margin:0!important;justify-content:flex-start}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;min-height:0;padding:0 14px!important;border-radius:10px!important;font:600 14px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;white-space:nowrap;cursor:pointer;background:#fff!important;color:#3b2a78!important;border:1px solid #cfc6ee!important;box-shadow:none!important}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool:hover{background:#f6f2ff!important;border-color:#b8a8ea!important}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool:focus-visible{outline:3px solid #facc15;outline-offset:2px}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool .lf-ic{flex:none}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-lesson{background:linear-gradient(135deg,#5b2fd8,#6d28d9)!important;color:#fff!important;border:0!important;font-weight:700;padding:0 18px!important}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-lesson:hover{background:linear-gradient(135deg,#6a3ae6,#7c3aed)!important}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-del{background:transparent!important;border:0!important;color:#dc2626!important;font-weight:700;padding:0 8px!important}
html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-del:hover{background:#fef2f2!important;text-decoration:underline}
html.cvd section#myLibrary.lf-in-folder .lf-fopts{display:contents}
html.cvd section#myLibrary.lf-in-folder .lf-fopts-btn{display:none!important}
html.cvd section#myLibrary.lf-in-folder .lf-fopts-items{display:contents}
html.cvd section#myLibrary.lf-in-folder .lf-fopts-items>.lf-move{display:inline-flex;position:relative}
/* counts on the left, Adjust + sort together on the right */
html.cvd section#myLibrary.lf-in-folder .library-summary{grid-row:4;grid-column:1;display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 18px;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;font:500 14px/1.3 'Plus Jakarta Sans',system-ui,sans-serif;color:#4b4470;order:0}
html.cvd section#myLibrary.lf-in-folder .library-summary .library-totals{display:flex;gap:16px;font-size:14px}
html.cvd section#myLibrary.lf-in-folder .library-summary .library-totals b{font-weight:700;color:#2e1065}
html.cvd section#myLibrary.lf-in-folder .library-summary .library-favorites{display:flex;align-items:center;gap:8px;font-size:14px}
html.cvd section#myLibrary.lf-in-folder .library-summary .library-favorites>span{font-weight:600;font-size:14px}
html.cvd section#myLibrary.lf-in-folder .library-summary #manageLibraryFavorites{height:30px;min-height:0;padding:0 12px!important;font:600 13px/1 'Plus Jakarta Sans',system-ui,sans-serif!important;border-radius:8px!important}
html.cvd section#myLibrary.lf-in-folder .lf-title>.lf-sort{grid-row:4;grid-column:2;justify-self:end;display:inline-flex;align-items:center;gap:8px;margin:0!important;order:0}
html.cvd section#myLibrary.lf-in-folder .lf-sort .lf-adj{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:10px;background:#f4f0ff;color:#3b2a78;font:600 14px/1 'Plus Jakarta Sans',system-ui,sans-serif}
html.cvd section#myLibrary.lf-in-folder .lf-sort select{height:34px;min-width:120px;padding:0 10px;border-radius:10px;border:1px solid #cfc6ee;font:600 14px/1 'Plus Jakarta Sans',system-ui,sans-serif;color:#3b2a78;background:#fff}
/* sub-folders and lessons */
html.cvd section#myLibrary.lf-in-folder .lf-grid{grid-row:5;grid-column:1/-1;margin:14px 0 0!important;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
html.cvd section#myLibrary.lf-in-folder .lf-grid .lf-card{padding:8px 10px;min-height:0;border-radius:12px}
html.cvd section#myLibrary.lf-in-folder .lf-grid .lf-name{font:700 14px/1.25 'Plus Jakarta Sans',system-ui,sans-serif;overflow-wrap:anywhere}
html.cvd section#myLibrary.lf-in-folder .lf-grid .lf-count{font-size:12px}
html.cvd section#myLibrary.lf-in-folder #libraryOwn{grid-row:6;grid-column:1/-1;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(188px,1fr))!important;gap:12px!important;border-top:1px solid #e9e3fa;padding-top:14px;margin-top:14px}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card{display:flex;flex-direction:column;gap:5px;padding:10px!important;border-radius:14px!important;box-shadow:0 2px 8px rgba(76,29,149,.06)!important;min-width:0}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card>img,html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card>.library-ph{width:100%!important;height:118px!important;object-fit:contain!important;border-radius:10px;background:#f4f1fc;margin:0!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card h3{margin:2px 0 0!important;font:700 14px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#2e1065!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .small{margin:0!important;font:500 12px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;color:#6b6488!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions{margin-top:auto;padding-top:4px;gap:6px!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>button,html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>.cvd-more>button.cvd-dots{height:32px!important;padding:0 12px!important;border-radius:9px!important;font:600 13px/1 'Plus Jakarta Sans',system-ui,sans-serif!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>button[data-library-view]{background:linear-gradient(135deg,#5b2fd8,#6d28d9)!important;color:#fff!important;border:0!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>button[data-library-edit]{background:#fff!important;color:#3b2a78!important;border:1px solid #cfc6ee!important}
html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>button[data-library-publish]{height:30px!important}
html.cvd section#myLibrary.lf-in-folder #libraryNotices,html.cvd section#myLibrary.lf-in-folder #libraryStatus{grid-column:1/-1}
/* narrower screens: creation buttons stay visible; Move / Rename / Delete go into "Folder options" */
@media (max-width:820px){
 html.cvd section#myLibrary.lf-in-folder>.panel{padding:14px 14px 18px!important}
 html.cvd section#myLibrary.lf-in-folder .lf-title>h3{font-size:23px!important}
 html.cvd section#myLibrary.lf-in-folder .lf-tools{width:100%}
 html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool{height:40px}
 html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-lesson{flex:1 1 140px}
 html.cvd section#myLibrary.lf-in-folder .lf-tools .lf-tool-folder{flex:1 1 140px}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts{display:block;position:relative;flex:0 0 auto}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-btn{display:inline-flex!important}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items{display:none;position:absolute;z-index:60;top:calc(100% + 6px);left:0;min-width:210px;flex-direction:column;gap:2px;padding:6px;border-radius:12px;background:#fff;border:1px solid #d9cffa;box-shadow:0 14px 30px rgba(46,16,101,.22)}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts.open .lf-fopts-items{display:flex}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items>.lf-move{display:flex;position:relative}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items .lf-tool,html.cvd section#myLibrary.lf-in-folder .lf-fopts-items>.lf-move>.lf-tool{width:100%;justify-content:flex-start!important;height:40px;border:0!important;background:transparent!important}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items .lf-tool:hover{background:#f4f0ff!important}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items .lf-tool-del{border-top:1px solid #f1e9ff!important;border-radius:0 0 8px 8px!important}
 html.cvd section#myLibrary.lf-in-folder .lf-fopts-items .lf-menu{position:static;box-shadow:none;border:0;margin:2px 0 0;max-height:46vh;overflow:auto}
 html.cvd section#myLibrary.lf-in-folder .library-summary{grid-column:1/-1;grid-row:4}
 html.cvd section#myLibrary.lf-in-folder .lf-title>.lf-sort{grid-row:5;grid-column:1/-1;justify-self:start;margin-top:10px!important}
 html.cvd section#myLibrary.lf-in-folder .lf-grid{grid-row:6;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
 html.cvd section#myLibrary.lf-in-folder #libraryOwn{grid-row:7;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:10px!important}
 html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card>img,html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card>.library-ph{height:100px!important}
}
@media (max-width:430px){
 html.cvd section#myLibrary.lf-in-folder #libraryOwn{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card{padding:8px!important}
 html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>button,html.cvd section#myLibrary.lf-in-folder #libraryOwn .library-card .library-actions>.cvd-more>button.cvd-dots{padding:0 9px!important}
}

/* Attendance: absent students are blurred and not active today */
#studentCards .student.cv-absent{position:relative}
#studentCards .student.cv-absent .avatar,#studentCards .student.cv-absent .avatar-img,#studentCards .student.cv-absent img{filter:blur(5px) grayscale(.7);opacity:.6}
#studentCards .student.cv-absent .cv-pm,#studentCards .student.cv-absent .cv-reward,#studentCards .student.cv-absent [data-student-quick]{pointer-events:none;opacity:.3}
#studentCards .student.cv-absent .student-name,#studentCards .student.cv-absent .cv-stars{opacity:.6}
.cv-absent-tag{position:absolute;z-index:6;top:50%;left:50%;transform:translate(-50%,-70%);padding:5px 14px;border-radius:999px;background:#4b5563;color:#fff;font:800 14px/1 'Plus Jakarta Sans',system-ui,sans-serif;letter-spacing:.02em;box-shadow:0 3px 10px rgba(0,0,0,.3);pointer-events:none}

/* Blacklist students: the avatar turns black and white; a Top 5 tag shows if they are also in the Top 5 (colour unchanged) */
#studentCards .student.cv-bl{position:relative}
#studentCards .student.cv-bl .avatar,#studentCards .student.cv-bl .avatar-img,#studentCards .student.cv-bl .cv-avatar img,#studentCards .student.cv-bl img{filter:grayscale(1) contrast(1.05)}
#studentCards .student.cv-bl .cv-avatar,#studentCards .student.cv-bl .student-avatar-button{filter:grayscale(1) contrast(1.05)}
.cv-bl-tag,.cv-t5-tag{position:absolute;z-index:6;left:50%;padding:5px 14px;border-radius:999px;font:800 14px/1 'Plus Jakarta Sans',system-ui,sans-serif;letter-spacing:.02em;box-shadow:0 3px 10px rgba(0,0,0,.3);white-space:nowrap;pointer-events:none}
.cv-bl-tag{top:50%;transform:translate(-50%,-70%);background:#111827;color:#fff;border:2px solid #fff}
.cv-t5-tag{top:50%;transform:translate(-50%,-70%);background:#fff;color:#111827;border:2px solid #111827}
.cv-bl-tag~.cv-t5-tag{top:calc(50% + 24px)}
#studentCards .student.cv-t5:not(.cv-bl) .cv-t5-tag{background:#fff7d6;border-color:#f59e0b;color:#7a3d00}
