/* ============================================================
   유자보드 — 화면 (P0 뼈대 · 2026-10-28)
   규격 v4 「햇살 든 유자」 · 토큰은 crownyuja.co.kr/ds/v3 에서 온다
   1920×1080 무대를 화면에 맞춰 확대·축소한다(계획서 §5 D8)
   ============================================================ */

html, body { margin: 0; height: 100%; }
body {
  min-height: 100dvh;
  background: var(--yj-canvas);
  color: var(--yj-ink);
  font-family: var(--yj-font-ui);
  overflow: hidden;
}

/* ── 무대 ─────────────────────────────────────────── */
/* place-content 까지 가운데 — 1920×1080 보다 작은 화면에서 칸(트랙)이 왼쪽 위에 붙어 칠판이 오른쪽 · 아래로 밀려 잘리던 것 (2026-10-28) */
.cb-viewport { position: fixed; inset: 0; display: grid; place-items: center; place-content: center; overflow: hidden; }

.cb-stage {
  width: 1920px; height: 1080px;
  transform-origin: center center;
  display: flex; flex-direction: column;
  position: relative;
  background: var(--yj-canvas);
}

/* ── 머리띠 ───────────────────────────────────────── */
.cb-bar {
  height: 56px; flex: none;
  display: flex; align-items: center; gap: var(--yj-s5);
  padding: 0 var(--yj-s5);
  background: var(--yj-card);
  border-bottom: 1px solid var(--yj-line);
}
.cb-brand { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-brand__face { width: 30px; height: 30px; }
.cb-brand__name { font-family: var(--yj-font-serif); font-size: 18px; font-weight: 700; color: var(--yj-ink-deep); }
.cb-brand__class { font-size: var(--yj-t-small); color: var(--yj-sub); padding-left: var(--yj-s2); border-left: 1px solid var(--yj-line); }

.cb-menu { display: flex; gap: var(--yj-s1); margin-left: var(--yj-s4); }
.cb-menu a {
  height: 36px; padding: 0 var(--yj-s4);
  display: inline-flex; align-items: center;
  border-radius: var(--yj-r-full);
  font-size: calc(var(--yj-t-small) * var(--cb-menu-scale, 1)); font-weight: 600;
  color: var(--yj-sub); text-decoration: none;
}
.cb-menu a[hidden] { display: none; }
.cb-calm *, .cb-calm *::before, .cb-calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
.cb-menu a[aria-current="page"] { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }

.cb-bar__right { margin-left: auto; display: flex; align-items: center; gap: var(--yj-s2); }
.cb-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cb-edit-only { display: none; }

/* ── 자유 격자 24 × 12 ────────────────────────────── */
.cb-grid {
  --cols: 24; --rows: 12;
  flex: 1; min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: var(--yj-s4);
  padding: var(--yj-s5);
}
.cb-w {
  grid-column: var(--x) / span var(--w);
  grid-row: var(--y) / span var(--h);
  min-width: 0; min-height: 0;
  position: relative;
  background: var(--yj-card);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1);
  overflow: hidden;
}
.cb-w__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: var(--yj-s4) var(--yj-s5);
  min-height: 0;
}
.cb-w__head { display: flex; align-items: center; gap: var(--yj-s2); flex: none; margin-bottom: var(--yj-s3); min-width: 0; }
.cb-w__title { display: inline-flex; align-items: center; white-space: nowrap; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.cb-w__title .cb-ic { width: 18px; height: 18px; color: var(--yj-sub); margin-right: 6px; }
.cb-w__meta { margin-left: auto; font-size: var(--yj-t-cap); color: var(--yj-sub); white-space: nowrap; }
.cb-w__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); margin-top: var(--yj-s3); flex: none; }
.cb-w__note { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-link {
  font: inherit; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-yuja-ink);
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.cb-w__edit { font-weight: 600; color: var(--yj-sub); }
.cb-w__head > .cb-w__edit { margin-left: auto; }
.cb-w__head > .cb-w__meta ~ .cb-w__edit { margin-left: var(--yj-s3); }
.cb-state { margin: auto 0; font-size: var(--yj-t-small); color: var(--yj-sub); display: flex; flex-direction: column; align-items: flex-start; gap: var(--yj-s3); }
.cb-state p { margin: 0; }

.cb-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--yj-r-full); font-size: var(--yj-t-label); font-weight: 700; white-space: nowrap;
}
.cb-badge--yuja { background: var(--yj-yuja-100); color: var(--yj-yuja-ink); }
.cb-badge--leaf { background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.cb-badge--line { background: var(--yj-canvas); color: var(--yj-sub); }

/* ── 시계 — 숫자 · 바늘 · 둘 다 ───────────────────── */
.cb-clock { flex: 1; min-height: 0; display: flex; align-items: center; gap: var(--yj-s5); container-type: size; }
.cb-clock__dg { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cb-clock__ampm { font-size: var(--yj-t-small); color: var(--yj-sub); font-weight: 600; min-height: 1.2em; }
.cb-clock__time { font-family: var(--yj-font-disp); font-size: min(30cqw, 52cqh); line-height: 1; color: var(--yj-ink-deep); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-clock__time small { font-size: 0.42em; color: var(--yj-sub); letter-spacing: 0; }
.has-sec .cb-clock__time { font-size: min(22cqw, 46cqh); }
.cb-clock__date { margin-top: var(--yj-s3); font-size: var(--yj-t-body); color: var(--yj-ink); white-space: nowrap; }
.cb-clock__date b { font-weight: 900; color: var(--yj-ink-deep); }
/* 날짜를 시각 위에, 크게 */
.cb-clock__date--top { margin: 0 0 var(--yj-s2); font-size: min(7.5cqw, 15cqh); font-weight: 600; line-height: 1.2; }
.cb-clock--both .cb-clock__date--top { font-size: min(4cqw, 12cqh); }
.cb-clock--analog { flex-direction: column; justify-content: center; gap: var(--yj-s2); }
.cb-clock--analog .cb-clock__an { height: 82cqh; aspect-ratio: 1; max-width: 100cqw; }
.cb-clock__date--under { margin-top: 0; }
.cb-clock--both .cb-clock__an { height: min(92cqh, 48cqw); aspect-ratio: 1; flex: none; }
.cb-clock--both .cb-clock__dg { flex: 1; min-width: 0; }
.cb-clock--both .cb-clock__time { font-size: min(11cqw, 30cqh); }
.cb-clock--both.has-sec .cb-clock__time { font-size: min(8.5cqw, 26cqh); }
.cb-an { width: 100%; height: 100%; display: block; }
.cb-an__face { fill: var(--yj-card); stroke: var(--yj-line-strong); stroke-width: 1; }
.cb-an__tick { stroke: var(--yj-line-strong); stroke-width: 0.6; }
.cb-an__tick--big { stroke: var(--yj-ink); stroke-width: 1.4; stroke-linecap: round; }
.cb-an__nums text { font-family: var(--yj-font-ui); font-size: 8.5px; font-weight: 700; fill: var(--yj-ink-deep); text-anchor: middle; }
.cb-an__h { stroke: var(--yj-ink-deep); stroke-width: 3.6; stroke-linecap: round; }
.cb-an__m { stroke: var(--yj-ink); stroke-width: 2.2; stroke-linecap: round; }
.cb-an__s { stroke: var(--yj-orange); stroke-width: 0.9; stroke-linecap: round; }
.cb-an__pin { fill: var(--yj-orange); }
.cb-w__inner > .cb-w__edit { position: absolute; right: var(--yj-s4); bottom: var(--yj-s3); }

/* ── 오늘 시간표 ──────────────────────────────────── */
.cb-tt { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: var(--yj-s2); flex: 1; min-height: 0; }
.cb-tt__cell {
  container-type: size; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card);
}
.cb-tt__no { font-size: max(calc(12.2px / var(--cb-s, 1)), min(12cqh, 13cqw)); color: var(--yj-sub); }
/* 과목명 — 줄 높이만큼 칸을 꼭 차지하게(flex 가 줄이지 않게) 해서 위아래가 잘리지 않는다 */
.cb-tt__subj { flex: none; font-size: min(28cqh, 22cqw); font-weight: 800; line-height: 1.25; color: var(--yj-ink-deep); white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: clip; }
.cb-tt__time { font-size: max(calc(12.2px / var(--cb-s, 1)), min(11cqh, 12cqw)); color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.cb-tt__cell.is-done .cb-tt__subj { color: var(--yj-faint); }
.cb-tt__cell.is-now { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); }
.cb-tt__cell.is-next { border: 2px dashed var(--yj-yuja-600); }
.cb-tt__now { display: flex; align-items: center; gap: var(--yj-s3); margin-top: var(--yj-s3); min-height: 24px; flex: none; }
.cb-tt__now b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tt__now--weekend b, .cb-tt__now--after b { color: var(--yj-sub); }
.cb-bar-track { flex: 1; height: 8px; border-radius: var(--yj-r-full); background: var(--yj-line); overflow: hidden; }
.cb-bar-fill { height: 100%; background: var(--yj-yuja-500); border-radius: inherit; }

/* ── 날씨 · 미세먼지 ──────────────────────────────── */
.cb-wx { display: flex; align-items: center; gap: 0.8em; flex: 1; min-height: 0; overflow: hidden; font-size: 20px; }
.cb-wx__art { width: 4.2em; height: 4.2em; color: var(--yj-ink); stroke-width: 1.3; }
.cb-wx__main { min-width: 0; }
.cb-wx__temp { font-family: var(--yj-font-disp); font-size: 3.2em; line-height: 1; color: var(--yj-ink-deep); }
.cb-wx__desc { font-size: max(var(--yj-t-cap), 0.75em); color: var(--yj-ink); margin-top: 0.3em; line-height: 1.4; }
.cb-wx__dust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s2); margin-top: var(--yj-s3); flex: none; }
.cb-wx__pm { padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-canvas); font-size: var(--yj-t-cap); color: var(--yj-sub); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.cb-wx__pm span { width: 100%; }
.cb-wx__pm b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-wx__pm small { font-size: var(--yj-t-label); color: var(--yj-sub); }
.cb-wx__pm--1 { background: var(--yj-leaf-tint); } .cb-wx__pm--1 b { color: var(--yj-leaf-ink); }
.cb-wx__pm--3 { background: var(--yj-orange-tint); } .cb-wx__pm--3 b { color: var(--yj-orange-ink); }
.cb-wx__pm--4 { background: var(--yj-error-tint); } .cb-wx__pm--4 b { color: var(--yj-error-ink); }
.cb-wx__src { margin-top: var(--yj-s2); font-size: var(--yj-t-micro); color: var(--yj-sub); flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 오늘의 한자 어휘 — 훈음이 주인공, 한자는 작고 흐리게 ── */
.cb-hj { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-hj__top {
  flex: 0 0 38%; min-height: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; column-gap: 0.25em;
  overflow: hidden;
  font-size: 96px; line-height: 1.1;
}
.cb-hj__huneum { font-family: var(--yj-font-disp); font-weight: 800; color: var(--yj-ink-deep); }
.cb-hj__char { font-family: var(--yj-font-hanja); font-size: 0.42em; color: var(--yj-sub); }
.cb-hj__words {
  flex: 1; min-height: 0;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.35em;
  overflow: hidden; font-size: 30px;
}
.cb-hj__words li {
  padding: 0.18em 0.6em;
  border-radius: var(--yj-r-sm);
  background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200);
  font-weight: 700; color: var(--yj-ink-deep); line-height: 1.3;
}

/* ── 관용어 · 맞춤법 ──────────────────────────────── */
.cb-idiom { flex: 1; min-height: 0; overflow: hidden; font-size: 34px; }
.cb-idiom__word { font-family: var(--yj-font-disp); font-size: 1em; line-height: 1.15; color: var(--yj-ink-deep); }
.cb-idiom__mean { font-size: max(var(--yj-t-small), 0.55em); color: var(--yj-ink); margin-top: 0.2em; line-height: 1.45; }
/* 관용어 초성 퀴즈 — 왼쪽 상황 대화 말풍선 · 오른쪽 초성과 단추 */
.cb-iq { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--yj-s4); align-items: stretch; }
.cb-iq.is-nochat { grid-template-columns: 1fr; }
.cb-iq__chat { margin: 0; padding: 0; list-style: none; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 0.35em; font-size: 18px; }
.cb-iq__msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 92%; }
.cb-iq__msg.is-right { align-self: flex-end; align-items: flex-end; }
.cb-iq__who { font-size: 0.72em; font-weight: 700; color: var(--yj-sub); margin: 0 0.4em 0.1em; }
.cb-iq__bubble { margin: 0; padding: 0.32em 0.7em; border-radius: var(--yj-r-lg); background: var(--yj-surface-2); color: var(--yj-ink-deep); line-height: 1.4; }
.cb-iq__msg.is-left .cb-iq__bubble { border-top-left-radius: var(--yj-r-xs); }
.cb-iq__msg.is-right .cb-iq__bubble { background: var(--yj-yuja-200); border-top-right-radius: var(--yj-r-xs); }
.cb-iq__blank { display: inline-block; margin: 0 0.15em; padding: 0 0.35em; border-radius: var(--yj-r-xs); border-bottom: 2px solid var(--yj-yuja-600); background: var(--yj-card-hi); font-weight: 800; letter-spacing: 0.06em; color: var(--yj-ink-deep); }
.is-revealed .cb-iq__blank { letter-spacing: 0; background: var(--yj-leaf-tint); border-bottom-color: var(--yj-leaf); }
.cb-iq__side { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--yj-s2); }
.cb-iq__k { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); }
.cb-iq__word { font-family: var(--yj-font-disp); font-size: 40px; line-height: 1.15; color: var(--yj-ink-deep); letter-spacing: 0.04em; overflow: hidden; }
.is-revealed .cb-iq__word { letter-spacing: 0; }
.cb-iq__mean { margin: 0; font-size: var(--yj-t-small); line-height: 1.45; color: var(--yj-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-iq__mean[hidden] { display: none; }
.cb-iq.is-compact { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: var(--yj-s3); }
.cb-iq.is-compact .cb-iq__who { display: none; }
.cb-iq.is-compact .cb-iq__chat { gap: 0.25em; }
.cb-iq.is-compact .cb-iq__bubble { padding: 0.2em 0.6em; line-height: 1.3; }
.cb-iq.is-compact .cb-iq__k, .cb-iq.is-compact .cb-iq__mean { display: none; }
.cb-iq.is-compact .cb-iq__word { white-space: nowrap; }
.cb-iq.is-compact .cb-iq__acts { flex-wrap: nowrap; gap: var(--yj-s1); }
.cb-iq.is-compact .cb-iq__acts .yj-btn { padding: 0 var(--yj-s2); }
.cb-iq.is-full { gap: var(--yj-s7); padding: var(--yj-s5); }
.cb-iq.is-full .cb-iq__mean { font-size: var(--yj-t-body); -webkit-line-clamp: 4; }
.cb-iq__acts { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-iq__acts .yj-btn { display: inline-flex; align-items: center; gap: 4px; }

.cb-sp { display: flex; align-items: center; gap: var(--yj-s3); flex: 1; min-height: 0; }
.cb-sp__q { flex: 1; min-width: 0; max-height: 100%; overflow: hidden; font-size: 22px; color: var(--yj-ink); line-height: 1.45; }
.cb-sp__opt {
  flex: none; height: 52px; min-width: 96px; padding: 0 var(--yj-s4);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--yj-r-sm); border: 1px solid var(--yj-line-strong); background: var(--yj-card);
  font-size: 24px; font-weight: 800; color: var(--yj-ink-deep);
}
.is-revealed .cb-sp__opt[data-ok="true"] { background: var(--yj-leaf-tint); border: 2px solid var(--yj-leaf); color: var(--yj-leaf-ink); }
.is-revealed .cb-sp__opt[data-ok="false"] { color: var(--yj-faint); text-decoration: line-through; }
.cb-sp__explain { margin: var(--yj-s2) 0 0; font-size: var(--yj-t-cap); color: var(--yj-ink); line-height: 1.5; flex: none; }
.cb-blank { display: inline-block; width: 3em; border-bottom: 2px solid var(--yj-ink); vertical-align: -2px; margin: 0 0.2em; }

/* ── 칠판 공지 ────────────────────────────────────── */
/* 칠판 글은 메모 편집기(.cb-memo) 모양을 쓴다 */
.cb-notice { flex: 1; min-height: 0; }

/* ── 학급 온도계 ──────────────────────────────────── */
.cb-thermo { display: flex; gap: var(--yj-s4); flex: 1; min-height: 0; }
.cb-thermo__tube { width: 28px; border-radius: var(--yj-r-full); background: var(--yj-line); position: relative; overflow: hidden; }
.cb-thermo__tube i { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: var(--yj-orange); border-radius: inherit; }
.cb-thermo__side { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cb-thermo__deg { font-family: var(--yj-font-disp); font-size: 54px; line-height: 1; color: var(--yj-ink-deep); }
.cb-thermo__deg small { font-size: var(--yj-t-small); color: var(--yj-sub); font-family: var(--yj-font-ui); }
.cb-thermo__goal { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-thermo__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s2); }

/* ── 우리 반 — 이름이 주인공, 칸은 학생 수만큼(빼지 않는다) ── */
.cb-roster__tabs { display: flex; align-items: center; gap: var(--yj-s1); margin-left: var(--yj-s3); flex: 1; min-width: 0; }
.cb-roster__tabs button {
  height: 36px; padding: 0 var(--yj-s3); display: inline-flex; align-items: center; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--yj-r-full); font: inherit; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); white-space: nowrap;
}
.cb-roster__tabs button[aria-selected="true"] { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }
.cb-roster__go { margin-left: var(--yj-s3); }
/* 업 · 다운 — 연한 파랑 · 빨강 배지. 고르면 진하게 */
.cb-roster__tabs .cb-roster__aw { font-weight: 800; padding: 0 var(--yj-s4); }
.cb-roster__tabs .cb-roster__aw--up { background: var(--cb-up-tint); color: var(--cb-up-ink); }
.cb-roster__tabs .cb-roster__aw--down { background: var(--yj-error-tint); color: var(--yj-error-ink); }
.cb-roster__tabs .cb-roster__aw--up[aria-selected="true"] { background: var(--cb-up-tint); color: var(--cb-up-ink); box-shadow: inset 0 0 0 2px var(--cb-up-ink); }
.cb-roster__tabs .cb-roster__aw--down[aria-selected="true"] { background: var(--yj-error-tint); color: var(--yj-error-ink); box-shadow: inset 0 0 0 2px var(--yj-error-ink); }
.cb-roster__sep { flex: none; width: 1px; height: 24px; background: var(--yj-line-strong); margin: 0 var(--yj-s2); }
/* 체크리스트 항목 — 많으면 가로로 밀어 본다 */
.cb-roster__checks { flex: 1; min-width: 0; display: flex; gap: var(--yj-s1); overflow-x: auto; scrollbar-width: thin; }
.cb-roster__q--up { color: var(--cb-up-ink); }
.cb-roster__q--down { color: var(--yj-error-ink); }
.cb-roster__q[disabled] { opacity: .45; cursor: default; }
.cb-w__full { flex: none; width: 36px; height: 36px; margin-left: var(--yj-s1); }
.cb-w__full .cb-ic { width: 18px; height: 18px; }
/* 여럿 고르기 도구 줄 */
.cb-roster__sel { display: flex; align-items: center; gap: var(--yj-s1); flex-wrap: wrap; margin-bottom: var(--yj-s2); }
.cb-roster__selnum { margin-left: auto; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-ink-deep); }
.cb-roster { flex: 1; min-height: 0; display: grid; gap: 8px; }
.cb-st {
  container-type: size; font: inherit; padding: 0; cursor: pointer; touch-action: manipulation;
  position: relative; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--cb-st-bg, var(--yj-card));
  overflow: hidden;
}
/* 칸 — 번호는 왼쪽에 크고 옅게(이름 뒤 배경처럼), 이름은 오른쪽 아래, 유자 개수는 오른쪽 위에 크게 */
.cb-st__name {
  position: absolute; right: 7%; bottom: 8%; z-index: 1;
  font-size: calc(min(38cqh, 25cqw) * var(--cb-st-name-s, 1)); font-weight: 800; line-height: 1.1; color: var(--cb-st-name, var(--yj-ink-deep));
  white-space: nowrap; max-width: 88%; overflow: hidden; text-overflow: clip;
}
.cb-st__no {
  position: absolute; left: 5%; top: 50%; transform: translateY(-52%); z-index: 0;
  font-family: var(--yj-font-disp); font-size: calc(min(78cqh, 40cqw) * var(--cb-st-no-s, 1)); font-weight: 800; line-height: 1;
  color: var(--cb-st-no, var(--yj-sub)); opacity: var(--cb-st-no-o, .55);   /* 예전 --yj-line 은 배경과 거의 같아 안 보였다(2026-11-06) */
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.cb-st__pt {
  position: absolute; top: 5%; right: 7%; z-index: 1;
  font-family: var(--yj-font-disp); font-size: calc(min(40cqh, 24cqw) * var(--cb-st-yuja-s, 1)); font-weight: 800; line-height: 1;
  color: var(--cb-st-yuja, var(--yj-yuja-ink)); font-variant-numeric: tabular-nums;
}
.cb-st__pt.is-zero { color: var(--yj-faint); }
.cb-roster.is-down .cb-st.is-picked { background: var(--yj-error-tint); border-color: var(--yj-error); }
/* 크게 보기 — 이름과 유자 개수를 크게, 번호는 더 옅게 */
.cb-roster.is-full { gap: 12px; }
.cb-roster.is-full .cb-st__name { font-size: calc(min(40cqh, 26cqw) * var(--cb-st-name-s, 1)); }
.cb-roster.is-full .cb-st__pt { font-size: calc(min(44cqh, 28cqw) * var(--cb-st-yuja-s, 1)); }

/* ── 내 도구 모음 ─────────────────────────────────── */
.cb-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--yj-s2); flex: 1; min-height: 0; }
.cb-tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--yj-r-sm); background: var(--yj-canvas); border: 1px solid var(--yj-line);
  font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-ink);
}
.cb-tool .cb-ic { width: 26px; height: 26px; color: var(--yj-ink-deep); }
.cb-tool--add { background: transparent; border-style: dashed; color: var(--yj-sub); }

/* ── 꾸미기(편집) 상태 ────────────────────────────── */
.is-editing .cb-edit-only { display: flex; }
.is-editing .cb-view-only { display: none; }
.is-editing .cb-grid {
  background-image:
    linear-gradient(to right, var(--yj-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--yj-line) 1px, transparent 1px);
  background-size: calc((100% - 48px + 16px) / 24) calc((100% - 48px + 16px) / 12);
  background-position: 24px 24px;
}
.is-editing .cb-w { outline: 2px dashed var(--yj-yuja-600); outline-offset: -2px; cursor: grab; touch-action: none; user-select: none; }
.is-editing .cb-w__inner { pointer-events: none; }
.is-editing .cb-w__head > .cb-w__meta,
.is-editing .cb-w__head > .cb-link,
.is-editing .cb-w__edit,
.is-editing .cb-w__full,
.is-editing .cb-w__head > .cb-badge:last-child { visibility: hidden; }
.cb-w.is-dragging { z-index: 4; box-shadow: var(--yj-sh-2); cursor: grabbing; }
.cb-w.is-blocked { outline-color: var(--yj-error); }
/* 잠깐 겹쳐 둔 위젯 — 빨간 실선. 마지막으로 옮긴 것이 위로 */
.is-editing .cb-w.is-overlap { outline: 3px solid var(--yj-error); outline-offset: -3px; }
/* 겹침 표시 글자(R02-03) — 빨간 테두리만으로는 무엇이 문제인지 몰랐다 */
.is-editing .cb-w.is-overlap::after { content: "겹침"; position: absolute; top: 6px; left: 6px; z-index: 4; padding: 2px var(--yj-s2); border-radius: var(--yj-r-sm); background: var(--yj-error); color: var(--yj-card); font-size: var(--yj-t-small); font-weight: 700; pointer-events: none; }
.is-editing .cb-w.is-front { z-index: 3; }
.cb-w.is-alert { animation: cb-alert var(--yj-m-slow) var(--yj-ease) 3; }
@keyframes cb-alert { 50% { box-shadow: 0 0 0 6px var(--yj-error); } }

.cb-w__grip, .cb-w__close, .cb-w__resize { display: none; }
.is-editing .cb-w__grip {
  display: flex; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 22px; align-items: center; justify-content: center; padding: 0;
  border: 0; background: var(--yj-yuja-300); border-radius: 0 0 var(--yj-r-sm) var(--yj-r-sm); color: var(--yj-ink-deep);
  cursor: grab;
}
.is-editing .cb-w__grip:focus-visible { outline: 2px solid var(--yj-ink-deep); outline-offset: 1px; }
.is-editing .cb-w__grip .cb-ic { width: 18px; height: 18px; }
.is-editing .cb-w__resize {
  display: flex; position: absolute; right: 0; bottom: 0; width: 36px; height: 36px;
  align-items: flex-end; justify-content: flex-end; padding: 4px;
  color: var(--yj-yuja-ink); cursor: nwse-resize;
}
.is-editing .cb-w__close {
  display: flex; position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  align-items: center; justify-content: center; border-radius: var(--yj-r-full);
  background: var(--yj-card-hi); border: 1px solid var(--yj-line-strong); color: var(--yj-sub); cursor: pointer;
}
.is-editing .cb-w__close .cb-ic { width: 16px; height: 16px; }

/* 위젯 고르기 — 모니터 오른쪽 끝에 꽂힌 종이. 평소에는 왼쪽 「위젯 고르기」 귀만 보이고,
   마우스를 대면 종이를 끌어 빼듯 스르륵 나온다. 고정핀을 누르면 나온 채로 있고 위젯 판이 왼쪽으로 비켜 준다 */
