/* ============================================================
   hitl.css — 휴먼 게이트 (HITL 체크포인트 설계)
   교사 대시보드는 bal.css의 bl-* 골격(딥네이비)을 재사용, 여기엔 ht-* 전용만.
   학생 화면은 rp-*·sc-* 공용 위에 벨트·카드·사고 연출.
   ============================================================ */

/* ── 생성 폼 ── */
.ht-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-opt-chip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line, #d8cbb8); background: var(--surface, #fff); font-weight: 700; cursor: pointer; font-size: 13.5px; text-align: left; }
.ht-opt-chip.sel { background: var(--ink, #2b2118); color: #fff; border-color: var(--ink, #2b2118); }
.ht-plan { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.ht-plan-case { border: 1.5px dashed var(--line, #d8cbb8); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ht-plan-case > b { font-size: 14px; margin-bottom: 4px; } .ht-plan-case > b span { font-weight: 600; opacity: .6; margin-left: 6px; font-size: 12px; }
.ht-plan-item { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; cursor: pointer; }
.ht-plan-item.sel { background: color-mix(in srgb, var(--brand, #b06a3b) 10%, #fff); border-color: var(--brand, #b06a3b); font-weight: 700; }
.ht-plan-no { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line, #d8cbb8); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ht-plan-item.sel .ht-plan-no { background: var(--brand, #b06a3b); color: #fff; border-color: var(--brand, #b06a3b); }

/* ── 교사: 단계·사고 지휘 ── */
.ht-flow-list { display: flex; flex-direction: column; gap: 4px; }
.ht-flow-btn { display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--blLine); background: transparent; color: var(--blInk); cursor: pointer; }
.ht-flow-btn small { display: block; font-size: 11px; opacity: .6; }
.ht-flow-btn.cur { background: var(--blGold); color: #1a1a1a; border-color: var(--blGold); }
.ht-flow-btn.cur small { opacity: .75; }
.ht-flow-no { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 800; }
.ht-next { margin-bottom: 8px; font-size: 13px; }
.ht-next > b { display: block; margin-bottom: 3px; }
.ht-select { width: 100%; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--blLine); background: var(--blBg); color: var(--blInk); font-size: 12.5px; }
.ht-select.sm { width: auto; padding: 3px 6px; font-size: 12px; }
.ht-heat { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding: 6px 4px 0; }
.ht-heat-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.ht-heat-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.ht-heat-bar i { display: block; width: 100%; background: linear-gradient(180deg, #ffd45e, #e0a63b); border-radius: 6px 6px 0 0; transition: height .4s; min-height: 2px; }
.ht-heat-col b { font-size: 14px; } .ht-heat-col span { font-size: 12px; opacity: .7; }
.ht-incstat { margin-top: 8px; font-size: 12.5px; opacity: .85; display: flex; flex-direction: column; gap: 2px; }

/* ── 교사: 모둠 카드 ── */
.ht-rankbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ht-rank { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--blBg2); border: 1px solid var(--blLine); font-size: 15px; }
.ht-rank.top { background: rgba(255, 212, 94, .15); border-color: var(--blGold); }
.ht-rank b { font-size: 18px; } .ht-rank em { font-style: normal; font-weight: 900; color: var(--blGold); } .ht-rank small { opacity: .6; font-size: 11.5px; }
.ht-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.ht-gcard { border: 1px solid var(--blLine); border-radius: 14px; background: var(--blBg2); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ht-gcard.sealed { border-color: rgba(255, 212, 94, .5); }
.ht-gcard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ht-gcard-head > b { font-size: 16px; }
.ht-case-tag { font-size: 12px; opacity: .8; }
.ht-seal { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--blLine); opacity: .7; }
.ht-seal.on { background: var(--blGold); color: #1a1a1a; border-color: var(--blGold); opacity: 1; font-weight: 800; }
.ht-score { margin-left: auto; font-size: 13px; } .ht-score b { font-size: 18px; color: var(--blGold); } .ht-score small { opacity: .6; margin-left: 4px; }
.ht-mini-belt { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ht-mini-slot { border: 1px dashed var(--blLine); border-radius: 8px; padding: 5px 4px; text-align: center; font-size: 11px; min-height: 40px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ht-mini-slot.on { border-style: solid; border-color: var(--blGold); background: rgba(255, 212, 94, .1); }
.ht-mini-slot b { font-size: 12px; }
.ht-gcards { display: flex; flex-direction: column; gap: 4px; }
.ht-gcard-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.04); }
.ht-gcard-row.rej { opacity: .55; }
.ht-gcard-by { font-weight: 800; flex: none; } .ht-gcard-stage { flex: none; } .ht-gcard-what { flex: 1; min-width: 0; } .ht-gcard-what i { opacity: .6; font-size: 11px; }
.ht-gcard-row em { font-style: normal; font-size: 11px; color: #ff9a8a; }
.ht-reason { font-size: 11px; padding: 2px 7px; border-radius: 999px; flex: none; font-weight: 700; }
.ht-reason.r-transparency { background: rgba(120, 180, 255, .2); color: #a9ccff; }
.ht-reason.r-bias { background: rgba(255, 160, 90, .2); color: #ffc79a; }
.ht-reason.r-accountability { background: rgba(140, 220, 160, .2); color: #b6f0c4; }
.ht-reject { background: transparent; border: 1px solid var(--blLine); border-radius: 8px; cursor: pointer; padding: 2px 6px; font-size: 13px; }
.ht-notplaced { font-size: 12px; opacity: .65; }
.ht-gres { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-gres-item { font-size: 12.5px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--blLine); }
.ht-gres-item.exact { background: rgba(255, 212, 94, .25); } .ht-gres-item.hit { background: rgba(120, 200, 140, .25); } .ht-gres-item.miss { background: rgba(255, 90, 70, .25); }
.ht-members { display: flex; flex-wrap: wrap; gap: 4px; }
.ht-host .kd-member-chip { background: transparent; color: var(--blInk); border-color: var(--blLine); }
.ht-host .kd-member-chip.out { opacity: .5; }
.ht-inclog { margin-top: 18px; }
.ht-inclog-item { border: 1px solid var(--blLine); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--blBg2); }
.ht-inclog-item > b { display: block; margin-bottom: 6px; }
.ht-inclog-case { margin-bottom: 8px; font-size: 13px; } .ht-inclog-case p { margin: 3px 0 0; opacity: .8; line-height: 1.5; font-size: 12.5px; }
.ht-send-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .ht-send-row .t-input { flex: 1; padding: 8px 10px; font-size: 13px; }

/* ── 교사: 예측 창·빈 카드 ── */
.ht-pending { margin-top: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(160, 120, 255, .15); border: 1px solid rgba(160, 120, 255, .5); }
.ht-mini-slot.draft { border-style: dashed; border-color: rgba(255, 212, 94, .6); opacity: .8; }

/* ── 벨트(공용: 학생·칠판) ── */
.ht-belt { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; overflow: hidden; border-radius: 14px; }
.ht-belt-slot { position: relative; border: 2px solid var(--line, #d8cbb8); border-radius: 12px; padding: 8px 4px 10px; background: var(--surface, #fff); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; color: inherit; font: inherit; }
.ht-belt.pickable .ht-belt-slot { cursor: pointer; }
.ht-belt.pickable .ht-belt-slot:hover:not(:disabled) { border-color: var(--ink, #2b2118); }
.ht-belt-slot.pick { border-color: var(--ink, #2b2118); background: color-mix(in srgb, var(--ink, #2b2118) 6%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink, #2b2118) 15%, transparent); }
.ht-belt-slot.mine { border-color: var(--brand, #b06a3b); }
.ht-belt-slot.hit, .ht-belt-slot.exact { border-color: #2e8b57; background: #e9f7ee; }
.ht-belt-slot.exact { box-shadow: 0 0 0 3px rgba(255, 200, 60, .6); }
.ht-belt-slot.miss { border-color: #c9402c; background: #fdecea; animation: htShake .5s; }
@keyframes htShake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-3px); } }
.ht-belt-no { font-size: 16px; font-weight: 900; }
.ht-belt-name { font-size: 11px; font-weight: 700; color: var(--slate, #667); line-height: 1.2; }
.ht-belt-tags { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.ht-belt-tag { font-size: 10.5px; padding: 2px 6px; border-radius: 999px; background: var(--paper-2, #f1ebe1); border: 1px solid var(--line, #d8cbb8); }
.ht-belt-tag.me { background: var(--brand, #b06a3b); color: #fff; border-color: var(--brand, #b06a3b); font-weight: 800; }
.ht-belt-tag.rej { text-decoration: line-through; opacity: .6; }
.ht-belt-tag.draft { border-style: dashed; background: transparent; font-weight: 700; animation: htDrop .35s cubic-bezier(.2, 1.4, .4, 1); }
.ht-belt-tag.me.draft { color: var(--brand, #b06a3b); border-color: var(--brand, #b06a3b); }
@keyframes htDrop { from { transform: translateY(-14px) scale(1.3); opacity: 0; } }
.ht-belt-slot.mine.pick { animation: htSlotPop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes htSlotPop { 50% { transform: scale(1.06); } }
.ht-belt-mark { position: absolute; top: -6px; right: -4px; font-size: 22px; animation: htPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes htPop { from { transform: scale(0); } }
.ht-sweep { position: absolute; top: 0; bottom: 0; width: 22%; left: -25%; background: linear-gradient(90deg, transparent, rgba(255, 60, 40, .55), transparent); animation: htSweep 2.4s linear forwards; pointer-events: none; z-index: 2; }
@keyframes htSweep { to { left: 105%; } }

/* ── 학생: 보드 ── */
.ht-stage { display: flex; flex-direction: column; min-height: 100dvh; }
.ht-top-score { margin-left: auto; font-weight: 900; font-size: 14px; }
.ht-progress { display: flex; gap: 6px; padding: 0 14px 8px; max-width: 600px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.ht-progress span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 6px; border-radius: 999px; background: var(--paper-2, #f1ebe1); color: var(--slate, #667); font-size: 11.5px; font-weight: 800; }
.ht-progress span b { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.08); font-size: 10px; }
.ht-progress span.cur { background: #fff1c7; color: #8a5b00; }
.ht-progress span.cur b { background: #e0a63b; color: #fff; }
.ht-progress span.done { background: #e9f7ee; color: #2e7d43; }
.ht-progress span.done b { background: #2e8b57; color: #fff; }
.ht-body { flex: 1; overflow-y: auto; padding: 14px; max-width: 600px; margin: 0 auto; width: 100%; box-sizing: border-box; }
/* 🖥 2분할(960px+) — 왼쪽 활동 / 오른쪽 사례 카드·내 기록(스크롤해도 제자리). 디벗 가로에서 한 열 600px이 화면 절반을 비우고
   논증문 단계에 기록이 아래로 1,700px 늘어지던 것을 없앤다. 좁은 화면은 위 규칙 그대로 */
.ht-main, .ht-side { min-width: 0; }
@media (min-width: 960px) {
  .ht-stage .ht-progress { max-width: 1240px; }
  .ht-body.ht-split { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 20px; align-items: start; padding: 14px 20px 40px; }
  .ht-split .ht-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
  /* 오른쪽 열이 보여 주는 것은 본문에서 감춘다 — 사례 카드(접이식·준비 단계), 논증문의 참고 토글 */
  .ht-split .ht-main .ht-case, .ht-split .ht-main .ht-essay-ref { display: none; }
  .ht-split .ht-side .ht-case { margin-bottom: 0; background: var(--surface, #fff); }
  .ht-split .ht-side .ht-case-head { cursor: default; }
  .ht-split .ht-side .ht-panel { padding: 14px; }
  .ht-split .ht-side-record { background: var(--surface, #fff); border: 1.5px solid var(--line, #e2d7c3); border-radius: 14px; padding: 12px 14px; }
  .ht-split .ht-side-record .sc-q-label { margin-bottom: 6px; }
  /* 벨트가 넓어진 만큼 칸 이름·이름표를 키운다 */
  .ht-split .ht-belt-slot { min-height: 108px; }
  .ht-split .ht-belt-name { font-size: 12.5px; }
  .ht-split .ht-belt-tag { font-size: 11.5px; }
}
.ht-panel { background: var(--surface, #fff); border: 1.5px solid var(--line, #e2d7c3); border-radius: 16px; padding: 16px; }
.ht-h2 { font-size: 18px; font-weight: 900; margin: 6px 0 4px; }
.ht-lead { font-size: 13.5px; color: var(--slate, #667); line-height: 1.55; margin: 0 0 10px; }
.ht-group-banner { background: rgba(120, 160, 220, .12); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.ht-case { border: 1.5px solid var(--line, #e2d7c3); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.ht-case-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--paper-2, #f5f0e8); border: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ht-case-body { padding: 10px 12px 12px; }
.ht-case-bg { margin: 0 0 10px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.ht-case-stages { display: flex; flex-direction: column; gap: 6px; }
.ht-case-stage { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--paper, #faf7f2); }
.ht-case-stage b { flex: none; min-width: 84px; } .ht-case-stage span { color: var(--slate, #556); }
.ht-case-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.ht-case-pick.inline { display: inline-flex; margin-left: 6px; }
.ht-case-btn { flex: 1; min-width: 120px; padding: 16px 10px; border-radius: 14px; border: 2px solid var(--line, #d8cbb8); background: var(--surface, #fff); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; }
.ht-case-btn span { font-size: 30px; } .ht-case-btn b { font-size: 14px; }
.ht-case-btn.sm { flex: none; min-width: 0; padding: 4px 10px; flex-direction: row; font-size: 12px; border-radius: 999px; }
.ht-gauge { margin: 4px 0 12px; }
.ht-gauge-label { font-size: 13px; }
.ht-gauge-track { height: 10px; border-radius: 99px; background: var(--paper-2, #eee6d8); margin: 6px 0 4px; overflow: hidden; }
.ht-gauge-track i { display: block; height: 100%; background: linear-gradient(90deg, #f6c343, #e5892c); transition: width .7s cubic-bezier(.2, .8, .3, 1); }
.ht-gauge-hint { font-size: 11.5px; color: var(--slate, #667); }
.ht-gauge { position: relative; }
.ht-gauge-flash { position: absolute; right: 4px; top: -6px; font-weight: 900; font-size: 15px; padding: 3px 10px; border-radius: 999px; pointer-events: none; animation: htFlash 1.3s ease-out forwards; }
.ht-gauge-flash.slow { background: #fdecea; color: #c9402c; }
.ht-gauge-flash.fast { background: #fff7df; color: #b06a3b; }
@keyframes htFlash { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 15% { transform: translateY(0) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.ht-gauge.slowing .ht-gauge-track i { animation: htGaugePulse .7s; }
@keyframes htGaugePulse { 30% { filter: brightness(.7); } }
/* 카드 채우기 시트 — 칸을 찍으면 자리부터 꽂히고, 그다음 이 시트에서 '무엇을·왜'를 쓴다 */
.ht-card-sheet { max-width: 560px; }
.ht-card-sheet .ht-form { margin-top: 4px; }
.ht-card-sheet-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.ht-card-sheet-head .ht-badge { margin-left: 0; }
.ht-slot-hint { font-size: 12.5px; color: var(--slate, #667); margin: 0 0 8px; }
.ht-form { margin-top: 12px; }
.ht-stage-desc { font-size: 12.5px; color: var(--slate, #667); margin: -4px 0 8px; }
.ht-reason-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ht-reason-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line, #d8cbb8); background: var(--surface, #fff); cursor: pointer; font: inherit; }
.ht-reason-btn b { font-size: 14px; line-height: 1.25; }
.ht-reason-btn span { font-size: 11px; color: var(--slate, #667); padding: 1px 8px; border-radius: 999px; background: var(--paper-2, #f1ebe1); }
.ht-reason-hint { font-size: 12.5px; color: var(--slate, #667); margin: 6px 0 0; min-height: 18px; line-height: 1.5; }
.ht-reason-btn.r-transparency.sel { border-color: #3d7cc9; background: #e8f0fb; }
.ht-reason-btn.r-bias.sel { border-color: #d9822b; background: #fdf0e3; }
.ht-reason-btn.r-accountability.sel { border-color: #2e8b57; background: #e9f7ee; }
.ht-ok { color: #2e7d43; font-weight: 700; font-size: 13px; margin: 8px 0 0; }
.ht-rejected { background: #fdecea; border: 1px solid #f3b8b0; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.ht-seal-box { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line, #d8cbb8); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.ht-sealed { text-align: center; padding: 10px 0; }
.ht-sealed-title { font-size: 22px; font-weight: 900; }
.ht-sealed .ht-belt { text-align: left; }
.sc-count-row.ok .sc-count-note { color: #2e7d43; }

/* ── 학생: 🔮 예측 ── */
.ht-predict { text-align: center; padding: 8px 0 4px; }
.ht-predict-q { font-size: 22px; font-weight: 900; }
.ht-predict-n { font-size: 56px; font-weight: 900; line-height: 1; margin: 6px 0; color: #7b4fd9; font-variant-numeric: tabular-nums; }
.ht-predict-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.ht-predict-btn { padding: 12px 4px; border-radius: 12px; border: 2px solid var(--line, #d8cbb8); background: var(--surface, #fff); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ht-predict-btn b { font-size: 20px; } .ht-predict-btn span { font-size: 10.5px; color: var(--slate, #667); line-height: 1.2; }
.ht-predict-btn.sel { border-color: #7b4fd9; background: #efe8ff; box-shadow: 0 0 0 3px rgba(123, 79, 217, .2); }
.ht-predict-btn:disabled { opacity: .6; }
.ht-predict-done { font-size: 13px; margin-top: 8px; color: #5b3bb0; font-weight: 700; }
.ht-predict-hit { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #efe8ff; color: #5b3bb0; font-weight: 800; font-size: 13px; }

/* ── 한 줄 소감 ── */
.ht-reflect { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, #d8cbb8); }
.ht-reflect .sc-textarea { margin-top: 4px; }
.ht-reflect-done { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #efe8ff; font-size: 13.5px; line-height: 1.5; }
.ht-reflect-done small { display: block; font-size: 11.5px; color: var(--slate, #667); margin-top: 3px; }
.ht-reflect-list { display: flex; flex-direction: column; gap: 4px; }
.ht-reflect-row { display: flex; gap: 10px; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--blBg2); border: 1px solid var(--blLine); }
.ht-reflect-row b { flex: none; min-width: 52px; } .ht-reflect-row span { flex: 1; }
.ht-pres-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ht-pres-feed-card { background: #1d2140; border: 1px solid #303660; border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.ht-pres-feed-card b { font-size: 13px; opacity: .7; align-self: flex-end; }
.ht-pres-feed-empty { text-align: center; margin-top: 16px; font-size: 16px; opacity: .65; }

/* ── 학생: 사고·결과 ── */
.ht-inc-head { font-size: 20px; font-weight: 900; } .ht-inc-head span { font-size: 13px; opacity: .6; font-weight: 700; }
.ht-result { border-radius: 14px; padding: 14px; margin-top: 8px; border: 2px solid; }
.ht-result.exact { border-color: #e0a63b; background: #fff7df; } .ht-result.hit { border-color: #2e8b57; background: #e9f7ee; } .ht-result.miss { border-color: #c9402c; background: #fdecea; }
.ht-result-big { font-size: 24px; font-weight: 900; }
.ht-result-sub { font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.ht-result-pts { font-size: 13px; margin-top: 4px; font-weight: 700; }
.ht-outcome { margin-top: 10px; background: rgba(255,255,255,.7); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; }
.ht-outcome b { display: block; margin-bottom: 2px; } .ht-outcome p { margin: 0; } .ht-outcome small { display: block; margin-top: 8px; color: var(--slate, #667); font-size: 12px; line-height: 1.5; }
.ht-score-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--paper, #faf7f2); }
.ht-score-row b { font-size: 15px; }
.ht-move { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, #d8cbb8); }
.ht-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-2, #eee6d8); margin-left: 6px; }
.ht-inc-history { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.ht-inc-hrow { font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; } .ht-inc-hrow span { margin-left: auto; opacity: .75; }

/* ── 학생: 정리·논증문 ── */
.ht-rank-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.ht-rank-mini span { padding: 4px 10px; border-radius: 999px; background: var(--paper-2, #eee6d8); } .ht-rank-mini span.me { background: var(--brand, #b06a3b); color: #fff; font-weight: 800; }
.ht-stage .ht-heat { height: 110px; } .ht-stage .ht-heat-bar { background: var(--paper-2, #eee6d8); }
.ht-question { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff7df; border: 1.5px solid #e0a63b; font-size: 15px; font-weight: 800; line-height: 1.5; }
.ht-question small { display: block; font-size: 12.5px; font-weight: 500; color: var(--slate, #667); margin-top: 4px; }
.ht-rubric { width: 100%; border-collapse: collapse; font-size: 11.5px; margin: 6px 0 10px; }
.ht-rubric th, .ht-rubric td { border: 1px solid var(--line, #d8cbb8); padding: 5px 6px; vertical-align: top; line-height: 1.45; }
.ht-rubric th { background: var(--paper-2, #f5f0e8); font-size: 11px; } .ht-rubric td:first-child { font-weight: 800; white-space: nowrap; }
.ht-comment { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #e8f0fb; font-size: 13px; }

/* ── 칠판(프로젝션) ── */
/* flex-shrink:0 — 부모(.stage-teacher)가 고정 높이 flex 컬럼이라 내용이 길면 박스만 줄어 푸터와 겹친다 */
.ht-present { flex-shrink: 0; min-height: 100vh; background: #14172b; color: #eef0ff; padding: 26px 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.ht-pres-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ht-pres-kicker { font-size: 14px; letter-spacing: .12em; opacity: .7; font-weight: 800; }
.ht-pres-head h1 { margin: 0; font-size: clamp(22px, 3vw, 34px); flex: 1; }
.ht-pres-count { font-size: 15px; opacity: .8; }
.ht-belt.big { gap: 12px; margin: 0; }
.ht-belt.big .ht-belt-slot { background: #1d2140; border-color: #303660; color: #eef0ff; min-height: 170px; padding: 14px 8px; }
.ht-belt.big .ht-belt-no { font-size: 30px; } .ht-belt.big .ht-belt-name { font-size: 16px; color: #9aa1c9; }
.ht-belt.big .ht-belt-tag { font-size: 14px; padding: 4px 12px; background: #2a2f57; border-color: #3d4478; color: #eef0ff; }
.ht-belt.big .ht-belt-tag.hit { background: #2e8b57; border-color: #2e8b57; animation: htJump .6s cubic-bezier(.2, 1.6, .4, 1); }
.ht-belt.big .ht-belt-tag.exact { background: #e0a63b; border-color: #e0a63b; color: #1a1a1a; animation: htJump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes htJump { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) scale(1.15); } 100% { transform: translateY(0); } }
.ht-boom { font-size: 16px; font-weight: 900; color: #ff8a75; animation: htPop .5s cubic-bezier(.2, 1.4, .4, 1); }
.ht-present.sweeping .ht-belt.big { box-shadow: 0 0 40px rgba(255, 60, 40, .35); }
.ht-pres-result { display: flex; flex-direction: column; gap: 10px; }
.ht-pres-inc { font-size: 24px; font-weight: 900; }
.ht-pres-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ht-pres-case { background: #1d2140; border: 1px solid #303660; border-radius: 14px; padding: 14px 16px; }
.ht-pres-case > b { font-size: 14px; opacity: .8; }
.ht-pres-title { font-size: 20px; font-weight: 900; margin: 4px 0 8px; }
.ht-pres-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-pres-g { padding: 5px 10px; border-radius: 10px; font-size: 15px; font-weight: 800; background: #2a2f57; }
.ht-pres-g small { font-weight: 600; opacity: .7; font-size: 12px; margin-left: 4px; }
.ht-pres-g.exact { background: #e0a63b; color: #1a1a1a; } .ht-pres-g.hit { background: #2e8b57; } .ht-pres-g.miss { background: #a33a2a; }
.ht-pres-outcome { margin: 10px 0 0; font-size: 15px; line-height: 1.6; opacity: .92; }
.ht-pres-wait { text-align: center; font-size: 18px; margin-top: 10px; line-height: 1.7; } .ht-pres-wait .dim { opacity: .6; font-size: 15px; }
.ht-pres-predict { text-align: center; padding: 10px 0; }
.ht-pres-predict-q { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; color: #c9b3ff; }
.ht-pres-predict-n { font-size: clamp(90px, 14vw, 160px); font-weight: 900; line-height: 1; color: #ffd45e; font-variant-numeric: tabular-nums; animation: htCount 1s infinite; }
@keyframes htCount { 0% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ht-pres-predict-sub { font-size: 18px; opacity: .8; }
.ht-pres-heat { max-width: 640px; margin: 0 auto; width: 100%; }
.ht-pres-heat .ht-heat { height: 180px; }
.ht-pres-q { text-align: center; font-size: 26px; font-weight: 900; margin-top: 14px; color: #ffd45e; }
.ht-pres-rank { display: flex; gap: 14px; justify-content: center; font-size: 16px; margin-top: auto; }
.ht-pres-rank span { padding: 6px 14px; border-radius: 999px; background: #1d2140; border: 1px solid #303660; } .ht-pres-rank span.top { border-color: #ffd45e; } .ht-pres-rank b { color: #ffd45e; }

@media (max-width: 480px) {
  .ht-progress { padding-left: 10px; padding-right: 10px; }
  .ht-progress span { font-size: 10.5px; padding: 4px 3px; }
  .ht-belt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ht-belt-slot { min-height: 82px; padding: 7px 4px 8px; }
  .ht-belt-slot:nth-child(5) { grid-column: 1 / -1; }
  .ht-belt-name { font-size: 11px; }
  .ht-belt-tag { font-size: 9.5px; padding: 1px 5px; }
  .ht-reason-row { grid-template-columns: 1fr; gap: 7px; }
  .ht-reason-btn { flex-direction: row; justify-content: space-between; text-align: left; padding: 10px 12px; }
  .ht-reason-btn span { margin-left: 8px; }
  .ht-predict-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ht-predict-btn:last-child { grid-column: 1 / -1; }
  .ht-predict-btn { padding: 10px 6px; }
}
