/* SOWOOJU Classboard launch polish
   Visual direction: quiet public-education SaaS, mobile-first, content before chrome. */

:root{
  --cb-page:#f6f8f7;
  --cb-surface:#fff;
  --cb-surface-soft:#f9fbfa;
  --cb-navy:#172247;
  --cb-green:#0d7a54;
  --cb-green-soft:#eaf7f2;
  --cb-ink:#172033;
  --cb-muted:#6d7684;
  --cb-line:#e5e8ee;
  --cb-line-strong:#d9dee6;
  --cb-shadow:0 8px 28px rgba(23,34,71,.055);
  --cb-float:0 16px 38px rgba(23,34,71,.20);
  --page:var(--cb-page);
  --accent:var(--cb-green);
  --accent-soft:var(--cb-green-soft);
}

body{background:var(--cb-page);color:var(--cb-ink)}
body.cb-public,.cb-public{background:var(--page,var(--cb-page))}
.cb-btn{transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease}
.cb-btn:hover{border-color:#cbd2dc}.cb-btn:active{transform:translateY(1px)}
.cb-btn.primary{background:var(--cb-navy);border-color:var(--cb-navy);box-shadow:none}
.cb-btn.green{background:var(--cb-green);border-color:var(--cb-green)}
.cb-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.cb-meta{color:var(--cb-muted)}

/* ---------- Shared public board shell ---------- */
.cb-board{max-width:1040px;padding:22px 22px 96px}
.cb-boardbar{
  min-height:44px;margin-bottom:18px;padding:0 2px;
  position:relative;z-index:8
}
.cb-boardbar strong{font-size:14px;font-weight:800;letter-spacing:-.02em}
.cb-boardbar .cb-code{
  font-size:13px;letter-spacing:.08em;background:#fff;border:1px solid var(--cb-line);
  border-radius:999px;padding:8px 11px
}
.cb-logo{width:26px}

/* Hero becomes class context; question is the visual focus */
.cb-hero{
  padding:26px 26px 24px;margin-bottom:14px;border-radius:22px;
  border:1px solid var(--cb-line);box-shadow:none;background:#fff
}
.cb-hero:before{display:none}
.cb-hero h1{font-size:30px;line-height:1.25;margin:6px 0 5px;letter-spacing:-.045em}
.cb-hero>p{font-size:13px;color:var(--cb-muted)}
.cb-question{
  margin:20px 0 0;padding:17px 18px;border:0;border-radius:16px;
  background:var(--accent-soft,var(--cb-green-soft));
  font-size:19px;line-height:1.52;font-weight:760;letter-spacing:-.025em
}
.cb-question:before{
  content:"오늘의 질문";display:block;margin-bottom:5px;
  color:var(--accent,var(--cb-green));font-size:10px;font-weight:800;letter-spacing:.07em
}

/* Join screen */
.cb-join{
  width:min(430px,calc(100vw - 28px));margin:9vh auto;padding:30px;
  border:1px solid var(--cb-line);border-radius:24px;box-shadow:var(--cb-shadow)
}
.cb-join .cb-code{display:inline-flex;background:#f3f5f6;border-radius:10px;padding:7px 10px;margin:9px 0 2px}
.cb-join h1{font-size:27px;line-height:1.3}
.cb-join .cb-question{font-size:16px}
.cb-join input{min-height:50px}
.cb-join .cb-btn{min-height:50px}

/* Learning materials always feel teacher-owned and sit before student output */
.cb-materials{
  margin:0 0 18px;padding:16px;border-radius:19px;border:1px solid #dce8e2;
  background:#fcfffd;box-shadow:none
}
.cb-materials-head{align-items:center;margin-bottom:12px}
.cb-materials-head h2{font-size:17px}
.cb-materials-head>span{background:#e5f4ed;color:var(--cb-green)}
.cb-material-list{gap:10px}
.cb-material-card{
  border-color:#dfe7e3;background:#fff;border-radius:15px;box-shadow:none
}
.cb-material-card.pinned{border-color:#afd4c3;box-shadow:0 7px 20px rgba(13,122,84,.06)}
.cb-pin-badge{background:#174937;box-shadow:none}
.cb-material-body{padding:14px 15px}
.cb-material-body h3{font-size:15px;letter-spacing:-.015em}
.cb-material-link,.cb-material-hide,.cb-material-pin{border-radius:10px}

/* Student content */
.cb-wall{columns:3 280px;column-gap:12px}
.cb-post{
  margin-bottom:12px;padding:16px;border:1px solid var(--cb-line);border-radius:17px;
  box-shadow:none;background:#fff
}
.cb-post:hover{box-shadow:0 8px 24px rgba(23,34,71,.055);border-color:#d8dee7}
.cb-post .author{margin-bottom:7px;color:var(--accent,var(--cb-green));font-size:11px;letter-spacing:.01em}
.cb-post .body{font-size:15px;line-height:1.66;color:#273142}
.cb-post h3{font-size:17px;margin:4px 0 7px}
.cb-post-image{margin:-16px -16px 14px;width:calc(100% + 32px)}
.cb-post-media{margin:-16px -16px 14px;width:calc(100% + 32px)}
.cb-reactions{margin-top:12px;gap:5px}
.cb-reactions button{
  min-width:42px;min-height:38px;padding:5px 9px;
  border-color:#e3e7ec;background:#fafbfb
}
.cb-reactions button.active{border-color:#9fcfb9;background:#edf8f3}
.cb-comments{border-top-color:#edf0f2}
.cb-comment-open{color:#7b8490}

/* Gallery & columns */
.cb-gallery{gap:12px}
.cb-gallery .cb-post{border-radius:16px}
.cb-columns{gap:12px}
.cb-column{background:#eef3f1;border-color:#e0e7e3;border-radius:18px}
.cb-column>summary{padding:7px 8px 11px}
.cb-column>summary span{box-shadow:0 1px 2px rgba(0,0,0,.04)}

/* Compose affordance */
.cb-fab{
  width:60px;height:60px;background:var(--cb-navy);box-shadow:var(--cb-float);
  font-size:28px;border:1px solid rgba(255,255,255,.24)
}
.cb-fab:hover{box-shadow:0 18px 40px rgba(23,34,71,.26)}
.cb-sheet{border-radius:24px;box-shadow:0 24px 72px rgba(17,25,45,.24)}
.cb-mobile-form input,.cb-mobile-form textarea,.cb-mobile-form select,.cb-comment-form input{
  border-color:var(--cb-line-strong);background:#fff
}

/* ---------- Teacher experience ---------- */
#classboardTeacher.cb-board{max-width:1180px}
#classboardTeacher .cb-boardbar{margin-bottom:12px}
.cb-teacherbar{
  position:sticky;top:10px;z-index:12;margin-bottom:14px;padding:14px;
  border:1px solid var(--cb-line);border-radius:18px;
  background:rgba(255,255,255,.96);backdrop-filter:blur(16px);
  color:var(--cb-ink);box-shadow:0 10px 34px rgba(23,34,71,.08)
}
.cb-teacherbar .title{
  width:100%;margin:0 0 9px;padding:0 2px 9px;border-bottom:1px solid #edf0f2;
  color:var(--cb-ink);font-size:14px;font-weight:800
}
.cb-teacher-tools{
  width:100%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px
}
.cb-teacherbar .cb-btn{
  min-height:42px;padding:8px 7px;border-color:#e1e5eb;background:#f8f9fa;color:#47515f;
  font-size:12px;box-shadow:none
}
.cb-teacherbar .cb-btn.hot,#qrBtn,#materialBtn,#presentBtn{
  background:var(--cb-navy)!important;border-color:var(--cb-navy)!important;color:#fff!important
}
#startBtn{background:var(--cb-green)!important;border-color:var(--cb-green)!important;color:#fff!important}
#endBtn{color:#8f3f46!important;background:#fff9f9!important;border-color:#ecd8da!important}
#pendingBtn:not(:disabled){font-weight:800}
#classboardTeacher .cb-hero{padding:24px 26px}
#classboardTeacher .cb-question{max-width:820px}

/* Teacher moderation cards */
#teacherWall .cb-post.pending{background:#fffdf8;border-color:#e8d8b7}
#teacherWall .cb-post .state{
  display:inline-flex;margin-top:11px;padding:4px 7px;border-radius:999px;background:#f2f4f6
}
#teacherWall .cb-actions{margin-top:10px}
#teacherWall .cb-actions .cb-btn{min-height:38px}

/* ---------- Admin home ---------- */
.cb-top{
  height:62px;background:rgba(255,255,255,.94);border-bottom:1px solid #edf0f2;
  backdrop-filter:blur(14px)
}
.cb-shell{max-width:1220px;padding:42px 26px 80px}
.cb-admin-hero{padding:5px 2px 14px;align-items:flex-end}
.cb-admin-hero h1{
  margin-top:7px;font-size:42px;line-height:1.18;letter-spacing:-.055em;max-width:720px
}
.cb-admin-hero p{margin-top:10px;font-size:14px}
.cb-new-board{min-height:50px;border-radius:13px;padding:0 20px;box-shadow:0 10px 26px rgba(23,34,71,.14)}
.cb-admin-stats{gap:10px;margin:7px 0 26px}
.cb-admin-stats>div{
  padding:14px 16px;border-radius:14px;border-color:#e8ebef;background:#fbfcfc
}
.cb-admin-stats span{font-size:10px}.cb-admin-stats b{font-size:25px}
#classboardAdmin .cb-panel{border:0;box-shadow:none;background:transparent;overflow:visible}
#classboardAdmin .cb-panel-head{padding:12px 2px;border:0}
#classboardAdmin .cb-panel-head h2{font-size:20px;letter-spacing:-.035em}
#classboardAdmin .cb-body{padding:8px 0}
#classboardAdmin .cb-grid{gap:12px}
#classboardAdmin .cb-card{
  padding:18px;border-radius:18px;border-color:#e3e7ec;box-shadow:none
}
#classboardAdmin .cb-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(23,34,71,.07)}
.cb-code-block{background:#f5f7f7}
.cb-code-block strong{font-size:19px}

/* Template cards look like mini boards instead of icon-only tiles */
.cb-template-strip{gap:10px}
.cb-template-card{
  min-height:172px;padding:11px 12px 13px;border-radius:16px;background:#fff;overflow:hidden
}
.cb-template-card:before{
  content:"";display:block;width:100%;height:62px;margin-bottom:7px;border-radius:11px;
  background:
    linear-gradient(#fff,#fff) 9px 10px/34% 9px no-repeat,
    linear-gradient(#eaf7f2,#eaf7f2) 9px 25px/73% 20px no-repeat,
    linear-gradient(#fff,#fff) 87% 10px/8px 8px no-repeat,
    #eef2f1;
  border:1px solid #e2e8e5
}
.cb-template-card:nth-child(3n+2):before{
  background:
    linear-gradient(#fff,#fff) 8px 9px/25% 43px no-repeat,
    linear-gradient(#fff,#fff) 38% 9px/25% 43px no-repeat,
    linear-gradient(#fff,#fff) 92% 9px/25% 43px no-repeat,
    #edf1f4
}
.cb-template-card:nth-child(3n):before{
  background:
    linear-gradient(#dfeae5,#dfeae5) 9px 9px/40% 40px no-repeat,
    linear-gradient(#f3e8df,#f3e8df) 91% 9px/40% 40px no-repeat,
    #f4f5f5
}
.cb-template-card>span{position:absolute;right:12px;top:17px;font-size:14px;color:#718078}
.cb-template-card>b{font-size:13px}.cb-template-card>small{font-size:10px}
.cb-template-card>em{top:82px}
.cb-template-card.selected{background:#f5fbf8}

/* Dialog polish */
dialog.cb-dialog{border-radius:24px;border:1px solid rgba(255,255,255,.35)}
.cb-new-dialog .cb-body{padding:24px}
.cb-dialog-title h1{letter-spacing:-.04em}

/* ---------- Mobile first ---------- */
@media(max-width:760px){
  .cb-board{padding:12px 12px calc(98px + env(safe-area-inset-bottom))}
  .cb-boardbar{min-height:40px;margin-bottom:11px}
  .cb-boardbar .cb-code{font-size:12px;padding:7px 9px}
  .cb-hero{padding:18px 17px 17px;border-radius:18px;margin-bottom:12px}
  .cb-hero h1{font-size:23px;line-height:1.3;margin:5px 0 4px}
  .cb-hero>p{font-size:12px}
  .cb-question{margin-top:15px;padding:14px 15px;border-radius:14px;font-size:16px;line-height:1.55}
  .cb-materials{padding:13px;border-radius:16px;margin-bottom:12px}
  .cb-materials-head{margin-bottom:9px}
  .cb-materials-head h2{font-size:16px}
  .cb-material-card{grid-template-columns:82px 1fr;border-radius:14px}
  .cb-material-image img{width:82px;min-height:90px}
  .cb-material-body{padding:11px 12px}
  .cb-wall{columns:1}
  .cb-post{padding:14px;border-radius:15px;margin-bottom:10px}
  .cb-post-image{margin:-14px -14px 12px;width:calc(100% + 28px)}
  .cb-post-media{margin:-14px -14px 12px;width:calc(100% + 28px)}
  .cb-post .body{font-size:14px;line-height:1.64}
  .cb-reactions button{min-height:42px;min-width:44px}
  .cb-fab{right:15px;bottom:calc(15px + env(safe-area-inset-bottom));width:60px;height:60px}
  .cb-sheet{border-radius:24px 24px 0 0}
  .cb-join{margin:5vh 14px;padding:24px 21px}

  #classboardTeacher.cb-board{padding-top:10px}
  .cb-teacherbar{top:6px;padding:9px;border-radius:15px}
  .cb-teacherbar .title{font-size:12px;margin-bottom:7px;padding-bottom:7px}
  .cb-teacher-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .cb-teacherbar .cb-btn{min-height:44px;font-size:11px;padding:6px 3px}
  #classboardTeacher .cb-hero{padding:17px}

  .cb-shell{padding:28px 15px 64px}
  .cb-admin-hero{align-items:flex-start}
  .cb-admin-hero h1{font-size:31px}
  .cb-admin-stats{grid-template-columns:repeat(4,1fr);gap:6px;overflow-x:auto}
  .cb-admin-stats>div{min-width:78px;padding:11px}
  .cb-admin-stats b{font-size:21px}
  #classboardAdmin .cb-grid{grid-template-columns:1fr}
  .cb-template-card{min-height:160px}
}
@media(max-width:420px){
  .cb-teacher-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cb-admin-stats{grid-template-columns:repeat(2,1fr);overflow:visible}
}


/* Flow labels introduced by the launch pass */
.cb-stream{margin-top:19px}
.cb-stream-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin:0 2px 12px
}
.cb-stream-head h2{margin:3px 0 0;font-size:19px;letter-spacing:-.035em}
.cb-stream-head>span{
  min-width:30px;height:28px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;background:#eef2f1;color:var(--cb-muted);font-size:11px;font-weight:800
}

/* Teacher: core actions first, low-frequency actions in an overflow menu */
.cb-teacher-primary{grid-template-columns:repeat(5,minmax(0,1fr)) auto}
.cb-teacher-more{position:relative}
.cb-teacher-more>summary{
  list-style:none;display:flex;align-items:center;justify-content:center;height:100%;min-height:42px
}
.cb-teacher-more>summary::-webkit-details-marker{display:none}
.cb-teacher-more[open]>summary{background:#eef1f4!important;color:var(--cb-ink)!important}
.cb-teacher-more-menu{
  position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:180px;padding:7px;
  display:grid;gap:5px;border:1px solid var(--cb-line);border-radius:14px;background:#fff;
  box-shadow:0 18px 44px rgba(23,34,71,.16)
}
.cb-teacher-more-menu .cb-btn{
  width:100%;justify-content:flex-start;text-align:left;background:#fff!important;color:#47515f!important;
  border-color:transparent!important;padding:9px 10px
}
.cb-teacher-more-menu .cb-btn:hover{background:#f5f7f8!important}
.cb-teacher-more-menu #endBtn{color:#8f3f46!important}

/* Admin quick start */
.cb-quick-start{margin:8px 0 28px}
.cb-section-title{display:flex;align-items:end;justify-content:space-between;margin:0 2px 12px}
.cb-section-title h2{font-size:22px;letter-spacing:-.04em;margin:4px 0 2px}
.cb-section-title p{font-size:12px;color:var(--cb-muted);margin:0}
.cb-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.cb-quick-card{width:100%;min-width:0;min-height:168px}
.cb-quick-card>em{top:82px}

@media(max-width:1000px){
  .cb-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .cb-stream{margin-top:15px}
  .cb-stream-head{margin-bottom:9px}
  .cb-stream-head h2{font-size:17px}
  .cb-teacher-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cb-teacher-more{position:static}
  .cb-teacher-more-menu{
    position:absolute;left:9px;right:9px;top:auto;margin-top:7px;width:auto;
    grid-template-columns:1fr 1fr
  }
  .cb-quick-start{margin-bottom:23px}
  .cb-quick-grid{
    display:flex;overflow-x:auto;gap:9px;margin-inline:-15px;padding:0 15px 8px;
    scroll-snap-type:x mandatory
  }
  .cb-quick-card{min-width:158px;max-width:158px;scroll-snap-align:start}
}
@media(max-width:420px){
  .cb-teacher-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cb-teacher-more-menu{grid-template-columns:1fr}
}


/* ---------- Higgsfield aligned v2 ---------- */
/* Lower information density, stronger visual focus, larger previews. */

/* Student */
#classboardStudent.cb-board{
  max-width:920px;
  padding-top:18px
}
.cb-student-intro{
  margin:0 0 14px;
  padding:2px 2px 0
}
.cb-student-intro h1{
  margin:5px 0 6px;
  font-size:32px;
  line-height:1.2;
  letter-spacing:-.05em
}
.cb-student-intro p{
  margin:0;
  color:var(--cb-muted);
  font-size:13px
}
.cb-student-question{
  margin-bottom:18px
}
.cb-student-question .cb-question{
  min-height:118px;
  margin:0;
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:22px;
  font-size:26px;
  line-height:1.34;
  letter-spacing:-.04em
}
.cb-student-question .cb-question:before{
  margin-bottom:8px;
  font-size:11px
}
#classboardStudent .cb-materials{
  padding:0;
  border:0;
  background:transparent
}
#classboardStudent .cb-materials-head{
  margin:0 2px 9px
}
#classboardStudent .cb-material-card{
  border:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(23,34,71,.055)
}
#classboardStudent .cb-material-card.pinned{
  border:0;
  box-shadow:0 10px 28px rgba(13,122,84,.08)
}
#classboardStudent .cb-material-image img{
  min-height:150px;
  object-fit:cover
}
#classboardStudent .cb-material-body{
  padding:17px 18px 18px
}
#classboardStudent .cb-material-body h3{
  font-size:18px
}
#classboardStudent .cb-stream{
  margin-top:24px
}
#classboardStudent .cb-stream-head{
  margin-bottom:14px
}
#classboardStudent .cb-wall{
  columns:2 320px;
  column-gap:14px
}
#classboardStudent .cb-post{
  padding:0;
  border:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(23,34,71,.05)
}
#classboardStudent .cb-post-content{
  padding:16px 17px 17px
}
#classboardStudent .cb-post-image,
#classboardStudent .cb-post-media{
  margin:0;
  width:100%;
  border-radius:0
}
#classboardStudent .cb-post-image{
  max-height:320px;
  object-fit:cover
}
#classboardStudent .cb-post:hover{
  border-color:transparent;
  box-shadow:0 12px 32px rgba(23,34,71,.08)
}

/* Teacher */
#classboardTeacher.cb-board{
  max-width:1280px;
  padding:24px 34px 90px
}
#classboardTeacher .cb-boardbar{
  margin-bottom:18px
}
.cb-teacherbar{
  position:relative;
  top:auto;
  margin:0 0 26px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
  box-shadow:none
}
.cb-teacherbar-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px
}
.cb-teacher-context{
  display:flex;
  flex-direction:column;
  gap:8px
}
.cb-teacher-statusline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.cb-teacher-status,
.cb-teacher-stat{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--cb-line);
  color:var(--cb-muted);
  font-size:11px;
  font-weight:700
}
.cb-teacher-status{
  background:var(--cb-green-soft);
  border-color:transparent;
  color:var(--cb-green)
}
.cb-teacher-status[data-state="ended"]{
  background:#f1f3f5;
  color:#707783
}
.cb-teacher-status[data-state="locked"]{
  background:#fff7e8;
  color:#8b6516
}
.cb-teacher-stat b{
  margin-left:4px;
  color:var(--cb-ink)
}
.cb-teacherbar .title{
  margin:0 0 5px;
  padding:0;
  border:0;
  font-size:14px
}
.cb-teacher-tools.cb-teacher-primary{
  width:auto;
  display:flex;
  grid-template-columns:none;
  gap:8px
}
.cb-teacherbar .cb-btn{
  min-height:46px;
  padding:10px 16px;
  border-radius:12px;
  background:#fff;
  font-size:12px
}
.cb-teacherbar #qrBtn,
.cb-teacherbar #materialBtn,
.cb-teacherbar #presentBtn{
  background:var(--cb-navy)!important;
  border-color:var(--cb-navy)!important;
  color:#fff!important
}
.cb-teacher-utility{
  margin-top:13px;
  display:flex;
  align-items:center;
  gap:8px
}
.cb-teacher-utility>.cb-btn,
.cb-teacher-utility>details>summary{
  min-height:38px;
  padding:7px 11px;
  border-radius:999px;
  background:#fff!important;
  color:var(--cb-muted)!important;
  border-color:var(--cb-line)!important
}
.cb-teacher-more-menu{
  top:calc(100% + 7px)
}
.cb-teacher-intro{
  margin-bottom:18px
}
.cb-teacher-intro h1{
  margin:0 0 18px;
  font-size:40px;
  line-height:1.15;
  letter-spacing:-.055em
}
.cb-teacher-intro .cb-question{
  min-height:112px;
  margin:0;
  padding:22px 24px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  font-size:24px
}
#classboardTeacher .cb-materials{
  margin:0 0 24px
}
.cb-teacher-feed{
  margin-top:26px
}
#teacherWall.cb-wall{
  columns:3 280px;
  column-gap:14px
}
#teacherWall .cb-post{
  border:0;
  box-shadow:0 8px 24px rgba(23,34,71,.05)
}