:root { --cb-panel-w: 340px; --cb-panel-ear: 32px; }
.cb-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--cb-panel-w); z-index: 40;
  flex-direction: column; gap: var(--yj-s2);
  background: var(--yj-card-hi); border-left: 1px solid var(--yj-line-strong);
  box-shadow: var(--yj-sh-2); padding: var(--yj-s5) var(--yj-s5) var(--yj-s5) calc(var(--cb-panel-ear) + var(--yj-s4));
  overflow: auto;
  transform: translateX(calc(100% - var(--cb-panel-ear)));
  transition: transform var(--yj-m-slow) var(--yj-ease);
}
.cb-panel.is-open { transform: none; }
/* 종이 귀 — 오른쪽 끝 위에서 아래까지 */
.cb-panel__tab {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--cb-panel-ear);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--yj-s2);
  border: 0; border-right: 1px solid var(--yj-line); background: var(--yj-yuja-100); cursor: pointer; padding: 0;
  font: inherit; font-size: var(--yj-t-small); font-weight: 800; color: var(--yj-ink-deep);
}
.cb-panel__tab span { writing-mode: vertical-rl; letter-spacing: 0.15em; }
.cb-panel__tab .cb-ic { width: 20px; height: 20px; }
.cb-panel.is-open .cb-panel__tab { background: var(--yj-yuja-200); }
/* 고정 — 위젯 판(무대)이 판 너비만큼 왼쪽으로 비켜 선다(app.js fit 이 남은 너비로 다시 맞춘다) */
.is-editing .cb-viewport { right: var(--cb-panel-ear); }
.is-editing.is-panel-pinned .cb-viewport { right: var(--cb-panel-w); }
/* 위젯을 끄는 동안에는(고정이 아니면) 판이 들어가 가리지 않는다 */
.is-dragging-w .cb-panel:not(.is-pinned) { transform: translateX(calc(100% - var(--cb-panel-ear))); pointer-events: none; }
.cb-panel__head { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-panel__head h2 { flex: 1; }
.cb-panel__pin[aria-pressed="true"] { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-panel__auto { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-panel h2 { margin: 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-panel p { margin: 0 0 var(--yj-s2); font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-panel__group { font-size: var(--yj-t-label); font-weight: 700; color: var(--yj-sub); margin: var(--yj-s3) 0 6px; }
.cb-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-panel li {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 0 var(--yj-s3); border-radius: var(--yj-r-sm); border: 1px solid var(--yj-line);
  font-size: var(--yj-t-small); color: var(--yj-ink);
}
.cb-switch {
  width: 40px; height: 24px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--yj-r-full); background: var(--yj-line-strong); position: relative;
  transition: background var(--yj-m-fast) var(--yj-ease);
}
.cb-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yj-card-hi); transition: left var(--yj-m-fast) var(--yj-ease);
}
.cb-switch.is-on { background: var(--yj-leaf); }
.cb-switch.is-on::after { left: 19px; }

/* ── 알림 한 줄 ───────────────────────────────────── */
.cb-toast {
  position: absolute; left: 50%; bottom: var(--yj-s6); transform: translateX(-50%); z-index: 46; /* 탭 화면(19~20) · 설정(25) · 창(30) 위, 잠금(50) · PIN(60) 아래 — S1 */
  padding: var(--yj-s3) var(--yj-s5); border-radius: var(--yj-r-full);
  background: var(--yj-ink-deep); color: var(--yj-card); font-size: var(--yj-t-small); font-weight: 600;
  box-shadow: var(--yj-sh-2);
}
.cb-toast[hidden] { display: none; }
/* [발송] 뒤 2초 — 초록 「복사 완료」 단추(2026-11-07) */
@keyframes cb-sent-pop { 0% { transform: scale(1); } 40% { transform: scale(0.94); } 100% { transform: scale(1); } }
#cb-alim-copy.is-sent { background: var(--yj-leaf-tint); border-color: var(--yj-leaf); color: var(--yj-leaf-ink); animation: cb-sent-pop var(--yj-m-mid) var(--yj-ease); }
@media (prefers-reduced-motion: reduce) { #cb-alim-copy.is-sent { animation: none; } }
/* 설정 › 일반 상단 탭 — 손잡이를 끌어 순서 바꾸기 */
.cb-gn-item { display: inline-flex; align-items: center; gap: 2px; padding-right: var(--yj-s2); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-gn-item.is-drag { border-color: var(--yj-yuja-600); background: var(--yj-yuja-100); }
.cb-gn-grip { width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--yj-sub); cursor: grab; touch-action: none; border-radius: var(--yj-r-sm); }
.cb-gn-grip:hover, .cb-gn-grip:focus-visible { color: var(--yj-ink-deep); background: var(--yj-yuja-100); }
.cb-gn-item.is-drag .cb-gn-grip { cursor: grabbing; }
.cb-gn-grip.is-fixed { width: var(--yj-s3); cursor: default; }
/* 아래에서 스윽 올라와 보였다가 흐려지며 사라진다(2026-11-07) */
@keyframes cb-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cb-toast.is-in { animation: cb-toast-in var(--yj-m-mid) var(--yj-ease); }
.cb-toast.is-out { opacity: 0; transform: translate(-50%, 8px); transition: opacity var(--yj-m-slow) var(--yj-ease), transform var(--yj-m-slow) var(--yj-ease); }
@media (prefers-reduced-motion: reduce) { .cb-toast.is-in { animation: none; } .cb-toast.is-out { transition: none; } }

/* ── 선생님 설정 창 ───────────────────────────────── */
.cb-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: var(--yj-s6); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg);
  background: var(--yj-card-hi); color: var(--yj-ink); box-shadow: var(--yj-sh-2);
}
.cb-dialog::backdrop { background: var(--yj-overlay); }
.cb-dialog h2 { margin: 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-dialog__lead { margin: var(--yj-s2) 0 var(--yj-s5); font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.5; }
.cb-dialog__sec { padding: var(--yj-s4) 0; border-top: 1px solid var(--yj-line); display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-dialog__sec h3 { margin: 0; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-dialog small { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-field { display: flex; flex-direction: column; gap: 6px; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink-deep); }
.cb-field em { font-style: normal; font-weight: 600; color: var(--yj-sub); margin-left: var(--yj-s2); }
.cb-field textarea { resize: vertical; font-family: var(--yj-font-ui); line-height: 1.5; }
.cb-field-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--yj-s3); }
.cb-inline { display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap; }
.cb-inline select { width: 96px; }
.cb-inline input[type="number"] { width: 96px; }
.cb-check { display: flex; align-items: center; gap: var(--yj-s2); font-size: var(--yj-t-small); color: var(--yj-ink); }
.cb-check input { width: 20px; height: 20px; accent-color: var(--yj-yuja-600); }
.cb-file { position: relative; overflow: hidden; cursor: pointer; }
.cb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cb-dialog__foot { display: flex; justify-content: flex-end; gap: var(--yj-s2); padding-top: var(--yj-s4); border-top: 1px solid var(--yj-line); }

/* ── 선생님 설정 창 — 왼쪽 글자 메뉴 + 오른쪽 칸 (P1) ── */
/* 설정은 팝업이 아니라 화면 가득한 한 페이지(2026-10-29) — 위쪽 머리 줄 + 왼쪽 메뉴 + 오른쪽 칸 */
.cb-set {
  position: absolute; inset: var(--cb-bar-h, 56px) 0 0 0; z-index: 25; width: auto; height: auto; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--yj-canvas);
}
.cb-set::backdrop { background: var(--yj-canvas); }
.cb-set[open] { display: flex; flex-direction: column; }
.cb-set__top {
  flex: none; display: flex; align-items: center; gap: var(--yj-s4); min-height: 56px; padding: 0 var(--yj-s6);
  background: var(--yj-card); border-bottom: 1px solid var(--yj-line);
}
.cb-set__top .cb-dialog__lead { margin: 0; }
.cb-set__back { display: inline-flex; align-items: center; gap: 4px; }
/* 화면 전체를 쓰는 보통 웹 화면 — 좌우 빈 여백 없이 */
.cb-set__body { width: 100%; margin: 0; background: var(--yj-card-hi); grid-template-columns: 240px minmax(0, 1fr) !important; }
.cb-set .cb-dialog__foot { width: 100%; margin: 0; box-sizing: border-box; background: var(--yj-card); }
.cb-set__panes { padding: var(--yj-s6) var(--yj-s7); }
.cb-set__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid var(--yj-line); }
.cb-set__nav { display: flex; flex-direction: column; gap: var(--yj-s1); padding: var(--yj-s4); border-right: 1px solid var(--yj-line); }
.cb-set__nav button {
  height: 40px; padding: 0 var(--yj-s4); border: 0; border-radius: var(--yj-r-full); background: transparent;
  text-align: left; font: inherit; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); cursor: pointer;
}
.cb-set__nav button:hover { color: var(--yj-ink-deep); }
.cb-set__nav button[aria-current="true"] { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }
/* 「백업 · 동기화 · 초기화」 묶음 — 누르면 아래로 스르륵 하위 칸 */
.cb-set__grp { display: flex; flex-direction: column; }
.cb-set__nav .cb-set__grp-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s1); height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }
.cb-set__nav { overflow-y: auto; }
.cb-set__grp-btn .cb-ic { width: 18px; height: 18px; flex: none; transition: transform var(--yj-m-mid) var(--yj-ease); }
.cb-set__grp.is-open .cb-set__grp-btn .cb-ic { transform: rotate(180deg); }
.cb-set__sub {
  display: flex; flex-direction: column; gap: 2px; overflow: hidden; max-height: 0;
  margin: 0 0 0 var(--yj-s4); padding-left: var(--yj-s2); border-left: 2px solid var(--yj-line);
  transition: max-height var(--yj-m-slow) var(--yj-ease);
}
.cb-set__grp.is-open .cb-set__sub { max-height: 160px; }
.cb-set__nav .cb-set__sub button { padding-left: var(--yj-s3); }
.cb-set__panes { overflow: auto; padding: var(--yj-s5) var(--yj-s6); }
.cb-set__sec { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-set__sec[hidden] { display: none; }
.cb-set__sec h3 { margin: 0 0 var(--yj-s1); font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-set__note { margin: 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); font-size: var(--yj-t-small); color: var(--yj-ink); }
.cb-set__note[hidden] { display: none; }
.cb-set .cb-dialog__foot { padding: var(--yj-s3) var(--yj-s6); }
.cb-set__scroll { overflow-x: auto; }
.cb-tt-edit { border-collapse: collapse; width: 100%; font-size: var(--yj-t-cap); }
.cb-tt-edit th { padding: 4px; color: var(--yj-sub); font-weight: 700; text-align: center; }
.cb-tt-edit td { padding: 3px; }
.cb-tt-edit input { width: 100%; min-width: 0; height: 36px; padding: 0 6px; font-size: var(--yj-t-small); box-sizing: border-box; }
.cb-tt-edit input[type="time"] { min-width: 104px; }
.cb-tt-edit input[type="text"] { min-width: 64px; text-align: center; }
/* 종 시각 자동 맞춤 줄 */
.cb-tt-auto { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2) var(--yj-s4); padding: var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); }
.cb-tt-auto label { display: inline-flex; align-items: center; gap: var(--yj-s2); font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink-deep); }
.cb-tt-auto input[type="time"] { width: 148px; }
.cb-tt-auto input[type="number"] { width: 72px; }
.cb-tt-auto select { width: 112px; }
.cb-tt-auto input:disabled { opacity: .4; cursor: not-allowed; }
/* 과목 칸 — 배지를 끌어 올릴 때 · 배지를 골라 둔 때 · 막 채워진 때 */
.cb-tt-edit input.is-drop { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); }
.is-armed .cb-tt-edit input[data-subj] { cursor: copy; }
.is-armed .cb-tt-edit input[data-subj]:hover { background: var(--yj-yuja-100); }
.cb-tt-edit input.is-filled { animation: cb-tt-fill var(--yj-m-slow) var(--yj-ease); }
@keyframes cb-tt-fill { from { background: var(--yj-yuja-200); } }
/* 교과 배지 */
.cb-tt-pal { display: flex; flex-direction: column; gap: var(--yj-s3); padding: var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-tt-pal__top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s3); }
.cb-tt-pal__top b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-tt-pal__hint { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--yj-r-full); border: 1px solid var(--yj-line); background: var(--yj-canvas); }
.cb-seg button {
  height: 32px; padding: 0 var(--yj-s4); border: 0; border-radius: var(--yj-r-full); background: transparent; cursor: pointer;
  font: inherit; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub);
}
.cb-seg button[aria-checked="true"] { background: var(--yj-yuja-300); color: var(--yj-ink-deep); }
.cb-tt-pal__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2); }
.cb-tt-pal__item { display: inline-flex; align-items: center; }
.cb-tt-pal__chip { height: 40px; font-size: var(--yj-t-small); touch-action: none; user-select: none; cursor: grab; }
.cb-tt-pal__chip:active { cursor: grabbing; }
.cb-tt-pal__item.is-mine .cb-tt-pal__chip { padding-right: 2.2em; }
.cb-tt-pal__del {
  width: 28px; height: 28px; margin-left: -34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--yj-r-full); background: transparent; color: var(--yj-sub); cursor: pointer;
}
.cb-tt-pal__del:hover { background: var(--yj-canvas); color: var(--yj-ink-deep); }
.cb-tt-pal__del .cb-ic { width: 16px; height: 16px; }
.cb-tt-pal__add { height: 40px; display: inline-flex; align-items: center; gap: 4px; font-size: var(--yj-t-small); border-style: dashed; color: var(--yj-sub); }
.cb-tt-pal__add .cb-ic { width: 18px; height: 18px; }
.cb-tt-pal__new input { width: 140px; height: 40px; }
.cb-tt-pal__ghost { position: fixed; z-index: 5; pointer-events: none; height: 40px; display: inline-flex; align-items: center; transform: translate(-50%, -50%) scale(1.05); background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); box-shadow: var(--yj-sh-2); font-size: var(--yj-t-small); }
.cb-set__lunch span { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink-deep); }
.cb-set__lunch input { width: 130px; }
.cb-set__search { width: 240px; }
.cb-set__places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-set__places .cb-set__hint { font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-set__place {
  width: 100%; min-height: 44px; padding: 0 var(--yj-s3); text-align: left; cursor: pointer;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); font: inherit; font-size: var(--yj-t-small); color: var(--yj-ink);
}
.cb-set__place span { color: var(--yj-sub); margin-left: 6px; }
.cb-set__place[aria-pressed="true"] { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); }
.cb-nt-list { display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-nt-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: var(--yj-s2); align-items: center; }
.cb-set__radios { gap: var(--yj-s5); }

/* ── 배치 기억 1 · 2 · 3 (P2 · R3) ───────────────────── */
.cb-slots { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--yj-r-full); border: 1px solid var(--yj-line); background: var(--yj-canvas); margin-right: var(--yj-s2); }
.cb-slots__cycle {
  height: 32px; padding: 0 var(--yj-s2) 0 var(--yj-s3); border: 0; background: transparent; border-radius: var(--yj-r-full);
  font: inherit; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); cursor: pointer; display: inline-flex; align-items: center; gap: var(--yj-s2);
  touch-action: manipulation; user-select: none;
}
.cb-slots__cycle:hover { color: var(--yj-ink-deep); }
.cb-slots__cur {
  min-width: 30px; height: 28px; padding: 0 var(--yj-s2); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-ink-deep); box-shadow: inset 0 0 0 1px var(--yj-yuja-600);
  font-size: var(--yj-t-small); font-weight: 800; font-variant-numeric: tabular-nums;
}
.cb-slots__cycle.is-modified .cb-slots__cur { outline: 1px dashed var(--yj-yuja-600); outline-offset: 1px; }
.cb-slots__cycle:active .cb-slots__cur { background: var(--yj-yuja-200); }
.cb-slots--save .cb-slots__n { width: 36px; height: 32px; border: 0; border-radius: var(--yj-r-full); cursor: pointer; font: inherit; font-size: var(--yj-t-small); font-weight: 800; font-variant-numeric: tabular-nums; background: var(--yj-yuja-300); color: var(--yj-ink-deep); margin-left: 2px; }
.cb-slots--save .cb-slots__n[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--yj-yuja-600); }
.cb-slots--save .cb-slots__n.is-empty { background: var(--yj-line); color: var(--yj-sub); }
body.is-arming .cb-slots { box-shadow: 0 0 0 2px var(--yj-yuja-600); }
/* SET 번호마다 고유색(2026-11-16 작가) — 머리띠 SET 숫자 · 위젯 모드 번호 단추 · 바꿀 때 가운데 글자가 같은 색.
   1번은 유자 그대로, 2번부터는 먹 글자가 올라가는(대비 7 넘음) 밝은 중간 톤. 색 이름은 이 판 토큰으로만 쓴다 */
:root {
  --cb-set-1: var(--yj-yuja-300); --cb-set-2: #A9D8A4; --cb-set-3: #F8BE7E; --cb-set-4: #A9CDEB; --cb-set-5: #EDB3CF;
  --cb-set-6: #C9BCEA; --cb-set-7: #95D5CB; --cb-set-8: #E2CB9C; --cb-set-9: #F2ADA4; --cb-set-10: #CFD88C;
}
.cb-slots__cur[data-set="1"], .cb-slots--save .cb-slots__n[data-view-slot="1"]:not(.is-empty) { --cb-set: var(--cb-set-1); }
.cb-slots__cur[data-set="2"], .cb-slots--save .cb-slots__n[data-view-slot="2"]:not(.is-empty) { --cb-set: var(--cb-set-2); }
.cb-slots__cur[data-set="3"], .cb-slots--save .cb-slots__n[data-view-slot="3"]:not(.is-empty) { --cb-set: var(--cb-set-3); }
.cb-slots__cur[data-set="4"], .cb-slots--save .cb-slots__n[data-view-slot="4"]:not(.is-empty) { --cb-set: var(--cb-set-4); }
.cb-slots__cur[data-set="5"], .cb-slots--save .cb-slots__n[data-view-slot="5"]:not(.is-empty) { --cb-set: var(--cb-set-5); }
.cb-slots__cur[data-set="6"], .cb-slots--save .cb-slots__n[data-view-slot="6"]:not(.is-empty) { --cb-set: var(--cb-set-6); }
.cb-slots__cur[data-set="7"], .cb-slots--save .cb-slots__n[data-view-slot="7"]:not(.is-empty) { --cb-set: var(--cb-set-7); }
.cb-slots__cur[data-set="8"], .cb-slots--save .cb-slots__n[data-view-slot="8"]:not(.is-empty) { --cb-set: var(--cb-set-8); }
.cb-slots__cur[data-set="9"], .cb-slots--save .cb-slots__n[data-view-slot="9"]:not(.is-empty) { --cb-set: var(--cb-set-9); }
.cb-slots__cur[data-set="10"], .cb-slots--save .cb-slots__n[data-view-slot="10"]:not(.is-empty) { --cb-set: var(--cb-set-10); }
.cb-slots__cur[data-set] { background: var(--cb-set); color: var(--yj-ink-deep); box-shadow: inset 0 0 0 1px rgba(31,28,18,.22); }
.cb-slots__cycle:active .cb-slots__cur[data-set] { background: var(--cb-set); filter: brightness(.94); }
.cb-slots--save .cb-slots__n:not(.is-empty) { background: var(--cb-set, var(--yj-yuja-300)); }
.cb-slots--save .cb-slots__n[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--yj-ink-deep); }
.cb-setflash__num[data-set="1"] { color: var(--cb-set-1); } .cb-setflash__num[data-set="2"] { color: var(--cb-set-2); }
.cb-setflash__num[data-set="3"] { color: var(--cb-set-3); } .cb-setflash__num[data-set="4"] { color: var(--cb-set-4); }
.cb-setflash__num[data-set="5"] { color: var(--cb-set-5); } .cb-setflash__num[data-set="6"] { color: var(--cb-set-6); }
.cb-setflash__num[data-set="7"] { color: var(--cb-set-7); } .cb-setflash__num[data-set="8"] { color: var(--cb-set-8); }
.cb-setflash__num[data-set="9"] { color: var(--cb-set-9); } .cb-setflash__num[data-set="10"] { color: var(--cb-set-10); }

/* ── 알림장 (P2 · R7) ─────────────────────────────── */

.cb-overlay { position: absolute; inset: 0; z-index: 20; background: var(--yj-canvas); display: flex; flex-direction: column; }
.cb-overlay[hidden] { display: none; }
.cb-alim__bar {
  height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s4);
  padding: 0 var(--yj-s6); background: var(--yj-card); border-bottom: 1px solid var(--yj-line);
}
.cb-alim__date { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-alim__date h2 { margin: 0 var(--yj-s2); font-size: 28px; color: var(--yj-ink-deep); font-family: var(--yj-font-disp); min-width: 290px; text-align: center; }
.cb-alim__past { width: 210px; margin-left: var(--yj-s4); }
.cb-alim__acts { display: flex; gap: var(--yj-s2); }
.cb-alim__acts .cb-ic { margin-right: 6px; }
.cb-alim__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--yj-s5); padding: var(--yj-s5) var(--yj-s6); }
/* 불러오기 칸 너비 — 손잡이로 바꾼다(--alim-side-w, 2026-11-07) */
.cb-alim__body { --alim-side-w: 420px; grid-template-columns: minmax(0, 1fr) var(--alim-side-w); }
.cb-alim__paper {
  overflow: auto; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1);
  padding: var(--yj-s5) var(--yj-s6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--yj-s3);
}
.cb-alim__paper > .yj-btn .cb-ic { margin-right: 6px; width: 18px; height: 18px; }
/* 글 칸 오른쪽 위 [새 창] — 아이들 화면(TV)용 (2026-11-07) */
.cb-alim__paper { position: relative; }
.cb-alim__pop { position: absolute; top: var(--yj-s3); right: var(--yj-s3); z-index: 2; display: inline-flex; align-items: center; gap: 4px; }
.cb-alim__popic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cb-alim__side {
  overflow: auto; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1);
  padding: var(--yj-s5); display: flex; flex-direction: column; gap: var(--yj-s4);
}
.cb-alim__side h3 { margin: 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-alim__hint { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-alim__src { display: flex; flex-direction: column; align-items: flex-start; gap: var(--yj-s2); padding-top: var(--yj-s3); border-top: 2px solid var(--yj-line-strong); }
.cb-alim__src > b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-alim__src input[type="search"] { width: 100%; box-sizing: border-box; }
.cb-alim__found { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.cb-alim__hit {
  width: 100%; min-height: 40px; padding: 0 var(--yj-s3); text-align: left; cursor: pointer;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); font: inherit; font-size: var(--yj-t-small); color: var(--yj-ink);
}
.cb-alim__hit b { font-family: var(--yj-font-hanja); font-weight: 400; color: var(--yj-sub); margin-right: 4px; }
.cb-alim__hit span { color: var(--yj-sub); font-size: var(--yj-t-cap); margin-left: 6px; }
.cb-alim__hit:hover { border-color: var(--yj-yuja-600); }
.cb-alim__link { padding-top: var(--yj-s3); border-top: 1px solid var(--yj-line); line-height: 1.4; }
.cb-alim__preview summary { cursor: pointer; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink); }
.cb-alim__preview pre {
  margin: var(--yj-s2) 0 0; padding: var(--yj-s3); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all;
  background: var(--yj-canvas); border-radius: var(--yj-r-sm); font-family: var(--yj-font-ui); font-size: var(--yj-t-cap); line-height: 1.55; color: var(--yj-ink);
}

/* ── 선생님 바로가기 (P2 · C15) ───────────────────── */
.cb-set__links { margin-top: var(--yj-s3); padding-top: var(--yj-s4); border-top: 1px solid var(--yj-line); display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-set__links > b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-set__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s2); }
.cb-set__links li { display: flex; flex-direction: column; gap: 2px; padding: var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-set__links a { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-yuja-ink); text-decoration: none; }
.cb-set__links a:hover { text-decoration: underline; }
.cb-set__links span { font-size: var(--yj-t-cap); color: var(--yj-sub); }
/* 오늘의 어사문 — 앞으로 배울 것(2026-11-07) */
.cb-fdpk { margin-top: var(--yj-s3); }
.cb-fdpk__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--yj-s3); }
.cb-fdpk__col { padding: var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-md); background: var(--yj-card); min-width: 0; }
.cb-fdpk__t { display: block; margin-bottom: var(--yj-s2); font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-fdpk ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-fdpk li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--yj-s2); padding: var(--yj-s2); border-radius: var(--yj-r-sm); font-size: var(--yj-t-small); color: var(--yj-ink-deep); line-height: 1.45; }
.cb-fdpk li.is-today { background: var(--yj-yuja-100); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-fdpk li.cb-fdpk__wait, .cb-fdpk li.cb-fdpk__fail { display: block; color: var(--yj-sub); }
.cb-fdpk__d { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); padding-top: 2px; }
.is-today .cb-fdpk__d { color: var(--yj-yuja-ink); }
.cb-fdpk__b { min-width: 0; }
.cb-fdpk__b small { font-size: var(--yj-t-cap); color: var(--yj-sub); font-weight: 700; }
.cb-fdpk__h { font-size: 1.25em; }
.cb-fdpk__s { display: block; font-size: var(--yj-t-cap); color: var(--yj-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-fdpk__tag { font-size: var(--yj-t-cap); padding: 0 6px; border-radius: var(--yj-r-full); background: var(--yj-surface-2); color: var(--yj-sub); }
.cb-fdpk__x { font-size: var(--yj-t-cap); color: var(--yj-faint); text-decoration: line-through; }
/* 어사문 소개 */
.cb-eo { margin-top: var(--yj-s5); padding: var(--yj-s5); border-radius: var(--yj-r-lg); background: var(--yj-card); border: 1px solid var(--yj-line); box-shadow: var(--yj-sh-1); display: flex; flex-direction: column; gap: var(--yj-s4); }
.cb-eo__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--yj-s5); align-items: center; }
.cb-eo__eyebrow { margin: 0; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-yuja-ink); }
.cb-eo__title { display: flex; align-items: center; gap: var(--yj-s3); margin: var(--yj-s1) 0 var(--yj-s2); font-size: 32px; font-weight: 900; color: var(--yj-ink-deep); }
.cb-eo__title span { font-size: 0.55em; font-weight: 700; color: var(--yj-sub); }
.cb-eo__char { width: 72px; height: 72px; object-fit: contain; flex: none; }
.cb-eo__lead { margin: 0 0 var(--yj-s3); font-size: var(--yj-t-body); line-height: 1.6; color: var(--yj-ink); }
.cb-eo__points { list-style: none; margin: 0 0 var(--yj-s4); padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-eo__points li { display: flex; align-items: flex-start; gap: var(--yj-s2); font-size: var(--yj-t-small); color: var(--yj-ink); line-height: 1.5; }
.cb-eo__points .cb-ic { flex: none; margin-top: 2px; color: var(--yj-yuja-ink); }
.cb-eo__points b { color: var(--yj-ink-deep); }
.cb-eo__cta { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-eo__cta .yj-btn { text-decoration: none; }
.cb-eo__shot { margin: 0; border-radius: var(--yj-r-md); overflow: hidden; border: 1px solid var(--yj-line); box-shadow: var(--yj-sh-2); background: var(--yj-canvas); }
.cb-eo__shot img { display: block; width: 100%; height: auto; }
/* 어사문 모바일 영상 두 편 — 폰 화면처럼 나란히 */
.cb-eo__phones { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: var(--yj-s5); }
.cb-eo__phone { margin: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-eo__phone video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1169; border-radius: var(--yj-r-lg); border: 6px solid var(--yj-ink-deep); background: var(--yj-canvas); box-shadow: var(--yj-sh-2); }
.cb-eo__phone figcaption { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; text-align: center; }
.cb-eo__phone figcaption b { display: block; font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-eo__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--yj-s2); }
.cb-eo__steps li { display: flex; gap: var(--yj-s2); padding: var(--yj-s3); border-radius: var(--yj-r-md); background: var(--yj-yuja-50); border: 1px solid var(--yj-line); }
.cb-eo__steps li > b { flex: none; width: 28px; height: 28px; border-radius: var(--yj-r-full); background: var(--yj-yuja-300); color: var(--yj-ink-deep); display: inline-flex; align-items: center; justify-content: center; font-size: var(--yj-t-small); }
.cb-eo__steps span, .cb-eo__flow li { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-eo__steps strong, .cb-eo__flow strong { display: block; font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-eo__flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--yj-s2); counter-reset: eo; }
.cb-eo__flow li { padding: var(--yj-s3); border-left: 3px solid var(--yj-yuja-500); background: var(--yj-surface-1, var(--yj-card)); }
.cb-eo .cb-set__links { margin-top: 0; }
.cb-eo__foot { display: flex; align-items: center; gap: var(--yj-s4); padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-md); background: var(--yj-yuja-50); }
.cb-eo__foot img { width: 120px; height: 120px; object-fit: contain; flex: none; }
.cb-eo__foot p { margin: 0; font-size: var(--yj-t-small); color: var(--yj-ink); line-height: 1.6; }
@media (max-width: 900px) { .cb-eo__hero, .cb-fdpk__cols, .cb-eo__flow { grid-template-columns: minmax(0, 1fr); } .cb-eo__steps { grid-template-columns: 1fr 1fr; } }
.cb-w__foot .cb-inline { gap: var(--yj-s3); }

/* ── 번호판 · 칭찬 · 온도계 (P3) ───────────────────── */
.cb-st:active { transform: scale(.97); }
.cb-st.is-checked { background: var(--yj-leaf-tint); border-color: var(--yj-leaf); }
.cb-st.is-checked .cb-st__name { color: var(--yj-leaf-ink); }
.cb-st__ok { position: absolute; top: 6%; right: 6%; width: max(14px, min(26cqh, 18cqw)); height: max(14px, min(26cqh, 18cqw)); color: var(--yj-leaf-ink); stroke-width: 2.4; }
.cb-st.is-praised { border-color: var(--yj-yuja-200); }
.cb-st.is-picked { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); }
.cb-st[disabled] { cursor: default; }

/* 업 · 다운 배지 색 — 디자인 시스템에 파랑이 없어 이 화면 토큰으로 둔다 */
:root { --cb-up-tint: #E3EEFB; --cb-up-ink: #1F5FA6; }
/* 위젯 크게 보기 — 무대 가득. 카드 창(30)은 이 위에, 알림 줄(10)도 이 위에 */
.cb-full { z-index: 9; padding: var(--yj-s5); place-items: stretch; }
.cb-full__box { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.cb-full__w { position: relative; flex: 1; min-height: 0; grid-area: auto; }
.cb-full__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.cb-full .cb-w__head { padding-right: 96px; }
.cb-modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--yj-overlay); }
.cb-modal[hidden] { display: none; }
.cb-modal__box { width: 860px; max-width: calc(100% - 64px); background: var(--yj-card-hi); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-2); padding: var(--yj-s6); }
.cb-modal__box h2 { margin: 0 0 var(--yj-s5); font-size: 30px; font-family: var(--yj-font-disp); color: var(--yj-ink-deep); }
.cb-pick .cb-pick__k--up { color: var(--cb-up-ink); }
.cb-pick .cb-pick__k--down { color: var(--yj-error-ink); }
.cb-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--yj-s3); }
.cb-pick__card {
  min-height: 110px; padding: var(--yj-s4); cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--yj-s2);
  border: 1px solid var(--yj-yuja-200); border-radius: var(--yj-r-lg); background: var(--yj-yuja-50);
  font: inherit; font-size: 22px; font-weight: 700; color: var(--yj-ink-deep); line-height: 1.3;
}
.cb-pick__card b { align-self: flex-end; font-family: var(--yj-font-disp); font-size: 30px; color: var(--yj-yuja-ink); }
.cb-pick__card:hover, .cb-pick__card:focus-visible { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); outline: none; }
.cb-pick__card:active { transform: scale(.97); }
.cb-modal__foot { display: flex; justify-content: flex-end; margin-top: var(--yj-s5); }

