body.admin { background: var(--gray100); user-select: text; overflow: auto; height: auto; min-height: 100%; }
.admin .topbar { background: var(--gray100); }
.topbar a.btn, .topbar .btn { text-decoration: none; background: var(--white); }
.topbar__date { font-size: 15px; color: var(--gray500); }
.muted { color: var(--gray500); font-weight: 500; }

.gate { max-width: 360px; margin: 6vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 16px; }
.gate h2 { margin: 0; font-size: 26px; }
.dots { display: flex; gap: 14px; height: 18px; align-items: center; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--gray300); }
.dots i.is-on { background: var(--gray900); }
.dots.is-wrong { animation: shake .3s; }
.dots.is-wrong i.is-on { background: var(--red); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.gate__hint { color: var(--gray500); font-size: 15px; margin: 0; min-height: 22px; }
.gate__pad { width: 100%; grid-auto-rows: 64px; background: var(--white); border-radius: 24px; padding: 12px; }
@media (prefers-reduced-motion: reduce) { .dots.is-wrong { animation: none; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 4px 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--white); border-radius: 24px; padding: 24px; }
.card__h { margin: 0 0 16px; font-size: 19px; font-weight: 700; }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card__head .card__h { margin: 0; }

/* 요약 */
.summary { padding: 26px 28px; }
.summary__state { margin: 0 0 6px; font-size: 16px; color: var(--gray500); }
.summary__title { margin: 0 0 18px; font-size: 34px; font-weight: 700; }
.summary__title b { color: var(--blue); font-weight: 700; }
.meter { height: 10px; border-radius: 999px; background: var(--gray100); overflow: hidden; }
.meter__fill { height: 100%; background: var(--blue); border-radius: 999px; transition: width .4s; }
.summary__links { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.link { font-size: 17px; font-weight: 600; color: var(--gray700); padding: 6px 0; }
.link::after { content: " ›"; color: var(--gray400); }
.link.is-warn { color: var(--red); }
.summary__extra { font-size: 15px; color: var(--gray500); }

/* 탭 */
.seg-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: var(--gray200); border-radius: 14px; }
.seg-tabs button { height: 40px; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--gray600); }
.seg-tabs button.is-on { background: var(--white); color: var(--gray900); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab { display: none; }
.tab.is-on { display: flex; flex-direction: column; gap: 16px; }
/* 카드 사이 간격은 탭의 gap 하나로만 준다 */
.tab .form, .tab .stats-grid { margin-bottom: 0; }
.tab__head { margin: 4px 4px 0; }
.tab__head h2 { margin: 0; font-size: 24px; }
.tab__head p { margin: 6px 0 0; color: var(--gray500); font-size: 16px; }
.tab__head--sub { margin-top: 14px; }

/* 좌석 */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.board__map { min-width: 0; padding: 22px; }
.board__canvas { display: flex; justify-content: center; overflow: hidden; }
.assign-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-press); font-weight: 600; font-size: 16px; }
.assign-bar .btn { background: var(--white); }

.seatmap--admin { --seat-w: 74px; --seat-h: 54px; }
.seatmap--admin .seat__no { font-size: 13px; font-weight: 500; }
.seatmap--admin .seat__name { font-size: 14px; font-weight: 700; margin-top: 1px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; }
.seatmap--admin .seat--free { background: var(--gray50); color: var(--gray300); }
.seatmap--admin .seat--taken { background: var(--blue-soft); color: var(--blue-press); box-shadow: none; position: relative; }
.seatmap--admin .seat.is-new::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.seatmap--admin .seat.is-selected { background: var(--blue); color: var(--white); }
.seatmap--admin .seat.is-target { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-soft); }
.seatmap--admin .seat.is-target:active { background: var(--blue-soft); }

.side { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.search { width: 100%; height: 48px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 16px; font: inherit; font-size: 16px; color: var(--gray900); }
.search:focus { outline: 2px solid var(--blue); }
.results { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; }
.results:empty { display: none; }
.results button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 6px; border-radius: 12px; font-size: 16px; text-align: left; }
.results button:active { background: var(--gray100); }
.results small { color: var(--gray500); margin-left: 6px; }
.results__none { color: var(--gray500); font-size: 15px; padding: 8px 6px; }
.tag { font-size: 14px; font-weight: 600; color: var(--blue); }
.tag--off { color: var(--red); }