/* Admin */
.cb-shell{
  max-width:1360px;
  padding:52px 34px 90px
}
.cb-admin-hero{
  min-height:190px;
  padding:8px 4px 30px;
  align-items:flex-end
}
.cb-admin-hero h1{
  max-width:820px;
  font-size:50px;
  line-height:1.12;
  letter-spacing:-.065em
}
.cb-admin-hero p{
  max-width:760px;
  margin-top:14px;
  font-size:15px
}
.cb-admin-hero-action{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px
}
.cb-admin-hero-action>span{
  color:var(--cb-muted);
  font-size:12px
}
.cb-new-board{
  min-height:54px;
  padding:0 22px;
  border-radius:13px
}
.cb-quick-start{
  margin:10px 0 42px
}
.cb-section-title{
  margin-bottom:16px
}
.cb-section-title h2{
  font-size:28px
}
.cb-section-title p{
  margin-top:4px;
  font-size:13px
}
.cb-quick-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px
}
.cb-quick-card{
  min-height:236px;
  padding:14px;
  border:0;
  border-radius:20px;
  box-shadow:0 7px 22px rgba(23,34,71,.04)
}
.cb-template-card:before{
  height:132px;
  margin-bottom:12px;
  border:0;
  border-radius:16px;
  background:
    linear-gradient(#fff,#fff) 14px 16px/38% 10px no-repeat,
    linear-gradient(#eaf7f2,#eaf7f2) 14px 38px/78% 24px no-repeat,
    linear-gradient(#fff,#fff) 14px 72px/78% 18px no-repeat,
    linear-gradient(#fff,#fff) 14px 98px/62% 18px no-repeat,
    #eef2f1
}
.cb-template-card:nth-child(3n+2):before{
  background:
    linear-gradient(#fff,#fff) 14px 15px/26% 100px no-repeat,
    linear-gradient(#fff,#fff) 50% 15px/26% 100px no-repeat,
    linear-gradient(#fff,#fff) 93% 15px/26% 100px no-repeat,
    #edf1f4
}
.cb-template-card:nth-child(3n):before{
  background:
    linear-gradient(#dfeae5,#dfeae5) 14px 20px/41% 86px no-repeat,
    linear-gradient(#f3e8df,#f3e8df) 94% 20px/41% 86px no-repeat,
    #f4f5f5
}
.cb-template-card>span{
  top:20px;
  right:18px
}
.cb-template-card>b{
  font-size:17px
}
.cb-template-card>small{
  margin-top:4px;
  font-size:12px;
  line-height:1.45
}
.cb-template-card>em{
  top:148px
}
#classboardAdmin .cb-panel-head{
  padding:6px 2px 14px
}
#classboardAdmin .cb-panel-head h2{
  font-size:26px
}
#classboardAdmin .cb-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px
}
#classboardAdmin .cb-card.cb-recent-row{
  min-height:86px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 130px auto;
  align-items:center;
  gap:20px;
  padding:17px 19px;
  border:0;
  border-radius:16px;
  box-shadow:0 5px 18px rgba(23,34,71,.035)
}
.cb-recent-main h3{
  margin:8px 0 4px;
  font-size:18px
}
.cb-recent-row .cb-card-top{
  justify-content:flex-start;
  gap:7px
}
.cb-recent-row .cb-code-block{
  margin:0;
  min-width:120px;
  padding:10px 12px
}
.cb-recent-row .cb-actions{
  margin:0;
  justify-content:flex-end
}
.cb-recent-row .cb-actions .cb-btn{
  min-height:38px
}

@media(max-width:1000px){
  .cb-quick-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  #classboardAdmin .cb-card.cb-recent-row{
    grid-template-columns:1fr 120px
  }
  .cb-recent-row .cb-actions{
    grid-column:1/-1;
    justify-content:flex-start
  }
}

@media(max-width:760px){
  #classboardStudent.cb-board{
    padding:14px 14px calc(96px + env(safe-area-inset-bottom))
  }
  .cb-student-intro{
    margin-bottom:12px
  }
  .cb-student-intro h1{
    font-size:27px
  }
  .cb-student-question .cb-question{
    min-height:126px;
    padding:20px;
    border-radius:20px;
    font-size:22px
  }
  #classboardStudent .cb-wall{
    columns:1
  }
  #classboardStudent .cb-materials-head{
    margin-bottom:10px
  }
  #classboardStudent .cb-material-card{
    grid-template-columns:104px 1fr
  }
  #classboardStudent .cb-material-image img{
    width:104px;
    min-height:118px
  }

  #classboardTeacher.cb-board{
    padding:14px 14px calc(92px + env(safe-area-inset-bottom))
  }
  .cb-teacherbar-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .cb-teacher-tools.cb-teacher-primary{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr)
  }
  .cb-teacherbar .cb-btn{
    padding:8px 6px;
    min-height:44px
  }
  .cb-teacher-utility{
    overflow-x:auto;
    padding-bottom:4px
  }
  .cb-teacher-intro h1{
    font-size:28px;
    margin-bottom:13px
  }
  .cb-teacher-intro .cb-question{
    min-height:110px;
    padding:18px;
    font-size:20px
  }
  #teacherWall.cb-wall{
    columns:1
  }

  .cb-shell{
    padding:32px 15px 64px
  }
  .cb-admin-hero{
    min-height:0;
    align-items:flex-start;
    gap:22px
  }
  .cb-admin-hero h1{
    font-size:36px
  }
  .cb-admin-hero-action{
    align-items:flex-start
  }
  .cb-quick-grid{
    display:flex;
    overflow-x:auto;
    gap:12px;
    margin-inline:-15px;
    padding:0 15px 10px;
    scroll-snap-type:x mandatory
  }
  .cb-quick-card{
    min-width:238px;
    max-width:238px;
    min-height:230px
  }
  #classboardAdmin .cb-card.cb-recent-row{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px
  }
  .cb-recent-row .cb-actions{
    justify-content:flex-start;
    flex-wrap:wrap
  }
}