.cb-thermo__tube i { transition: height var(--yj-m-slow) var(--yj-ease); }
.cb-thermo.is-full .cb-thermo__tube i { background: var(--yj-leaf); }
.cb-thermo__reasons { display: flex; flex-wrap: wrap; gap: 0.35em; font-size: 15px; overflow: hidden; flex: 1; min-height: 0; align-content: center; margin: var(--yj-s2) 0; }
.cb-chip {
  height: 2.1em; padding: 0 0.8em; border-radius: var(--yj-r-full); border: 1px solid var(--yj-line-strong); background: var(--yj-card);
  font: inherit; font-weight: 600; color: var(--yj-ink); cursor: pointer;
}
.cb-chip[aria-pressed="true"] { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-toast { display: flex; align-items: center; gap: var(--yj-s3); }
.cb-toast__act {
  height: 32px; padding: 0 var(--yj-s3); border: 0; border-radius: var(--yj-r-full); cursor: pointer;
  background: var(--yj-yuja-300); color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-cap); font-weight: 700;
}

/* ── 설정 창 — 확인 탭 · 칭찬 카드 · 백업 (P3) ────────── */
.cb-set__sec h3.cb-set__h3gap { margin-top: var(--yj-s5); padding-top: var(--yj-s4); border-top: 1px solid var(--yj-line); }
.cb-field-row--2 { grid-template-columns: 1fr 2fr; }
.cb-tab-edit { display: inline-flex; align-items: center; gap: 2px; }
.cb-tab-edit input { width: 120px; }
.cb-card-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s2); }
.cb-card-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 44px; gap: var(--yj-s2); align-items: center; }
.cb-bk { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-bk__row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s3); font-size: var(--yj-t-small); }
.cb-bk__row > b { min-width: 96px; color: var(--yj-ink-deep); }
.cb-bk__time { width: 140px; }
.cb-bk__keep { width: 96px; }
.cb-bk__list b { display: block; font-size: var(--yj-t-small); color: var(--yj-ink-deep); margin-bottom: var(--yj-s2); }
.cb-bk__list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 220px; overflow: auto; }
.cb-bk__list li { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); font-size: var(--yj-t-small); }

/* yj-btn 의 display 가 hidden 을 이기지 않게 */
.cb-dialog [hidden], .cb-overlay [hidden] { display: none; }

/* ── 배치 유형 5가지 (P6 · R4) ────────────────────── */
.cb-presets { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-pr { display: grid; grid-template-columns: 360px minmax(0, 1fr) auto; gap: var(--yj-s4); align-items: center; padding: var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); background: var(--yj-card); }
.cb-pr__mini { position: relative; width: 360px; aspect-ratio: 2 / 1; border-radius: var(--yj-r-sm); background: var(--yj-canvas); border: 1px solid var(--yj-line); overflow: hidden; }
.cb-pr__box { position: absolute; box-sizing: border-box; padding: 2px 4px; border: 2px solid var(--yj-canvas); border-radius: 6px; background: var(--yj-yuja-100); font-size: var(--yj-t-label); font-weight: 700; line-height: 1.2; color: var(--yj-yuja-ink); overflow: hidden; }
/* SET 틀 미리 보기 — 실제 12px 밑으로 내리지 않는다(S8 · S4 넘김 — 240px 에 10px 이던 것) */
.cb-pr__txt { display: flex; flex-direction: column; gap: 4px; }
.cb-pr__txt b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-pr__txt span { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-pr__acts { display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-pvbar {
  position: absolute; left: 50%; top: 68px; transform: translateX(-50%); z-index: 15;
  display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s2) var(--yj-s2) var(--yj-s5);
  background: var(--yj-ink-deep); color: var(--yj-card); border-radius: var(--yj-r-full); box-shadow: var(--yj-sh-2); font-size: var(--yj-t-small);
}
.cb-pvbar span { color: var(--yj-faint); }
.cb-pvbar .yj-btn--ghost { color: var(--yj-card); }

/* ── 업 · 다운 카드 · 점수 이름 (P6a) ─────────────────── */
.cb-pick__k { grid-column: 1 / -1; font-size: var(--yj-t-small); color: var(--yj-sub); margin-top: var(--yj-s2); }
.cb-pick__card--down { background: var(--yj-canvas); border-color: var(--yj-line-strong); }
.cb-pick__card--down b { color: var(--yj-sub); }
.cb-coin-in { width: 160px; }
.cb-set__em { font-style: normal; font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-sub); margin-left: var(--yj-s2); }
#set-down[hidden] { display: none; }

.cb-st.is-noname .cb-st__name { position: static; max-width: 94%; }
.cb-st.is-noname .cb-st__name { font-family: var(--yj-font-disp); font-size: min(48cqh, 30cqw); }

/* ── 급식 · 어사문 검색 위젯 (P6a) ─────────────────── */
.cb-meal { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.3em; font-size: 24px; }
.cb-meal li { font-weight: 700; color: var(--yj-ink-deep); line-height: 1.3; }
/* 넘치면 두 단 → 「외 n가지」 + [크게 보기](R02-11 · js/extra.js fitMeal) */
.cb-meal.is-two { display: block; columns: 2; column-gap: var(--yj-s4); }
/* 좁은 알림장 위젯 머리 줄(R02-15 ① · js/alimjang.js fitWidget) — 날짜 → 가 · 가 차례로 접는다 */
.cb-w__inner.is-tight .cb-w__head .cb-w__meta { display: none; }
.cb-w__inner.is-tighter .cb-w__head .cb-nt-size { display: none; }
.cb-meal.is-two li { break-inside: avoid; margin-bottom: 0.3em; }
.cb-meal li.cb-meal__more { column-span: all; display: flex; align-items: center; gap: var(--yj-s2); font-weight: 600; color: var(--yj-sub); }
.cb-meal__kcal { flex: none; margin-top: var(--yj-s2); font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-srch { display: flex; gap: var(--yj-s2); flex: none; }
.cb-srch input { flex: 1; min-width: 0; font-size: var(--yj-t-body); }
.cb-srch__list { list-style: none; margin: var(--yj-s3) 0 0; padding: 0; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.cb-srch__list a { display: block; padding: 6px var(--yj-s3); border-radius: var(--yj-r-sm); border: 1px solid var(--yj-line); background: var(--yj-card); text-decoration: none; color: var(--yj-ink); font-size: var(--yj-t-small); }
.cb-srch__list a:hover { border-color: var(--yj-yuja-600); }
.cb-srch__list b { color: var(--yj-ink-deep); }
.cb-srch__list span { font-family: var(--yj-font-hanja); color: var(--yj-sub); }
.cb-srch__list em { font-style: normal; color: var(--yj-sub); font-size: var(--yj-t-cap); }
.cb-srch__all a { border-style: dashed; color: var(--yj-yuja-ink); font-weight: 700; }

.cb-alim__day .cb-ic { width: 18px; height: 18px; margin: 0 4px; }
.cb-alim [data-today][hidden] { display: none; }

/* ── 구글 시트 동기화 — 머리띠 단추 · 설정 칸 · 연결 안내 ─────── */
.cb-sync-btn[hidden] { display: none; }
.cb-sync-btn { position: relative; }
.cb-sync-btn.is-busy { opacity: .5; cursor: progress; }
.cb-sync-btn.is-err::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  border-radius: var(--yj-r-full); background: var(--yj-orange);
}
.cb-sync__facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--yj-s2) var(--yj-s4); margin: 0; font-size: var(--yj-t-small); }
.cb-sync__facts dt { font-weight: 700; color: var(--yj-ink-deep); }
.cb-sync__facts dd { margin: 0; color: var(--yj-ink); line-height: 1.5; }
.cb-sync .yj-btn .cb-ic, .cb-wiz .yj-btn .cb-ic { width: 18px; height: 18px; margin-right: 4px; }
.cb-sync__dev { width: 180px; }
.cb-sync__err { margin: 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-orange-tint); color: var(--yj-orange-ink); font-size: var(--yj-t-small); }
.cb-sync .cb-bk__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 휴대폰 · 태블릿 연결 창(js/pair-ui.js) ── */
.cb-pair { width: min(720px, calc(100vw - 32px)); }
.cb-pair__head { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); }
.cb-pair__body { display: flex; flex-direction: column; gap: var(--yj-s4); }
.cb-pair__top { display: flex; flex-direction: column; gap: var(--yj-s3); padding-bottom: var(--yj-s4); }
.cb-pair__roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s3); }
.cb-pair__role {
  display: flex; align-items: flex-start; gap: var(--yj-s3); min-height: 112px; padding: var(--yj-s4);
  border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-md); background: var(--yj-card);
  font: inherit; font-size: var(--yj-t-small); line-height: 1.5; color: var(--yj-ink); text-align: left; cursor: pointer;
  transition: background var(--yj-m-fast), border-color var(--yj-m-fast);
}
.cb-pair__role .cb-ic { width: 28px; height: 28px; margin-top: 2px; color: var(--yj-ink-deep); }
.cb-pair__role b { display: block; margin-bottom: var(--yj-s1); font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-pair__role:hover { background: var(--yj-yuja-50); }
.cb-pair__role.is-on { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-pair__role:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }
.cb-pair__top .cb-field input { max-width: 280px; }
.cb-pair__qr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--yj-s5); align-items: start; }
.cb-pair__code { width: 280px; aspect-ratio: 1; padding: var(--yj-s2); border: 1px solid var(--yj-line); border-radius: var(--yj-r-md); background: var(--yj-card-hi); box-shadow: var(--yj-sh-1); }
.cb-pair__code svg { display: block; width: 100%; height: 100%; }
.cb-pair__how { display: flex; flex-direction: column; gap: var(--yj-s2); font-size: var(--yj-t-small); color: var(--yj-ink); }
.cb-pair__how > b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-pair__how ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.cb-pair__left { margin: var(--yj-s2) 0 0; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-pair__done { display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s4); border-radius: var(--yj-r-md); background: var(--yj-leaf-tint); color: var(--yj-ink); font-size: var(--yj-t-small); }
.cb-pair__done > b { font-size: var(--yj-t-body); color: var(--yj-leaf-ink); }
.cb-pair__done p { margin: 0; }
.cb-pair__devs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-pair__devs li { display: flex; align-items: center; gap: var(--yj-s3); min-height: 56px; padding: 0 var(--yj-s2) 0 var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-pair__devs li > .cb-ic { color: var(--yj-sub); }
.cb-pair__dev { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-pair__dev b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-pair__empty { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
@media (max-width: 640px) {
  .cb-pair__roles, .cb-pair__qr { grid-template-columns: 1fr; }
  .cb-pair__code { width: min(280px, 100%); justify-self: center; }
}

.cb-wiz { width: min(780px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 48px)); padding: 0; }
.cb-wiz[open] { display: flex; flex-direction: column; }
.cb-wiz__head { padding: var(--yj-s5) var(--yj-s6) var(--yj-s4); border-bottom: 1px solid var(--yj-line); display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-wiz__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--yj-s1) var(--yj-s3); }
.cb-wiz__steps li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--yj-s2) 0 2px; border-radius: var(--yj-r-full); font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-wiz__steps li span {
  width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: var(--yj-r-full);
  border: 1px solid var(--yj-line-strong); font-weight: 700; font-variant-numeric: tabular-nums;
}
.cb-wiz__steps li.is-done span { background: var(--yj-leaf-tint); border-color: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.cb-wiz__steps li[aria-current="step"] { background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-weight: 700; }
.cb-wiz__steps li[aria-current="step"] span { background: var(--yj-yuja-300); border-color: var(--yj-yuja-300); color: var(--yj-ink-deep); }
.cb-wiz__body { flex: 1; min-height: 0; overflow: auto; padding: var(--yj-s5) var(--yj-s6); display: flex; flex-direction: column; gap: var(--yj-s3); font-size: var(--yj-t-body); line-height: 1.6; color: var(--yj-ink); }
.cb-wiz__body h3 { margin: 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-wiz__body h4 { margin: var(--yj-s2) 0 0; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-wiz__body p { margin: 0; }
.cb-wiz__body small { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-wiz__body code { padding: 1px 6px; border-radius: var(--yj-r-sm); background: var(--yj-canvas); font-size: .9em; }
.cb-wiz__body kbd { padding: 0 6px; border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); background: var(--yj-card); font: inherit; font-size: .85em; }
.cb-wiz__lead { font-size: var(--yj-t-body); }
.cb-wiz__aside { font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-wiz__aside a, .cb-wiz__body small a { color: var(--yj-yuja-ink); font-weight: 700; }
.cb-wiz__choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s3); }
.cb-wiz__choice.cb-pick__card { min-height: 148px; font-size: var(--yj-t-small); font-weight: 400; line-height: 1.5; text-align: left; }
.cb-wiz__choice span b { display: block; margin-bottom: var(--yj-s1); font-size: var(--yj-t-body); font-weight: 800; color: var(--yj-ink-deep); }
.cb-wiz__choice > b .cb-ic { width: 28px; height: 28px; }
.cb-wiz__how { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--yj-s2); font-size: var(--yj-t-small); }
.cb-wiz__how .cb-ic { width: 18px; height: 18px; vertical-align: -3px; }
.cb-wiz__card { padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); display: flex; flex-direction: column; gap: var(--yj-s2); font-size: var(--yj-t-small); }
.cb-wiz__card > b { color: var(--yj-ink-deep); }
.cb-wiz__card ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.cb-wiz__table { width: 100%; border-collapse: collapse; font-size: var(--yj-t-small); }
.cb-wiz__table th { width: 120px; padding: var(--yj-s2); text-align: left; vertical-align: top; color: var(--yj-ink-deep); border-bottom: 1px solid var(--yj-line); }
.cb-wiz__table td { padding: var(--yj-s2); border-bottom: 1px solid var(--yj-line); }
.cb-wiz__names { margin: 0; padding: var(--yj-s3) var(--yj-s4); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-wiz__names legend { padding: 0 var(--yj-s1); font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.cb-wiz__names .cb-check { align-items: flex-start; line-height: 1.5; }
.cb-wiz__names .cb-check input { margin-top: 2px; flex: none; }
.cb-wiz__chips .cb-chip { height: 36px; font-size: var(--yj-t-small); }
.cb-wiz__status { min-height: 1.5em; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-wiz__status.is-ok { color: var(--yj-leaf-ink); font-weight: 700; }
.cb-wiz__status.is-err { color: var(--yj-orange-ink); font-weight: 700; }
.cb-wiz__code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-wiz__foot { padding: var(--yj-s3) var(--yj-s6); align-items: center; }
.cb-wiz__gap { flex: 1; }
.cb-wiz__foot [hidden] { display: none; }
.cb-wiz__codebox { width: 100%; height: 160px; padding: var(--yj-s2); font-family: ui-monospace, Consolas, monospace; font-size: var(--yj-t-cap); line-height: 1.4; resize: vertical; }
.cb-wiz__codebox[hidden] { display: none; }
.cb-wiz__how .cb-ic { display: inline-block; }

/* ── 선생님 설정 · 우리 반 — 왼쪽 설명, 오른쪽 길쭉한 명단 칸 ── */
.cb-class-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--yj-s5); align-items: stretch; min-height: 460px; }
.cb-class-grid__left { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-class-grid__right { display: flex; flex-direction: column; }
.cb-class-grid__right textarea { flex: 1; min-height: 420px; }
.cb-roster-help { padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-sm); background: var(--yj-canvas); font-size: var(--yj-t-cap); color: var(--yj-ink); line-height: 1.55; }
.cb-roster-help b { color: var(--yj-ink-deep); }
.cb-roster-help p, .cb-roster-help ul { margin: var(--yj-s1) 0; }
.cb-roster-help ul { padding-left: 1.2em; }
.cb-roster-help__ex { margin: var(--yj-s2) 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-card-hi); border: 1px solid var(--yj-line); font-family: var(--yj-font-ui); font-size: var(--yj-t-small); }
.cb-roster-help__sum { font-weight: 700; color: var(--yj-ink-deep); }

/* ── 칠판 — 위젯에서 바로 쓰기 ── */
.cb-ntw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* 어사문 검색 — 결과 칸 없이 두 줄 높이까지 */
.cb-w--search .cb-w__inner { justify-content: center; padding-top: var(--yj-s3); padding-bottom: var(--yj-s3); }
.cb-w--search .cb-w__head { margin-bottom: var(--yj-s2); }
/* 맞춤법 — 보기를 눌러 정답 확인 */
.cb-sp__opt[role="button"] { cursor: pointer; }
.cb-sp__opt.is-picked { box-shadow: 0 0 0 3px var(--yj-ink-deep); }
/* 오늘의 한자 — 건너뛰기 · 아래 단추 다섯 */
.cb-hj__skip { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.cb-hj__skip .cb-ic { width: 14px; height: 14px; }
.cb-hj__acts { justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.cb-hj__act { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; }
.cb-hj__act .cb-ic { width: 18px; height: 18px; }
.cb-hj__act:last-child { margin-left: auto; }

/* ── 체크리스트 — 단독 탭, 구글 시트 같은 표 ── */
.cb-ckpage { top: var(--cb-bar-h, 56px); z-index: 19; }
.cb-ckpage__bar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); padding: 0 var(--yj-s5); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); }
.cb-ckpage__t { display: flex; align-items: baseline; gap: var(--yj-s3); }
.cb-ckpage__t b { font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-ckpage__t span { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-ckpage__acts { display: flex; gap: var(--yj-s2); }
.cb-ckpage__acts .yj-btn { display: inline-flex; align-items: center; gap: 4px; }
.cb-ckpage__acts [aria-pressed="true"] { background: var(--yj-yuja-200); }
.cb-ckpage__arch { margin: var(--yj-s4) var(--yj-s5) 0; padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-lg); background: var(--yj-card-hi); border: 1px solid var(--yj-line); max-height: 260px; overflow: auto; flex: none; }
.cb-ckpage__arch ul { list-style: none; margin: var(--yj-s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-ckpage__arch li { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-ckpage__arch li span { flex: 1; display: flex; flex-direction: column; font-size: var(--yj-t-small); color: var(--yj-ink-deep); font-weight: 700; }
.cb-ckpage__arch small { font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-sub); }
.cb-ckpage__hint { margin: 0 var(--yj-s5) var(--yj-s3); font-size: var(--yj-t-cap); color: var(--yj-sub); flex: none; }
.cb-ckpage > .cb-state { margin: var(--yj-s6); }
.cb-cs__wrap { flex: 1; min-height: 0; margin: var(--yj-s4) var(--yj-s5) var(--yj-s2); overflow: auto; background: var(--yj-card-hi); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); }
.cb-cs { border-collapse: separate; border-spacing: 0; font-size: var(--yj-t-small); }
.cb-cs th, .cb-cs td { border-right: 1px solid var(--yj-line); border-bottom: 1px solid var(--yj-line); padding: 0; }
.cb-cs thead th { position: sticky; background: var(--yj-card); z-index: 2; }
.cb-cs thead tr:nth-child(1) th { top: 0; height: 64px; }
.cb-cs thead tr:nth-child(2) th { top: 64px; height: 44px; }
.cb-cs thead tr:nth-child(3) th { top: 108px; height: 44px; }
.cb-cs thead tr:nth-child(4) th { top: 152px; height: 64px; border-bottom: 2px solid var(--yj-line-strong); }
.cb-cs__stu { position: sticky; left: 0; z-index: 1; min-width: 150px; text-align: left; padding: 0 var(--yj-s3) !important; background: var(--yj-card); font-weight: 800; color: var(--yj-ink-deep); white-space: nowrap; border-right: 2px solid var(--yj-line-strong) !important; }
.cb-cs thead .cb-cs__stu { z-index: 3; }
.cb-cs__k { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); }
.cb-cs__no { display: inline-block; min-width: 2em; color: var(--yj-sub); font-weight: 700; font-variant-numeric: tabular-nums; }
.cb-cs tbody tr { height: 44px; }
.cb-cs__h, .cb-cs__h2 { width: 150px; min-width: 150px; max-width: 150px; }
.cb-cs__h { vertical-align: top; padding: 6px !important; cursor: grab; }
.cb-cs__h.is-today { box-shadow: inset 0 3px 0 var(--yj-yuja-500); }
.cb-cs__h.is-drop { background: var(--yj-yuja-100); }
.cb-cs__title { display: flex; align-items: center; gap: 2px; }
.cb-cs__grip { flex: none; color: var(--yj-faint); display: flex; }
.cb-cs__grip .cb-ic { width: 16px; height: 16px; }
.cb-cs__in { width: 100%; min-width: 0; height: 32px; box-sizing: border-box; border: 1px solid transparent; border-radius: var(--yj-r-xs); background: transparent; font: inherit; font-size: var(--yj-t-small); color: var(--yj-ink-deep); padding: 0 6px; }
.cb-cs__title .cb-cs__in { font-weight: 800; }
.cb-cs__in:hover { border-color: var(--yj-line); }
.cb-cs__in:focus { outline: none; border-color: var(--yj-yuja-600); background: var(--yj-card-hi); }
.cb-cs__h2 { padding: 4px 6px !important; }
.cb-cs__ops { display: flex; gap: 2px; margin-top: 2px; }
.cb-cs__op { height: 22px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--yj-r-xs); background: transparent; color: var(--yj-sub); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 0 4px; }
.cb-cs__op .cb-ic { width: 14px; height: 14px; }
.cb-cs__op:hover:not([disabled]) { background: var(--yj-canvas); color: var(--yj-ink-deep); }
.cb-cs__op[disabled] { opacity: .3; cursor: default; }
.cb-cs__op--txt { margin-left: auto; }
.cb-cs__self + .cb-cs__op { margin-left: 0; }
.cb-cs__self.is-on { background: var(--yj-yuja-200); color: var(--yj-ink-deep); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-cs__self.is-on:hover:not([disabled]) { background: var(--yj-yuja-200); }
.cb-cs__all { vertical-align: top; }
.cb-cs__fill { width: 100%; height: 28px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-xs); background: var(--yj-yuja-100); color: var(--yj-ink-deep); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cb-cs__fill[aria-pressed="true"] { background: var(--yj-canvas); color: var(--yj-sub); }
.cb-cs__give { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--yj-sub); font-weight: 700; }
.cb-cs__give span { margin-right: auto; }
.cb-cs__up, .cb-cs__down { height: 22px; padding: 0 8px; border-radius: var(--yj-r-full); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.cb-cs__up { border: 1px solid var(--cb-up-ink); background: var(--cb-up-tint); color: var(--cb-up-ink); }
.cb-cs__down { border: 1px solid var(--yj-error-ink); background: var(--yj-error-tint); color: var(--yj-error-ink); }
.cb-cs__up[disabled], .cb-cs__down[disabled] { opacity: .35; cursor: default; }
.cb-cs__c { text-align: center; }
.cb-cs__v { width: 100%; height: 43px; border: 0; background: transparent; cursor: pointer; font-family: var(--yj-font-disp); font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); }
.cb-cs__v:hover { background: var(--yj-yuja-50); }
.cb-cs__v:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: -2px; }
.cb-cs__num { width: 100%; height: 43px; box-sizing: border-box; border: 0; background: transparent; text-align: center; font: inherit; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); }
.cb-cs__num:focus { outline: 2px solid var(--yj-yuja-600); outline-offset: -2px; background: var(--yj-card-hi); }
.cb-cs__c.is-o { background: var(--yj-leaf-tint); }
.cb-cs__c.is-o .cb-cs__v { color: var(--yj-leaf-ink); }
.cb-cs__c.is-x { background: var(--yj-error-tint); }
.cb-cs__c.is-x .cb-cs__v { color: var(--yj-error-ink); }
.cb-cs__c.is-t { background: var(--yj-orange-tint); }
.cb-cs__c.is-t .cb-cs__v { color: var(--yj-orange-ink); }
.cb-cs__c.is-n { background: var(--yj-yuja-50); }

/* ── 우리 반 — 업 · 다운 모드 / 체크리스트 모드 (2026-10-29 개편) ── */
.cb-roster__home { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--yj-s2); margin-left: calc(var(--yj-s2) * -1); border: 0; border-radius: var(--yj-r-full); background: transparent; cursor: pointer; font: inherit; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); white-space: nowrap; }
.cb-roster__home .cb-ic { width: 18px; height: 18px; color: var(--yj-sub); margin-right: 6px; }
.cb-roster__home:hover { background: var(--yj-yuja-50); }
.cb-roster__mode { display: flex; align-items: center; margin-left: var(--yj-s2); min-width: 0; }
.cb-roster__pick { height: 36px; max-width: 240px; padding: 0 var(--yj-s3); font-size: var(--yj-t-small); }
.cb-roster__give { font-weight: 800; padding: 0 var(--yj-s4); }
.cb-roster__give--up { background: var(--cb-up-tint); color: var(--cb-up-ink); border: 1px solid var(--cb-up-ink); }
.cb-roster__give--down { background: var(--yj-error-tint); color: var(--yj-error-ink); border: 1px solid var(--yj-error-ink); }
.cb-roster .cb-roster__selnum, .cb-w__head .cb-roster__selnum { margin-left: auto; font-weight: 700; color: var(--yj-ink-deep); }
/* 체크리스트 결과 — 오른쪽 위에 값, 칸 바탕은 값 색 */
.cb-st__val { position: absolute; top: 5%; right: 7%; z-index: 1; font-family: var(--yj-font-disp); font-size: min(40cqh, 24cqw); font-weight: 800; line-height: 1; }
.cb-st.is-val.is-o { background: var(--yj-leaf-tint); border-color: var(--yj-leaf); }
.cb-st.is-val.is-o .cb-st__val { color: var(--yj-leaf-ink); }
.cb-st.is-val.is-x { background: var(--yj-error-tint); border-color: var(--yj-error); }
.cb-st.is-val.is-x .cb-st__val { color: var(--yj-error-ink); }
.cb-st.is-val.is-t { background: var(--yj-orange-tint); border-color: var(--yj-orange); }
.cb-st.is-val.is-t .cb-st__val { color: var(--yj-orange-ink); }
.cb-st.is-val.is-n { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-st.is-val.is-n .cb-st__val { color: var(--yj-yuja-ink); }

/* ── 메모 편집기 (칠판 · 알림장 공용 · js/memo.js) ── */
.cb-memo { --memo-s: 1; --memo-lh: 1.5; --memo-base: 26px; display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; width: 100%; }
.cb-memo__tb { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s2) var(--yj-s4); padding: var(--yj-s2) var(--yj-s3); margin-bottom: var(--yj-s2); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); }
.cb-memo__grp { display: inline-flex; align-items: center; gap: 4px; }
.cb-memo__lb { font-size: var(--yj-t-cap); font-weight: 800; color: var(--yj-yuja-ink); margin-right: 4px; }
/* 사용법 창 맨 위 「마크다운 쓰기」 켜고 끄기(2026-11-07) */
.cb-memo__mdsw { display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s2); min-height: 44px; margin: var(--yj-s2) 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-100); border: 1px solid var(--yj-yuja-600); cursor: pointer; }
.cb-memo__mdsw input { width: 20px; height: 20px; accent-color: var(--yj-yuja-600); }
.cb-memo__mdsw span { flex-basis: 100%; font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-memo.is-md-off .cb-memo__help table { opacity: 0.45; }
.cb-memo__btn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-xs); background: var(--yj-card-hi); color: var(--yj-ink-deep); cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cb-memo__btn--big { font-size: 21px; }
.cb-memo__btn:hover { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-memo__btn .cb-ic { width: 18px; height: 18px; }
.cb-memo__val { min-width: 3.2em; text-align: center; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-memo__helpbtn { margin-left: auto; }
.cb-memo__wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; cursor: text; }
/* 쓰는 줄에 서식으로 아직 안 바뀐 약속 글자가 있으면 흐리게(R02-04 · js/memo.js markPending) */
.cb-memo__doc > .is-mk { color: var(--yj-sub); }
.cb-memo__doc, .cb-memo--view {
  font-size: calc(var(--memo-base) * var(--memo-s) * var(--memo-fit, 1)); line-height: var(--memo-lh); color: var(--yj-ink-deep); font-weight: 600;   /* --memo-fit: 칠판 위젯 넘치면 줄이기(R02-05 · cards.js fitNotice) */
  word-break: keep-all; overflow-wrap: anywhere;
}
.cb-memo__doc { flex: 1; min-height: 0; overflow: auto; outline: none; padding: 2px 4px 40px; position: relative; caret-color: var(--yj-yuja-600); }
.cb-memo--view { overflow: auto; }
.cb-memo__doc.is-empty::before { content: attr(data-ph); position: absolute; left: 4px; top: 2px; right: 4px; color: var(--yj-sub); font-weight: 500; font-size: max(var(--yj-t-body), 0.6em); line-height: 1.5; pointer-events: none; }
.cb-memo__b { position: relative; min-height: 1em; white-space: pre-wrap; }
.cb-memo__b[data-t="h1"] { font-size: 1.6em; font-weight: 800; line-height: max(calc(var(--memo-lh) * 0.9), 1.08); }   /* 칠판 줄간격 1.0 에서도 제목 줄이 겹치지 않게 하한(2026-11-16) */
.cb-memo__b[data-t="h2"] { font-size: 1.3em; font-weight: 800; line-height: max(calc(var(--memo-lh) * 0.95), 1.06); }
.cb-memo__b[data-t="h3"] { font-size: 1.12em; font-weight: 800; }
.cb-memo__b[data-t="ul"], .cb-memo__b[data-t="ol"], .cb-memo__b[data-t="todo"] { padding-left: 1.7em; }
.cb-memo__b[data-t="ul"]::before { content: "\2022"; position: absolute; left: 0.5em; font-weight: 800; color: var(--yj-yuja-ink); }
.cb-memo__b[data-t="ol"]::before { content: attr(data-n) "."; position: absolute; left: 0; width: 1.5em; text-align: right; font-weight: 800; color: var(--yj-yuja-ink); font-variant-numeric: tabular-nums; }
.cb-memo__b[data-t="todo"]::before { content: ""; position: absolute; left: 0.15em; top: calc((var(--memo-lh) - 1) * 0.5em + 0.12em); width: 0.8em; height: 0.8em; border: 2px solid var(--yj-ink-deep); border-radius: 0.18em; box-sizing: border-box; cursor: pointer; background: var(--yj-card); }
.cb-memo__b[data-t="todo"][data-c="1"]::before { background: var(--yj-yuja-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--yj-yuja-600); }
.cb-memo__b[data-t="todo"][data-c="1"] { color: var(--yj-sub); text-decoration: line-through; }
.cb-memo__b[data-t="quote"] { padding-left: 0.8em; border-left: 0.2em solid var(--yj-yuja-600); color: var(--yj-ink); }
.cb-memo__b[data-t="hr"] { min-height: 0.8em; }
.cb-memo__b[data-t="hr"]::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--yj-line-strong); }
.cb-memo__b[data-t="hr"] br { display: none; }
.cb-memo__b b { font-weight: 800; }
.cb-memo__b code { font-family: var(--yj-font-ui); font-size: 0.9em; padding: 0.05em 0.35em; border-radius: var(--yj-r-xs); background: var(--yj-yuja-100); }
.cb-memo__b s { color: var(--yj-sub); }
.cb-memo__help {
  position: absolute; z-index: 3; top: 0; right: 0; max-width: min(100%, 460px); max-height: 100%; overflow: auto; box-sizing: border-box;
  padding: var(--yj-s4); border-radius: var(--yj-r-lg); background: var(--yj-card); border: 1px solid var(--yj-line-strong); box-shadow: var(--yj-sh-2);
  font-size: var(--yj-t-small); line-height: 1.55; color: var(--yj-ink); cursor: default;
}
.cb-memo__help[hidden] { display: none; }
.cb-memo__helphead { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--yj-s2); color: var(--yj-ink-deep); }
.cb-memo__help p { margin: var(--yj-s2) 0; }
.cb-memo__help table { border-collapse: collapse; width: 100%; margin: var(--yj-s2) 0; }
.cb-memo__help th { text-align: left; white-space: nowrap; padding: 3px var(--yj-s3) 3px 0; vertical-align: top; }
.cb-memo__help td { padding: 3px 0; }
.cb-memo__help code { font-family: var(--yj-font-ui); padding: 1px 6px; border-radius: var(--yj-r-xs); background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-size: 0.95em; }
.cb-alim__paper .cb-memo { flex: 1; }
.cb-alim-prev { cursor: pointer; flex: 1; min-height: 0; }