.detail { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.detail__top { display: flex; justify-content: space-between; align-items: flex-start; }
.detail__name { font-size: 26px; font-weight: 700; }
.detail__sub { font-size: 15px; color: var(--gray500); margin-top: 4px; }
.detail__close { font-size: 15px; color: var(--gray500); padding: 4px 6px; }
.detail__rows { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.detail__rows div { display: flex; justify-content: space-between; font-size: 16px; }
.detail__rows dt { color: var(--gray500); }
.detail__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail__hist { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--gray100); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--gray700); }
.detail__hist time { color: var(--gray500); margin-right: 10px; font-variant-numeric: tabular-nums; }
.detail .btn-row .btn { height: 48px; font-size: 16px; }

.side__h { margin: 4px 0 2px; font-size: 16px; font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 15px; }
.feed button { padding: 0; text-align: left; font-size: 15px; color: var(--gray700); }
.feed b { color: var(--gray900); font-weight: 600; margin-right: 4px; }
.feed time { color: var(--gray400); font-size: 14px; white-space: nowrap; }
.feed__empty { color: var(--gray500); }

/* 안 온 학생 */
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.class-card { background: var(--white); border-radius: 20px; padding: 18px 20px; }
.class-card__h { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.class-card__h span { color: var(--red); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 40px; padding: 0 14px; border-radius: 12px; background: var(--gray100); font-size: 16px; font-weight: 600; color: var(--gray700); }
.chip-btn small { color: var(--gray500); font-weight: 500; margin-left: 4px; }
.chip-btn:active { background: var(--blue-soft); color: var(--blue); }
.empty { color: var(--gray500); font-size: 16px; margin: 0; }

/* 기록 */
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
#class-rates { max-height: 260px; overflow: auto; padding-right: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding: 20px 14px 0 0; overflow-x: auto; }
.bars__col { flex: 1 0 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 22px; }
.bars__bar { width: 100%; min-height: 3px; background: var(--blue); border-radius: 6px 6px 2px 2px; }
.bars__bar.is-zero { background: var(--gray100); }
.bars__n { font-size: 13px; font-weight: 600; color: var(--gray700); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.bars__t { position: absolute; bottom: 0; font-size: 12px; color: var(--gray500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rates li { display: grid; grid-template-columns: 70px 1fr 70px; gap: 12px; align-items: center; font-size: 15px; }
.rates__bar { height: 8px; border-radius: 999px; background: var(--gray100); overflow: hidden; }
.rates__bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.rates__n { text-align: right; color: var(--gray600); font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: 6px; }
.pills button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gray600); background: var(--gray100); }
.pills button.is-on { background: var(--gray900); color: var(--white); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--gray100); font-size: 16px; }
.log li:first-child { border-top: 0; }
.log time { color: var(--gray500); font-variant-numeric: tabular-nums; }
.log small { color: var(--gray500); margin-left: 6px; }
.log .by { font-size: 14px; color: var(--gray400); }

/* 설정 */
.form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; max-width: 760px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; color: var(--gray700); }
.form input[type=time], .form input[type=url], .form input[type=password] { height: 52px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 16px; font: inherit; font-size: 17px; font-weight: 500; color: var(--gray900); }
.form input:focus { outline: 2px solid var(--blue); }
.form .card__h { margin-bottom: 0; }
.form p { margin: -8px 0 0; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { flex-direction: row !important; justify-content: space-between; align-items: center; padding: 6px 0; }
.toggle span { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--gray900); }
.toggle small { font-size: 14px; font-weight: 500; color: var(--gray500); }
.toggle input { appearance: none; width: 52px; height: 32px; border-radius: 999px; background: var(--gray300); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.toggle input:checked { background: var(--blue); }
.toggle input:checked::after { transform: translateX(20px); }
.form > .btn { align-self: flex-start; }
.btn-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wrap .btn { text-decoration: none; }
.file { position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 1100px) {
  .board, .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 4px 16px 40px; }
  .summary__title { font-size: 26px; }
  .row2 { grid-template-columns: 1fr; }
  .topbar__date { display: none; }
}

