/*
 * 관리자 화면 — 강사(codingvi.be/admin)와 회원(edu.kebal.in/admin). application.css 의 색 변수를 그대로 쓴다.
 * 표는 칸이 많아 화면이 좁으면 표만 가로로 밀린다.
 */
.adm { padding-block: 32px 72px; display: flex; flex-direction: column; gap: 32px; }
.adm h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: -0.01em; }
.adm h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.adm p { margin: 0; line-height: 1.7; }
.adm section { display: flex; flex-direction: column; gap: 14px; }
.adm-meta { color: var(--muted); font-size: 14px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th,
.adm-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table th { background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 500; }
.adm-table td.adm-wrap { white-space: normal; min-width: 240px; }
.adm-table .adm-num { text-align: right; font-variant-numeric: tabular-nums; }

.adm-pill { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--soft); color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.adm-pill--ok { background: #E7F4EC; color: #146C2E; }
.adm-pill--wait { background: #EEF0FF; color: var(--accent); }
.adm-pill--bad { background: #FDECEC; color: var(--alert); }

.adm-form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.adm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.adm-form input,
.adm-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px; }
.adm-form input:focus-visible,
.adm-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-form .button { align-self: flex-start; }

.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-actions form { margin: 0; }
.adm-actions .button--quiet { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.adm-actions .button--danger { background: var(--bg); color: var(--alert); border: 1px solid var(--line); }

.adm-code { margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-secret { padding: 16px; border: 2px solid var(--accent); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.adm-secret b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; color: var(--accent); }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.adm-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.adm-stat span { color: var(--muted); font-size: 12px; }
.adm-stat b { font-size: 18px; font-variant-numeric: tabular-nums; }

.adm-errors { margin: 0; padding-left: 1.2em; color: var(--alert); font-size: 13px; line-height: 1.6; }
.adm-warnings { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; line-height: 1.6; }
.adm-pager { display: flex; gap: 12px; align-items: center; font-size: 14px; }

/* 발표 화면에 띄우는 edu.kebal.in 첫 화면 */
.adm-stage { display: flex; flex-direction: column; gap: 28px; max-width: 880px; }
.adm-stage h1 { font-size: clamp(30px, 5vw, 46px); }
.adm-stage ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.6; }
.adm-stage .adm-code { font-size: 16px; }

/* 사진·자료 화면 edu.kebal.in/<아이디> — 휴대폰에서 많이 쓴다 */
.edu-drop { border: 2px dashed var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.edu-drop.is-over { border-color: var(--accent); background: #EEF0FF; }
.edu-drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px; text-align: center; }
.edu-drop__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.edu-drop__pick { cursor: pointer; }
.edu-drop__pick b { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 17px; }
.edu-drop__pick:hover b { background: var(--accent-dark); }
.edu-drop__pick--quiet b { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.edu-drop__pick--quiet:hover b { background: var(--soft); }
.edu-drop__hint { color: var(--muted); font-size: 14px; }
.edu-drop:has(input:focus-visible) { border-color: var(--accent); }
.edu-drop__busy { display: flex; flex-direction: column; gap: 6px; color: var(--accent); font-weight: 600; }
.edu-drop__busy ul { margin: 0; padding-left: 1.2em; color: var(--alert); font-weight: 400; text-align: left; }

.adm .edu-qr { display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.edu-qr__code { flex: none; width: 132px; }
.edu-qr__code svg { display: block; width: 100%; height: auto; }
.edu-qr p { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .adm .edu-qr { display: none; } }   /* 휴대폰에서는 이미 휴대폰이다 */

.edu-files { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.edu-file { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.edu-file__thumb { display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; border-radius: 8px; background: var(--soft); overflow: hidden; color: var(--muted); font-weight: 700; text-decoration: none; }
.edu-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.edu-file__name { font-weight: 600; overflow-wrap: anywhere; }
.edu-file form { margin: 0; }