/* ── 페이지 정돈 (2026-10-29 검수) ──
   머리띠(1차 · 56px)는 어느 탭에서나 보이고 지금 탭을 표시한다. 아침활동 · 하교 같은 장면 · 도구 · 체크리스트 · 알림장은
   그 아래에 열리고, 저마다의 2차 줄(56px)을 가진다. 머리띠에 있는 [바탕화면] · [화면 잠금]은 2차 줄에 다시 두지 않는다. */
.cb-scene, .cb-alim { top: var(--cb-bar-h, 56px); }
.cb-scene__bar, .cb-alim__bar { height: 56px; }
.cb-scene__clock { font-size: 30px; }
.cb-scene__bar [data-scene-lock], .cb-scene__bar [data-scene-close], .cb-toolstage__acts [data-ts="close"] { display: none; }
/* R02-13 — 장면 안 [바탕화면으로]는 다시 보인다. 위 규칙(2026-10-29)이 머리띠에 같은 단추가 있다며 숨겼는데, 장면이 화면을 채우면 교사는 머리띠의
   [바탕화면] 칸을 장면을 닫는 단추로 읽지 못했다(R02 · R05 민 선생님). 잠금은 머리띠 것 하나로 그대로 */
.cb-scene__bar [data-scene-close] { display: inline-flex; }
.cb-set #set-cancel { display: none; }
/* 톱니바퀴 · 크게 보기 — 위젯 오른쪽 위 */
.cb-w__gear { flex: none; width: 36px; height: 36px; margin-left: var(--yj-s1); }
.cb-w__gear .cb-ic { width: 18px; height: 18px; }
.cb-clock__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; z-index: 1; }
.is-editing .cb-clock__tools { visibility: hidden; }

/* ── 체크리스트 — 보기를 미리 띄운 칸 · 넓어지는 열 · [+] 열 (2026-10-29) ── */
.cb-cs [data-col] { transition: width var(--yj-m-mid) var(--yj-ease), min-width var(--yj-m-mid) var(--yj-ease), max-width var(--yj-m-mid) var(--yj-ease); }
.cb-cs td.cb-cs__c { width: 150px; min-width: 150px; max-width: 150px; }
/* 입력 중인 열은 보기 한 칸이 52px 이상 되는 너비로 고정한다. [입력 완료]하면 --opts 가 1 이 되어 줄어든다 (2026-10-30) */
.cb-cs [data-col] { width: max(150px, calc(var(--opts) * 52px)) !important; min-width: max(150px, calc(var(--opts) * 52px)) !important; max-width: max(150px, calc(var(--opts) * 52px)) !important; }
.cb-cs__opts { display: flex; height: 43px; }
.cb-cs__o {
  flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-left: 1px dashed var(--yj-line); background: transparent; cursor: pointer;
  font-family: var(--yj-font-disp); font-size: 20px; font-weight: 800; color: var(--yj-line-strong); line-height: 1;
}
.cb-cs__o:first-child { border-left: 0; }
.cb-cs__o:hover { background: var(--yj-yuja-50); color: var(--yj-sub); }
.cb-cs__o:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: -2px; }
.cb-cs__o.is-on { font-size: 24px; }
.cb-cs__o.is-on.is-o { background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.cb-cs__o.is-on.is-x { background: var(--yj-error-tint); color: var(--yj-error-ink); }
.cb-cs__o.is-on.is-t { background: var(--yj-orange-tint); color: var(--yj-orange-ink); }
.cb-cs__o.is-on.is-n { background: var(--yj-yuja-200); color: var(--yj-ink-deep); }
/* 고른 칸은 칸 바탕을 비워 두고 고른 보기만 색으로 */
.cb-cs__c.is-o, .cb-cs__c.is-x, .cb-cs__c.is-t, .cb-cs__c.is-n { background: transparent; }
.cb-cs td.cb-cs__c:has(.cb-cs__num).is-n { background: var(--yj-yuja-50); }
/* △ 는 글꼴에서 작게 나와 O · X 와 같은 크기로 키운다 */
.cb-cs__o.is-t { font-family: var(--yj-font-ui); font-size: 26px; }
.cb-cs__o.is-on.is-t { font-size: 30px; }
.cb-st.is-val.is-t .cb-st__val { font-family: var(--yj-font-ui); font-size: min(52cqh, 32cqw); }
/* 입력 방법 — 고른 글자를 가운데로 */
.cb-cs__h2 select.cb-cs__in { text-align: center; text-align-last: center; }
/* 맨 오른쪽 [+] 열 */
.cb-cs__add { width: 96px; min-width: 96px; vertical-align: middle; background: var(--yj-canvas) !important; }
.cb-cs__addbtn { width: 100%; height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm); background: transparent; color: var(--yj-sub); cursor: pointer; font: inherit; font-size: var(--yj-t-cap); font-weight: 700; }
.cb-cs__addbtn .cb-ic { width: 24px; height: 24px; }
.cb-cs__addbtn:hover { border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); background: var(--yj-yuja-50); }
.cb-cs__addc { background: var(--yj-canvas); width: 96px; }
/* 우리 반 — 체크리스트 모드 머리: 드롭다운은 넉넉히, 항목 제목은 가운데에 크게 */
.cb-roster__pick { max-width: 320px; min-width: 220px; }
.cb-roster__ctitle { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: var(--yj-s2); font-size: 28px; font-weight: 900; color: var(--yj-ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-roster__ctitle small { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub); }
/* 제목이 곧 드롭다운(2026-11-07) — 글자를 크게, 오른쪽 아래 화살표 */
.cb-roster__ckwrap { flex: 1; min-width: 0; position: relative; display: flex; justify-content: center; }
.cb-roster__ckbtn { flex: 0 1 auto; max-width: 100%; min-height: 44px; align-items: center; padding: 0 var(--yj-s2) 0 var(--yj-s3); border: 1px solid transparent; border-radius: var(--yj-r-md); background: transparent; font-family: inherit; font-size: 34px; cursor: pointer; transition: background var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease); }
.cb-roster__ckbtn:hover, .cb-roster__ckbtn:focus-visible, .cb-roster__ckbtn[aria-expanded="true"] { background: var(--yj-yuja-100); border-color: var(--yj-yuja-600); }
.cb-roster__cktxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cb-roster__ckchev { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--yj-m-fast) var(--yj-ease); }
.cb-roster__ckbtn[aria-expanded="true"] .cb-roster__ckchev { transform: rotate(180deg); }
.cb-roster__ckmenu { position: absolute; top: calc(100% + var(--yj-s1)); left: 50%; transform: translateX(-50%); z-index: 30; min-width: 280px; max-width: 480px; margin: 0; padding: var(--yj-s1); list-style: none; overflow-y: auto; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-md); box-shadow: var(--yj-sh-3); }
.cb-roster__ckmenu button { width: 100%; min-height: 44px; display: flex; align-items: baseline; justify-content: space-between; gap: var(--yj-s3); padding: 0 var(--yj-s3); border: 1px solid transparent; border-radius: var(--yj-r-sm); background: transparent; font: inherit; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); text-align: left; cursor: pointer; }
.cb-roster__ckmenu button:hover, .cb-roster__ckmenu button:focus-visible { background: var(--yj-yuja-100); }
.cb-roster__ckmenu button.is-on { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); }
.cb-roster__ckname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-roster__ckmenu small { flex: none; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-ocpage__head .cb-roster__ckwrap { flex: 1 1 auto; }
.cb-roster__ctitle + .cb-roster__cnt { margin-left: 0; }
.cb-roster__cnt b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }

/* ── 체크리스트 — 입력 완료 · 인쇄/엑셀 · 업/다운 창 (2026-10-29) ── */
.cb-ckpage__acts { align-items: center; }
.cb-ckpage__sep { width: 1px; height: 24px; background: var(--yj-line-strong); margin: 0 var(--yj-s1); }
.cb-ckpage__acts .yj-btn--icon .cb-ic { width: 20px; height: 20px; }
/* 입력을 마친 열 — 고른 값만, 기본 너비 */
.cb-cs__c.is-locked { height: 44px; }
.cb-cs__lv { font-family: var(--yj-font-disp); font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); }
.cb-cs__c.is-locked.is-o { background: var(--yj-leaf-tint); }
.cb-cs__c.is-locked.is-o .cb-cs__lv { color: var(--yj-leaf-ink); }
.cb-cs__c.is-locked.is-x { background: var(--yj-error-tint); }
.cb-cs__c.is-locked.is-x .cb-cs__lv { color: var(--yj-error-ink); }
.cb-cs__c.is-locked.is-t { background: var(--yj-orange-tint); }
.cb-cs__c.is-locked.is-t .cb-cs__lv { color: var(--yj-orange-ink); font-family: var(--yj-font-ui); font-size: 26px; }
.cb-cs__c.is-locked.is-n { background: var(--yj-yuja-50); }
/* 맨 아래 줄 */
.cb-cs tfoot th, .cb-cs tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--yj-card); border-top: 2px solid var(--yj-line-strong); height: 52px; }
.cb-cs tfoot .cb-cs__stu { z-index: 3; }
.cb-cs__foot { padding: 6px !important; text-align: center; }
.cb-cs__done { width: 100%; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: var(--yj-r-sm); background: var(--yj-leaf); color: var(--yj-on-forest); font: inherit; font-size: var(--yj-t-small); font-weight: 800; cursor: pointer; }
.cb-cs__done .cb-ic { width: 18px; height: 18px; stroke-width: 2.4; }
.cb-cs__done:hover { background: var(--yj-leaf-press); }
.cb-cs__redo { width: 100%; height: 38px; border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); background: transparent; color: var(--yj-sub); font: inherit; font-size: var(--yj-t-small); font-weight: 700; cursor: pointer; }
.cb-cs__give { justify-content: space-between; }
.cb-cs__give span { margin: 0; flex: 1; text-align: center; }
/* 업 · 다운 창 */
.cb-give__box { width: 1080px; }
.cb-give__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--yj-s5); max-height: 620px; }
.cb-give__cols > section { display: flex; flex-direction: column; gap: var(--yj-s2); min-height: 0; overflow: auto; }
.cb-give__cols b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-give__left ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-give__g { display: grid; grid-template-columns: 24px 52px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: var(--yj-s2); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); cursor: pointer; }
.cb-give__g.is-on { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); }
.cb-give__g input { width: 20px; height: 20px; accent-color: var(--yj-yuja-600); }
.cb-give__v { font-family: var(--yj-font-disp); font-size: 26px; font-weight: 800; text-align: center; color: var(--yj-sub); }
.cb-give__v.is-o { color: var(--yj-leaf-ink); } .cb-give__v.is-x { color: var(--yj-error-ink); } .cb-give__v.is-t { color: var(--yj-orange-ink); font-family: var(--yj-font-ui); } .cb-give__v.is-n { color: var(--yj-yuja-ink); }
.cb-give__n { font-size: var(--yj-t-body); font-weight: 800; color: var(--yj-ink-deep); }
.cb-give__names { grid-column: 2 / -1; font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.45; }
.cb-give__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--yj-s2); }
.cb-give__cards .cb-pick__card[disabled] { opacity: .4; cursor: default; }

/* ── 위젯 머리 오른쪽 위 모서리 — 톱니바퀴 · 크게 보기 (2026-10-29 통일) ── */
.cb-w__corner { order: 100; margin-left: auto; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.cb-w__head:has(.cb-w__corner) > .cb-w__meta { margin-left: 0; }
.cb-w__corner .cb-w__gear, .cb-w__corner .cb-w__full { margin-left: 0; }
.is-editing .cb-w__corner { visibility: hidden; }
/* 칠판 글자 크기 */
.cb-nt-size { display: inline-flex; gap: 2px; }
.cb-nt-size__b { width: 32px; height: 32px; padding: 0; border: 1px solid var(--yj-line); border-radius: var(--yj-r-xs); background: var(--yj-card-hi); cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; color: var(--yj-ink-deep); }
.cb-nt-size__b--big { font-size: 19px; }
.cb-nt-size__b:hover { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-w__head .cb-w__edit { white-space: nowrap; flex: none; }

/* ── 자리배치 — 단독 탭 (2026-10-29) ── */
.cb-sppage { top: var(--cb-bar-h, 56px); z-index: 19; }
.cb-sppage__bar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); padding: 0 var(--yj-s5); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); }
.cb-sppage__t { display: flex; align-items: baseline; gap: var(--yj-s3); }
.cb-sppage__t b { font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-sppage__t span { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-sppage__acts { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-sppage__acts .yj-btn--icon .cb-ic { width: 20px; height: 20px; }
.cb-sppage__hist { height: 36px; width: auto; min-width: 160px; font-size: var(--yj-t-small); }
.cb-sppage__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); }
.cb-sp__side { overflow: auto; padding: var(--yj-s4) var(--yj-s5); background: var(--yj-card-hi); border-right: 1px solid var(--yj-line); display: flex; flex-direction: column; gap: var(--yj-s4); }
.cb-sp__sec { display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-sp__sec h3 { margin: 0; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-sp__sec h3 em { font-style: normal; font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-sub); margin-left: var(--yj-s2); }
.cb-sp__sec small { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-sp__seg { display: flex; padding: 3px; gap: 3px; border-radius: var(--yj-r-full); background: var(--yj-canvas); }
.cb-sp__seg button { flex: 1; height: 40px; border: 0; border-radius: var(--yj-r-full); background: transparent; font: inherit; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub); cursor: pointer; }
.cb-sp__seg button[aria-checked="true"] { background: var(--yj-yuja-200); color: var(--yj-ink-deep); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-sp__seg--sm button { height: 34px; font-size: var(--yj-t-cap); }
.cb-sp__nums { display: grid; grid-template-columns: 1fr 1fr; gap: var(--yj-s2); }
.cb-sp__num { display: flex; flex-direction: column; gap: 4px; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-ink-deep); }
.cb-sp__num input { height: 40px; }
.cb-sp__kids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cb-sp__kid { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); cursor: pointer; font: inherit; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-ink-deep); white-space: nowrap; overflow: hidden; }
.cb-sp__kno { color: var(--yj-sub); font-weight: 600; min-width: 1.6em; }
.cb-sp__kg { margin-left: auto; font-size: calc(12.2px / var(--cb-s, 1)); color: var(--yj-sub); }
.cb-sp__kid.is-front { background: var(--cb-up-tint); border-color: var(--cb-up-ink); color: var(--cb-up-ink); }
.cb-sp__kid.is-absent { background: var(--yj-canvas); color: var(--yj-faint); text-decoration: line-through; }
.cb-sp__legend { display: flex; align-items: center; gap: var(--yj-s3); font-size: var(--yj-t-cap); font-weight: 700; }
.cb-sp__legend .is-front { color: var(--cb-up-ink); }
.cb-sp__legend .is-absent { color: var(--yj-sub); }
.cb-sp__apart { display: flex; flex-direction: column; gap: 6px; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-canvas); }
.cb-sp__apart b { font-size: var(--yj-t-cap); color: var(--yj-ink-deep); }
.cb-sp__apart select { width: 120px; height: 36px; font-size: var(--yj-t-cap); }
.cb-sp__pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cb-sp__pairs li { display: flex; align-items: center; justify-content: space-between; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-ink-deep); }
.cb-sp__pairs .yj-btn--icon { width: 28px; height: 28px; }
.cb-sp__main { min-height: 0; display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s4) var(--yj-s5); }
.cb-sp__tools { display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap; }
.cb-sp__hint { font-size: var(--yj-t-cap); color: var(--yj-sub); margin-right: auto; }
.cb-sp__sum { margin: 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.cb-sp__room { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s3); border-radius: var(--yj-r-lg); background: var(--yj-card-hi); border: 1px solid var(--yj-line); box-shadow: var(--yj-sh-1); }
.cb-sp__front { flex: none; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--yj-r-sm); background: var(--yj-canvas); font-size: var(--yj-t-small); font-weight: 800; color: var(--yj-sub); letter-spacing: .1em; }
.cb-sp__grid { flex: 1; min-height: 0; display: grid; gap: 8px; }
.cb-sp__seat {
  container-type: size; position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); cursor: pointer; font: inherit; padding: 0; overflow: hidden;
  transition: transform var(--yj-m-fast) var(--yj-ease);
}
.cb-sp__seat:hover { border-color: var(--yj-yuja-600); }
.cb-sp__sno { position: absolute; top: 4px; left: 6px; font-size: max(calc(12.2px / var(--cb-s, 1)), min(22cqh, 14cqw)); font-weight: 700; color: var(--yj-faint); }
.cb-sp__sname { font-size: min(36cqh, 22cqw); font-weight: 800; color: var(--yj-ink-deep); white-space: nowrap; }
.cb-sp__seat.is-off { border-style: dashed; background: transparent; }
.cb-sp__seat.is-off .cb-sp__sname { font-size: min(18cqh, 12cqw); font-weight: 600; color: var(--yj-faint); }
.cb-sp__seat.is-front { box-shadow: inset 0 -4px 0 var(--cb-up-tint); }
.cb-sp__seat.is-picked { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); }
.cb-sp__seat.is-fixed { background: var(--yj-yuja-50); }
.cb-sp__pin { position: absolute; top: 4px; right: 6px; color: var(--yj-yuja-ink); display: flex; }
.cb-sp__pin .cb-ic { width: max(12px, min(20cqh, 14cqw)); height: max(12px, min(20cqh, 14cqw)); }
.cb-sp__seat.is-card { background: var(--yj-yuja-300); border-color: var(--yj-yuja-600); }
.cb-sp__seat.is-card .cb-sp__sname { font-family: var(--yj-font-disp); font-size: min(50cqh, 30cqw); color: var(--yj-ink-deep); }
.cb-sp__seat.is-flip { animation: cb-sp-flip var(--yj-m-slow) var(--yj-ease); }
.cb-sp__seat.is-pop { animation: cb-sp-pop var(--yj-m-slow) var(--yj-ease); }
@keyframes cb-sp-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes cb-sp-pop { 0% { transform: scale(.85); background: var(--yj-yuja-200); } 100% { transform: scale(1); } }
.cb-sp__tv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cb-sp__tv .cb-sp__room { flex: 1; }
.cb-sp__tv .cb-sp__sname { font-size: min(42cqh, 26cqw); }

/* ── 성별 바탕 (2026-10-29) — 여학생 아주 연한 노랑 · 남학생 아주 연한 초록 ── */
:root { --cb-girl-tint: var(--yj-yuja-50); --cb-boy-tint: rgba(76, 170, 72, .08); }
.cb-st.is-g-f, .cb-sp__seat.is-g-f { background: var(--cb-girl-tint); }
.cb-st.is-g-m, .cb-sp__seat.is-g-m { background: var(--cb-boy-tint); }
.cb-st.is-picked { background: var(--yj-yuja-200); }
.cb-roster.is-down .cb-st.is-picked { background: var(--yj-error-tint); }
.cb-sp__seat.is-picked { background: var(--yj-yuja-200); }
/* 자리배치 — 칠판 · 교탁을 누르면 뒤집힌다 */
button.cb-sp__front { width: 100%; height: 48px; border: 1px dashed var(--yj-line-strong); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 0; line-height: 1.25; }
button.cb-sp__front:hover { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-sp__front b { font-size: var(--yj-t-small); font-weight: 800; color: var(--yj-ink-deep); letter-spacing: .1em; }
.cb-sp__fhint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--yj-sub); letter-spacing: 0; }
.cb-sp__fhint .cb-ic { width: 13px; height: 13px; }
/* 자리배치 카드 뒷면 — 물음표 대신 유자 */
.cb-sp__seat.is-card .cb-sp__sname { font-size: 0; width: min(64cqh, 40cqw); aspect-ratio: 1; background: url("../../favicon-32x32.png") center / contain no-repeat; }
.cb-sp__seat.is-card { background: var(--yj-yuja-100); }

/* 자리 화면(머리띠 [자리]) — 지금 자리표만 크게 / 저장한 자리표 목록 */
.cb-spview__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: var(--yj-s4) var(--yj-s5); }
.cb-spview__body .cb-sp__room { flex: 1; }
.cb-spview .cb-sp__seat { cursor: default; }
.cb-spview .cb-sp__sname { font-size: min(42cqh, 26cqw); }
.cb-spsave ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); max-height: 520px; overflow: auto; }
.cb-spsave li { display: flex; align-items: center; gap: var(--yj-s2); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); }
.cb-spsave li span { flex: 1; display: flex; flex-direction: column; }
.cb-spsave li b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-spsave li small { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-spsave__note { margin: var(--yj-s4) 0 0; padding-top: var(--yj-s3); border-top: 1px solid var(--yj-line); font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-sp__h3row { display: flex; align-items: center; }
.cb-sp__h3row .cb-sp__h3btn { margin-left: auto; width: 36px; height: 36px; }

/* ── 머리띠 동기화 단추 — 구름 안에 동기화 화살표 (2026-10-30) ── */
.cb-sync-btn .cb-ic--cloud { width: 26px; height: 26px; }

/* ── 자리 — 복도 · 칠판 · 교탁 (2026-10-30) ──
   책상이 없는 세로 칸은 넓은 복도(64px). 바닥 띠 + 가운데 점선.
   칠판은 짙은 초록 띠, 교탁은 가운데 나무색 책상. 뒤집기 안내는 오른쪽 옆 */
:root {
  --cb-chalk: #2F4A3A;          /* 칠판 */
  --cb-chalk-tray: #8A7356;     /* 칠판 아래 분필 받침 */
  --cb-wood: #E6CFA6;           /* 교탁 나무 */
  --cb-wood-edge: #B8935C;      /* 교탁 앞 모서리 */
  --cb-floor: #EDE6D6;          /* 복도 바닥 */
}
.cb-sp__aisle {
  border-radius: var(--yj-r-sm);
  background:
    linear-gradient(var(--yj-line-strong) 50%, transparent 0) center top / 2px 16px repeat-y,
    var(--cb-floor);
  box-shadow: inset 0 0 0 1px var(--yj-line);
}
.cb-sp__room button.cb-sp__front--desk, .cb-sp__room div.cb-sp__front--desk {
  width: 100%; position: relative; height: 84px; padding: 0; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
}
.cb-sp__room.is-student button.cb-sp__front--desk, .cb-sp__room.is-student div.cb-sp__front--desk { flex-direction: column-reverse; justify-content: flex-start; }
.cb-sp__chalk { flex: none; align-self: stretch; height: 14px; border-radius: var(--yj-r-xs); background: var(--cb-chalk); box-shadow: 0 3px 0 var(--cb-chalk-tray); }
.cb-sp__room.is-student .cb-sp__chalk { box-shadow: 0 -3px 0 var(--cb-chalk-tray); }
.cb-sp__front--desk b {
  min-width: 380px; height: 54px; padding: 0 var(--yj-s6); box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--yj-r-sm) var(--yj-r-sm) var(--yj-r-xs) var(--yj-r-xs);
  background: var(--cb-wood); border-bottom: 5px solid var(--cb-wood-edge); box-shadow: var(--yj-sh-1);
  font-size: 28px; font-weight: 900; color: var(--yj-ink-deep); letter-spacing: .12em;
}
.cb-sp__room.is-student .cb-sp__front--desk b { border-bottom: 0; border-top: 5px solid var(--cb-wood-edge); border-radius: var(--yj-r-xs) var(--yj-r-xs) var(--yj-r-sm) var(--yj-r-sm); }
.cb-sp__front--desk .cb-sp__fhint { position: absolute; right: 0; bottom: 8px; padding: 6px 12px; font-size: var(--yj-t-cap); border-radius: var(--yj-r-full); background: var(--yj-canvas); }
.cb-sp__room.is-student .cb-sp__front--desk .cb-sp__fhint { bottom: auto; top: 6px; }
button.cb-sp__front--desk:hover { background: transparent; }
button.cb-sp__front--desk:hover b { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); }
button.cb-sp__front--desk:hover .cb-sp__fhint { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }
button.cb-sp__front--desk:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }

/* ── 체크리스트 — 업·다운 줄 · 열 지우기 · 학생 줄 번갈아 바탕 (2026-10-30) ── */
:root { --cb-zebra: color-mix(in srgb, var(--yj-canvas) 55%, var(--yj-card-hi)); }
.cb-cs tbody tr:nth-child(even) > :not(.cb-cs__addc) { background-color: var(--cb-zebra); }
.cb-cs tfoot tr.cb-cs__udrow th, .cb-cs tfoot tr.cb-cs__udrow td { bottom: 52px; height: 44px; }
.cb-cs tfoot tr.cb-cs__udrow + tr th, .cb-cs tfoot tr.cb-cs__udrow + tr td { border-top: 1px solid var(--yj-line); }
.cb-cs__ud { padding: 4px 6px !important; }
.cb-cs__udbox { display: flex; gap: 4px; height: 34px; }
.cb-cs__udbox .cb-cs__up, .cb-cs__udbox .cb-cs__down { flex: 1; height: 100%; border-radius: var(--yj-r-sm); font-size: var(--yj-t-cap); }
.cb-cs__footbox { display: flex; gap: 6px; }
.cb-cs__footbox .cb-cs__done, .cb-cs__footbox .cb-cs__redo { flex: 1; min-width: 0; width: auto; }
.cb-cs__del { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--yj-r-sm); background: var(--yj-error); color: var(--yj-on-ink); cursor: pointer; padding: 0; }
.cb-cs__del .cb-ic { width: 20px; height: 20px; }
/* 표 맨 아래 [보관](R04-01) — 빨간 휴지통 자리. 기록은 그대로라 빨간색이 아니다 */
.cb-cs__keep { flex: none; min-width: 44px; height: 38px; padding: 0 var(--yj-s2); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); background: var(--yj-card); color: var(--yj-ink); font: inherit; font-size: var(--yj-t-small); font-weight: 700; cursor: pointer; }
.cb-cs__keep:hover { background: var(--yj-yuja-50); }
.cb-cs__keep:focus-visible { outline: 2px solid var(--yj-ink-deep); outline-offset: 2px; }
.cb-cs__del:hover { filter: brightness(.9); }
.cb-cs__del:focus-visible { outline: 2px solid var(--yj-ink-deep); outline-offset: 2px; }