/* 좌석 상태 (감독) */
.seatmap--admin .seat--out { background: var(--orange-soft); color: var(--orange); }
.seatmap--admin .seat--closed { color: var(--gray400); }
.seatmap--admin .seat__tag { font-size: 11px; line-height: 1; }
.detail__note { margin: 0; font-size: 15px; color: var(--gray600); line-height: 1.5; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-grid .btn { height: 48px; font-size: 16px; padding: 0 10px; }
.btn-grid .btn:only-child { grid-column: 1 / -1; }

/* 명단 */
.roster__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.roster__head .card__h { margin-bottom: 4px; }
.roster__head p { margin: 0; font-size: 15px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; margin-bottom: 12px; }
.select { height: 48px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 36px 0 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--gray900); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray500) 50%), linear-gradient(135deg, var(--gray500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.select:focus { outline: 2px solid var(--blue); }
.table-wrap { overflow: auto; max-height: 62vh; border-radius: 14px; border: 1px solid var(--gray100); }
.table-wrap--small { max-height: 220px; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { position: sticky; top: 0; background: var(--gray50); text-align: left; font-size: 14px; font-weight: 600; color: var(--gray500); padding: 10px 14px; z-index: 1; }
.table td { padding: 8px 14px; border-top: 1px solid var(--gray100); height: 52px; }
.table .num { font-variant-numeric: tabular-nums; }
.table .t-c { text-align: center; }
.table .t-r { text-align: right; }
.empty-row { text-align: center; color: var(--gray500); }
.btn--ghost { background: none; color: var(--blue); }
.btn--ghost:active { background: var(--blue-soft); }
.more { display: flex; justify-content: center; }
.more:not(:empty) { margin-top: 12px; }
.bulk { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--gray50); font-size: 15px; font-weight: 600; color: var(--gray700); }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--gray300); position: relative; cursor: pointer; transition: background .15s; vertical-align: middle; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }

/* 설정 */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 15px; font-weight: 600; color: var(--gray700); }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick button { width: 48px; height: 44px; border-radius: 12px; background: var(--gray100); font-size: 16px; font-weight: 600; color: var(--gray500); }
.daypick button.is-on { background: var(--blue); color: var(--white); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.line span { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.line small { font-size: 14px; color: var(--gray500); }
.line .select { min-width: 140px; }

/* 지난 기록 */
.range { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.range label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray600); }
.range input { height: 44px; border-radius: 12px; border: 0; background: var(--gray100); padding: 0 12px; font: inherit; font-size: 16px; color: var(--gray900); }
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--gray100); font-size: 16px; }
.days li:first-child { border-top: 0; }
.days li.empty { display: block; }
.days__d { font-weight: 600; }
.days__d small { color: var(--blue); font-size: 13px; margin-left: 4px; }
.days__n { color: var(--gray600); }

