.cl-app { --cl-ink:#122f55; --cl-muted:#506981; --cl-border:#d9e6ef; min-height:100svh; color:var(--cl-ink); background:#f2f7fc; }
.cl-app :where(h1,h2,h3,p) { margin:0; }
.cl-app button:disabled { cursor:default; opacity:.55; }
.cl-bound,.cl-top-inner { width:min(1136px,calc(100% - 48px)); margin-inline:auto; }
.cl-topbar { color:white; background:#082e61; border-bottom:3px solid #01bac2; }
.cl-top-inner { display:flex; align-items:center; gap:20px; min-height:70px; }
.cl-brand { border:0; color:inherit; background:transparent; padding:0; display:flex; }
.cl-top-title { color:#d7f1fc; padding-inline-start:20px; border-inline-start:1px solid #5c829f; font-size:.9rem; }
.cl-top-user { margin-inline-start:auto; display:flex; gap:22px; align-items:center; }
.cl-top-user>span:first-child { display:inline-flex; gap:7px; align-items:center; font-size:.85rem; }
.cl-brand-partner { display:flex; border-inline-start:1px solid #5c829f; padding-inline-start:20px; }
.cl-brand-partner .institute-brand { font-size:19px; }
.cl-btn,.cl-iconbtn,.cl-mic-switch,.cl-text-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:750; }
.cl-btn { min-height:42px; padding:7px 17px; border:1px solid transparent; border-radius:12px; line-height:1.4; }
.cl-primary { color:white; background:linear-gradient(110deg,#006cae,#124d91); }
.cl-teal { color:#043b51; background:linear-gradient(105deg,#1ce1c2,#39dddb); }
.cl-quiet,.cl-iconbtn { background:white; color:#175185; border:1px solid #cbdce9; }
.cl-iconbtn { width:43px; height:43px; padding:0; border-radius:12px; }
.cl-btn:hover,.cl-iconbtn:hover,.cl-mic-switch:hover { filter:brightness(.95); }
.cl-btn .ui-icon,.cl-iconbtn .ui-icon { flex-shrink:0; }
.cl-card { background:white; border:1px solid var(--cl-border); border-radius:19px; padding:20px 22px; box-shadow:0 4px 16px #19416d09; min-width:0; }
.cl-card h2,.cl-stage-head h2 { display:flex; gap:9px; align-items:center; font-size:1.13rem; line-height:1.5; }
.cl-card h2>.ui-icon { color:#1574ac; }
.cl-card h3 { margin:12px 0 6px; font-size:1.18rem; line-height:1.55; }
.cl-muted,.cl-count { color:var(--cl-muted); font-size:.9rem; line-height:1.7; }
.cl-loading,.cl-connection,.cl-notice { padding:12px 16px; border-radius:12px; line-height:1.65; }
.cl-loading { color:#425d75; background:white; }
.cl-connection,.cl-notice { margin-bottom:14px; background:#fff4d8; color:#65460e; border:1px solid #ead59e; }
.cl-notice { background:#fff0ec; border-color:#edc9bf; color:#783229; }
.cl-badge,.cl-kind { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:750; line-height:1.4; padding:5px 10px; border-radius:999px; }
.cl-badge { color:#214a70; background:#e8f4fb; white-space:nowrap; }
.cl-badge i { width:8px; height:8px; border-radius:50%; background:currentColor; }
.cl-badge[data-phase="teaching"],.cl-badge[data-phase="teaching_resumed"],.cl-badge[data-phase="activity_open"] { color:#006339; background:#d8f9ed; }
.cl-badge[data-phase="activity_closed"],.cl-badge[data-phase="waiting"] { color:#684311; background:#fff0c5; }
.cl-person-mark { display:inline-grid; place-items:center; flex:none; width:34px; height:34px; border-radius:12px; font-weight:800; color:#066c95; background:#ddf4fa; }
.cl-room-main { padding-block:25px 50px; }
.cl-room-heading { display:flex; align-items:center; gap:20px; justify-content:space-between; margin-bottom:21px; }
.cl-room-heading p { color:#287089; font-size:.83rem; font-weight:750; }
.cl-room-heading h1 { margin-top:2px; font-size:clamp(1.45rem,2.3vw,2.1rem); line-height:1.4; }
.cl-room-grid { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(260px,.92fr); gap:19px; align-items:start; }
.cl-main-column,.cl-side-column { display:grid; gap:16px; min-width:0; }
.cl-media-panel { background:#102d4b; color:white; border-radius:20px; overflow:hidden; }
.cl-stage-head { display:flex; align-items:center; justify-content:space-between; gap:8px; background:#0a2543; padding:12px 19px; }
.cl-stage-head h2 { font-size:1rem; }
.cl-media-host { min-width:0; }
.cl-media-host>p { padding:38px 20px; color:#c2d5e3; text-align:center; }
.cl-media-host video,.cl-media-host img,.cl-card audio { max-width:100%; }
.cl-card audio { width:min(100%,340px); }
.cl-controls,.cl-student-state { display:grid; gap:14px; }
.cl-controls>button { justify-self:start; }
.cl-text-button { padding:3px 0; border:none; color:#106999; background:none; text-decoration:underline; text-underline-offset:3px; font-size:.87rem; }
.cl-end { color:#953a36; }
.cl-launch-form,.cl-answer-form,.cl-spoken { display:grid; gap:13px; }
.cl-launch-form { max-width:100%; }
.cl-field { display:grid; gap:5px; min-width:0; font-size:.9rem; font-weight:650; }
.cl-app :where(select,input[type="text"],input[type="number"]) { width:100%; min-width:0; font:inherit; min-height:41px; border-radius:9px; border:1px solid #bacfdf; padding:7px 10px; color:#133757; background:white; }
.cl-material-form { display:flex; align-items:end; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid var(--cl-border); }
.cl-material-form .cl-field { flex:1; }
.cl-board-body,.cl-question { line-height:1.75; white-space:pre-line; }
.cl-examples { list-style:none; margin:13px 0 0; padding:10px 15px; border-inline-start:3px solid #0da7b5; background:#f2f8fd; border-radius:8px; font-weight:600; line-height:1.65; }
.cl-activity-line { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.cl-kind { color:#085485; background:#e5f2fc; }
.cl-clock { font-family:Arial,sans-serif; font-weight:750; font-variant-numeric:tabular-nums; direction:ltr; color:#87550c; }
.cl-answer-form,.cl-sent,.cl-solution { margin-top:14px; }
.cl-answer-form>button,.cl-spoken>button { justify-self:start; }
.cl-options { display:grid; gap:7px; }
.cl-options label { display:flex; gap:10px; align-items:center; padding:9px 12px; border:1px solid #d0dfeb; border-radius:11px; cursor:pointer; }
.cl-options label:has(:checked) { background:#e6f6fd; border-color:#408cb6; }
.cl-options input { accent-color:#006aa4; }
.cl-order { border:0; padding:0; margin:0; }
.cl-order legend,.cl-audio-file { font-weight:650; font-size:.92rem; }
.cl-order-result { padding:9px 10px; min-height:46px; margin:8px 0; background:#f1f8fc; border:1px dashed #91afc4; border-radius:9px; }
.cl-word-bank { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.cl-word-bank button { background:white; color:#174968; border:1px solid #bdd4e3; padding:5px 12px; border-radius:8px; }
.cl-word-bank button:disabled { opacity:.4; }
.cl-match { display:grid; gap:8px; }
.cl-match label { display:grid; grid-template-columns:minmax(70px,1fr) 2fr; align-items:center; gap:12px; }
.cl-audio-file { display:grid; gap:5px; }
.cl-audio-file input { max-width:100%; }
.cl-spoken small { color:var(--cl-muted); }
.cl-inline-error { margin:0; color:#8b2e28; }
.cl-sent,.cl-solution { display:grid; gap:2px; border-radius:10px; background:#e7f8f0; padding:10px 14px; }
.cl-solution { background:#edf5fd; }
.cl-answer-preview { list-style:none; margin:10px 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.cl-answer-preview li { background:#edf4f9; padding:3px 11px; border-radius:7px; }
.cl-roster ul,.th-roster ul { list-style:none; padding:0; margin:0; }
.cl-count { margin:2px 0 10px; }
.cl-roster li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 0; border-block-start:1px solid #e4edf3; }
.cl-roster-identity { display:flex; align-items:center; gap:8px; min-width:0; }
.cl-roster-identity small { display:block; font-size:.74rem; color:var(--cl-muted); }
.cl-mic-switch { margin-inline-start:auto; border:1px solid #c6d9e5; color:#285675; border-radius:9px; background:white; font-size:.75rem; min-height:33px; padding:4px 8px; }
.cl-mic-switch[aria-pressed="true"] { background:#e0f7ed; border-color:#9dd6c1; color:#146341; }
.cl-submission { width:100%; display:grid; gap:5px; padding:7px 9px; border-radius:9px; background:#f2f7fa; overflow-wrap:anywhere; }
.cl-grade { display:flex; align-items:end; gap:8px; }
.cl-grade label { flex:1; min-width:0; }
.cl-confirm { color:var(--cl-ink); max-width:min(90vw,370px); border:1px solid #d4e2eb; border-radius:16px; padding:22px; }
.cl-confirm::backdrop { background:#041d3e94; }
.cl-confirm form { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.cl-report { margin-top:16px; }
.cl-report-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cl-report [data-report-output]:not(:empty) { margin-top:14px; }
.cl-report-list { display:grid; gap:6px; }
.cl-report-list details { border:1px solid var(--cl-border); border-radius:11px; padding:8px 12px; }
.cl-report-list summary { cursor:pointer; font-weight:750; }
.cl-report-list summary>.ui-icon { color:#1574ac; }
.cl-report-list ul { padding:0; margin:8px 0 0; list-style:none; }
.cl-report-list li { padding:8px; border-top:1px solid #e0ebf2; }
.cl-report-answer { display:grid; gap:5px; margin:6px 0; }
.cl-report-answer small { color:var(--cl-muted); }
.cl-report-answer .cl-grade { max-width:270px; }
.cl-danger { background:#9a3932; color:white; }
@media(max-width:760px) {
  .cl-bound,.cl-top-inner { width:calc(100% - 26px); }
  .cl-top-inner { min-height:59px; gap:10px; }
  .cl-top-title { padding-inline-start:10px; font-size:.76rem; }
  .cl-top-user { gap:0; }
  .cl-brand-partner { display:none; }
  .cl-top-user>span:first-child { max-width:95px; font-size:.73rem; }
  .cl-top-user bdi { max-width:75px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cl-brand .masari-brand--compact { font-size:18px; }
  .cl-room-main { padding-top:16px; }
  .cl-room-heading { gap:8px; margin-bottom:14px; }
  .cl-room-heading h1 { font-size:1.3rem; }
  .cl-room-heading .cl-btn { font-size:.79rem; min-height:38px; padding:5px 10px; flex:none; }
  .cl-room-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .cl-main-column,.cl-side-column { display:contents; }
  .cl-media-panel { order:1; }
  .cl-controls { order:2; }
  .cl-active { order:3; }
  .cl-board { order:4; }
  .cl-roster,.cl-student-state { order:5; }
  .cl-card { padding:15px; border-radius:15px; }
  .cl-material-form { flex-wrap:wrap; }
}
.cl-board-audio { display:block; max-width:100%; margin:10px 0; }