/* ── 체크리스트 — 날짜 순서 · 제목 골라 보기 · 모두 선택 값 · 제목 펼침 (2026-10-30) ── */
.cb-cs__kh { display: flex; align-items: center; gap: 6px; }
.cb-cs__kbtn { height: 30px; min-width: 30px; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-xs); background: var(--yj-card-hi); color: var(--yj-sub); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cb-cs__kbtn .cb-ic { width: 16px; height: 16px; }
.cb-cs__kbtn small { font-size: 12px; }
.cb-cs__kbtn:hover { border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-cs__kbtn.is-on { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-cs__fillbox { display: flex; gap: 2px; }
.cb-cs__fillbox .cb-cs__fill { flex: 1; min-width: 0; border-radius: var(--yj-r-xs) 0 0 var(--yj-r-xs); }
.cb-cs__caret { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--yj-line); border-radius: 0 var(--yj-r-xs) var(--yj-r-xs) 0; background: var(--yj-yuja-100); color: var(--yj-ink-deep); cursor: pointer; }
.cb-cs__caret .cb-ic { width: 16px; height: 16px; }
.cb-cs__caret:hover { background: var(--yj-yuja-200); }
.cb-cs__fillbox .cb-cs__fill:only-child { border-radius: var(--yj-r-xs); }
.cb-ckpop { position: absolute; z-index: 40; min-width: 200px; max-width: 320px; max-height: 460px; display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s2); background: var(--yj-card-hi); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); box-shadow: var(--yj-sh-2); }
.cb-ckpop[hidden] { display: none; }
.cb-ckpop__h { font-size: var(--yj-t-cap); color: var(--yj-sub); padding: 2px 4px 0; }
.cb-ckpop__list { display: flex; flex-direction: column; overflow: auto; min-height: 0; }
.cb-ckpop__it { height: 40px; padding: 0 var(--yj-s3); border: 0; border-radius: var(--yj-r-xs); background: transparent; text-align: left; font: inherit; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); cursor: pointer; }
.cb-ckpop__it:hover, .cb-ckpop__it:focus-visible { background: var(--yj-yuja-100); outline: none; }
.cb-ckpop__none { margin: 0; padding: var(--yj-s2); font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-ckpop__foot { border-top: 1px solid var(--yj-line); padding-top: var(--yj-s2); }
.cb-ckpop__edit { width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-xs); background: var(--yj-canvas); font: inherit; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); cursor: pointer; }
.cb-ckpop__edit .cb-ic { width: 16px; height: 16px; }
.cb-ckpop__edit:hover { background: var(--yj-yuja-100); border-color: var(--yj-yuja-600); }
.cb-ckpop__btns { display: flex; gap: var(--yj-s1); }
.cb-ckpop__ck { min-height: 40px; padding: 0 var(--yj-s2); border-radius: var(--yj-r-xs); cursor: pointer; }
.cb-ckpop__ck:hover { background: var(--yj-yuja-50); }
.cb-ckpop__vals { display: flex; gap: var(--yj-s1); }
.cb-ckpop__v { flex: 1; min-width: 44px; height: 48px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-xs); background: var(--yj-card); font-family: var(--yj-font-disp); font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); cursor: pointer; }
.cb-ckpop__v.is-t { font-family: var(--yj-font-ui); }
.cb-ckpop__v:hover { border-color: var(--yj-yuja-600); }
.cb-ckpop__v[aria-checked="true"] { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); }
.cb-ckpop__note { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; padding: 0 4px; }

/* ── 유자 · 코인 함께 보이기 (우리 반 페이지 · 자리) ── */
.cb-pts { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; }
.cb-pts__i { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 6px; border-radius: var(--yj-r-full); font-family: var(--yj-font-disp); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cb-pts__i small { font-family: var(--yj-font-ui); font-weight: 700; font-size: .62em; }
.cb-pts__i--y { background: var(--yj-yuja-100); color: var(--yj-yuja-ink); }
.cb-pts__i--c { background: var(--yj-canvas); color: var(--yj-ink-deep); box-shadow: inset 0 0 0 1px var(--yj-line); }
.cb-pts__i.is-zero { color: var(--yj-faint); }
.cb-st .cb-pts { top: 6%; right: 5%; flex-direction: row; gap: 4px; font-size: min(17cqh, 10cqw); }
.cb-sp__seat .cb-pts { right: 5px; bottom: 4px; flex-direction: row; font-size: max(calc(12.2px / var(--cb-s, 1)), min(20cqh, 12cqw)); }

/* ── 우리 반 페이지 #/class ── */
.cb-ocpage { top: var(--cb-bar-h, 56px); z-index: 19; }
.cb-ocpage__acts { align-items: center; }
.cb-ocpage__k { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); margin-left: var(--yj-s2); }
.cb-ocpage__seg button { flex: none; height: 36px; padding: 0 var(--yj-s3); }
.cb-ocpage__seg button[disabled] { opacity: .4; cursor: default; }
.cb-ocpage__sort { height: 40px; min-width: 150px; }
.cb-ocpage__w { flex: 1; min-height: 0; margin: var(--yj-s4) var(--yj-s5); }
.cb-ocseats { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cb-ocseats .cb-sp__room { padding: var(--yj-s2); box-shadow: none; }
.cb-ocseats .cb-sp__seat.is-empty { cursor: default; background: transparent; border-style: dashed; }
.cb-ocseats .cb-sp__seat.is-empty:hover { border-color: var(--yj-line); }
.cb-ocseats .cb-st { width: 100%; height: 100%; }
.cb-ocseats .cb-state { margin: auto; text-align: center; }

/* ── 2026-10-30 체크리스트 적용 단추 · 우리 반 포인트 보기 · 꾸미기 · 구름 동기화 ── */
.cb-ckpop__foot .yj-btn { display: block; margin-left: auto; }
.cb-roster__mode .yj-btn { flex: none; margin-left: var(--yj-s2); white-space: nowrap; }
.cb-ocpage__pts { display: flex; align-items: center; gap: var(--yj-s1); flex: none; }
.cb-ocpage__pts .yj-btn { flex: none; white-space: nowrap; }
.cb-ocpage__seg { flex: none; }
.cb-ocpage__seg button { min-width: 60px; white-space: nowrap; }
#cb-edit[hidden] { display: none; }
.cb-sync-btn.is-busy { opacity: 1; }
.cb-sync-btn.is-busy .cb-ic--cloud { animation: cb-sync-blink 1.2s ease-in-out infinite; }
.cb-sync-btn.is-busy .cb-sync-spin { transform-box: view-box; transform-origin: 12px 14px; animation: cb-sync-spin 1.2s linear infinite; }
@keyframes cb-sync-spin { to { transform: rotate(360deg); } }
@keyframes cb-sync-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .cb-sync-btn.is-busy { opacity: .5; }
  .cb-sync-btn.is-busy .cb-ic--cloud, .cb-sync-btn.is-busy .cb-sync-spin { animation: none; }
}

.cb-alim__paper { overflow: hidden; }
.cb-alim__host { flex: 1; min-height: 0; width: 100%; display: flex; }
/* 챙길 것 · 제목 한 마디(A03_A04 판정 ①) — 글 칸 맨 위 한 줄. [학생화면] 단추 자리를 비워 둔다 */
.cb-alim__bring { flex: none; display: flex; align-items: center; gap: var(--yj-s3); width: 100%; padding: 0 140px var(--yj-s3) 0; }
.cb-alim__bringl { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--yj-s3); }
/* 확인 부탁 한 줄(A04 ⑨) — 글 칸 아래 */
.cb-alim__ask { flex: none; min-height: 44px; }
/* 마지막으로 고친 때(R05-01) — [복사] 옆 */
.cb-alim__edited { align-self: center; font-size: var(--yj-t-small); color: var(--yj-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 이름 없는 번호(A04 ⑥) — 조용한 알림(막지 않음) */
.cb-alim__numnote { flex: none; margin: 0; padding: var(--yj-s2) var(--yj-s3); border-left: 3px solid var(--yj-warn, var(--yj-yuja-600)); background: var(--yj-yuja-50); font-size: var(--yj-t-small); color: var(--yj-ink); }
.cb-alim__numnote[hidden] { display: none; }
.cb-alim__ask em { font-style: normal; color: var(--yj-sub); }
.cb-alset__ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2); }
.cb-alset__ask .yj-input { flex: 1; min-width: 240px; }
.cb-alset__ask em { flex: 1 1 100%; font-style: normal; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-alim__bringk { flex: none; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub); }
.cb-alim__bring .yj-input { flex: 1; min-width: 0; min-height: 44px; font-weight: 700; }

.cb-memo--view { display: block; }
.cb-memo--view.cb-notice, .cb-memo--view.cb-alim-prev { flex: 1; min-height: 0; }

/* 왼쪽 위 「유자보드」 — 누르면 배치 1번 */
.cb-brand[role="button"] { cursor: pointer; border-radius: var(--yj-r-sm); }
.cb-brand[role="button"]:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }
/* 우리 반 머리 — 고른 친구에게 쓰는 버튼 묶음은 전체 화면 단추 왼쪽에 살짝 떨어져 */
.cb-roster__acts { margin-left: auto; display: inline-flex; align-items: center; gap: var(--yj-s2); flex: none; }
.cb-roster__acts + .cb-w__corner { margin-left: var(--yj-s4); }
.cb-roster__acts .cb-roster__selnum { margin-left: 0; }
.cb-roster__acts .yj-btn { white-space: nowrap; }
.cb-roster__flip { padding: 0 var(--yj-s3); }
.cb-roster__flip .cb-ic { width: 18px; height: 18px; }
/* 시계 — 시각을 키우고 칸 가운데에 */
.cb-clock--digital { justify-content: center; }
.cb-clock--digital .cb-clock__dg { align-items: center; text-align: center; }
.cb-clock--digital .cb-clock__time { font-size: min(27cqw, 62cqh); }
.cb-clock--digital.has-sec .cb-clock__time { font-size: min(20cqw, 52cqh); }
.cb-clock--digital .cb-clock__date--top { font-size: min(7.5cqw, 14cqh); }

/* 메모 편집기 — 글자 · 줄간격 사이 구분선, 마크다운 사용법은 오른쪽 끝 */
.cb-memo__sep { align-self: stretch; width: 1px; min-height: 24px; background: var(--yj-yuja-200); margin: 0 var(--yj-s1); }
.cb-memo__tb { gap: var(--yj-s2) var(--yj-s3); }
.cb-memo__helpbtn { margin-left: auto; white-space: nowrap; }
/* 알림장 작성판 */
.cb-alim__past { margin-left: var(--yj-s4); }
.cb-alim__today { flex: none; white-space: nowrap; margin-left: var(--yj-s2); }
.cb-alim__acts { align-items: center; }
/* 불러오기 칸 — 오른쪽 가운데의 책갈피 손잡이로 빼고 넣는다 */
.cb-alim__body { position: relative; }
.cb-alim__tab {
  position: absolute; top: 50%; transform: translateY(-50%); right: calc(var(--yj-s6) + 420px - 6px); right: calc(var(--yj-s6) + var(--alim-side-w) - 6px); z-index: 2;
  width: 32px; height: 112px; padding: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--yj-yuja-600); border-right: 0; border-radius: var(--yj-r-sm) 0 0 var(--yj-r-sm);
  background: var(--yj-yuja-300); color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-cap); font-weight: 800; cursor: pointer; box-shadow: var(--yj-sh-1);
}
.cb-alim__tab:hover { background: var(--yj-yuja-200); }
.cb-alim__tab span { writing-mode: vertical-rl; letter-spacing: 0.1em; }
.cb-alim__tab .cb-ic { width: 18px; height: 18px; transform: rotate(-90deg); }
.cb-alim__tab[aria-expanded="false"] .cb-ic { transform: rotate(90deg); }
.cb-alim__body.is-side-closed { grid-template-columns: minmax(0, 1fr) 0; gap: 0; }
.cb-alim__body.is-side-closed .cb-alim__side { display: none; }
.cb-alim__body.is-side-closed .cb-alim__tab { right: 0; }
.cb-alim__sidebody { display: flex; flex-direction: column; gap: var(--yj-s4); min-height: 0; }
.cb-alim__resize {
  position: absolute; top: var(--yj-s5); bottom: var(--yj-s5); right: calc(var(--yj-s6) + var(--alim-side-w)); width: var(--yj-s5); z-index: 1;
  cursor: col-resize; touch-action: none; display: flex; justify-content: center;
}
.cb-alim__resize::after { content: ""; width: 4px; height: 100%; border-radius: var(--yj-r-full); background: transparent; transition: background var(--yj-m-fast) var(--yj-ease); }
.cb-alim__resize:hover::after, .cb-alim__resize.is-drag::after, .cb-alim__resize:focus-visible::after { background: var(--yj-yuja-300); }
.cb-alim__resize[hidden] { display: none; }
/* 어사문 꼭지 [+] — 칸 오른쪽 위 유자 단추, 넣으면 초록 체크(2026-11-07) */
.cb-alim__src { position: relative; }
.cb-alim__src > .cb-alim__add {
  position: absolute; top: var(--yj-s2); right: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center;
  background: var(--yj-yuja-300); border: 1px solid var(--yj-yuja-600); color: var(--yj-ink-deep); border-radius: var(--yj-r-md);
}
.cb-alim__src > .cb-alim__add:hover { background: var(--yj-yuja-200); }
.cb-alim__addic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-alim__addic--done { display: none; }
.cb-alim__src > .cb-alim__add.is-done { background: var(--yj-leaf-tint); border-color: var(--yj-leaf); color: var(--yj-leaf-ink); }
.cb-alim__add.is-done .cb-alim__addic--plus { display: none; }
.cb-alim__add.is-done .cb-alim__addic--done { display: block; }
.cb-alim__addtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-alim__src > b { min-height: 44px; display: flex; align-items: center; padding-right: 56px; }
.cb-alim__srch { gap: var(--yj-s3); flex-wrap: wrap; }
.cb-alim__exck { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink); }
.cb-alim__find { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--yj-s4); }
.cb-alim__find .yj-input { width: 160px; height: 36px; }
.cb-alim__date h2 { min-width: 250px; }
.cb-alim__past { margin-left: var(--yj-s2); width: 190px; }
.cb-alim__copybox, .cb-alset__box { display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-600); }
.cb-alim__copybox > b, .cb-alset__box > b { color: var(--yj-yuja-ink); font-size: var(--yj-t-small); }
.cb-alim__copybox .cb-alim__hint, .cb-alset__box .cb-set__note { margin: 0; background: transparent; padding: 0; }
.cb-alset__box[hidden] { display: none; }
/* 불러오기 = 큰 상자 두 개 — 「한줄추가」 · 「오늘의 어사문」(2026-11-07) */
.cb-alim__sidebody > .cb-alim__ol, .cb-alim__as { padding: var(--yj-s3) var(--yj-s4); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-md); background: var(--yj-card); margin-bottom: 0; }
.cb-alim__as { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-alim__asnote { margin: 0; font-size: var(--yj-t-small); line-height: 1.5; color: var(--yj-sub); }   /* 저학년 안내 한 줄(A01-15) */
.cb-alim__olhead b { font-size: var(--yj-t-body); }
.cb-alim__as > .cb-alim__copybox { padding: var(--yj-s2) var(--yj-s3); }
.cb-alset__sample { margin: 0; padding: var(--yj-s3); border-radius: var(--yj-r-xs); background: var(--yj-card); border: 1px solid var(--yj-line); font-family: var(--yj-font-ui); font-size: var(--yj-t-small); line-height: 1.6; white-space: pre-wrap; color: var(--yj-ink-deep); }
.cb-check em { font-style: normal; color: var(--yj-sub); font-size: var(--yj-t-cap); margin-left: 4px; }
/* 지난 알림장 조회 창 */
.cb-alh { position: fixed; inset: 12px; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-lg); background: var(--yj-canvas); color: var(--yj-ink); box-shadow: var(--yj-sh-2); overflow: hidden; }
.cb-alh[open] { display: flex; flex-direction: column; }
.cb-alh::backdrop { background: rgba(22, 24, 26, 0.45); }
.cb-alh__bar { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--yj-s6); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); }
.cb-alh__bar h2 { margin: 0; font-size: 22px; color: var(--yj-ink-deep); font-family: var(--yj-font-disp); }
.cb-alh__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--yj-s5); padding: var(--yj-s5) var(--yj-s6); }
.cb-alh__view, .cb-alh__list { min-height: 0; display: flex; flex-direction: column; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); padding: var(--yj-s4) var(--yj-s5); gap: var(--yj-s3); }
.cb-alh__vhead { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); flex-wrap: wrap; }
.cb-alh__vhead h3 { margin: 0; font-size: 24px; color: var(--yj-ink-deep); font-family: var(--yj-font-disp); }
.cb-alh__vacts { display: flex; gap: var(--yj-s2); }
.cb-alh__tipnote { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-alh__doc { flex: 1; min-height: 0; overflow: auto; user-select: text; padding: var(--yj-s2) var(--yj-s1); }
.cb-alh__md { overflow: visible; }
.cb-alh mark { background: var(--yj-yuja-300); color: var(--yj-ink-deep); border-radius: 3px; padding: 0 1px; }
.cb-alh__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s2); }
.cb-alh__nav output { font-weight: 800; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-alh__nav .cb-ic { width: 20px; height: 20px; }
.cb-alh__nav .yj-btn { flex: 1; }
.cb-alh__nav .yj-btn[disabled] { opacity: 0.4; cursor: default; }
.cb-alh__q { width: 100%; box-sizing: border-box; }
.cb-alh__items { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.cb-alh__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: var(--yj-s2) var(--yj-s3); text-align: left; border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card-hi); cursor: pointer; font: inherit; color: var(--yj-ink); }
.cb-alh__item b { color: var(--yj-ink-deep); font-size: var(--yj-t-small); }
.cb-alh__item span { font-size: var(--yj-t-cap); color: var(--yj-sub); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-alh__item:hover { border-color: var(--yj-yuja-600); }
.cb-alh__item[aria-current="true"] { background: var(--yj-yuja-200); border: 2px solid var(--yj-yuja-600); padding: calc(var(--yj-s2) - 1px) calc(var(--yj-s3) - 1px); }
.cb-alh__none { color: var(--yj-sub); font-size: var(--yj-t-small); padding: var(--yj-s3); }
.cb-alh__tip { position: fixed; z-index: 10; }
.cb-alh__tip[hidden] { display: none; }
.cb-alh__tip .yj-btn { box-shadow: var(--yj-sh-2); }
/* 설정 — 알림장 */
.cb-alset__h { margin: var(--yj-s4) 0 var(--yj-s1); font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-alset__copy { display: flex; flex-direction: column; gap: var(--yj-s2); align-items: flex-start; }
.cb-alset__copy .cb-check { align-items: flex-start; line-height: 1.5; }
.cb-alim__acts #cb-alim-gear .cb-ic { margin: 0; }

/* ── 우리 반 페이지 — 번호판 머리가 곧 2차 상단바 ── */
.cb-ocpage__w { flex: 1; min-height: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.cb-ocpage__w .cb-w__inner { padding: 0; }
.cb-ocpage__head { flex: none; margin: 0; min-height: 56px; padding: 6px var(--yj-s5); box-sizing: border-box; flex-wrap: wrap; row-gap: 6px; gap: var(--yj-s2); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); }
.cb-ocpage__home { margin-left: 0; width: 36px; justify-content: center; padding: 0; }
.cb-ocpage__home .cb-ic { margin-right: 0; width: 20px; height: 20px; }
.cb-ocpage__t { display: inline-flex; align-items: baseline; gap: var(--yj-s2); margin-right: var(--yj-s2); white-space: nowrap; }
.cb-ocpage__t b { font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-ocpage__t span { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-ocpage__ctl { display: contents; }
.cb-ocpage__g { display: inline-flex; align-items: center; gap: var(--yj-s2); padding: 0 var(--yj-s3); margin: 0; border-left: 1px solid var(--yj-line-strong); min-height: 36px; flex: none; }
.cb-ocpage__g .cb-ocpage__k { margin-left: 0; }
.cb-ocpage__head > .cb-roster__mode { margin-left: 0; }
.cb-ocpage__w .cb-roster, .cb-ocpage__w .cb-ocseats, .cb-ocpage__w > .cb-w__inner > .cb-state { margin: var(--yj-s4) var(--yj-s5); }
.cb-ocpage__w .cb-roster { flex: 1; min-height: 0; }

/* ── 우리 반 페이지 — 출결등록(3차 상단바) · 머리 재배치 ── */
.cb-ocpage__head > .cb-att-reg { margin-left: auto; margin-right: auto; }
.cb-ocpage__attslot { display: none; }
.cb-ocpage__head .cb-roster__acts { margin-left: auto; }
/* 2026-11-17 작가 — 세 모드(기본 · 체크리스트 · 출결)의 2차 상단바 높이를 하나로(체크리스트 제목 34px 가 머리를 69px 로 키워 모드를 바꿀 때마다 흔들렸다).
   넓은 화면은 한 줄 · 56px 고정(규격 헤더 56), 체크리스트 제목은 그 안에 들어가는 크기로. 좁은 화면은 예전처럼 줄바꿈 */
.cb-ocpage__head .cb-roster__ckbtn { min-height: 0; height: max(44px, calc(44px / var(--cb-s, 1))); font-size: 26px; line-height: 1; }
@media (min-width: 1200px) {
  .cb-ocpage__head { height: max(56px, calc(56px / var(--cb-s, 1))); flex-wrap: nowrap; padding-block: 0; }
}
.cb-ocpage__head > .cb-roster__today { flex: none; white-space: nowrap; }
/* 모양 — 번호판(123) · 자리(책상) 그림 단추 */
.cb-ocpage__seg .cb-ocpage__ic { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; }
.cb-ocpage__seg .cb-ocpage__ic .cb-ic { width: 22px; height: 22px; }
.cb-ocpage__head.is-attmode .cb-roster__give { display: none; }
.cb-ocpage__head > .cb-ocpage__ctl, .cb-ocpage__head .cb-ocpage__ctl { margin-left: 0; }
.cb-att3 { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s2); min-height: 52px; padding: 6px var(--yj-s5); box-sizing: border-box; background: var(--yj-yuja-50); border-bottom: 1px solid var(--yj-yuja-200); }
.cb-att3__g { display: inline-flex; align-items: center; gap: var(--yj-s2); padding: 0 var(--yj-s3); border-left: 1px solid var(--yj-yuja-600); min-height: 34px; flex: none; }
.cb-att3__g:first-child { border-left: 0; padding-left: 0; }
.cb-att3__k { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-yuja-ink); white-space: nowrap; }
.cb-att3__k b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-att3__day .yj-input { height: 36px; width: 150px; }
.cb-att3 .yj-btn[disabled] { opacity: 0.4; cursor: default; }
.cb-att3__x { margin-left: auto; }
/* 출결 여럿 · 기간 · 전입 전출 창 */
.cb-att-m__who { max-height: 280px; overflow: auto; border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); }
.cb-att-m__who th em, .cb-att-edit b em { font-style: normal; font-weight: 500; color: var(--yj-sub); font-size: var(--yj-t-cap); margin-left: 4px; }
.cb-att-m__who .yj-input { height: 36px; width: 100%; box-sizing: border-box; }
.cb-att-p__who { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; }
.cb-att-p__sum { margin: 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); color: var(--yj-ink-deep); }
.cb-att-mv { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-att-mv__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--yj-s2); padding: var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); }
.cb-att-mv__form .yj-input { height: 40px; }
.cb-att-mv__form [data-mv="name"] { width: 120px; }
.cb-att-mv__no { width: 84px; }
.cb-att-mv__d { display: inline-flex; flex-direction: column; gap: 2px; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-yuja-ink); }
.cb-att-mv__memo { flex: 1; min-width: 200px; }
.cb-att-mv__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.cb-att-mv__list li { display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card-hi); }
.cb-att-mv__list li.is-hide { opacity: 0.55; }
.cb-att-mv__k { flex: none; padding: 2px 10px; border-radius: var(--yj-r-full); font-size: var(--yj-t-cap); font-weight: 800; border: 1px solid var(--yj-line-strong); }
.cb-att-mv__k.is-in { background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); border-color: var(--yj-leaf); }
.cb-att-mv__k.is-out { background: var(--yj-orange-tint); color: var(--yj-orange-ink); border-color: var(--yj-orange); }
.cb-att-mv__when { flex: none; font-variant-numeric: tabular-nums; color: var(--yj-ink-deep); }
.cb-att-mv__who { flex: none; font-weight: 700; color: var(--yj-ink-deep); }
.cb-att-mv__m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--yj-sub); font-size: var(--yj-t-small); }
.cb-att-mv__none { color: var(--yj-sub); padding: var(--yj-s3); border: 0 !important; background: none !important; }
.cb-att-modal__box { max-height: calc(100dvh - 48px); overflow: auto; }

.cb-att3__day .yj-input { width: 190px; min-width: 190px; padding-right: 8px; }
.cb-att-reg .cb-ic { width: 18px; height: 18px; margin-right: 6px; }
.cb-att-reg[aria-pressed="true"] { background: var(--yj-yuja-200); border: 1px solid var(--yj-yuja-600); }

/* 출결등록 3차 바 — 날짜 화살표 · 가통 창 */
.cb-att3__day { gap: 4px; }
.cb-att3__day .yj-btn--icon { width: 34px; height: 34px; }
.cb-att3__day .cb-ic { width: 18px; height: 18px; }
.cb-gt__head { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); margin-bottom: var(--yj-s3); }
.cb-gt__head h2 { margin: 0; }
.cb-gt__tools { display: flex; align-items: center; gap: var(--yj-s2); }
.cb-gt { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-gt__box { display: flex; flex-direction: column; align-items: flex-start; gap: var(--yj-s2); padding: var(--yj-s3) var(--yj-s4); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); }
.cb-gt__box > b { color: var(--yj-yuja-ink); font-size: var(--yj-t-small); }
.cb-gt__box p { margin: 0; white-space: pre-wrap; line-height: 1.7; color: var(--yj-ink-deep); font-size: var(--yj-t-body); }
.cb-gt__url { word-break: break-all; }
.cb-gt__none { color: var(--yj-sub); font-style: normal; }
.cb-gt__ta { width: 100%; box-sizing: border-box; height: auto; padding: var(--yj-s3); line-height: 1.6; resize: vertical; }
.cb-att-modal .cb-modal__foot .cb-ic { width: 18px; height: 18px; margin-right: 6px; }
.cb-sym.is-p { color: var(--yj-leaf-ink); }
.cb-att3__ic { padding: 0 var(--yj-s3); }
.cb-att3__ic .cb-ic { width: 20px; height: 20px; }
.cb-tc__list { margin: 0; white-space: pre-wrap; font-family: var(--yj-font-ui); font-size: var(--yj-t-small); line-height: 1.7; color: var(--yj-ink-deep); max-height: 200px; overflow: auto; width: 100%; }
.cb-tc__n { color: var(--yj-ink-deep); }

/* ── 2026-11-02 · 투트랙 서식 · 모두 지우기 · 배치 번호 조회 ── */
.cb-memo__clearbtn { margin-left: var(--yj-s2); white-space: nowrap; }   /* 2026-11-11 · 끝으로 옮겼다 — [사용법] 다음, 줄간격 단추와는 멀리 */
.cb-memo__helpbtn + .cb-memo__clearbtn { margin-left: var(--yj-s3); }
.cb-memo__tb .cb-memo__clearbtn { min-width: 0; width: 32px; padding-inline: 0; justify-content: center; }   /* 아이콘만 — 좁은 칠판에서도 끝에 남게 */
.cb-slots--save .cb-slots__save { width: 36px; height: 32px; margin-left: 2px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--yj-line); border-radius: var(--yj-r-full); background: var(--yj-card); color: var(--yj-ink-deep); cursor: pointer; }
.cb-slots--save .cb-slots__save .cb-ic { width: 18px; height: 18px; }
.cb-slots--save .cb-slots__save:hover { background: var(--yj-yuja-100); }
.cb-slots--save .cb-slots__save.is-dirty { background: var(--yj-yuja-300); border-color: var(--yj-yuja-600); }

