/* Teacher live lesson layout v1: wider, denser, larger type. Keeps existing colours. */
body .eg-teaching-surface .eg-stage-content.live-book-content{
  max-width:1180px!important;width:100%!important;margin:0 auto!important;
  padding:18px 22px 22px!important;box-sizing:border-box!important;line-height:1.55!important;
}
body .eg-teaching-surface .eg-stage-content.live-book-content:not(.is-reading-stage)>*{max-width:none!important}
/* Long reading texts keep a comfortable line length */
body .eg-teaching-surface .eg-stage-content.live-book-content.is-reading-stage{max-width:980px!important}

/* Whiteboard / Add Text tools share the stage heading row instead of taking their own row (CSS only, no DOM moves) */
body .eg-teaching-surface{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch!important}
body .eg-teaching-surface>*{grid-column:1/-1!important;min-width:0!important}
body .eg-teaching-surface>.eg-stage-heading{grid-column:1!important;grid-row:1!important;padding:16px 22px 12px!important}
body .eg-teaching-surface>.eg-stage-heading>p.eg-label{font-size:12px!important}
body .eg-teaching-surface>.eg-stage-heading+.live-class-tools-whiteboard-only{
  grid-column:2!important;grid-row:1!important;align-self:stretch!important;align-items:flex-end!important;
  padding:0 22px 14px 0!important;margin:0!important;background:transparent!important;box-shadow:none!important;
  border:0!important;border-bottom:1px solid rgb(238,242,247)!important;border-radius:0!important;width:auto!important;position:static!important;
}
body .eg-teaching-surface>.eg-stage-heading+.live-class-tools-whiteboard-only .live-tool-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important;width:auto!important}

/* Section labels: keep word spacing (flex dropped the space: "SPEAKINGCHALLENGE") */
body .eg-stage-content .live-book-subhead{gap:.35em!important;font-size:15px!important;margin:18px 0 10px!important}
body .eg-stage-content .live-book-subhead:first-child{margin-top:0!important}
body .eg-stage-content .b2-learning-callout-copy{font-size:17px!important;margin-bottom:12px!important}

/* Grids that fill every row: at most three per row, no gaps, no lone half-width card */
body .eg-stage-content .live-prompt-grid,
body .eg-stage-content .find-someone-grid{
  display:flex!important;flex-wrap:wrap!important;gap:12px!important;grid-template-columns:none!important;
}
body .eg-stage-content .live-prompt-grid>.live-prompt-row{flex:1 1 max(260px, calc(33.333% - 12px))!important;min-width:0!important;padding:16px!important}
body .eg-stage-content .find-someone-grid>.find-someone-card{flex:1 1 max(260px, calc(33.333% - 12px))!important;min-width:0!important;padding:16px!important}

/* Question and hint sizes */
body .eg-stage-content .live-prompt-row .live-prompt-copy p,
body .eg-stage-content .find-someone-content>strong{font-size:18px!important;line-height:1.4!important}
body .eg-stage-content .discussion-hint{font-size:15px!important;line-height:1.4!important}

/* One consistent number circle */
body .eg-stage-content .live-prompt-row>span,
body .eg-stage-content .find-someone-teacher-card .find-someone-number{
  background:#2563eb!important;color:#fff!important;border:0!important;
  width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;
  display:inline-grid!important;place-items:center!important;font-size:15px!important;font-weight:800!important;line-height:1!important;
}
body .eg-stage-content .find-someone-grid{counter-reset:egfind}
body .eg-stage-content .find-someone-teacher-card{counter-increment:egfind}
body .eg-stage-content .find-someone-teacher-card .find-someone-number{font-size:0!important}
body .eg-stage-content .find-someone-teacher-card .find-someone-number::before{content:counter(egfind);font-size:15px}

/* Spotlight tag sits in its own column, never over the title */
body .eg-stage-content .find-someone-teacher-card{grid-template-columns:auto minmax(0,1fr) auto!important;align-items:start!important}
body .eg-stage-content .find-someone-teacher-card .find-someone-spotlight-label{
  position:static!important;inset:auto!important;transform:none!important;grid-column:3!important;grid-row:1!important;align-self:start!important;white-space:nowrap!important;
}

/* Present mode: larger again */
body.teacher-presentation-mode .eg-stage-content .live-prompt-row .live-prompt-copy p,
body.teacher-presentation-mode .eg-stage-content .find-someone-content>strong{font-size:23px!important}
body.teacher-presentation-mode .eg-stage-content .discussion-hint{font-size:18px!important}
body.teacher-presentation-mode .eg-stage-content .b2-learning-callout-copy{font-size:20px!important}
body.teacher-presentation-mode .eg-stage-content .live-book-subhead{font-size:17px!important}
body.teacher-presentation-mode .eg-teaching-surface .eg-stage-content.live-book-content{max-width:1400px!important}

@media (max-width:760px){
  body .eg-teaching-surface .eg-stage-content.live-book-content{padding:14px!important}
  body .eg-stage-content .live-prompt-grid>.live-prompt-row,
  body .eg-stage-content .find-someone-grid>.find-someone-card{flex-basis:100%!important}
  body .eg-teaching-surface{display:block!important}
}
