:root {
  --bg: #f6f7f9; --panel: #fff; --ink: #111827; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2563eb; --danger: #dc2626; --ok: #059669; --warn: #b45309; --absent: #e5e7eb;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password], input[type=number], textarea, select { border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 8px; background: #fff; }
.mock-banner { background: #fef3c7; color: #92400e; text-align: center; padding: 4px; font-weight: 600; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* 출석 박스 (조회 페이지·관리자 현황 공용) */
.groups { display: flex; flex-direction: column; gap: 14px; }
.group h3 { margin: 0 0 6px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.group h3 .swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.boxes { display: flex; flex-wrap: wrap; gap: 6px; }
.box { position: relative; min-width: 92px; padding: 8px 10px; border-radius: 6px; background: var(--absent); color: #374151; border: 2px solid transparent; font-size: 14px; text-align: center; }
.box.on { color: #fff; font-weight: 700; border-color: rgba(0,0,0,.35); }
.box.on::before { content: "✓ "; }
.box.late { outline: 2px dashed var(--warn); }
.box.manual::after { content: "수기"; position: absolute; top: -7px; right: -4px; font-size: 10px; background: #111827; color: #fff; border-radius: 4px; padding: 0 3px; }