/* QR & Results v2 */
.cb-qr-dialog{
  width:min(1180px,calc(100vw - 36px))!important;
  max-width:none;
  border-radius:28px!important
}
.cb-qr-dialog .cb-body{
  padding:24px
}
.cb-qr-stage{
  min-height:620px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 470px;
  align-items:center;
  gap:54px;
  padding:46px 50px;
  border-radius:22px;
  background:linear-gradient(135deg,#fbfcfc 0%,#f4f8f6 100%)
}
.cb-qr-copy h2{
  margin:8px 0 12px;
  font-size:48px;
  line-height:1.1;
  letter-spacing:-.06em
}
.cb-qr-copy>p{
  max-width:540px;
  margin:0 0 30px;
  color:var(--cb-muted);
  font-size:17px;
  line-height:1.7
}
.cb-qr-copy .cb-bigcode{
  margin:0 0 14px;
  font:850 58px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.15em;
  color:var(--cb-navy)
}
.cb-qr-copy .cb-url{
  max-width:560px;
  color:var(--cb-muted);
  font-size:13px
}
.cb-qr-copy .cb-actions{
  margin-top:28px
}
.cb-qr-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:28px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 50px rgba(23,34,71,.08)
}
.cb-qr-visual #qrSvg{
  width:390px;
  height:390px;
  display:grid;
  place-items:center
}
.cb-qr-visual #qrSvg svg{
  width:390px!important;
  height:390px!important;
  max-width:100%
}
.cb-qr-visual>span{
  color:var(--cb-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em
}

.cb-result-dialog{
  width:min(960px,calc(100vw - 28px))!important;
  border-radius:28px!important
}
.cb-result-dialog .cb-body{
  padding:34px
}
.cb-result-head{
  padding-bottom:24px;
  border-bottom:1px solid var(--cb-line)
}
.cb-result-head h2{
  margin:8px 0 6px;
  font-size:38px;
  letter-spacing:-.055em
}
.cb-result-meta{
  margin:0 0 14px;
  color:var(--cb-green);
  font-size:12px;
  font-weight:700
}
.cb-result-head p{
  max-width:760px;
  color:var(--cb-muted);
  font-size:15px;
  line-height:1.7
}
.cb-result-stats{
  gap:12px;
  margin:24px 0 30px
}
.cb-result-stats>div{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border:1px solid var(--cb-line);
  background:#fff;
  border-radius:18px
}
.cb-result-stats b{
  margin-top:5px;
  font-size:34px;
  color:var(--cb-navy)
}
.cb-result-section{
  margin-top:24px;
  padding-top:22px
}
.cb-result-section h3{
  margin-bottom:14px;
  font-size:16px
}
.cb-keywords{
  gap:8px
}
.cb-keywords span{
  padding:8px 12px;
  background:var(--cb-green-soft);
  color:var(--cb-green)
}
.cb-section-breakdown{
  gap:10px
}
.cb-section-breakdown>div{
  padding:12px 14px;
  border:1px solid var(--cb-line);
  background:#fff;
  border-radius:12px
}
.cb-highlights{
  gap:10px
}
.cb-highlights article{
  padding:15px 16px;
  border:1px solid var(--cb-line);
  border-radius:14px;
  background:#fff
}
.cb-highlights article>span{
  background:var(--cb-green-soft);
  color:var(--cb-green)
}
.cb-result-actions{
  padding-top:8px
}

@media(max-width:760px){
  .cb-qr-dialog{
    width:calc(100vw - 18px)!important
  }
  .cb-qr-dialog .cb-body{
    padding:10px
  }
  .cb-qr-stage{
    min-height:0;
    grid-template-columns:1fr;
    gap:24px;
    padding:24px 18px
  }
  .cb-qr-copy{
    text-align:center
  }
  .cb-qr-copy h2{
    font-size:34px
  }
  .cb-qr-copy>p{
    margin-inline:auto;
    font-size:14px
  }
  .cb-qr-copy .cb-bigcode{
    font-size:42px
  }
  .cb-qr-copy .cb-actions{
    justify-content:center
  }
  .cb-qr-visual{
    padding:18px
  }
  .cb-qr-visual #qrSvg,
  .cb-qr-visual #qrSvg svg{
    width:min(76vw,330px)!important;
    height:min(76vw,330px)!important
  }
  .cb-result-dialog .cb-body{
    padding:22px 17px
  }
  .cb-result-head h2{
    font-size:30px
  }
  .cb-result-stats{
    grid-template-columns:repeat(2,1fr)
  }
  .cb-result-stats>div{
    min-height:94px
  }
}