/* 칸이 좁은 위젯(4칸)은 머리가 넘치지 않게 덜 중요한 글자를 접는다 — 톱니바퀴 · 크게 보기는 늘 남는다 */
.cb-w__head { container: cbhead / inline-size; }
@container cbhead (max-width: 330px) {
  .cb-w--alimjang .cb-w__meta,
  .cb-w--notice .cb-w__head > .cb-link,
  .cb-w--notice .cb-w__head > .cb-badge { display: none; }
}

/* ── 2026-11-02 · 서식 박스는 어떤 폭에서도 한 줄 (칠판·알림장 위젯) — 좁아지면 글자부터 접는다 ── */
.cb-memo__tb { flex-wrap: nowrap; overflow: hidden; container-type: inline-size; container-name: cbtb; }
.cb-memo__tb > * { flex: none; }
.cb-memo__clearbtn { padding-inline: var(--yj-s2); }
.cb-memo__t2, .cb-memo__t3 { display: none; }
@container cbtb (max-width: 520px) {
  .cb-memo__lb, .cb-memo__sep { display: none; }
  .cb-memo__t1 { display: none; } .cb-memo__t2 { display: inline; }
}
@container cbtb (max-width: 400px) {
  .cb-memo__val { min-width: 2.6em; font-size: 12px; }
  .cb-memo__btn { width: 30px; height: 30px; }
  .cb-memo__t2 { display: none; } .cb-memo__t3 { display: inline; font-weight: 800; }
}
@container cbtb (max-width: 290px) {
  .cb-memo__helpbtn { display: none; }   /* 끝에 둔 [모두 지우기]가 잘리지 않게 사용법 단추부터 접는다(2026-11-11) — 사용법은 크게 보기에서 */
  .cb-memo__tb > * + *, .cb-memo__tb > .cb-memo__clearbtn { margin-left: -8px; }   /* 서식 줄 간격(12px)은 자기 자신을 못 줄이는 컨테이너라 단추 쪽에서 4px 로 */
  .cb-memo__val { display: none; }
  .cb-memo__btn { width: 26px; height: 26px; }
  .cb-memo__tb { gap: 4px; padding-inline: 4px; }
}

/* ── 2026-11-02 · 자리배치: 왼쪽 맨 아래 큰 단추 · 자리뽑기 · 자리 공개 층 ── */
.cb-sp__cta { margin-top: auto; padding-top: var(--yj-s4); display: flex; flex-direction: column; gap: var(--yj-s3); position: sticky; bottom: 0; background: var(--yj-card-hi); }
.cb-sp__big { width: 100%; height: 64px; font-size: 20px; font-weight: 800; justify-content: center; }
.cb-sppage__bar { position: relative; }
.cb-sp__drawbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 160px; font-size: 18px; font-weight: 800; }
.cb-sp__layer { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: var(--yj-canvas); }
.cb-sp__layerbar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 var(--yj-s5); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); }
.cb-sp__frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--yj-canvas); }
/* 설정 → 자리배치 */
.cb-sh { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-sh__nav { display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap; }
.cb-sh__nav select { min-width: 260px; max-width: 100%; }
.cb-sh__pos { color: var(--yj-sub); font-size: var(--yj-t-small); font-variant-numeric: tabular-nums; }
.cb-sh__room { padding: var(--yj-s4); background: var(--yj-canvas); border-radius: var(--yj-r-sm); max-width: 760px; }
.cb-sh__room .cb-sp__room { --cb-sp-cell: 54px; }
.cb-sh__room .cb-sp__seat { min-height: 44px; font-size: 13px; pointer-events: none; }
.cb-sh__pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.cb-sh__pairs li { display: flex; align-items: center; justify-content: space-between; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); }
.cb-sh__room .cb-sp__front { pointer-events: none; } .cb-sh__room .cb-sp__fhint { display: none; }

/* 역대 자리배치 — 넘김 단추는 한 줄 · 자리표는 가운데 */
.cb-sh__nav { flex-wrap: nowrap; justify-content: center; }
.cb-sh__nav .yj-btn--icon { flex: none; width: 40px; height: 40px; padding: 0; }
.cb-sh__nav .yj-btn--icon .cb-ic { width: 20px; height: 20px; }
.cb-sh__nav select { flex: 0 1 280px; min-width: 0; height: 40px; }
.cb-sh__pos { flex: none; white-space: nowrap; }
.cb-sh__room { margin: 0 auto; width: 100%; }

/* 자리표 경고 딱지 — 떨어뜨릴 친구 · 같은 짝 또 됨 (선생님 화면에서만) */
.cb-sp__seat { position: relative; }
.cb-sp__seat.has-flag { outline: 3px solid var(--yj-orange); outline-offset: -3px; }
.cb-sp__flags { position: absolute; left: 3px; right: 3px; bottom: 3px; display: flex; flex-direction: column; gap: 2px; align-items: center; pointer-events: none; }
.cb-sp__flag { font-style: normal; font-size: calc(12.2px / var(--cb-s, 1)); font-weight: 800; line-height: 1.25; padding: 0 5px; border-radius: var(--yj-r-xs); background: var(--yj-orange-tint); color: var(--yj-orange-ink); border: 1px solid var(--yj-orange); white-space: nowrap; }
.cb-sp__flag--apart { background: var(--yj-error-tint); color: var(--yj-error-ink); border-color: var(--yj-error); }
.cb-sh__n { font-variant-numeric: tabular-nums; color: var(--yj-ink-deep); }
.cb-sh__n.is-many { color: var(--yj-orange-ink); }
.cb-sh__pairs--n { max-width: 420px; }
/* 설정 · 자리배치 두 단(2026-11-17) — 역대 자리배치는 오른쪽 단에 붙여 두고, 자리 칸은 조금 작게 */
.cb-seatset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--yj-s6); align-items: start; }
.cb-seatset__l, .cb-seatset__r { min-width: 0; }
.cb-seatset__l > .cb-field:first-child, .cb-seatset__r > .cb-alset__h:first-child { margin-top: 0; }
.cb-seatset__r { position: sticky; top: 0; }
.cb-seatset__r .cb-sh__room { max-width: none; padding: var(--yj-s3); }
.cb-seatset__r .cb-sh__room .cb-sp__room { --cb-sp-cell: 44px; }
.cb-seatset__r .cb-sh__room .cb-sp__seat { min-height: 36px; font-size: 12px; }
.cb-seatset .cb-sh__pairs { max-width: none; }

/* ── 배치된 화면 — [+] 번호 더하기 · 탭 화면 넣기 (2026-11-03) ── */
.cb-slots--save .cb-slots__add { width: 32px; height: 32px; margin-left: 2px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-full); background: transparent; color: var(--yj-ink-deep); cursor: pointer; }
.cb-slots--save .cb-slots__add .cb-ic { width: 18px; height: 18px; }
.cb-slots--save .cb-slots__add:hover { background: var(--yj-yuja-100); }
.cb-slots--save .cb-slots__add:disabled { color: var(--yj-sub); cursor: default; background: transparent; }
.cb-slots--save .cb-slots__n.is-tab { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cb-slottab { position: relative; display: flex; }
.cb-slottab__menu {
  position: absolute; top: calc(100% + var(--yj-s2)); right: 0; z-index: 40; min-width: 220px;
  display: flex; flex-direction: column; padding: var(--yj-s1); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm);
  background: var(--yj-card-hi); box-shadow: var(--yj-sh-2);
}
.cb-slottab__menu[hidden] { display: none; }
.cb-slottab__menu button { height: 44px; padding: 0 var(--yj-s3); border: 0; border-radius: var(--yj-r-sm); background: transparent; color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-small); font-weight: 600; text-align: left; cursor: pointer; }
.cb-slottab__menu button:hover, .cb-slottab__menu button:focus-visible { background: var(--yj-yuja-100); outline: none; }
.cb-slottab__menu button[aria-current="true"] { background: var(--yj-yuja-200); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-tab-only { display: none; }
.is-editing.is-slot-tab .cb-tab-only { display: inline-flex; }
.is-editing.is-slot-tab .cb-widget-only { display: none; }
.is-slot-tab .cb-panel { display: none; }
.is-editing.is-slot-tab .cb-viewport { right: 0; }
/* 꾸미는 중에 띄운 탭 화면은 머리띠(저장 단추) 아래에 */
.is-editing .cb-overlay { top: var(--cb-bar-h, 56px); }
.cb-slotask { width: min(560px, calc(100vw - 32px)); }
.cb-slotask .cb-dialog__lead b { color: var(--yj-ink-deep); }
.cb-slotask__q { margin: 0 0 var(--yj-s4); font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); }

/* 머리띠를 덮은 창 위에서 SET 을 누르려 할 때 — 짧은 안내 (2026-11-03) */
.cb-coverhint {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 40; width: 460px; max-width: calc(100% - 32px);
  padding: var(--yj-s4) var(--yj-s5); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg);
  background: var(--yj-card-hi); box-shadow: var(--yj-sh-3); color: var(--yj-ink);
}
.cb-coverhint[hidden] { display: none; }
.cb-coverhint b { display: block; margin-bottom: var(--yj-s3); font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-coverhint p { margin: var(--yj-s2) 0 var(--yj-s4); font-size: var(--yj-t-small); line-height: 1.55; }
.cb-coverhint__acts { display: flex; justify-content: flex-end; gap: var(--yj-s2); }

/* ── 2026-11-03 · 서식 줄을 머리로 — 칠판은 「칠판」 제목과 모서리 단추 사이, 알림장은 지난 알림장과 복사 사이 ── */
.cb-ntbar, .cb-alim__tbslot { flex: 1 1 auto; min-width: 0; display: flex; }
.cb-memo__tb--bar { flex: 1 1 auto; min-width: 0; margin: 0; padding-block: 4px; }
.cb-alim__tbslot { align-self: center; }
.is-editing .cb-ntbar { visibility: hidden; }
/* 칸이 좁은 칠판(머리 480px 아래)은 서식 줄을 제목 · 모서리 단추 아래 한 줄로 내려 단추가 잘리지 않게 */
.cb-w--notice .cb-w__head { flex-wrap: wrap; row-gap: var(--yj-s2); }
@container cbhead (max-width: 480px) {
  .cb-w--notice .cb-ntbar { order: 101; flex-basis: 100%; }
}

/* ── 2026-11-03 · 모둠 카드 — 같은 모둠 자리를 미색 카드 한 장으로 묶는다(js/groups.js) ──
   카드는 머리 줄 ~ 발 줄을 덮고 자리 칸 아래에 깔린다. 모둠 사이는 바탕색 간격으로 띄운다 */
.cb-sp__room.is-groups { background: var(--yj-canvas); }
.cb-gp {
  position: relative; min-width: 0; margin: 0 -8px -8px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--yj-card); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1);
}
.cb-gp__head {
  height: 40px; flex: none; display: flex; align-items: center; gap: var(--yj-s2); min-width: 0; padding: 0 4px 0 var(--yj-s2);
  background: var(--yj-yuja-50); border-bottom: 1px solid var(--yj-yuja-200); border-radius: var(--yj-r-lg) var(--yj-r-lg) 0 0;
}
.cb-gp__no { flex: none; padding: 2px 10px; border-radius: var(--yj-r-full); background: var(--yj-yuja-200); color: var(--yj-ink-deep); font-size: var(--yj-t-small); font-weight: 800; font-variant-numeric: tabular-nums; }
.cb-gp__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 800; color: var(--yj-ink-deep); }
/* 머리 — 왼쪽 · 가운데 · 오른쪽 세 칸 */
.cb-gp__head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.cb-gp__l, .cb-gp__c, .cb-gp__r { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cb-gp__l { gap: var(--yj-s2); }
.cb-gp__r { justify-self: end; gap: 2px; }
.cb-gp__pt { flex: none; font-family: var(--yj-font-disp); font-size: 22px; font-weight: 800; line-height: 1; color: var(--yj-yuja-ink); font-variant-numeric: tabular-nums; }
.cb-gp__pt.is-zero { color: var(--yj-sub); }
.cb-gp__btn { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--yj-r-sm); background: transparent; color: var(--yj-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cb-gp__btn:hover { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }
.cb-gp__btn .cb-ic { width: 18px; height: 18px; }
/* 1점 주기 — 작은 유자 동그라미 */
.cb-gp__btn--plus { width: 28px; height: 28px; margin: 0 2px; border-radius: var(--yj-r-full); background: var(--yj-yuja-300); color: var(--yj-ink-deep); }
.cb-gp__btn--plus:hover { background: var(--yj-yuja-300); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.cb-gp__btn--plus .cb-ic { width: 16px; height: 16px; }

/* 우리 반 자리 모양 — 이름을 크게, 개인 포인트는 이름 오른쪽 알약으로(번호는 왼쪽 배경처럼 옅게) */
.cb-ocseats .cb-st { flex-direction: row; justify-content: flex-end; align-items: center; gap: 4%; padding-right: 6%; }
.cb-ocseats .cb-st__name { position: static; max-width: 66%; font-size: min(46cqh, 19cqw); }
.cb-ocseats .cb-st__pt, .cb-ocseats .cb-st__val { position: static; flex: none; font-size: min(34cqh, 14cqw); }
.cb-ocseats .cb-st__pt { padding: .14em .42em; border-radius: var(--yj-r-full); background: var(--yj-yuja-100); }
.cb-ocseats .cb-st__pt.is-zero { background: var(--yj-canvas); }
.cb-ocseats .cb-st__pt--coin { background: var(--yj-canvas); box-shadow: inset 0 0 0 1px var(--yj-line); }
.cb-ocseats .cb-st .cb-pts { position: static; flex-direction: column; align-items: stretch; gap: 3px; font-size: min(22cqh, 10cqw); }

/* 모둠 창 · 설정 → 모둠 */
/* 톱니바퀴 — 창 오른쪽 위 모서리 */
.cb-gpm .cb-modal__box { position: relative; }
.cb-gpm__title { padding-right: 56px; }
.cb-gpm__gear { position: absolute; top: var(--yj-s4); right: var(--yj-s4); }
.cb-gpm__name { display: flex; gap: var(--yj-s2); }
.cb-gpm__name input { flex: 1; min-width: 0; }
.cb-gpm__now { font-family: var(--yj-font-ui); }
.cb-gpm__shop { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-gpm__shop li { display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s3) var(--yj-s4); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-gpm__item { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; color: var(--yj-ink-deep); }
.cb-gpm__price { font-weight: 700; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.cb-gpset__warn { display: flex; align-items: center; gap: var(--yj-s4); padding: var(--yj-s3) var(--yj-s4); margin-bottom: var(--yj-s4); border-radius: var(--yj-r-sm); background: var(--yj-yuja-100); border: 1px solid var(--yj-yuja-600); }
.cb-gpset__warn p { margin: 0; flex: 1; color: var(--yj-ink-deep); }
.cb-gpset__list, .cb-gpset__shop, .cb-gpset__buys, .cb-gpset__past { list-style: none; margin: 0 0 var(--yj-s3); padding: 0; display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-gpset__list li { display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-gpset__list li.is-top { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-gpset__rank { width: 2.6em; font-weight: 800; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-gpset__no { width: 4em; font-weight: 800; color: var(--yj-ink-deep); }
.cb-gpset__list input { width: 180px; }
.cb-gpset__pts { margin-left: auto; min-width: 7em; text-align: right; font-size: 20px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-gpset__shop li { display: flex; align-items: center; gap: var(--yj-s3); }
.cb-gpset__shop li > input { flex: 1; max-width: 360px; }
.cb-gpset__price { display: inline-flex; align-items: center; gap: var(--yj-s2); font-weight: 700; color: var(--yj-ink); }
.cb-gpset__price input { width: 96px; }
.cb-gpset__buys li { display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); border-bottom: 1px solid var(--yj-line); color: var(--yj-ink); }
.cb-gpset__buys li b { color: var(--yj-ink-deep); }
.cb-gpset__buys li .cb-check { margin-left: auto; }
.cb-gpset__buys li.is-used > span, .cb-gpset__buys li.is-used > b { color: var(--yj-sub); text-decoration: line-through; }
.cb-gpset__past li { padding: var(--yj-s2) 0; border-bottom: 1px solid var(--yj-line); color: var(--yj-ink); line-height: 1.7; }
.cb-gpset__past li b { margin-right: var(--yj-s2); color: var(--yj-ink-deep); }
.cb-gpset__past li .is-top { font-weight: 800; color: var(--yj-leaf-ink); }
.cb-gpset__past small { margin-left: var(--yj-s2); color: var(--yj-sub); }
/* 모둠 합치기 (2026-11-04) */
.cb-gpm__merge { display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s2); font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-gpm__merge select { width: auto; min-width: 200px; }

/* ── 2026-11-04 · 칠판 되돌리기 · 다시 하기 · 글자색 다섯 가지 (js/memo.js opts.history · opts.colors) ── */
:root {
  --cb-tc-k: var(--yj-ink-deep);
  --cb-tc-r: var(--yj-error-ink);
  --cb-tc-b: var(--cb-up-ink);
  --cb-tc-g: var(--yj-leaf-ink);
  --cb-tc-o: var(--yj-orange-ink);
}
.cb-memo__tc[data-tc="r"] { color: var(--cb-tc-r); }
.cb-memo__tc[data-tc="b"] { color: var(--cb-tc-b); }
.cb-memo__tc[data-tc="g"] { color: var(--cb-tc-g); }
.cb-memo__tc[data-tc="o"] { color: var(--cb-tc-o); }
.cb-memo__btn:disabled { color: var(--yj-faint); background: transparent; border-color: var(--yj-line); cursor: default; }
.cb-memo__btn:disabled:hover { background: transparent; border-color: var(--yj-line); }
.cb-memo__colorbtn { flex-direction: column; gap: 2px; font-size: 15px; line-height: 1; }
.cb-memo__colorbar { display: block; width: 16px; height: 4px; border-radius: var(--yj-r-full); }
.cb-ntbar, .cb-alim__tbslot, .cb-memo--edit { position: relative; }
.cb-memo__pal {
  position: absolute; z-index: 6; display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card-hi); box-shadow: var(--yj-sh-2);
}
.cb-memo__pal[hidden] { display: none; }
.cb-memo__sw { width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--yj-r-xs); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cb-memo__sw:hover, .cb-memo__sw:focus-visible { background: var(--yj-yuja-100); outline: none; }
.cb-memo__dot { display: block; width: 22px; height: 22px; border-radius: var(--yj-r-full); }
.cb-memo__dot[data-tc="k"], .cb-memo__colorbar[data-tc="k"] { background: var(--cb-tc-k); }
.cb-memo__dot[data-tc="r"], .cb-memo__colorbar[data-tc="r"] { background: var(--cb-tc-r); }
.cb-memo__dot[data-tc="b"], .cb-memo__colorbar[data-tc="b"] { background: var(--cb-tc-b); }
.cb-memo__dot[data-tc="g"], .cb-memo__colorbar[data-tc="g"] { background: var(--cb-tc-g); }
.cb-memo__dot[data-tc="o"], .cb-memo__colorbar[data-tc="o"] { background: var(--cb-tc-o); }
@container cbtb (max-width: 400px) { .cb-memo__colorbtn { font-size: 13px; } }

/* ── 2026-11-04 · 관용어 · 맞춤법 머리 단추 — [정답 보기] [자세히] [크게 보기]를 한 줄, 높이 36px ── */
.cb-w__hbtn { flex: none; height: 36px; min-width: 36px; padding: 0 12px; gap: 4px; font-size: 14px; font-weight: 700; border-radius: var(--yj-r-full); }
.cb-w__hbtn .cb-ic { width: 18px; height: 18px; }
.cb-w__corner { gap: 4px; }
.cb-w__reveal[aria-pressed="true"] { background: var(--yj-yuja-200); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-full .cb-w__hbtn { height: 44px; padding: 0 16px; font-size: 16px; }
.cb-full .cb-w__hbtn .cb-ic { width: 20px; height: 20px; }
@container cbhead (max-width: 480px) {
  .cb-w--idiom .cb-w__head > .cb-badge { display: none; }
  .cb-iq__more { padding: 0; width: 36px; }
  .cb-iq__more .cb-w__hbt { display: none; }
}
/* 관용어 — 초성은 말풍선 속에만. 대화는 칸 가득, [정답 보기]를 누르면 오른쪽에 표현 · 뜻 */
.cb-iq, .cb-iq.is-compact, .cb-iq.is-full { grid-template-columns: minmax(0, 1fr); }
.cb-iq .cb-iq__side { display: none; }
.cb-iq.is-nochat .cb-iq__side, .is-revealed .cb-iq .cb-iq__side { display: flex; }
.is-revealed .cb-iq:not(.is-nochat) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
/* 대화가 있는 날 정답은 말풍선 속에서만 — 밖에는 뜻만(낮은 위젯은 뜻도 접어 대화 칸 가득) */
.is-revealed .cb-iq.is-compact:not(.is-nochat) { grid-template-columns: minmax(0, 1fr); }
.is-revealed .cb-iq.is-compact:not(.is-nochat) .cb-iq__side { display: none; }
.cb-iq__word[hidden] { display: none; }
@container cbhead (max-width: 480px) { .cb-w--spelling .cb-w__head > .cb-badge { display: none; } }
.cb-sp.is-full { gap: var(--yj-s6); justify-content: center; }
.cb-sp.is-full .cb-sp__opt { height: auto; font-size: 84px; padding: 0.25em 0.7em; border-width: 3px; }
.cb-full .cb-sp__explain { font-size: var(--yj-t-body); text-align: center; }

/* ── 2026-11-04 · 크게 보기 창에서 정답 보기 — 해설은 아래 해설 상자 한 칸(관용어 · 맞춤법 같은 모양) ── */
.cb-full .is-revealed .cb-iq.is-full:not(.is-nochat) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.cb-full .cb-iq.is-full .cb-iq__side { justify-content: flex-start; }
.cb-full .cb-iq.is-full .cb-iq__mean:not([hidden]),
.cb-full .cb-sp__explain:not([hidden]) {
  display: block; -webkit-line-clamp: unset; margin: 0; flex: none;
  padding: var(--yj-s5) var(--yj-s6); border-radius: var(--yj-r-lg);
  background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200);
  font-size: 52px; line-height: 1.45; color: var(--yj-ink-deep); text-align: left;
}
.cb-full .cb-iq.is-full .cb-iq__mean:not([hidden])::before,
.cb-full .cb-sp__explain:not([hidden])::before {
  content: "해설"; display: block; margin-bottom: var(--yj-s2);
  font-size: var(--yj-t-small); font-weight: 800; color: var(--yj-yuja-ink);
}
.cb-full .cb-sp__explain { margin: var(--yj-s5) var(--yj-s5) var(--yj-s5); }

/* 크게 보기 = 교실 TV — 뒷자리에서도 읽히게(2026-11-04) */
.cb-full .cb-iq__chat { gap: 0.5em; }
.cb-full .cb-iq__who { font-size: 0.6em; }
.cb-full .cb-iq.is-full .cb-iq__mean:not([hidden])::before, .cb-full .cb-sp__explain:not([hidden])::before { font-size: 30px; }
.cb-full .cb-sp__q { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.cb-full .cb-sp .cb-blank { min-width: 3em; }

/* ── 2026-11-05 · AI 모음 (js/ai.js · #/ai) ── */
.cb-menu a.cb-menu__ai { padding: 0 var(--yj-s2); }
.cb-menu__star { width: 34px; height: 34px; }
.cb-menu__star path { fill: var(--yj-yuja-100); stroke: var(--yj-yuja-600); stroke-width: 1.4; stroke-linejoin: round; }
.cb-menu__star text { font-family: var(--yj-font-ui); font-size: 6.6px; font-weight: 800; fill: var(--yj-ink-deep); }
.cb-menu a.cb-menu__ai[aria-current="page"] .cb-menu__star path { fill: var(--yj-yuja-300); }
.cb-aipage { top: var(--cb-bar-h, 56px); z-index: 19; }
.cb-aipage__bar { flex: none; display: flex; align-items: center; gap: var(--yj-s4); padding: var(--yj-s3) var(--yj-s6); background: var(--yj-card); border-bottom: 1px solid var(--yj-line); min-height: 64px; }
.cb-aipage__h { margin: 0; font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); white-space: nowrap; }
.cb-aipage__chips { display: flex; gap: var(--yj-s2); flex-wrap: wrap; }
.cb-aipage__chip { height: 40px; padding: 0 var(--yj-s4); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-full); background: var(--yj-card-hi); color: var(--yj-ink); font: inherit; font-size: var(--yj-t-small); font-weight: 600; cursor: pointer; }
.cb-aipage__chip b { font-size: 13px; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.cb-aipage__chip:hover { background: var(--yj-yuja-50); }
.cb-aipage__chip[aria-selected="true"] { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.cb-aipage__chip[aria-selected="true"] b { color: var(--yj-ink-deep); }
.cb-aipage__tools { margin-left: auto; display: flex; align-items: center; gap: var(--yj-s2); }
.cb-aipage__tools .cb-sp__seg button { display: inline-flex; align-items: center; gap: 4px; }
.cb-aipage__tools .cb-sp__seg .cb-ic { width: 16px; height: 16px; }
.cb-aipage__body { flex: 1; min-height: 0; overflow: auto; padding: var(--yj-s5) var(--yj-s6) var(--yj-s8); }
.cb-ai__gh { margin: var(--yj-s5) 0 var(--yj-s3); font-size: var(--yj-t-body); font-weight: 800; color: var(--yj-ink-deep); display: flex; align-items: baseline; gap: var(--yj-s2); }
.cb-ai__gh:first-child { margin-top: 0; }
.cb-ai__gh span { font-size: var(--yj-t-small); color: var(--yj-sub); font-weight: 600; }
.cb-ai__list { list-style: none; margin: 0; padding: 0; }
.cb-ai { position: relative; }
.cb-ai__main { display: flex; width: 100%; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; border: 1px solid var(--yj-line); background: var(--yj-card-hi); transition: border-color var(--yj-m-fast) var(--yj-ease), background var(--yj-m-fast) var(--yj-ease); }
.cb-ai__main:hover, .cb-ai__main:focus-visible { border-color: var(--yj-yuja-600); background: var(--yj-yuja-50); outline: none; }
.cb-ai__ic { flex: none; width: 40px; height: 40px; border-radius: var(--yj-r-sm); background: var(--yj-yuja-100); color: var(--yj-yuja-ink); display: inline-flex; align-items: center; justify-content: center; }
.cb-ai__ic .cb-ic { width: 22px; height: 22px; }
.cb-ai__t { color: var(--yj-ink-deep); font-weight: 800; }
.cb-ai__d { color: var(--yj-ink); }
.cb-ai__host { color: var(--yj-sub); font-size: var(--yj-t-cap); display: inline-flex; align-items: center; gap: 4px; }
.cb-ai__host .cb-ic { width: 14px; height: 14px; }
.cb-ai__x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; min-width: 36px; opacity: 0; transition: opacity var(--yj-m-fast) var(--yj-ease); }
.cb-ai__x .cb-ic { width: 18px; height: 18px; }
.cb-ai:hover .cb-ai__x, .cb-ai__x:focus-visible { opacity: 1; }
.cb-ai__list--card { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--yj-s4); }
.cb-ai--card .cb-ai__main { flex-direction: column; gap: var(--yj-s2); height: 100%; padding: var(--yj-s5); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); }
.cb-ai__top { display: flex; align-items: center; gap: var(--yj-s2); padding-right: 36px; }
.cb-ai__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.cb-ai--card .cb-ai__t { font-size: 20px; margin-top: var(--yj-s2); }
.cb-ai--card .cb-ai__d { font-size: var(--yj-t-small); line-height: 1.5; flex: 1; }
.cb-ai__thead, .cb-ai--row .cb-ai__main { display: grid; grid-template-columns: 40px minmax(160px, 1.1fr) minmax(0, 2.4fr) 130px minmax(0, 1fr); align-items: center; gap: var(--yj-s4); }
.cb-ai__thead { padding: 0 calc(var(--yj-s4) + 44px) var(--yj-s2) var(--yj-s4); font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); }
.cb-ai__list--list { border-top: 1px solid var(--yj-line); }
.cb-ai--row .cb-ai__main { padding: var(--yj-s3) calc(var(--yj-s4) + 44px) var(--yj-s3) var(--yj-s4); border-width: 0 0 1px; border-radius: 0; background: var(--yj-card); }
.cb-ai--row .cb-ai__ic { width: 36px; height: 36px; }
.cb-ai--row .cb-ai__t { font-size: var(--yj-t-body); }
.cb-ai--row .cb-ai__d { font-size: var(--yj-t-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-ai__cat { font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-ai--row .cb-ai__host { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-ai--row .cb-ai__x { top: 50%; transform: translateY(-50%); }
.cb-ai__list--tile { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--yj-s3); }
.cb-ai--tile .cb-ai__main { flex-direction: column; align-items: center; justify-content: center; gap: var(--yj-s2); min-height: 120px; padding: var(--yj-s4) var(--yj-s3); border-radius: var(--yj-r-sm); text-align: center; }
.cb-ai--tile .cb-ai__t { font-size: var(--yj-t-small); line-height: 1.35; }
.cb-ai--tile .cb-ai__x { top: 2px; right: 2px; }
.cb-ai__empty { display: flex; flex-direction: column; align-items: center; gap: var(--yj-s4); padding: var(--yj-s8); color: var(--yj-sub); font-size: var(--yj-t-body); }
.cb-aigen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--yj-s6); align-items: start; max-width: 1600px; margin: 0 auto; }
.cb-aigen__form { display: flex; flex-direction: column; gap: var(--yj-s4); padding: var(--yj-s5); background: var(--yj-card-hi); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); }
.cb-aigen__lead { margin: 0; font-size: var(--yj-t-body); color: var(--yj-ink); }
.cb-aigen__f { display: flex; flex-direction: column; gap: 6px; }
.cb-aigen__f > span { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.cb-aigen__f textarea { resize: vertical; min-height: 96px; font: inherit; font-size: var(--yj-t-body); line-height: 1.5; padding: var(--yj-s3); height: auto; }
.cb-aigen__req { font-style: normal; font-size: var(--yj-t-cap); color: var(--yj-orange-ink); margin-left: 4px; }
.cb-aigen__out { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--yj-s3); padding: var(--yj-s5); background: var(--yj-card-hi); border: 1px solid var(--yj-yuja-200); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); }
.cb-aigen__outhead { display: flex; align-items: center; justify-content: space-between; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-aigen__pre { margin: 0; max-height: 620px; overflow: auto; white-space: pre-wrap; word-break: keep-all; font-family: var(--yj-font-ui); font-size: var(--yj-t-small); line-height: 1.65; color: var(--yj-ink-deep); background: var(--yj-yuja-50); border-radius: var(--yj-r-sm); padding: var(--yj-s4); }
.cb-aigen__pre.is-draft { color: var(--yj-ink); }
.cb-aigen__go { display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-aigen__go span { margin-right: auto; }
.cb-aiadd .cb-modal__box { width: 560px; }
.cb-aiadd__form { display: flex; flex-direction: column; gap: var(--yj-s4); }
.cb-aiadd__acts { display: flex; justify-content: flex-end; gap: var(--yj-s2); margin-top: var(--yj-s2); }
.cb-aiset__list { list-style: none; margin: 0 0 var(--yj-s3); padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.cb-aiset__list li { display: flex; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); }
.cb-aiset__list li span { color: var(--yj-sub); font-size: var(--yj-t-small); margin-right: auto; }

/* AI 모음 위젯 — 생성기 단추 2열 */
.cb-aiw { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--yj-s2); }
.cb-aiw__b { min-height: 44px; display: flex; align-items: center; gap: var(--yj-s2); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card-hi); color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-small); font-weight: 700; text-align: left; cursor: pointer; line-height: 1.3; }
.cb-aiw__b:hover { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.cb-aiw__b .cb-ic { flex: none; width: 20px; height: 20px; color: var(--yj-yuja-ink); }

/* SET 화면 이름 — 바꿀 때 가운데에 잠깐(2026-11-05) */
/* SET 바꿀 때 — 카드 없이 그 SET 색의 숫자 하나(2026-11-17). 옅은 색이라 먹 테두리로 어느 바탕에서도 읽히게 */
.cb-setflash { position: absolute; left: 50%; top: 44%; z-index: 45; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity var(--yj-m-mid) var(--yj-ease); }
.cb-setflash.is-on { opacity: 1; transition: none; }
.cb-setflash__num { display: block; font-family: var(--yj-font-disp); font-size: 200px; font-weight: 800; line-height: 1; color: var(--yj-yuja-300); -webkit-text-stroke: 4px var(--yj-ink-deep); paint-order: stroke fill; font-variant-numeric: tabular-nums; }

/* ── 2026-11-05 · AI 모음 고침 — 보기 단추 넓게 · 설명 말풍선 · 끌어 옮기기 · 설정 순서 ── */
.cb-aipage__views { flex: none; }
.cb-aipage__views button { flex: none; min-width: 92px; padding: 0 var(--yj-s4); justify-content: center; white-space: nowrap; }
.cb-ai__main[data-tip] { position: relative; }
.cb-ai__main[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); z-index: 5; width: max-content; max-width: 280px; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-ink-deep); color: var(--yj-card); font-size: var(--yj-t-small); font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; box-shadow: var(--yj-sh-2); opacity: 0; pointer-events: none; transition: opacity var(--yj-m-fast) var(--yj-ease), transform var(--yj-m-fast) var(--yj-ease); }
.cb-ai__main[data-tip]:hover::after, .cb-ai__main[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 300ms; }
.cb-ai--row .cb-ai__main[data-tip]::after { left: 96px; transform: translate(0, 4px); }
.cb-ai--row .cb-ai__main[data-tip]:hover::after, .cb-ai--row .cb-ai__main[data-tip]:focus-visible::after { transform: translate(0, 0); }
.cb-ai[draggable="true"] { cursor: grab; }
.cb-ai.is-drag { opacity: 0.45; }
.cb-ai.is-over-a::before, .cb-ai.is-over-b::before { content: ""; position: absolute; z-index: 4; background: var(--yj-yuja-600); border-radius: var(--yj-r-full); pointer-events: none; }
.cb-ai__list--card .cb-ai.is-over-a::before, .cb-ai__list--tile .cb-ai.is-over-a::before { top: 0; bottom: 0; left: -7px; width: 4px; }
.cb-ai__list--card .cb-ai.is-over-b::before, .cb-ai__list--tile .cb-ai.is-over-b::before { top: 0; bottom: 0; right: -7px; width: 4px; }
.cb-ai--row.is-over-a::before { left: 0; right: 0; top: -2px; height: 4px; }
.cb-ai--row.is-over-b::before { left: 0; right: 0; bottom: -2px; height: 4px; }
.cb-ai__foot { margin: var(--yj-s6) 0 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-aiset__ord { max-width: 620px; margin-bottom: var(--yj-s2); }
.cb-aiset__ord summary { cursor: pointer; padding: var(--yj-s2) 0; font-weight: 700; color: var(--yj-ink-deep); }
.cb-aiset__ord summary span { color: var(--yj-sub); font-weight: 500; font-size: var(--yj-t-small); }
.cb-aiset__ord .cb-aiset__list { margin-top: var(--yj-s2); }
.cb-aiset__mv { width: 36px; height: 36px; min-width: 36px; }
.cb-aiset__mv .cb-ic { width: 18px; height: 18px; }
.cb-aiset__mv--down .cb-ic { transform: rotate(180deg); }
.cb-aiset__mv:disabled { opacity: 0.35; cursor: default; }

/* ── 번호판 모양 (설정 → 번호판 모양 · js/rosterstyle.js) — 코인 · 짝 알약 · 자리 칸에도 같은 변수를 건다 ── */
.cb-st .cb-st__pt--coin, .cb-roster.is-bank .cb-st .cb-st__pt--coin { color: var(--cb-st-coin, var(--yj-ink-deep)); font-size: calc(min(40cqh, 24cqw) * var(--cb-st-coin-s, 1)); }
.cb-st .cb-st__pt--coin.is-zero { color: var(--cb-st-coin, var(--yj-faint)); }
.cb-roster.is-full .cb-st .cb-st__pt--coin { font-size: calc(min(44cqh, 28cqw) * var(--cb-st-coin-s, 1)); }
.cb-pts__i--y { color: var(--cb-st-yuja, var(--yj-yuja-ink)); font-size: calc(1em * var(--cb-st-yuja-s, 1)); }
.cb-pts__i--c { color: var(--cb-st-coin, var(--yj-ink-deep)); font-size: calc(1em * var(--cb-st-coin-s, 1)); }
.cb-ocseats .cb-st__name { font-size: calc(min(46cqh, 19cqw) * var(--cb-st-name-s, 1)); }
.cb-ocseats .cb-st__pt { font-size: calc(min(34cqh, 14cqw) * var(--cb-st-yuja-s, 1)); }
.cb-ocseats .cb-st .cb-st__pt--coin { font-size: calc(min(34cqh, 14cqw) * var(--cb-st-coin-s, 1)); }
.cb-st.is-noname .cb-st__name { font-size: calc(min(48cqh, 30cqw) * var(--cb-st-name-s, 1)); }

/* 설정 → 번호판 모양 */
.cb-rsty { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); align-items: start; width: 100%; gap: var(--yj-s5); }
.cb-rsty__left { display: grid; gap: var(--yj-s3); min-width: 0; }
.cb-rsty__right { position: sticky; top: 0; display: grid; gap: var(--yj-s2); min-width: 0; }
.cb-rsty__cap { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-rsty__prev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 100px; gap: 8px; padding: var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-canvas); border: 1px solid var(--yj-line); }
.cb-rsty__prev .cb-st { cursor: default; }
.cb-rsty__rows { display: grid; gap: var(--yj-s2); }
.cb-rsty__row { display: grid; grid-template-columns: 112px 52px minmax(0, 1fr) auto; align-items: center; gap: var(--yj-s3); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); }
.cb-rsty__row > b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-rsty__row input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); background: var(--yj-card); cursor: pointer; }
.cb-rsty__row input[type="color"].is-default { opacity: .55; }
.cb-rsty__sl { display: grid; gap: 2px; }
.cb-rsty__sl label { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; align-items: center; gap: var(--yj-s2); font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-rsty__sl output { font-variant-numeric: tabular-nums; color: var(--yj-ink-deep); text-align: right; }
.cb-rsty__sl input[type="range"] { width: 100%; }

/* 우리 반 머리 — [기본 | 체크리스트] 스위치 */
.cb-roster__seg { flex: none; margin-right: var(--yj-s2); }
.cb-roster__seg button { white-space: nowrap; }
/* 기본 / 체크리스트 / 출결 — 칸을 넉넉히(2026-11-07) */
.cb-roster__seg button { min-width: 76px; padding: 0 var(--yj-s3); }
.cb-roster__acts .cb-roster__cnt { margin-left: 0; }
/* 관용어 빈칸 — 정답 · 초성을 겹쳐 두고 하나만(크기 그대로) */
.cb-iq__blank { display: inline-grid; letter-spacing: 0; }
.cb-iq__ba, .cb-iq__bc { grid-area: 1 / 1; text-align: center; }
.cb-iq__bc { letter-spacing: 0.06em; }
.cb-iq__ba { visibility: hidden; }
.is-revealed .cb-iq__ba { visibility: visible; }
.is-revealed .cb-iq__bc { visibility: hidden; }
/* 정답을 열어도 오른쪽 뜻 칸을 열지 않는다 — 말풍선 자리 · 크기 그대로(대화가 없는 날만 표현 칸) */
.is-revealed .cb-iq:not(.is-nochat), .cb-full .is-revealed .cb-iq.is-full:not(.is-nochat) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.is-revealed .cb-iq:not(.is-nochat) .cb-iq__side { display: none; }

/* ── 어사문 학급관리 합치기 (설정 → 온라인 동기화 · js/eo-merge.js · 시트 판 6) ── */
.cb-eom[hidden], .cb-eom__body[hidden] { display: none; }
.cb-eom { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-eom__ask { display: flex; flex-direction: column; gap: var(--yj-s2); }
.cb-eom__ask > p { margin: 0; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); }
.cb-eom__body { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-eom__card { display: flex; flex-direction: column; gap: var(--yj-s2); padding: var(--yj-s3) var(--yj-s4); border: 1px solid var(--yj-line); border-radius: var(--yj-r-md); background: var(--yj-card); box-shadow: var(--yj-sh-1); font-size: var(--yj-t-small); color: var(--yj-ink); }
.cb-eom__card p { margin: 0; line-height: 1.55; }
.cb-eom__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-eom__head h4 { margin: 0; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-eom__step { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); }
.cb-eom__tag { padding: 2px var(--yj-s2); border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-yuja-ink); font-size: var(--yj-t-cap); font-weight: 700; }
.cb-eom__field { display: flex; flex-direction: column; gap: var(--yj-s1); font-weight: 700; color: var(--yj-ink-deep); }
.cb-eom__field .yj-input { width: 100%; font-weight: 400; }
.cb-eom__done { display: flex; align-items: center; gap: var(--yj-s1); color: var(--yj-leaf-ink); }
.cb-eom__done .cb-ic { width: 18px; height: 18px; }
.cb-eom__msg { padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-surface-2); white-space: pre-line; }
.cb-eom__msg--ok { background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.cb-eom__msg--err { background: var(--yj-orange-tint); color: var(--yj-orange-ink); }
.cb-eom__after { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; color: var(--yj-sub); }
.cb-eom__card .cb-check { font-weight: 400; }
.cb-eom__steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cb-eom__steps li { display: flex; align-items: center; gap: var(--yj-s2); color: var(--yj-sub); }
.cb-eom__steps li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: var(--yj-r-full); border: 1.6px solid var(--yj-line-strong); }
.cb-eom__steps li.is-now { color: var(--yj-ink-deep); font-weight: 700; }
.cb-eom__steps li.is-now::before { border-color: var(--yj-yuja-600); background: var(--yj-yuja-200); }
.cb-eom__steps li.is-done { color: var(--yj-leaf-ink); }
.cb-eom__steps li.is-done::before { border-color: var(--yj-leaf); background: var(--yj-leaf); }
.cb-eom__steps li.is-err { color: var(--yj-orange-ink); }
.cb-eom__steps li.is-err::before { border-color: var(--yj-orange); }
.cb-eom__code { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: var(--yj-t-cap); }

