* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

/* 창 크기에 맞춰 두 컬럼(히어로 65% · 목록 35%)이 같이 늘어난다 — 레터박스 없음 */
.b {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 6.5fr 3.5fr;
  grid-template-rows: minmax(0, 1fr);   /* 2026-10-23 우측 미처리 명단이 길어도 행이 화면 밖으로 늘어나 좌측 안내 배너를 밀어내지 않게 */
  background: #f3f4f6;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

svg.i {
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
}

/* ── 좌측 히어로 ────────────────────────────────────────── */

.l {
  background: #0f3d3a;
  color: #fff;
  padding: 70px 80px 100px;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 26px;
  border-bottom: 1px solid #2c5d59;
}

.top .dt {
  font-size: 26px;
  color: #a7c4c0;
  font-weight: 500;
  padding-bottom: 8px;
}

.top .ck {
  display: block;
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
}

.lab {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  color: #7fe0cf;
  letter-spacing: .06em;
}

.lab i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, .25);
}

.rm {
  margin-top: 14px;
  font-size: 70px;
  font-weight: 800;
  color: #7fe0cf;
}

.cs {
  font-size: 120px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.pt {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pt span {
  font-size: 35px;
  font-weight: 700;
  background: #1b524d;
  padding: 10px 20px;
  border-radius: 8px;
  color: #d6e6e3;
}

.pt b {
  font-size: 65px;
  font-weight: 700;
}

.idle {
  margin-top: 14px;
  font-size: 38px;
  font-weight: 700;
  color: #a7c4c0;
}

.cta {
  margin-top: auto;
  background: #2dd4bf;
  color: #06302c;
  font-size: 50px;
  font-weight: 800;
  padding: 26px 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* JS가 채우는 래퍼 div — .l의 flex 자식 관계를 그대로 유지해야 .cta의 margin-top:auto(바닥 고정)가 먹는다 */
#hero-current, #hero-cta {
  display: contents;
}

/* ── 우측 강의실 현황 목록 ──────────────────────────────── */

.r {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ── 우측 실시간 출결 패널 (태그 창이 열렸을 때 목록 대신) ─────────────── */

[hidden] {
  display: none !important;
}

/* ?at= 미리보기 표시 — 실제 시각 기준이 아님을 알린다 */
#preview-badge {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f59e0b;
  color: #1f1300;
  font-size: 16px;
  font-weight: 800;
}

.att {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}

.counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.counts.one { grid-template-columns: minmax(0, 1fr); }
.card[hidden] { display: none; }

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #e2e8f0;
  overflow: hidden;
}

.card-h {
  padding: 14px 20px;
  background: #eef3f8;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-h small {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}

.num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
}

.num b {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.num span {
  font-size: 34px;
  font-weight: 700;
  color: #64748b;
}

.num span.out { font-size: 26px; font-weight: 600; color: #b45309; margin-left: 14px; }
.num span.out i { font-style: normal; }

.num b.prep { font-size: 44px; color: #94a3b8; letter-spacing: 0; }

.att-hrd .card-h, .att-hrd .num b { color: #0f766e; }
.att-hrd .num b.prep { color: #94a3b8; }
.att-tag .card-h, .att-tag .num b { color: #0284c7; }

.roster {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.names {
  flex: 1;
  overflow: hidden;
}

.names div {
  padding: 16px 24px;
  border-top: 1px solid #eef0f2;
  font-size: 30px;
  font-weight: 800;
}

.names .att-hrd { color: #0f766e; }
.names .att-tag { color: #0284c7; }

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.list {
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #e5e7eb;
  overflow: hidden;
}

.it {
  padding: 22px 24px;
  border-bottom: 1px solid #eef0f2;
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 10px;
  align-items: center;
}

.it:last-child {
  border-bottom: 0;
}

.it.hl {
  background: #ecfdf8;
  box-shadow: inset 6px 0 0 #0f766e;
}

.no {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.nm {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #6b7280;
}

.st {
  font-size: 15px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
}

.on   { background: #dcfce7; color: #166534; }
.wait { background: #f3f4f6; color: #4b5563; }
.tag  { background: #0f766e; color: #fff; }
.brk  { background: #fef3c7; color: #92400e; }
.off  { background: #f3f4f6; color: #6b7280; }