/* Presentation v2 */
.cb-present-dialog{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:none;
  border-radius:28px!important
}
.cb-present-dialog .cb-body{
  padding:14px
}
.cb-present-card{
  min-height:720px;
  display:flex;
  flex-direction:column;
  padding:30px 38px 24px;
  border-radius:22px;
  background:var(--cb-page);
  text-align:left
}
.cb-present-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:20px
}
.cb-present-author{
  margin-top:6px;
  color:var(--cb-green);
  font-size:16px;
  font-weight:800
}
.cb-present-progress{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  color:var(--cb-muted);
  font-size:12px;
  font-weight:800
}
.cb-present-stage{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:0;
  padding:12px 24px 20px;
  border-radius:20px;
  background:#fff
}
.cb-present-stage h2{
  max-width:980px;
  margin:0 auto 20px;
  font-size:42px;
  line-height:1.25;
  letter-spacing:-.055em;
  text-align:center
}
.cb-present-stage .cb-present-image{
  max-width:min(980px,100%);
  max-height:500px;
  margin:0 auto 24px;
  border-radius:20px;
  box-shadow:0 14px 38px rgba(23,34,71,.08)
}
.cb-present-stage .cb-present-audio,
.cb-present-stage .cb-present-video{
  width:min(980px,100%);
  max-height:500px;
  margin:0 auto 24px
}
.cb-present-stage .cb-present-video{
  border-radius:20px;
  background:#111
}
.cb-present-text{
  max-width:980px;
  margin:0 auto;
  color:var(--cb-ink);
  font-size:34px;
  line-height:1.55;
  letter-spacing:-.035em;
  text-align:center;
  white-space:pre-wrap
}
.cb-present-nav{
  justify-content:center;
  gap:8px;
  margin-top:20px
}
.cb-present-nav .cb-btn{
  min-width:104px;
  min-height:44px
}