/* AI 모음 생성기 — 공용 AI 키 [바로 만들기] (2026-11-11) */
.cb-aigen__btns { display: inline-flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-aigen__hint { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.5; }
.cb-aigen__hint.is-err { color: var(--yj-error-ink); font-weight: 600; }
.cb-aigen__res { display: flex; flex-direction: column; gap: var(--yj-s2); padding-top: var(--yj-s3); border-top: 1px solid var(--yj-line); }
.cb-aigen__res[hidden] { display: none; }
.cb-aigen__restext { min-height: 220px; resize: vertical; font: inherit; font-size: var(--yj-t-body); line-height: 1.6; padding: var(--yj-s3); height: auto; }

/* 알림장 AI 로 다듬기 — js/alim-polish.js (2026-11-11) */
.cb-alim__ai[hidden] { display: none; }
.cb-alim__aiseg { width: 100%; }
.cb-alim__aiacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2); }
.cb-alim__aihint { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-alim__aihint.is-err { color: var(--yj-error-ink); font-weight: 600; }
.cb-alim__aitext { width: 100%; min-height: 160px; resize: vertical; font: inherit; font-size: var(--yj-t-small); line-height: 1.6; padding: var(--yj-s2); height: auto; }

/* ── 2026-11-11 · S6 수업 흐름(비평 10 · 24~31) ─────────────────────────────── */
/* 번호판 — 큰 옅은 번호가 이름 뒤에 겹쳐 두 자리 번호에서 이름을 가렸다. 번호는 왼쪽 위에 작게, 이름은 오른쪽 아래(둘이 위아래로 나뉜다).
   번호 높이 36cqh + 위 여백 5% < 이름 자리(아래 8% + 높이 38cqh)의 윗선 54% — 칸이 낮아도 세로로 겹치지 않는다. 자리 모양(.cb-ocseats)은 그대로 */
.cb-roster .cb-st__no { left: 6%; top: 5%; transform: none; font-size: calc(min(36cqh, 20cqw) * var(--cb-st-no-s, 1)); }
.cb-roster.is-full .cb-st__no { font-size: calc(min(30cqh, 18cqw) * var(--cb-st-no-s, 1)); }
/* 번호판 모드 띠 — 기본(업 · 다운)이 아닌 모드에서는 모드 이름을 크게 */
.cb-roster__band { flex: none; display: flex; align-items: center; gap: var(--yj-s3); margin-bottom: var(--yj-s2); padding: var(--yj-s2) var(--yj-s3); border: 1px solid var(--yj-yuja-600); border-radius: var(--yj-r-sm); background: var(--yj-yuja-200); color: var(--yj-ink-deep); }
.cb-roster__band b { flex: none; font-family: var(--yj-font-disp); font-size: var(--yj-t-body); font-weight: 800; white-space: nowrap; }
.cb-roster__band span { flex: 1; min-width: 0; font-size: var(--yj-t-small); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-roster__band .yj-btn { flex: none; margin-left: auto; white-space: nowrap; }
/* R04-02 — 위젯 머리 줄의 모드 이름(띠 대신) · 칸이 너무 작을 때 정본 가기 */
.cb-roster__hmode { flex: none; padding: 2px var(--yj-s2); border: 1px solid var(--yj-yuja-600); border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-ink-deep); white-space: nowrap; }
.cb-roster__hmode b { font-weight: 800; }
.cb-roster__hback { flex: none; white-space: nowrap; }
.cb-roster__tiny { display: none; }
.is-tiny > .cb-roster__tiny { display: flex; justify-content: center; padding: var(--yj-s1) 0; }
/* 고르기 전부터 [업] [다운] [반전]이 같은 자리 — 안 고른 동안은 흐리게. 고른 수 글자 폭을 고정해 [전체선택]이 밀리지 않게 */
.cb-roster__give:disabled, .cb-roster__flip:disabled { opacity: .4; cursor: default; }
.cb-roster__selnum { min-width: 9.5em; text-align: right; white-space: nowrap; }
/* 체크리스트의 [칸 비우기]는 기본 모드의 [전체해제]와 모양을 달리한다(위험 단추 — 기존 class 는 두고 덧붙인 class 로 모양만 바꾼다) */
.yj-btn.cb-roster__ckclear { font-weight: 800; background: var(--yj-error); border-color: var(--yj-error); color: var(--yj-on-ink); }
.yj-btn.cb-roster__ckclear:hover { background: var(--yj-error-ink); border-color: var(--yj-error-ink); }
/* 칠판 서식 줄 맨 끝의 [모두 지우기] — 위험 모양(오류색 테두리 · 옅은 오류 면) */
.yj-btn.cb-memo__clearbtn { background: var(--yj-error-tint); border: 1px solid var(--yj-error); color: var(--yj-error-ink); }
.yj-btn.cb-memo__clearbtn:hover { background: var(--yj-error); color: var(--yj-on-ink); }
/* 칠판 위젯 — 줄여도 넘치면 「아래에 더 있어요」 띠(R02-05) */
.cb-memo.is-more .cb-memo__wrap::before { content: "아래에 더 있어요"; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4px var(--yj-s3); background: var(--yj-yuja-100); border-top: 1px solid var(--yj-yuja-300); color: var(--yj-ink); font-size: 18px; font-weight: 700; text-align: center; pointer-events: none; }
/* 「두 번 눌러 쓰기」 알약은 터치 기기에서만(R02-05) — 마우스가 주인 화면에서는 터치를 한 번 했어도 띄우지 않는다 · 띠가 있으면 띠 위로 */
@media (hover: hover) and (pointer: fine) { .cb-memo.is-view .cb-memo__wrap::after { display: none; } }
.cb-memo.is-more.is-view .cb-memo__wrap::after { bottom: 40px; }
/* 칠판 — 터치로는 보기, 두 번 눌러 쓰기(memo.js) */
.cb-memo.is-view .cb-memo__wrap { cursor: default; }
.cb-memo.is-view .cb-memo__wrap::after { content: "두 번 눌러 쓰기"; position: absolute; right: var(--yj-s2); bottom: var(--yj-s2); padding: 2px var(--yj-s3); border: 1px solid var(--yj-yuja-200); border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-yuja-ink); font-size: var(--yj-t-small); font-weight: 700; pointer-events: none; }
/* 글이 칸에 다 안 들어갈 때 — 크게 보기로 이끄는 표시(widgets.js) */
.cb-iq.is-clipped { grid-template-rows: minmax(0, 1fr) auto; }
.cb-iq.is-clipped .cb-iq__chat { justify-content: flex-start; }   /* 잘릴 때는 대화의 처음부터 보이게 — 가운데 맞춤이면 위가 잘린다 */
.cb-w__inner > .cb-clip { align-self: flex-end; margin-top: var(--yj-s1); }
.cb-clip { grid-column: 1 / -1; justify-self: end; padding: 2px var(--yj-s3); border: 1px solid var(--yj-yuja-600); border-radius: var(--yj-r-full); background: var(--yj-yuja-200); color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-small); font-weight: 700; cursor: pointer; }

/* ══ S4 화면 크기 (2026-11-12 · 전면 비평 R1) ══════════════════════════
   js/app.js 가 무대 방식(바탕화면 · 수업 칸 · 장면 — 배율 0.85 이상)과 실제 크기 방식(업무 칸 · 설정 — 배율 1)을 고른다.
   --cb-s = 지금 무대 배율 · --cb-bar-h = 머리띠 높이(무대 px) · .cb-stage.is-real = 실제 크기 방식 */

/* 머리띠 — 두 방식 모두 실제 56px. 무대 방식에서는 app.js 가 scale(1/배율) 로 되돌린다.
   글이 줄바꿈되지 않고 넘친 만큼을 잴 수 있게 칸이 줄지 않는다. 탭 화면(19~25) 위 · 창(30) · 잠금(50) 아래 */
.cb-bar--fit { position: relative; z-index: 28; transform-origin: 0 0; }
.cb-bar--fit > * { flex-shrink: 0; }
.cb-bar--fit .cb-menu a, .cb-bar--fit .cb-brand > span { white-space: nowrap; }
/* 넓이가 모자라면 — 반 이름 · 날짜 글을 접고(시계 위젯 · 출결에 있다) 메뉴 칸 여백을 줄인다 */
.cb-bar.is-narrow { gap: var(--yj-s3); padding: 0 var(--yj-s3); }
.cb-bar.is-narrow .cb-brand__date { display: none; }   /* R01-10 — 반 이름은 남기고 날짜부터 접는다 */
.cb-bar.is-narrowest .cb-brand__class { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 가장 좁을 때도 반 이름은 남김(말줄임) */
.cb-bar.is-narrow .cb-menu { margin-left: 0; gap: 0; }
.cb-bar.is-narrow .cb-menu a { padding: 0 var(--yj-s2); }
.cb-bar.is-narrow .cb-bar__right { gap: var(--yj-s1); }
/* 그래도 모자라면 한 단계 더(1366 에서 여기까지로 1배) */
.cb-bar.is-narrower .cb-menu a { padding: 0 var(--yj-s1); }
.cb-bar.is-narrower .cb-brand { gap: var(--yj-s1); }

/* 무대 방식의 작은 단추 — 무대 배율로 나눠 실제 화면에서 44px 에 가깝게(지금 크기보다 작아지지는 않는다).
   · 칠판 서식 단추 · 알림장 글자 크기 단추: 보이는 크기를 실제 40px 로
   · 위젯 머리의 톱니 · 크게 보기 · 정답 보기 · 자세히: 보이는 크기는 무대 36 그대로 두고 누르는 자리만 위아래로 실제 40px.
     머리 줄이 높아지면 기본 두 줄 위젯(관용어 · 맞춤법)에 글 놓을 자리가 남지 않았다(1366 실측)
   · 크게 보기 창 안은 넓으므로 보이는 크기 그대로 44px */
.cb-w__gear, .cb-w__full, .cb-w__hbtn { position: relative; }
.cb-w__gear::after, .cb-w__full::after, .cb-w__hbtn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, calc(40px / var(--cb-s, 1))); transform: translateY(-50%); }
.cb-full .cb-w__hbtn { height: max(44px, calc(44px / var(--cb-s, 1))); }
.cb-full__close { min-height: max(44px, calc(44px / var(--cb-s, 1))); }
.cb-memo__btn { width: max(36px, calc(40px / var(--cb-s, 1))); height: max(36px, calc(40px / var(--cb-s, 1))); }
@container cbtb (max-width: 400px) { .cb-memo__btn { width: max(30px, calc(36px / var(--cb-s, 1))); height: max(30px, calc(36px / var(--cb-s, 1))); } }
@container cbtb (max-width: 290px) { .cb-memo__btn { width: max(26px, calc(32px / var(--cb-s, 1))); height: max(26px, calc(32px / var(--cb-s, 1))); } }

/* 머리띠 조작 대상 — 두 방식 모두 실제 44px(머리띠 56 안). 메뉴 알약은 규격(§7-2)대로 36 으로 보이고 누르는 자리만 위아래 4px 더 */
.cb-bar--fit .cb-brand { min-height: 44px; }
.cb-bar--fit .yj-btn--sm, .cb-bar--fit .cb-slots__cycle { min-height: 44px; }
.cb-bar--fit .cb-menu a { position: relative; }
.cb-bar--fit .cb-menu a::after { content: ""; position: absolute; inset: -4px 0; }

/* 실제 크기 방식 — 업무 칸 · 설정의 조작 대상 44px(규격 터치 44 · 머리띠는 위에서 따로).
   출결처럼 30명 × 여러 단추가 늘어선 촘촘한 표는 마우스(pointer: fine) 36 · 터치(pointer: coarse) 44 —
   늘 44 면 표가 너무 길어진다(총괄 결정 2026-11-12) */
.cb-stage.is-real > :not(.cb-bar) .yj-btn--sm { min-height: 44px; }
.cb-stage.is-real > :not(.cb-bar) .yj-btn--icon { min-width: 44px; min-height: 44px; }
.cb-stage.is-real .cb-ai__x { width: 44px; height: 44px; min-width: 44px; }
.cb-stage.is-real .cb-eco__tabs > button { min-width: 44px; }
.cb-stage.is-real .cb-rk-seg > button, .cb-stage.is-real .cb-aipage .cb-sp__seg > button { min-height: 44px; }
.cb-stage.is-real .cb-aipage__chip { height: 44px; }
/* 설정 왼쪽 메뉴 — 칸이 많아 낮은 화면에서 눌려 24px 까지 줄던 것 → 줄지 않고 메뉴만 따로 스크롤 */
.cb-set__nav { overflow-y: auto; min-height: 0; }
.cb-set__nav button { flex: none; min-height: 44px; }
@media (pointer: coarse) {
  .cb-stage.is-real .cb-att-seg > button, .cb-stage.is-real .cb-att-note { min-height: 44px; }
}

/* 무대 방식의 작은 글자 — 칩 · 메타(caption 13) · 표식(label 12) · micro(11) 가 실제 화면에서 12px 밑으로 내려가지 않게
   무대 배율로 나눈 값과 원래 값 중 큰 것으로. 머리띠는 이미 실제 크기라 원래 값 그대로 */
:root { --cb-t-cap0: var(--yj-t-cap); --cb-t-label0: var(--yj-t-label); --cb-t-micro0: var(--yj-t-micro); }
.cb-stage:not(.is-real) {
  --yj-t-cap: max(var(--cb-t-cap0), calc(12.2px / var(--cb-s, 1)));
  --yj-t-label: max(var(--cb-t-label0), calc(12.2px / var(--cb-s, 1)));
  --yj-t-micro: max(var(--cb-t-micro0), calc(12.2px / var(--cb-s, 1)));
}
.cb-stage:not(.is-real) > .cb-bar { --yj-t-cap: var(--cb-t-cap0); --yj-t-label: var(--cb-t-label0); --yj-t-micro: var(--cb-t-micro0); }

/* 무대 방식의 14px 단추 글자 — 바닥 0.85 에서 11.9px 이 되던 것을 실제 12px 이상으로(크게 보기 단추 21px 는 그대로) */
.cb-stage:not(.is-real) > :not(.cb-bar) .yj-btn--sm,
.cb-w__hbtn, .cb-memo__btn:not(.cb-memo__btn--big), .cb-sp__seg > button { font-size: max(14px, calc(12.2px / var(--cb-s, 1))); }
.cb-nt-size__b:not(.cb-nt-size__b--big), .cb-memo__colorga, .cb-wx__pm small { font-size: max(13px, calc(12.2px / var(--cb-s, 1))); }
.cb-nt-size__b { width: max(32px, calc(40px / var(--cb-s, 1))); height: max(32px, calc(40px / var(--cb-s, 1))); }

/* AI 모음 — 숨은 말풍선 도움말(::after · 280px)이 오른쪽 끝 칸에서 화면 밖으로 삐져 카드 줄에 가로 스크롤이 생기던 것.
   보이지 않을 때는 크기를 0 으로 두어 자리를 차지하지 않게(올리면 300ms 뒤 그 자리에서 나타난다) */