/* 가운데 창 (명단 불러오기, PIN 바꾸기) */
.sheet-wrap--center { align-items: center; padding: 24px; }
.panel { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--white); border-radius: 28px; padding: 30px 28px 24px; animation: up .18s ease-out; }
.panel h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.panel > .imp-step > p { margin: 0 0 18px; font-size: 16px; color: var(--gray600); line-height: 1.5; }
.panel .btn-row { margin-top: 18px; }
.panel--pin { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.panel--pin .gate__pad { background: var(--gray50); }
.panel--pin .btn-row { width: 100%; margin-top: 4px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 120px; border-radius: 18px; border: 2px dashed var(--gray300); background: var(--gray50); cursor: pointer; }
.drop b { font-size: 18px; color: var(--blue); }
.drop span { font-size: 14px; color: var(--gray500); }
.drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.panel textarea { width: 100%; margin-top: 12px; border: 0; border-radius: 14px; background: var(--gray100); padding: 14px; font: inherit; font-size: 15px; resize: vertical; color: var(--gray900); }
.panel textarea:focus { outline: 2px solid var(--blue); }
.hint { margin: 10px 0 0; font-size: 14px; color: var(--gray500); line-height: 1.5; }
.problems:not(:empty) { margin: 6px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-size: 15px; }
.problems ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 140px; overflow: auto; color: var(--gray700); display: flex; flex-direction: column; gap: 4px; }
.problems li span { color: var(--gray500); margin-right: 8px; font-variant-numeric: tabular-nums; }
.imp-q { margin: 22px 0 10px; font-size: 18px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--gray50); text-align: left; box-shadow: inset 0 0 0 1px var(--gray200); }
.choice b { font-size: 17px; }
.choice span { font-size: 15px; color: var(--gray600); line-height: 1.45; }
.choice:active { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.choice:disabled { opacity: .5; pointer-events: none; }

/* 학생 더하기, 고치기 */
.form--sheet { margin: 12px 0 0; max-width: none; gap: 14px; }
.form--sheet input[type=text] { height: 52px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 16px; font: inherit; font-size: 17px; font-weight: 500; color: var(--gray900); }
.form--sheet input[readonly] { color: var(--gray500); }
.sheet__err { min-height: 20px; color: var(--red) !important; font-size: 15px !important; margin-top: 6px !important; }
.sheet form, form.sheet { margin: 0; }

@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .days li { grid-template-columns: 1fr auto; }
  .days__n { grid-column: 1 / 2; }
}
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

.seatmap--admin .seat__name--ghost { color: var(--gray400); font-weight: 600; }
.seatmap--admin .seat--reserved { background: var(--white); box-shadow: inset 0 0 0 1px var(--gray200); }

/* 요일별 신청 */
.minidays { display: inline-flex; gap: 3px; }
.minidays button { width: 30px; height: 30px; border-radius: 8px; background: var(--gray100); color: var(--gray400); font-size: 13px; font-weight: 600; }
.minidays button.is-on { background: var(--blue); color: var(--white); }
.select--small { height: 40px; border-radius: 10px; font-size: 15px; background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; }

/* 고르기 시트 */
.choose-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.choose-custom { display: flex; gap: 8px; margin-top: 10px; }
.choose-custom input { flex: 1; height: 52px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 16px; font: inherit; font-size: 17px; color: var(--gray900); }
.choose-custom input:focus { outline: 2px solid var(--blue); }
#choose .btn--text { margin-top: 8px; align-self: center; }

/* 학생 최근 출석 */
.hist { border-top: 1px solid var(--gray100); padding-top: 12px; }
.hist:empty { display: none; }
.hist__h { font-size: 15px; color: var(--gray600); margin-bottom: 8px; }
.hist__h b { color: var(--gray900); }
.hist__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.hd { width: 30px; height: 36px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1.1; }
.hd small { font-size: 10px; font-weight: 500; opacity: .75; }
.hd--came { background: var(--blue-soft); color: var(--blue); }
.hd--early { background: var(--orange-soft); color: var(--orange); }
.hd--absent { background: var(--red-soft); color: var(--red); }
.hd--excused { background: var(--gray100); color: var(--gray600); }

/* 배치도 아래 */
.board__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--gray500); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 8px; }
.lg:first-child { margin-left: 0; }
.lg--taken { background: var(--blue-soft); }
.lg--out { background: var(--orange-soft); }
.lg--res { background: var(--white); box-shadow: inset 0 0 0 1px var(--gray300); }
.lg--closed { background: repeating-linear-gradient(135deg, var(--gray200) 0 3px, var(--gray50) 3px 6px); }

/* 쉬는 날 */
.offadd { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; }
.offadd input { height: 48px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 14px; font: inherit; font-size: 16px; color: var(--gray900); }
.offadd input:focus { outline: 2px solid var(--blue); }
.offadd .btn { height: 48px; }
.offlist { list-style: none; margin: 0; padding: 0; }
.offlist li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--gray100); font-size: 16px; }
.offlist li:first-child { border-top: 0; }
.offlist li.is-past { color: var(--gray400); }
.offlist b { font-weight: 600; margin-right: 6px; }
.form input[type=text] { height: 52px; border-radius: 14px; border: 0; background: var(--gray100); padding: 0 16px; font: inherit; font-size: 17px; font-weight: 500; color: var(--gray900); }