@media(max-width:760px){
  .cb-present-dialog{
    width:calc(100vw - 12px)!important
  }
  .cb-present-dialog .cb-body{
    padding:7px
  }
  .cb-present-card{
    min-height:70vh;
    padding:20px 14px 16px
  }
  .cb-present-stage{
    padding:14px
  }
  .cb-present-stage h2{
    font-size:28px
  }
  .cb-present-text{
    font-size:22px
  }
  .cb-present-head{
    padding-bottom:14px
  }
  .cb-present-nav{
    flex-wrap:wrap
  }
}


/* Live activity */
.cb-activity-wrap{max-width:1120px;margin:20px auto 28px;padding:0 20px}
.cb-activity-card{background:#fff;border:1px solid rgba(17,38,63,.1);border-radius:22px;padding:24px;box-shadow:0 12px 34px rgba(17,38,63,.07)}
.cb-activity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.cb-activity-head h2{margin:5px 0 0;font-size:clamp(22px,3vw,32px);line-height:1.25;color:#13243a}
.cb-activity-head>span{flex:0 0 auto;background:#eef7f3;color:#17664f;border-radius:999px;padding:7px 11px;font-size:13px;font-weight:700}
.cb-activity-form{display:flex;gap:10px}
.cb-activity-form input{flex:1;min-width:0;border:1px solid #d9e2ea;border-radius:14px;padding:13px 14px;font:inherit}
.cb-activity-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cb-activity-option{min-height:54px;border:1px solid #dbe4eb;background:#fff;border-radius:15px;padding:12px 14px;text-align:left;font:inherit;font-weight:700;color:#24374b;cursor:pointer;transition:.16s ease}
.cb-activity-option:hover{transform:translateY(-1px);border-color:#8eb8aa;background:#f7fbf9}
.cb-activity-option.selected{border-color:#2f7d67;background:#edf8f4;color:#155c48;box-shadow:inset 0 0 0 1px #2f7d67}
.cb-activity-results{display:grid;gap:12px;margin-top:18px}
.cb-activity-results>div>div{display:flex;justify-content:space-between;gap:16px;font-size:14px;margin-bottom:6px}
.cb-activity-results i{display:block;height:9px;background:#edf1f4;border-radius:999px;overflow:hidden}
.cb-activity-results em{display:block;height:100%;background:linear-gradient(90deg,#274866,#3f8b72);border-radius:inherit;transition:width .25s ease}
.cb-activity-mine{margin:12px 0;background:#f3f7f9;border-radius:12px;padding:11px 13px;font-weight:700;color:#334b5f}
.cb-wordcloud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;padding:22px 14px;margin-top:14px;background:linear-gradient(145deg,#f7fafb,#f1f8f5);border-radius:18px}
.cb-wordcloud span{font-size:calc(14px + min(var(--w,1),5)*2px);font-weight:700;color:#29465c}
.cb-wordcloud span:nth-child(3n+2){color:#2e765f}
.cb-wordcloud b{font-size:11px;opacity:.55}
.cb-wordcloud.teacher{justify-content:flex-start}
.cb-activity-wrap.teacher{margin-top:18px}
.cb-activity-wrap.teacher .cb-activity-card{border-left:4px solid #2f7d67}
.cb-activity-wrap.teacher .cb-actions{margin-top:18px}
#activityDialog .cb-body{max-width:620px}
#activityDialog select,#activityDialog input,#activityDialog textarea{width:100%}
#activityDialog .cb-check{display:flex;align-items:center;gap:9px}
#activityDialog .cb-check input{width:auto}
@media(max-width:700px){
  .cb-activity-wrap{padding:0 14px;margin:14px auto 22px}
  .cb-activity-card{padding:18px;border-radius:18px}
  .cb-activity-head{gap:12px}
  .cb-activity-head h2{font-size:22px}
  .cb-activity-options{grid-template-columns:1fr}
  .cb-activity-form{flex-direction:column}
}


/* Quiz game */
.cb-quiz-builder-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 12px}
.cb-quiz-builder-head>div{display:grid;gap:3px}
.cb-quiz-builder-head small{color:#6d7d89}
.cb-quiz-editor{border:1px solid #dce5eb;border-radius:16px;padding:16px;margin:12px 0;background:#f9fbfc}
.cb-quiz-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cb-quiz-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cb-quiz-editor select{width:100%;border:1px solid #d8e1e8;border-radius:12px;padding:11px 12px;background:#fff;font:inherit}
.cb-quiz-game-card{position:relative;overflow:hidden}
.cb-quiz-progress{display:flex;align-items:center;gap:10px;margin:8px 0 18px}
.cb-quiz-progress>b{font-size:13px;background:#1f405e;color:#fff;border-radius:999px;padding:7px 11px}
.cb-quiz-progress>span{font-size:13px;font-weight:700;color:#5d7182}
.cb-quiz-progress>strong{margin-left:auto;font-size:20px;color:#173e5f}
.cb-quiz-progress>strong.ended,.cb-quiz-timer.ended{color:#9a3d36}
.cb-quiz-question{font-size:clamp(24px,3.4vw,38px);line-height:1.22;margin:8px 0 20px;color:#102d46}
.cb-quiz-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.cb-quiz-option{position:relative;min-height:68px}
.cb-quiz-option>b{margin-left:auto;font-size:12px;background:#e8f6ee;color:#236148;padding:4px 7px;border-radius:999px}
.cb-quiz-option.correct{border-color:#5c9d77;background:#edf8f1;color:#205e3c}
.cb-quiz-option.wrong{border-color:#c68c85;background:#fff3f1;color:#8d3f37}
.cb-quiz-option:disabled{cursor:default;opacity:1;transform:none}
.cb-quiz-teacher-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cb-quiz-teacher-option{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dce5eb;border-radius:14px;padding:14px 15px;background:#fff}
.cb-quiz-teacher-option span{font-weight:700;color:#2b4154}
.cb-quiz-teacher-option span b{font-size:11px;margin-left:5px;padding:3px 6px;border-radius:999px;background:#dff3e7;color:#226042}
.cb-quiz-teacher-option em{font-style:normal;font-size:13px;color:#687b89}
.cb-quiz-teacher-option.correct{border-color:#66a27e;background:#f1faf4}
.cb-quiz-answer-count{margin-top:14px;font-weight:700;color:#496173}
.cb-quiz-wait{margin-top:14px;padding:12px 14px;border-radius:13px;background:#f2f6f8;color:#506677;font-weight:700;text-align:center}
.cb-quiz-feedback{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;padding:15px 16px;border-radius:15px}
.cb-quiz-feedback.correct{background:#edf8f1;color:#205e3c}
.cb-quiz-feedback.wrong{background:#fff3f1;color:#8d3f37}
.cb-quiz-feedback strong{font-size:17px}
.cb-quiz-feedback span{font-weight:800}
.cb-quiz-results .correct>div span{font-weight:800;color:#236148}
.cb-quiz-my-score{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 12px}
.cb-quiz-my-score>span{display:flex;justify-content:space-between;gap:12px;padding:13px 15px;background:#f3f7f9;border-radius:13px;color:#536979}
.cb-quiz-my-score b{color:#183d5b}
.cb-leaderboard{margin-top:18px;border-top:1px solid #e1e8ed;padding-top:16px}
.cb-leaderboard>.cb-kicker{margin-bottom:8px}
.cb-leaderboard>div:not(.cb-kicker){display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid #edf1f4}
.cb-leaderboard>div:not(.cb-kicker)>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef3f6;color:#36536a}
.cb-leaderboard>div:not(.cb-kicker)>span{font-weight:700;color:#2e4659}
.cb-leaderboard>div:not(.cb-kicker)>strong{color:#163c5a}
.cb-leaderboard.student{margin-top:12px}
@media(max-width:700px){
  .cb-quiz-editor-grid,.cb-quiz-options,.cb-quiz-teacher-options,.cb-quiz-my-score{grid-template-columns:1fr}
  .cb-quiz-progress{flex-wrap:wrap}
  .cb-quiz-progress>strong{margin-left:0}
  .cb-quiz-question{font-size:24px}
}


/* Classroom quiz presenter */
.cb-present-dialog:has(.cb-quiz-presenter){width:min(96vw,1400px);max-width:1400px}
.cb-quiz-presenter{min-height:78vh;display:flex;flex-direction:column;background:#f8fbfc;border-radius:22px;padding:28px}
.cb-quiz-presenter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #dfe8ee}
.cb-quiz-presenter-head h1{font-size:clamp(30px,4vw,52px);margin:4px 0 0;color:#102f49}
.cb-quiz-presenter-head>span{font-size:16px;font-weight:800;background:#edf5f2;color:#235f4b;border-radius:999px;padding:10px 14px}
.cb-quiz-presenter-stage{flex:1;display:flex;flex-direction:column;justify-content:center;padding:24px 0}
.cb-quiz-present-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.cb-quiz-present-progress>span{font-size:20px;font-weight:900;background:#1d425f;color:#fff;border-radius:999px;padding:9px 14px}
.cb-quiz-present-progress>strong{font-size:30px;color:#173f5f}
.cb-quiz-present-progress i{font-style:normal}
.cb-quiz-present-progress i.ended{color:#9a3d36}
.cb-quiz-presenter-stage>h2{font-size:clamp(34px,5vw,64px);line-height:1.16;margin:0 0 28px;text-align:center;color:#0f2d46}
.cb-quiz-present-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cb-quiz-present-option{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;min-height:88px;padding:16px 18px;border:2px solid #dbe5eb;border-radius:20px;background:#fff}
.cb-quiz-present-option>b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef3f6;color:#294a63;font-size:18px}
.cb-quiz-present-option>span{font-size:clamp(20px,2.4vw,30px);font-weight:800;color:#243f54}
.cb-quiz-present-option>em{font-style:normal;font-size:18px;font-weight:800;color:#587083}
.cb-quiz-present-option.correct{border-color:#63a17d;background:#eef9f2}
.cb-quiz-present-option.correct>b{background:#dcefe3;color:#205f3d}
.cb-quiz-present-ranking{width:min(720px,100%);margin:28px auto 0}
.cb-quiz-present-ranking>div:not(.cb-kicker){display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid #dde7ed}
.cb-quiz-present-ranking>div:not(.cb-kicker)>b{font-size:22px;text-align:center}
.cb-quiz-present-ranking>div:not(.cb-kicker)>span{font-size:22px;font-weight:800;color:#28465d}
.cb-quiz-present-ranking>div:not(.cb-kicker)>strong{font-size:20px;color:#153d5c}
@media(max-width:760px){
  .cb-quiz-presenter{padding:18px;min-height:70vh}
  .cb-quiz-present-options{grid-template-columns:1fr}
  .cb-quiz-present-option{min-height:70px}
  .cb-quiz-presenter-stage>h2{text-align:left}
}


/* Quiz bank */
#quizBankDialog .cb-body{max-width:720px}
.cb-quiz-bank-list{display:grid;gap:10px;margin-top:14px}
.cb-quiz-bank-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #dce5eb;border-radius:15px;background:#fff}
.cb-quiz-bank-item>div:first-child{display:grid;gap:4px;min-width:0}
.cb-quiz-bank-item strong{font-size:16px;color:#253f54;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb-quiz-bank-item span{font-size:13px;color:#70818e}
.cb-quiz-bank-item .cb-actions{margin:0;flex:0 0 auto}
@media(max-width:620px){
  .cb-quiz-bank-item{align-items:flex-start;flex-direction:column}
  .cb-quiz-bank-item .cb-actions{width:100%}
  .cb-quiz-bank-item .cb-actions .cb-btn{flex:1}
}


/* Integrated activity summary */
.cb-result-activities{display:grid;gap:12px}
.cb-result-activity{border:1px solid #dfe7ed;border-radius:15px;padding:15px 16px;background:#fff}
.cb-result-activity.quiz{background:linear-gradient(145deg,#fbfdfc,#f2f8f5)}
.cb-result-activity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.cb-result-activity-head>div{display:grid;gap:4px}
.cb-result-activity-head b{font-size:16px;color:#253f54}
.cb-result-activity-head span{font-size:13px;color:#6c7e8b}
.cb-result-activity-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cb-result-activity-stats>span{padding:7px 9px;background:#eef4f6;border-radius:999px;font-size:12px;color:#577080}
.cb-result-activity-stats b{color:#183e5b}
.cb-result-activity-top{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.cb-result-activity-top>span{padding:7px 9px;border:1px solid #dbe5e9;border-radius:10px;background:#fff;font-size:12px;color:#435e71}
@media(max-width:620px){
  .cb-result-activity-head{flex-direction:column}
  .cb-result-activity-head .cb-btn{width:100%}
}


/* Student participation reports */
.cb-result-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cb-result-section-head>span{font-size:13px;font-weight:800;color:#607585}
.cb-student-reports{display:grid;gap:10px}
.cb-student-report{border:1px solid #dde7ed;border-radius:15px;background:#fff;overflow:hidden}
.cb-student-report>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;cursor:pointer;list-style:none}
.cb-student-report>summary::-webkit-details-marker{display:none}
.cb-student-report>summary>div{display:grid;gap:3px}
.cb-student-report>summary strong{color:#263f53;font-size:15px}
.cb-student-report>summary span{font-size:12px;color:#71828f}
.cb-student-report>summary em{font-style:normal;font-weight:800;color:#173d5a}
.cb-student-report-body{padding:0 16px 16px;border-top:1px solid #eef2f5}
.cb-student-report-stats{display:flex;flex-wrap:wrap;gap:7px;padding-top:14px}
.cb-student-report-stats>span{padding:7px 9px;border-radius:999px;background:#f1f5f7;color:#5c7282;font-size:12px}
.cb-student-report-stats b{color:#213f55}
.cb-student-quiz-list{display:grid;gap:7px;margin-top:12px}
.cb-student-quiz-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:10px;background:#f8fafb}
.cb-student-quiz-list span{color:#425d70}
.cb-student-quiz-list b{color:#173e5c;font-size:12px}
@media(max-width:620px){
  .cb-student-report>summary{align-items:flex-start}
  .cb-student-quiz-list>div{flex-direction:column}
}


/* Classboard admin operations */
.cb-board-tools{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px;border:1px solid #dfe7ec;border-radius:16px;background:#f8fafb}
.cb-board-search{display:grid;gap:6px;flex:1;max-width:520px}
.cb-board-search>span{font-size:12px;font-weight:800;color:#5f7382}
.cb-board-search input{width:100%;border:1px solid #d7e1e7;border-radius:12px;background:#fff;padding:11px 13px;font:inherit;color:#243e53}
.cb-board-search input:focus{outline:2px solid rgba(47,125,103,.18);border-color:#78a99a}
.cb-board-filter{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cb-board-filter .cb-btn.selected{background:#1f4a68;color:#fff;border-color:#1f4a68}
.cb-recent-row.archived{opacity:.82;background:#f6f7f8}
.cb-recent-row.archived .cb-code-block{opacity:.6}
.cb-status.archived{background:#eceff1;color:#56636c}
@media(max-width:760px){
  .cb-board-tools{align-items:stretch;flex-direction:column}
  .cb-board-search{max-width:none}
  .cb-board-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .cb-board-filter .cb-btn{width:100%}
}