.cb-ai__main[data-tip]:not(:hover):not(:focus-visible)::after { transform: scale(0); transition: none; }

/* 「글이 길어요 · 전체 보기」 — 줄을 차지하지 않고 위젯 오른쪽 아래에 떠 있게.
   무대 바닥 0.85 에서 기본 두 줄 위젯(관용어 · 맞춤법)은 글 칸이 무대 37px 뿐이라, 안내 줄(30px)이 줄을 차지하면 글이 하나도 안 보였다(1366 실측) */
.cb-w__inner .cb-clip { position: absolute; right: var(--yj-s3); bottom: var(--yj-s2); z-index: 2; margin: 0; box-shadow: var(--yj-sh-2); }
.cb-iq.is-clipped { grid-template-rows: minmax(0, 1fr); }

/* 위젯 안 작은 단추(한자 활동지 줄 · 우리 반 머리 · 온도계 +1 · 칠판 사용법) — 보이는 크기는 그대로, 누르는 자리만 위아래로 실제 40px.
   크기를 키우면 위젯 안 글 칸이 줄어든다(무대 바닥 0.85) */
.cb-hj__act, .cb-hj__skip, .cb-roster__acts > .yj-btn, .cb-roster__home, .cb-roster__seg > button, .cb-thermo__btns > .yj-btn, .cb-memo__tb > .yj-btn { position: relative; }
.cb-hj__act::after, .cb-hj__skip::after, .cb-roster__acts > .yj-btn::after, .cb-roster__home::after, .cb-roster__seg > button::after, .cb-thermo__btns > .yj-btn::after, .cb-memo__tb > .yj-btn::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, calc(40px / var(--cb-s, 1))); transform: translateY(-50%);
}

/* 머리띠 세 번째 단계 — 상표 글자 · 오늘 교실 표시를 접는다(유자 얼굴은 남아 SET 1번 단추 그대로 · 출결은 출결 탭에) */
.cb-bar.is-narrowest .cb-brand__name, .cb-bar.is-narrowest .cb-brand__att { display: none; }
/* 학급 이름을 상표 자리에 적었으면(is-custom · 2026-11-17) 가장 좁을 때도 이름은 남긴다(말줄임) — 날짜만 든 오른쪽 칸은 접을 때 구분선도 거둔다 */
.cb-brand__name.is-custom { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-bar.is-narrowest .cb-brand__name.is-custom { display: inline; max-width: 7em; }
.cb-bar.is-narrow .cb-brand__class { border-left: 0; padding-left: 0; }
/* 한자 어휘 — 「전체 보기」 안내는 어휘 칸 안에 뜬다 · 작은 한자 글자도 실제 12px 밑으로 내리지 않는다 */
.cb-hj { position: relative; }
.cb-hj__char { font-size: max(0.42em, calc(12.2px / var(--cb-s, 1))); }
/* 날씨 — 칸보다 글이 크면 가운데 맞춤 대신 위에서부터(기온 위쪽이 잘리던 것 · 1024 실측) */
.cb-wx { align-items: safe center; }

/* ── [업무] 펼침 메뉴 (S8 · 2026-11-12 · 작가 결정 E3) ────────────
   머리띠는 수업 칸만 늘 보이고, 업무 칸(학생 · 평가 · 출결 · 학급 경제 · 솔루션 · AI 모음)은 [업무] 단추 아래 펼침 메뉴로.
   단추는 메뉴 글자와 같은 모양(보조 글자 600 · 알약 36), 업무 칸에 있으면 「업무 · 출결」 + 유자 100 알약(지금 위치).
   펼침 메뉴는 규격 §7-5 — 흰 card-hi + 그림자 3 + 모서리 12, 행 hover 유자 50, 줄마다 한 줄 설명 */
.cb-menu__work { position: relative; display: inline-flex; align-items: center; }
.cb-menu__work[hidden] { display: none; }
.cb-menu__workbtn {
  height: 36px; padding: 0 var(--yj-s3) 0 var(--yj-s4);
  display: inline-flex; align-items: center; gap: var(--yj-s1);
  border: 0; border-radius: var(--yj-r-full); background: transparent; cursor: pointer;
  font: inherit; font-size: calc(var(--yj-t-small) * var(--cb-menu-scale, 1)); font-weight: 600; color: var(--yj-sub); white-space: nowrap;
  position: relative;
}
.cb-menu__workbtn::after { content: ""; position: absolute; inset: -4px 0; }
.cb-menu__workbtn .cb-ic { width: 18px; height: 18px; transition: transform 120ms var(--yj-ease); }
.cb-menu__workbtn:hover, .cb-menu__workbtn:focus-visible { color: var(--yj-ink-deep); }
.cb-menu__workbtn:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }
.cb-menu__workbtn[aria-expanded="true"] { background: var(--yj-yuja-50); color: var(--yj-ink-deep); }
.cb-menu__workbtn[aria-expanded="true"] .cb-ic { transform: rotate(180deg); }
.cb-menu__workbtn.is-cur { background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-weight: 700; }
.cb-menu__pop {
  position: absolute; top: calc(100% + var(--yj-s2)); left: 0; z-index: 2; min-width: 300px;
  display: flex; flex-direction: column; gap: 2px; padding: var(--yj-s2);
  background: var(--yj-card-hi); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-3);
}
.cb-menu__pop[hidden] { display: none; }
.cb-bar--fit .cb-menu .cb-menu__pop a, .cb-menu .cb-menu__pop a {
  height: auto; min-height: 52px; padding: var(--yj-s2) var(--yj-s3);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  border-radius: var(--yj-r-md); color: var(--yj-ink-deep); font-weight: 700; white-space: nowrap; position: relative;
}
.cb-menu .cb-menu__pop a[hidden] { display: none; }
.cb-menu .cb-menu__pop a::before { content: attr(data-desc); order: 2; font-size: var(--yj-t-cap); font-weight: 500; color: var(--yj-sub); }
.cb-menu .cb-menu__pop a:hover, .cb-menu .cb-menu__pop a:focus-visible { background: var(--yj-yuja-50); outline: none; }
.cb-menu .cb-menu__pop a[aria-current="page"] { background: var(--yj-yuja-100); }
/* 출결 줄 — 이번 달 「서류 아직」 숫자(주황 숫자 배지 · S7) */
.cb-menu .cb-menu__pop a[data-docn]::after { content: "서류 아직 " attr(data-docn); position: absolute; inset: auto var(--yj-s3) auto auto; top: 50%; transform: translateY(-50%);
  padding: 2px var(--yj-s2); border-radius: var(--yj-r-full); background: var(--yj-orange); color: var(--yj-ink-deep); font-size: var(--yj-t-cap); font-weight: 700; }
.cb-bar--fit .cb-menu .cb-menu__pop a[data-docn], .cb-menu .cb-menu__pop a[data-docn] { padding-right: 132px; }
/* AI 모음 줄 — 별 그림 옆에 이름 · 설명을 한 줄로 */
.cb-menu .cb-menu__pop a.cb-menu__ai { flex-direction: row; align-items: center; gap: var(--yj-s2); padding-left: var(--yj-s2); }
.cb-menu .cb-menu__pop a.cb-menu__ai .cb-menu__star { width: 30px; height: 30px; }
.cb-menu .cb-menu__pop a.cb-menu__ai::before { color: var(--yj-ink-deep); font-size: inherit; font-weight: 700; }
/* 수업 줄로 꺼낸 업무 칸(설정 › 일반 · 최대 2칸) — 수업 칸과 나란히, 별 그림만은 글자로 */
.cb-menu a.cb-menu__out.cb-menu__ai .cb-menu__star { width: 30px; height: 30px; }
/* 설정 › 일반 — 머리띠 메뉴 두 묶음 이름 · 「머리띠에 꺼내기」 */
.cb-gn-group { margin: var(--yj-s3) 0 var(--yj-s1); font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.cb-gn-group em { margin-left: var(--yj-s2); font-style: normal; font-weight: 500; color: var(--yj-sub); }
.cb-gn-out { padding-left: var(--yj-s2); border-left: 1px solid var(--yj-line); color: var(--yj-sub); }
/* 머리띠 맞춤 ⓪ — 반 이름을 접기 전에 칸 사이 · 메뉴 여백만 줄인다(S8) */
.cb-bar.is-snug:not(.is-narrow) { gap: var(--yj-s4); padding: 0 var(--yj-s4); }
.cb-bar.is-snug:not(.is-narrow) .cb-menu { margin-left: var(--yj-s2); }
.cb-bar.is-snug:not(.is-narrow) .cb-menu > a, .cb-bar.is-snug:not(.is-narrow) .cb-menu__workbtn { padding: 0 var(--yj-s3); }
/* 더 좁으면 [업무] 단추도 메뉴 칸과 같이 여백을 줄인다(펼친 메뉴 안 칸은 그대로) */
.cb-bar.is-narrow .cb-menu__workbtn { padding: 0 var(--yj-s1) 0 var(--yj-s2); }
.cb-bar.is-narrower .cb-menu__workbtn { padding: 0 var(--yj-s1); }
/* SET 옆 이름 — 늘 보인다(전자칠판 · S8). 길면 말줄임 */
.cb-slots__nm { max-width: 7em; margin-left: var(--yj-s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink-deep); }
.cb-slots__nm[hidden] { display: none; }
.cb-bar.is-narrower .cb-slots__nm { max-width: 4.5em; }
/* 단축키 · 도움말 카드 */
.cb-help__tbl { width: 100%; border-collapse: collapse; margin-bottom: var(--yj-s4); font-size: var(--yj-t-body); }   /* R01-15 — 17px */
.cb-help__tbl th, .cb-help__tbl td { padding: var(--yj-s2) var(--yj-s2); border-bottom: 1px solid var(--yj-line); text-align: left; vertical-align: top; line-height: 1.5; }
.cb-help__tbl th { width: 9em; white-space: nowrap; color: var(--yj-ink-deep); font-weight: 700; }
.cb-help__tbl td { color: var(--yj-ink); }
.cb-help__tbl kbd { display: inline-block; min-width: 1.6em; padding: 0 var(--yj-s1); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-xs); background: var(--yj-card); font: inherit; font-weight: 700; text-align: center; }
/* 「→ 정본으로 가기」(S8 R7) — 같은 일의 입구가 여럿일 때 정본이 아닌 쪽 위에 한 줄 */
.cb-gonote { display: flex; align-items: center; gap: var(--yj-s3); flex-wrap: wrap; margin: 0 0 var(--yj-s3); padding: var(--yj-s2) var(--yj-s3) var(--yj-s2) var(--yj-s4);
  background: var(--yj-yuja-50); border-left: 2px solid var(--yj-yuja-500); border-radius: var(--yj-r-md); font-size: var(--yj-t-small); color: var(--yj-ink); line-height: 1.5; }
.cb-gonote > span { flex: 1 1 20em; }
.cb-gobtn { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.cb-gobtn .cb-ic { width: 16px; height: 16px; }
.cb-pane__home { white-space: nowrap; }
/* PIN 숫자판 — 무대 방식(바탕화면 · 수업 칸, 배율 0.85~1)에서도 실제 크기로(S8 · S4 넘김). 큰 화면(배율 1 넘음)은 무대와 함께 커진 그대로 */
.cb-stage:not(.is-real) .cb-pin > .cb-pin__box { transform: scale(max(1, calc(1 / var(--cb-s, 1)))); }
/* 머리띠 맞춤 ② 앞에서 — [위젯설정]은 그림만 남긴다(이름은 읽기 도구 · 툴팁에 그대로). 상표 이름 · 오늘 교실 표시를 접기 전에 */
.cb-bar.is-narrower #cb-edit { font-size: 0; gap: 0; padding-left: var(--yj-s3); padding-right: var(--yj-s3); }

/* R01-04 — 예시 명단 안내를 위젯 머리 줄에(좁은 머리에서는 배지 · [명단 넣기]만) */
.cb-roster__samplenote { font-size: var(--yj-t-small); color: var(--yj-sub); white-space: nowrap; }
@container cbhead (max-width: 560px) { .cb-roster__samplenote { display: none; } }

/* ── R01-14 설정 글자 · 자리 (2026-11-13 판정 · 디자인만) ── */
/* ① 안내 글 13px → 15px(보조색 그대로) · 왼쪽 칸 목록 15px → 17px */
.cb-set .cb-set__note, .cb-set small, .cb-set .cb-check em, .cb-set .cb-roster-help, .cb-set .cb-field em { font-size: var(--yj-t-small); }
.cb-set .cb-roster-help__sum { font-size: var(--yj-t-small); }
.cb-set__nav button { font-size: var(--yj-t-body); height: 44px; }
/* ② 명단 칸 높이를 줄여 「읽은 결과」 표가 1366 첫 화면 가까이 오게 */
.cb-set #set-roster { max-height: 260px; }
/* ④ 번호판 모양 막대 — 유자색 · 손잡이 자리 크게 */
.cb-rsty input[type="range"] { accent-color: var(--yj-yuja-600); height: 28px; min-height: 28px; cursor: pointer; }
/* ⑤ 시 · 도 고르기 글자가 잘리지 않게 */
.cb-inline select.cb-school__atpt { width: 150px; }
/* ⑥ 시간표 칸 44px · 17px(위 「1교시 시작」 줄과 같게) */
.cb-tt-edit input { height: 44px; font-size: var(--yj-t-body); }

/* 오늘 준 칭찬(R04-04) — [우리 반] 칸 머리에서 여는 창 */
.cb-ptoday { width: min(720px, calc(100vw - 32px)); }
/* 기록 관리(2026-11-17) — 위에 날짜 · 좌우 화살표 · 줄마다 카드 바꾸기 */
.cb-ptoday__nav { display: flex; align-items: center; gap: var(--yj-s2); margin-top: var(--yj-s3); }
.cb-ptoday__date { min-width: 150px; text-align: center; font-size: var(--yj-t-h2); font-weight: 800; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-ptoday__sum { margin-left: auto; font-size: var(--yj-t-small); color: var(--yj-sub); }
.cb-ptoday__w b { font-weight: 700; color: var(--yj-ink-deep); }
.cb-ptoday__w small { margin-left: var(--yj-s2); font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-ptoday__card { flex: none; width: 220px; height: 40px; }
.cb-ptoday__pt { flex: none; min-width: 36px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--yj-leaf-ink); }
.cb-ptoday__list li.is-down .cb-ptoday__pt { color: var(--yj-error-ink); }
.cb-ptoday__list { list-style: none; margin: 0; padding: 0; max-height: 52dvh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.cb-ptoday__list li { display: flex; align-items: center; gap: var(--yj-s3); min-height: 48px; padding: 0 var(--yj-s2); border-bottom: 1px solid var(--yj-line); }
.cb-ptoday__t { flex: none; font-variant-numeric: tabular-nums; color: var(--yj-sub); font-size: var(--yj-t-small); }
.cb-ptoday__w { flex: 1; min-width: 0; color: var(--yj-ink); }
.cb-ptoday__none { color: var(--yj-sub); }

/* R04-05 — [우리 반] 칸 · 모둠 카드 · 온도계: 누르는 것은 실제 44px 이상(무대 방식이면 배율만큼 키움) · 글자 무대 20px 근처
   모둠 카드 머리 높이는 자리 칸과 맞물려 있어 그대로 두고, 단추는 보이는 크기를 조금 키우고 누르는 자리를 둘레로 넓힌다 */
.cb-ocpage__head .yj-btn, .cb-ocpage__head .cb-chip { min-height: max(44px, calc(44px / var(--cb-s, 1))); }
.cb-ocpage .cb-gp__btn, .cb-sppage .cb-gp__btn { position: relative; width: 36px; height: 36px; }
.cb-ocpage .cb-gp__btn::before, .cb-sppage .cb-gp__btn::before { content: ""; position: absolute; inset: -4px; }
.cb-ocpage .cb-gp__btn--plus, .cb-sppage .cb-gp__btn--plus { width: 36px; height: 36px; margin-left: var(--yj-s3); }
.cb-ocpage .cb-gp__btn--plus .cb-ic, .cb-sppage .cb-gp__btn--plus .cb-ic { width: 20px; height: 20px; }
.cb-ocpage .cb-gp__btn[data-gp="minus"], .cb-sppage .cb-gp__btn[data-gp="minus"] { width: 30px; height: 30px; border: 1px solid var(--yj-line-strong); color: var(--yj-sub); }
.cb-ocpage .cb-thermo__reasons .cb-chip { min-height: max(44px, calc(44px / var(--cb-s, 1))); font-size: max(17px, 1em); }

/* R04-12 — 칠판 띠 안 작은 [뒤집기] · [자리] 칸 머리 그림 단추에 짧은 글자 */
.cb-sp__fhint .cb-sp__flip { min-height: 36px; margin-left: var(--yj-s2); gap: 4px; }
.cb-sp__fhint .cb-sp__flip .cb-ic { width: 16px; height: 16px; }
.yj-btn--icon:has(.cb-sp__btxt) { width: auto; padding: 0 var(--yj-s2); gap: 4px; }
.cb-sp__btxt { font-size: var(--yj-t-small); font-weight: 700; white-space: nowrap; }

/* R04-08 — 항목이 한두 개면 학생 줄을 두세 단으로 · 둘째 단부터 학생 칸은 붙박이 아님 + 단 사이 선 · 빈 화면 가운데 */
.cb-cs__wrap.is-fold .cb-cs__stu2 { position: static; border-left: 2px solid var(--yj-line-strong); }
.cb-cs__hdup { font-size: var(--yj-t-small); font-weight: 800; color: var(--yj-ink-deep); text-align: center; }
.cb-cs__fpad { background: var(--yj-card); }
.cb-ckpage__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--yj-s3); text-align: center; }
.cb-ckpage__empty b { font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-ckpage__empty p { margin: 0; font-size: var(--yj-t-body); color: var(--yj-sub); }

/* R05-06 — 알림장 작성판: [모두 지우기]는 칠판과 같은 규칙으로 서식 줄 맨 끝(앞 단추와 24px 떼고) · 빨간 테두리 ·
   [복사] 쪽과는 간격(서식 줄과 [복사] 사이 24px). 단추 · 듣는 손잡이는 그대로 — 모양 차례만 바꾼다 */
#cb-alim-tb .cb-memo__tb > .cb-memo__clearbtn { margin-left: var(--yj-s5); border: 1px solid var(--yj-error); color: var(--yj-error-ink); border-radius: var(--yj-r-sm); }
#cb-alim-tb .cb-memo__tb > .cb-memo__clearbtn:hover { background: var(--yj-error-tint); }
.cb-alim__tbslot { margin-right: var(--yj-s5); }

/* R05-08 — 지난 알림장 조회: 왼쪽 날짜 목록 · 오른쪽 글(칠판 기록 W01 과 같은 차례). 마크업 순서는 그대로, 놓는 자리만 */
.cb-alh__body { grid-template-columns: 380px minmax(0, 1fr); }
.cb-alh__body > .cb-alh__list { order: -1; }

/* R02-05 재수선 2 — 「아래에 더 있어요」 띠는 진짜 단추(누르면 글 끝으로). 가짜 글자 띠는 끈다 */
.cb-memo.is-more .cb-memo__wrap:has(> .cb-memo__more)::before { content: none; }
.cb-memo__more { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; min-height: 32px; padding: 4px var(--yj-s3); border: 0; border-top: 1px solid var(--yj-yuja-300); background: var(--yj-yuja-100); color: var(--yj-ink); font: inherit; font-size: 18px; font-weight: 700; text-align: center; cursor: pointer; }
.cb-memo__more[hidden] { display: none; }

/* R04-05 재수선 2 — [자리] 칸 모둠 카드: 머리 줄 52 · 단추 52(무대 · 1366 실제 44). 1점 빼기는 테두리만 · 1점 주기는 유자 채움 */
.cb-sp__room.is-big .cb-gp__head { height: 52px; }
.cb-sppage .cb-sp__room.is-big .cb-gp__btn { width: 52px; height: 52px; }
.cb-sppage .cb-sp__room.is-big .cb-gp__btn .cb-ic { width: 22px; height: 22px; }
.cb-sppage .cb-sp__room.is-big .cb-gp__btn--plus { width: 52px; height: 52px; margin-left: var(--yj-s3); }
.cb-sppage .cb-sp__room.is-big .cb-gp__btn[data-gp="minus"] { width: 52px; height: 52px; border: 1px solid var(--yj-line-strong); }
.cb-sppage .cb-sp__room.is-big .cb-gp__btn::before { inset: 0; }

/* 재수선 2 — 비워 둔 행사 칸을 빼고 복사했다는 한 줄([복사] 옆 · 주황 글자) */
.cb-alim__empty { align-self: center; font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-orange-ink); white-space: nowrap; }
.cb-alim__empty[hidden] { display: none; }

/* 재수선 2 — 알림장 작성판 체크 칸(확인 부탁 · 어사문 주소)이 17px 로 칠판 손가락에 작았다: 칸 24 · 누르는 줄 44 */
#cb-alim-ask, #cb-alim-link { width: max(24px, calc(24px / var(--cb-s, 1))); height: max(24px, calc(24px / var(--cb-s, 1))); flex: none; }
.cb-check:has(> #cb-alim-ask), .cb-check:has(> #cb-alim-link) { min-height: max(44px, calc(44px / var(--cb-s, 1))); align-items: center; }

/* 작성판 불러오기 칸 셋째 상자 「우리 학교」(A04 ③ ④ ⑦) */
.cb-alim__schsub { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.5; }
.cb-alim__schwarn { color: var(--yj-orange-ink); font-weight: 600; }   /* 학사일정을 못 받음 — 쉬는 날인지 보라는 말(A05 재검수 둘째 ③) */
.cb-alim__schrow .cb-alim__add:disabled { opacity: .55; cursor: progress; }

/* 날짜 알약(A04 ② 가) — 글 칸 아래 한 줄 · 누를 때만 글에 날짜 */
.cb-alim__pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2); margin: var(--yj-s1) 0 0; }
.cb-alim__pills[hidden] { display: none; }
.cb-alim__pillk { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub); }
.cb-alim__pill { min-height: max(36px, calc(36px / var(--cb-s, 1))); }

/* R04-05 재수선 3 — 1점 주기 · 빼기도 52(옛 규칙 .cb-sppage .cb-gp__btn--plus 36 · minus 30 보다 세게) · 알림장 「예문 한 줄도」 체크 칸 실제 24 · 줄 44 */
.cb-sppage .cb-sp__room.is-big .cb-gp__btn.cb-gp__btn--plus, .cb-sppage .cb-sp__room.is-big .cb-gp__btn[data-gp="minus"] { width: 52px; height: 52px; }
#cb-alim-ex { width: max(24px, calc(24px / var(--cb-s, 1))); height: max(24px, calc(24px / var(--cb-s, 1))); flex: none; }
.cb-check:has(> #cb-alim-ex) { min-height: max(44px, calc(44px / var(--cb-s, 1))); align-items: center; }

/* ── 체크리스트 항목 메모 — 마감일 · 메모장 (2026-11-16 작가 · js/checklist.js openMemo) ──
   제목 오른쪽 메모 그림(체크리스트 칸 열 머리 · 우리 반 체크리스트 모드 머리). 적힌 것이 있으면 주황 숫자 배지(규격 §7-6) */
.cb-ckmemo__btn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: var(--yj-r-sm); background: transparent; color: var(--yj-sub); cursor: pointer; transition: background var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease); }
.cb-ckmemo__btn .cb-ic { width: 20px; height: 20px; }
.cb-ckmemo__btn:hover, .cb-ckmemo__btn:focus-visible { background: var(--yj-yuja-100); color: var(--yj-ink-deep); }
.cb-ckmemo__btn.has-memo { color: var(--yj-ink-deep); }
.cb-ckmemo__badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--yj-r-full); background: var(--yj-orange); color: var(--yj-ink-deep); font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.cb-cs__title .cb-cs__memo { width: 28px; height: 28px; }
/* 우리 반 — 제목 드롭다운 오른쪽: 마감일 알약 · 메모 그림 */
.cb-roster__ckwrap { align-items: center; gap: var(--yj-s2); }
.cb-roster__ckdue { flex: none; padding: 2px var(--yj-s3); border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-size: var(--yj-t-body); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-roster__ckmemo { width: 40px; height: 40px; }
.cb-roster__ckmemo .cb-ic { width: 24px; height: 24px; }
/* 창 */
.cb-ckmemo { z-index: 46; padding: var(--yj-s4); }
.cb-ckmemo__card { width: min(560px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--yj-s4); padding: var(--yj-s6); background: var(--yj-card-hi); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-3); }
.cb-ckmemo__title { margin: 0; display: flex; align-items: center; gap: var(--yj-s2); font-size: var(--yj-t-h2); line-height: 1.4; color: var(--yj-ink-deep); }
.cb-ckmemo__title > .cb-ic { flex: none; width: 24px; height: 24px; color: var(--yj-yuja-ink); }
.cb-ckmemo__title span { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--yj-s2); min-width: 0; }
.cb-ckmemo__title small { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); }
.cb-ckmemo__row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--yj-s3); }
.cb-ckmemo__due .yj-input { min-height: 44px; }
.cb-ckmemo__wk { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-ckmemo__wk:empty { display: none; }
.cb-ckmemo__memo textarea { width: 100%; box-sizing: border-box; height: auto; min-height: 160px; padding: var(--yj-s3); font-size: var(--yj-t-body); line-height: 1.6; }
.cb-ckmemo__acts { display: flex; justify-content: flex-end; gap: var(--yj-s2); }
/* 이름 복사(2026-11-17) — 값 고르기 알약 · 미리 보기 · [이름 복사] */
.cb-ckmemo__copy { margin: 0; padding: var(--yj-s3) var(--yj-s4) var(--yj-s4); border: 1px solid var(--yj-line); border-radius: var(--yj-r-md); background: var(--yj-card); display: flex; flex-direction: column; gap: var(--yj-s3); min-width: 0; }
.cb-ckmemo__copy legend { padding: 0 var(--yj-s1); font-size: var(--yj-t-body); font-weight: 800; color: var(--yj-ink-deep); }
.cb-ckmemo__copy legend small { margin-left: var(--yj-s2); font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); }
.cb-ckmemo__vals { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-ckmemo__val { min-height: 44px; display: inline-flex; align-items: center; gap: var(--yj-s2); padding: 0 var(--yj-s3); border: 1px solid var(--yj-line); border-radius: var(--yj-r-full); background: var(--yj-card-hi); color: var(--yj-ink-deep); font: inherit; font-size: var(--yj-t-body); font-weight: 800; cursor: pointer; transition: background var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease); }
.cb-ckmemo__val b { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.cb-ckmemo__val:hover { background: var(--yj-yuja-100); }
.cb-ckmemo__val[aria-pressed="true"] { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); }
.cb-ckmemo__val[aria-pressed="true"] b { color: var(--yj-ink-deep); }
.cb-ckmemo__copyrow { display: flex; align-items: center; gap: var(--yj-s3); min-width: 0; }
.cb-ckmemo__names { flex: 1 1 auto; min-width: 0; font-size: var(--yj-t-small); line-height: 1.5; color: var(--yj-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-ckmemo__copyrow .yj-btn { flex: none; }
.cb-ckmemo__opts { display: flex; flex-wrap: wrap; gap: var(--yj-s2) var(--yj-s5); }
.cb-ckmemo__names { color: var(--yj-ink); user-select: text; }
.cb-ckmemo__copybtn { transition: transform var(--yj-m-fast) var(--yj-ease), background var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease); }
.cb-ckmemo__copybtn:active:not([disabled]) { transform: scale(.94); }
.cb-ckmemo__ic1, .cb-ckmemo__ic2 { display: inline-flex; }
.cb-ckmemo__ic2 { display: none; }
.cb-ckmemo__copybtn.is-copied { background: var(--yj-leaf-tint); border-color: var(--yj-leaf); color: var(--yj-leaf-ink); animation: cb-ckcopy-pop var(--yj-m-mid) var(--yj-ease); }
.cb-ckmemo__copybtn.is-copied .cb-ckmemo__ic1 { display: none; }
.cb-ckmemo__copybtn.is-copied .cb-ckmemo__ic2 { display: inline-flex; }
.cb-ckmemo__copybtn.is-fail { background: var(--yj-error-tint); border-color: var(--yj-error-ink); color: var(--yj-error-ink); }
@keyframes cb-ckcopy-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.cb-ckmemo__msg { margin: 0; min-height: 1.5em; font-size: var(--yj-t-small); font-weight: 700; }
.cb-ckmemo__msg.is-ok { color: var(--yj-leaf-ink); }
.cb-ckmemo__msg.is-fail { color: var(--yj-error-ink); }
.cb-ckmemo__card { max-height: 100%; overflow: auto; }
