/* kupst-edu — 모바일 우선. 글씨는 크게(고령 조합원), 누르는 곳은 44px 이상. */
:root {
  --fg: #1b1f24; --muted: #6a737d; --line: #e3e6ea; --bg: #f6f7f9; --card: #fff;
  --brand: #0b5cad; --brand-2: #e8f1fb; --ok: #1a7f37; --ok-bg: #e6f4ea; --warn: #9a6700; --warn-bg: #fff8e1; --bad: #c62828;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--brand); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { color: var(--fg); text-decoration: none; font-size: 18px; }
.brand b { color: var(--brand); }
.brand small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.nav a { text-decoration: none; }
.muted { color: var(--muted); }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1200px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.flash { background: var(--brand-2); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.error { background: #fdecea; color: var(--bad); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c9cfd6; border-radius: 10px; background: #fff;
}
textarea { min-height: 80px; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 12px 18px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; min-height: 46px; text-align: center; }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: 6px 12px; min-height: 0; font-size: 14px; }
.btn.danger { background: var(--bad); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 16px; }

/* 진도 막대 */
.bar { height: 10px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.bar.done > i { background: var(--ok); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.doing { background: var(--brand-2); color: var(--brand); }

/* 영상 목록 */
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { margin-bottom: 10px; }
.vitem { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; }
.vitem:active { background: var(--brand-2); }
.vitem .t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; font-weight: 600; }
.vitem .s { font-size: 14px; color: var(--muted); margin-top: 6px; }
.done-box { background: var(--ok-bg); color: var(--ok); border-radius: var(--r); padding: 18px; margin-bottom: 16px; text-align: center; }
.done-box strong { display: block; font-size: 20px; margin-bottom: 6px; }

/* 플레이어 */
.player { background: #000; border-radius: var(--r); overflow: hidden; margin: 0 -16px 12px; }
@media (min-width: 720px) { .player { margin: 0 0 12px; } }
.player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.player.yt { position: relative; aspect-ratio: 16 / 9; }
.player.yt iframe, .player.yt #yt, .player.yt #ytpv { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.speed { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.speed button { font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 99px; border: 1px solid #c9cfd6; background: #fff; min-width: 56px; }
.speed button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(20,20,20,.9); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; z-index: 10; max-width: 90vw; text-align: center; }
.status-line { font-size: 15px; color: var(--muted); }

/* 관리 표 */
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f2f5; font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filters > * { width: auto; }
.filters input, .filters select { width: auto; min-width: 140px; padding: 8px 10px; }
.pager { display: flex; gap: 8px; margin: 12px 0; }
.is-admin body, .is-admin { font-size: 16px; }

/* 2026-11-24 — 로그인 두 갈래 · POST 나가기 · 대상 고르기 */
form.inline { display: inline; margin: 0; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.checks input { width: auto; }