/* 기간 통계 */
.pstats { margin-bottom: 16px; padding: 18px; border-radius: 18px; background: var(--gray50); }
.pstats__sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.pstats__sum div { background: var(--white); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pstats__sum b { font-size: 24px; }
.pstats__sum span { font-size: 14px; color: var(--gray500); }
.pstats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pstats h4 { margin: 0 0 12px; font-size: 16px; }
.rates--scroll { max-height: 320px; overflow: auto; }
.toplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toplist li { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.toplist button { padding: 0; font-size: 15px; font-weight: 600; text-align: left; }
.toplist small { color: var(--gray500); margin-left: 6px; font-weight: 500; }
.toplist span { color: var(--red); font-weight: 600; }

@media (max-width: 900px) {
  .pstats__grid { grid-template-columns: 1fr; }
  .pstats__sum { grid-template-columns: 1fr 1fr; }
  .offadd { grid-template-columns: 1fr 1fr; }
  .offadd .btn { grid-column: 1 / -1; }
}

/* 배치도 인쇄: 배치도만 A4 가로 한 장에 */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.admin { background: #fff; }
  body.admin > *:not(main), .summary, .seg-tabs, .side, .board__foot .btn, .assign-bar, .tab:not(#t-map) { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .board { display: block; }
  .board__map { padding: 0; box-shadow: none; }
  body.admin main::before { content: attr(data-print-title); display: block; font-size: 16pt; font-weight: 700; margin-bottom: 8mm; }
  .seatmap { zoom: 1 !important; }
  .seatmap--admin { --seat-w: 22mm; --seat-h: 14mm; --gap: 1.2mm; }
  .seat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 미리 알린 학생 */
.planned { list-style: none; margin: 0; padding: 0; }
.planned li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--gray100); font-size: 16px; }
.planned li:first-child { border-top: 0; }
.planned__d { font-weight: 600; font-variant-numeric: tabular-nums; }
.planned small { color: var(--gray500); }
.chip-btn--student { box-shadow: inset 0 0 0 1px var(--blue-soft); }
.chip-btn--student small { color: var(--blue); }
.seatmap--admin .seat__tag--late { color: var(--orange); }

/* 주소 나누기 */
.share { display: flex; gap: 20px; align-items: center; }
.share__qr svg { display: block; width: 120px; height: 120px; }
.share__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.share code { font-size: 15px; background: var(--gray100); padding: 10px 12px; border-radius: 10px; word-break: break-all; }
.form label .select { width: 100%; }

@media (max-width: 700px) {
  .planned li { grid-template-columns: 1fr auto; }
  .share { flex-direction: column; align-items: flex-start; }
}

/* 지정석 고르기 */
.seatfield { display: flex; gap: 8px; align-items: center; }
.seatfield__btn { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--gray100); font-size: 17px; color: var(--gray500); }
.seatfield__btn b { font-size: 15px; color: var(--blue); }
.seatfield__btn.is-set span { color: var(--gray900); font-weight: 700; }
.panel--wide { width: min(1120px, 100%); }
.panel--wide .muted { margin: 0 0 14px; font-size: 15px; min-height: 20px; }
.seatpick__map { display: flex; justify-content: center; overflow: hidden; height: min(560px, calc(100vh - 240px)); }
.seatpick__map .seat.is-taken-fixed { background: var(--white); box-shadow: inset 0 0 0 1px var(--gray200); cursor: default; }
.seatpick__map .seat--free:not(.is-taken-fixed):active { background: var(--blue-soft); }
.seatpick__map .seatmap--admin .seat--free:not(.is-taken-fixed) { background: var(--gray100); color: var(--gray700); }
.seatpick__map .seatmap--admin .seat.is-selected { background: var(--blue); color: var(--white); }
