/* 사이버 신학교 화면 초안 (2026-10-04) — 교회 홈페이지와 별개, 실제 저장·결제 없음 */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');
:root { --navy:#123a7a; --blue:#0880c0; --green:#289050; --plum:#b80878; --orange:#f88830; --ink:#1d2433; --sub:#5b6472; --line:#e6e9f0; --bg:#f6f8fb; --card:#fff; }
* { box-sizing:border-box; }
body { margin:0; font-family:'Nanum Gothic','Noto Sans KR',sans-serif; color:var(--ink); background:var(--bg); font-size:16px; line-height:1.65; word-break:keep-all; }
a { color:var(--blue); text-decoration:none; }
button { font-family:inherit; }
.preview { background:#fff8e6; border-bottom:1px solid #f1dfb0; font-size:13px; padding:8px 16px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.preview b { color:#8a5a00; }
.preview button { border:1px solid #e6cf92; background:#fff; border-radius:999px; padding:4px 12px; font-size:13px; font-weight:700; cursor:pointer; }
.preview button.on { background:#8a5a00; color:#fff; border-color:#8a5a00; }
header.top { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.top-in { max-width:1180px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; gap:16px; }
.brand { display:flex; align-items:center; gap:10px; cursor:pointer; flex-shrink:0; }
.brand img { width:38px; height:38px; }
.brand b { font-size:17px; font-weight:800; line-height:1.2; }
.brand small { display:block; font-size:11px; color:var(--sub); font-weight:700; letter-spacing:.06em; }
nav.main { display:flex; gap:4px; flex:1; overflow-x:auto; scrollbar-width:none; }
nav.main::-webkit-scrollbar { display:none; }
nav.main a { padding:8px 12px; border-radius:8px; color:var(--ink); font-weight:800; font-size:15px; white-space:nowrap; }
nav.main a.on, nav.main a:hover { background:#eaf4fa; color:var(--blue); }
nav.main a .lock { font-size:11px; color:#9aa3b2; margin-left:3px; }
.auth { display:flex; gap:6px; flex-shrink:0; }
.btn { display:inline-block; border:0; border-radius:10px; padding:10px 18px; font-weight:800; font-size:15px; cursor:pointer; background:var(--blue); color:#fff; }
.btn.ghost { background:#fff; color:var(--blue); border:1.5px solid var(--blue); }
.btn.gray { background:#eef1f5; color:var(--ink); }
.btn.green { background:var(--green); } .btn.plum { background:var(--plum); } .btn.sm { padding:6px 12px; font-size:13px; border-radius:8px; }
.btn[disabled] { opacity:.45; cursor:not-allowed; }
main { max-width:1180px; margin:0 auto; padding:24px 16px 60px; }
.layout { display:grid; grid-template-columns:220px 1fr; gap:24px; align-items:start; }
.side { background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; position:sticky; top:84px; }
.side h4 { margin:6px 10px 8px; font-size:13px; color:var(--sub); letter-spacing:.08em; }
.side a { display:block; padding:9px 12px; border-radius:8px; color:var(--ink); font-weight:700; font-size:15px; }
.side a.on { background:#eaf4fa; color:var(--blue); }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; margin-bottom:18px; }
.eb { font-size:12px; font-weight:800; letter-spacing:.18em; color:var(--blue); }
h1.ttl { font-size:30px; margin:4px 0 6px; font-weight:800; line-height:1.25; }
p.lead { color:var(--sub); margin:0 0 14px; }
h2 { font-size:21px; margin:22px 0 10px; font-weight:800; }
h3 { font-size:17px; margin:0; font-weight:800; }
.muted { color:var(--sub); font-size:14px; }
.tag { display:inline-block; font-size:12px; font-weight:800; padding:2px 8px; border-radius:6px; background:#eef1f5; color:var(--sub); }
.tag.blue { background:#eaf4fa; color:var(--blue); } .tag.green { background:#eaf6ee; color:var(--green); } .tag.plum { background:#fbeaf4; color:var(--plum); } .tag.orange { background:#fff1e4; color:#c5641a; }
.tbd { display:inline-block; font-size:12px; font-weight:800; padding:2px 8px; border-radius:6px; background:#fff1e4; color:#c5641a; border:1px dashed #f3b47d; }
table.t { width:100%; border-collapse:collapse; font-size:15px; }
table.t th, table.t td { padding:11px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
table.t th { background:#f7f8fa; font-weight:800; font-size:14px; color:var(--sub); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.item { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff; }
.bar { width:36px; height:4px; border-radius:2px; margin-bottom:10px; background:var(--blue); }
.hero { background:linear-gradient(135deg,#eaf4fa,#f3f8fc); border-radius:18px; padding:44px 28px; margin-bottom:22px; }
.hero h1 { font-size:36px; margin:6px 0 10px; line-height:1.25; }
.hero .slogan { font-size:18px; color:var(--navy); font-weight:800; }
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; counter-reset:s; }
.steps div { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; font-weight:800; }
.steps div::before { counter-increment:s; content:counter(s); display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:13px; margin-right:8px; }
.prog { height:10px; background:#eef1f5; border-radius:99px; overflow:hidden; }
.prog i { display:block; height:100%; background:var(--green); border-radius:99px; }
.player { background:#0d1726; border-radius:14px; aspect-ratio:16/9; display:grid; place-items:center; color:#fff; position:relative; overflow:hidden; }
.player .pbar { position:absolute; left:0; right:0; bottom:0; height:6px; background:rgba(255,255,255,.2); }
.player .pbar i { display:block; height:100%; background:var(--orange); }
.player .ptime { position:absolute; left:14px; bottom:14px; font-size:13px; opacity:.85; }
.flow { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.flow span { padding:6px 12px; border-radius:999px; background:#eef1f5; font-weight:800; font-size:13px; }
.flow span.on { background:var(--blue); color:#fff; }
.flow em { color:#9aa3b2; font-style:normal; }
.notice-box { background:#fff8e6; border:1px solid #f1dfb0; border-radius:12px; padding:14px 16px; font-size:14px; }
.lockbox { text-align:center; padding:50px 20px; }
.lockbox .ic { font-size:40px; }
form.f { display:grid; gap:12px; max-width:460px; }
form.f label { font-weight:800; font-size:14px; }
form.f input, form.f select, form.f textarea { width:100%; padding:11px 12px; border:1px solid #d5dae3; border-radius:10px; font:inherit; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#1d2433; color:#fff; padding:12px 20px; border-radius:12px; font-weight:700; font-size:14px; z-index:50; opacity:0; transition:opacity .2s; pointer-events:none; }
.toast.show { opacity:1; }
footer { border-top:1px solid var(--line); background:#fff; padding:22px 16px; font-size:13px; color:var(--sub); text-align:center; }
@media (max-width: 860px) {
  .top-in { flex-wrap:wrap; gap:8px; } nav.main { order:3; flex-basis:100%; }
  .layout { grid-template-columns:1fr; }
  .side { position:static; display:flex; gap:6px; overflow-x:auto; padding:8px; }
  .side h4 { display:none; } .side a { white-space:nowrap; }
  .hero { padding:30px 18px; } .hero h1 { font-size:27px; } h1.ttl { font-size:24px; }
  .card { padding:18px; }
  table.t { font-size:14px; } table.t th, table.t td { padding:9px 6px; }
}
/* 단계 박스 (2026-10-04) */
.tasks { display:grid; gap:12px; }
.task { border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:#fff; margin-top:12px; }
.tasks .task { margin-top:0; }
.task.mine { border-color:#f3b47d; background:#fffaf4; }
.task-h { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.task-a { margin-top:10px; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
ol.stp { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:18px 22px; }
.st { position:relative; display:flex; flex-direction:column; gap:3px; min-width:104px; padding:10px 12px 10px; border:1.5px solid var(--line); border-radius:10px; background:#f7f8fa; color:#8a93a2; }
.st:not(:last-child)::after { content:'›'; position:absolute; right:-16px; top:50%; transform:translateY(-50%); color:#b3bac6; font-size:20px; font-weight:800; }
.st .no { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:800; background:#e3e7ee; color:#7a8494; }
.st b { font-size:14px; line-height:1.35; color:inherit; }
.st .who { font-size:11px; font-weight:800; color:#7a8494; }
.st .who.green { color:var(--green); } .st .who.plum { color:var(--plum); } .st .who.orange { color:#c5641a; } .st .who.blue { color:var(--blue); }
.st .now { position:absolute; top:-9px; right:8px; font-size:11px; font-weight:800; padding:1px 7px; border-radius:6px; background:var(--blue); color:#fff; }
.st.done { background:#eaf6ee; border-color:#bfe2cb; color:var(--ink); }
.st.done .no { background:var(--green); color:#fff; }
.st.cur { background:#eaf4fa; border-color:var(--blue); color:var(--ink); box-shadow:0 0 0 3px rgba(8,128,192,.12); }
.st.cur .no { background:var(--blue); color:#fff; }
.st.rej { background:#fbeaf4; border-color:var(--plum); color:var(--ink); }
.st.rej .no, .st.rej .now { background:var(--plum); color:#fff; }
@media (max-width: 860px) {
  ol.stp { flex-direction:column; gap:8px; }
  .st { flex-direction:row; align-items:center; gap:10px; min-width:0; padding:9px 12px; }
  .st:not(:last-child)::after { content:'⌄'; right:auto; left:22px; top:auto; bottom:-15px; transform:none; font-size:14px; }
  .st .who { margin-left:auto; }
  .st .now { position:static; }
}
.filebox { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border:1.5px dashed #c9d1dc; border-radius:10px; padding:12px; background:#fafbfd; }
.filebox input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.filebox label.btn { margin:0; }
/* 전자결재 (2026-10-05) */
.mp-like-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:6px; }
.mp-like-tabs a { padding:8px 12px; font-weight:800; font-size:14px; color:var(--sub); border-bottom:3px solid transparent; }
.mp-like-tabs a.on { color:var(--blue); border-bottom-color:var(--blue); }
.mp-like-tabs .cnt { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#c5641a; color:#fff; font-size:12px; }
.doclist { display:grid; }
.docrow { display:block; padding:12px 4px; border-bottom:1px solid var(--line); color:var(--ink); }
.docrow:hover { background:#f7fafd; }
.docrow-h { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:2px; }
.fileline { display:flex; align-items:center; gap:8px; flex-wrap:wrap; border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#fff; }
.fileline .fn { flex:1; min-width:140px; word-break:break-all; }
.fileline .ext { font-size:11px; font-weight:800; background:#eef1f5; color:var(--sub); border-radius:6px; padding:2px 6px; }
.fileline select { padding:6px 8px; border:1px solid #d5dae3; border-radius:8px; font:inherit; }
.docbody { background:#fafbfd; border:1px solid var(--line); border-radius:12px; padding:16px; line-height:1.8; }
.dv-ov { position:fixed; inset:0; background:rgba(15,20,30,.55); z-index:60; display:grid; place-items:center; padding:16px; }
.dv-ov[hidden] { display:none; }
.dv-box { background:#fff; border-radius:14px; width:min(960px, 100%); height:min(92vh, 100%); display:flex; flex-direction:column; overflow:hidden; }
.dv-h { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); }
.dv-h b { word-break:break-all; }
.dv-c { flex:1; overflow:auto; padding:16px; background:#eef1f5; -webkit-overflow-scrolling:touch; }
.dv-page { display:block; margin:0 auto 12px; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.15); max-width:100%; }
.dv-txt { white-space:pre-wrap; background:#fff; padding:16px; border-radius:8px; font-family:inherit; margin:0; }
.dv-doc { background:#fff; padding:24px; border-radius:8px; max-width:820px; margin:0 auto; line-height:1.8; }
.dv-doc table { border-collapse:collapse; } .dv-doc td, .dv-doc th { border:1px solid #ccc; padding:4px 6px; }
.dv-hwp { background:#fff; overflow:auto; }
.dv-ov { overscroll-behavior:contain; }
html.dv-open .dv-c { overscroll-behavior:contain; }
/* ===== 모바일 정리 (2026-10-05) ===== */
@media (max-width: 640px) {
  body { font-size:15px; }
  main { padding:16px 12px 48px; }
  .card { padding:16px 14px; border-radius:12px; }
  h1.ttl { font-size:22px; } h2 { font-size:18px; margin:18px 0 8px; }
  p.lead { font-size:14px; }
  /* 표 → 카드 */
  table.t, table.t tbody, table.t tr, table.t td { display:block; width:100%; }
  table.t thead { display:none; }
  table.t tr { border:1px solid var(--line); border-radius:12px; padding:6px 12px; margin-bottom:10px; background:#fff; }
  table.t td { display:flex; justify-content:space-between; align-items:center; gap:12px; border:0; border-bottom:1px dashed #edf0f4; padding:8px 0; text-align:right; min-height:36px; word-break:keep-all; overflow-wrap:anywhere; }
  table.t td:last-child { border-bottom:0; }
  table.t td::before { content:attr(data-label); font-weight:800; color:var(--sub); font-size:13px; text-align:left; flex-shrink:0; max-width:42%; }
  table.t td[data-label=""] { justify-content:flex-end; }
  table.t td[data-label=""]::before { display:none; }
  table.t td > div { flex:1; max-width:62%; }
  table.t td input { max-width:90px; }
  /* 터치하기 쉬운 크기 */
  .btn { min-height:44px; }
  .btn.sm { min-height:38px; padding:8px 14px; font-size:14px; }
  form.f input, form.f select, form.f textarea, select, td input { min-height:42px; font-size:16px; }
  .preview button { min-height:34px; }
  .task-a .btn, .task-a .btn.sm { flex:1 1 auto; text-align:center; }
  .task-a { gap:8px; }
  /* 단계 박스 글자 */
  .st .who, .st .now, .fileline .ext, .tag { font-size:12px; }
  .st b { font-size:15px; }
  /* 파일 줄 */
  .fileline { gap:8px; }
  .fileline .fn { flex-basis:100%; }
  .fileline .btn { flex:1; text-align:center; }
  .fileline select { flex:1; min-height:42px; }
  .filebox { flex-direction:column; align-items:stretch; }
  .filebox label.btn { text-align:center; }
  .filebox #up_info, .filebox #dc_upmsg { word-break:break-all; }
  /* 문서함 */
  .mp-like-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .mp-like-tabs::-webkit-scrollbar { display:none; }
  .mp-like-tabs a { white-space:nowrap; padding:10px 12px; }
  .docrow-h { flex-wrap:wrap; }
  .notice-box select { min-height:40px; }
  .dv-ov { padding:0; }
  .dv-box { border-radius:0; height:100%; }
  .steps { grid-template-columns:1fr; }
  .hero h1 { font-size:24px; }
  .grid { grid-template-columns:1fr; }
}
.layout > div, .layout > aside, .card, .doclist, .docrow { min-width:0; }
.docrow-h b { min-width:0; overflow-wrap:anywhere; }
@media (max-width: 640px) {
  /* 초안 안내 띠: 한 줄 가로 스크롤 */
  .preview { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:8px 12px; gap:6px; }
  .preview::-webkit-scrollbar { display:none; }
  .preview .pv-note { display:none; }
  .preview b, .preview button { flex-shrink:0; white-space:nowrap; }
  .preview button[onclick*="reset"] { margin-left:0 !important; }
  /* 한 줄형 표 (주차 목록 등) */
  table.t.compact tr { display:flex; align-items:center; gap:10px; padding:8px 12px; margin-bottom:6px; }
  table.t.compact td { display:block; width:auto; border:0; padding:0; min-height:0; text-align:left; }
  table.t.compact td::before { display:none; }
  table.t.compact td:nth-child(1) { flex:0 0 auto; font-weight:800; }
  table.t.compact td:nth-child(2) { flex:1; max-width:none; }
  table.t.compact td:nth-child(2) > div { max-width:none; }
  table.t.compact td:last-child { flex:0 0 auto; }
  /* 헤더 정리 */
  .top-in { padding:10px 12px; }
  .brand b { font-size:16px; }
  .auth .tag { font-size:12px; }
}
@media (max-width: 640px) {
  /* 상단: 학교 이름 + 로그인 표시는 항상 한 줄, 메뉴는 그 아래 한 줄 (역할마다 높이가 달라지지 않게) */
  .top-in { flex-wrap:wrap; row-gap:6px; }
  .brand { flex:1 1 0; min-width:0; }
  .brand > div { min-width:0; }
  .brand b, .brand small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .auth { flex:0 0 auto; margin-left:auto; align-items:center; }
  .auth .long { display:none; }
  .auth .btn.sm { min-height:36px; padding:6px 12px; }
  nav.main { order:3; flex-basis:100%; }
}
/* 알림 종 (2026-10-05 초안) */
.notif { position:relative; flex-shrink:0; }
.notif .bell { position:relative; border:1px solid var(--line); background:#fff; border-radius:10px; width:40px; height:38px; font-size:18px; cursor:pointer; }
.notif .bell-n { position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#d93a3a; color:#fff; font-size:12px; font-weight:800; display:grid; place-items:center; }
.notif .bell-panel { position:absolute; right:0; top:46px; width:min(360px, calc(100vw - 24px)); max-height:70vh; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(20,30,50,.15); z-index:40; }
.notif .bell-panel[hidden] { display:none; }
.notif .bell-h { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); }
.notif .bell-i { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; padding:10px 12px; border-bottom:1px solid #f0f2f6; color:var(--ink); }
.notif .bell-i:hover { background:#f7fafd; }
.notif .bell-t { flex:1 1 60%; min-width:0; overflow-wrap:anywhere; font-weight:700; }
.notif .bell-note { font-size:12px; padding:10px 12px; margin:0; }
@media (max-width:640px) { .notif { order:2; } .auth { order:2; } nav.main { order:3; } .notif .bell-panel { position:fixed; left:12px; right:12px; top:110px; width:auto; } }

/* 2026-10-05 아이콘을 교회 홈페이지 스타일(채운 단색 SVG)로, 로고 제거 */
.notif .bell { display:grid; place-items:center; color:#5b6472; font-size:0; }
.notif .bell:hover { color:var(--green); border-color:#b9e0c8; background:#f3faf6; }
.lock svg { vertical-align:-1px; margin-left:3px; color:#9aa3b0; }
.lockbox .ic { color:#9aa3b0; }
.brand b { font-size:19px; letter-spacing:.01em; color:var(--green); }

/* 2026-10-05 로고 = 'BCA' 글자, 진청색 */
.bca-logo { font-family:Georgia,'Times New Roman',serif; font-weight:900; font-size:26px; letter-spacing:.04em; color:#0f2a5c; line-height:1; }
.brand b { color:#0f2a5c; font-size:15px; font-weight:700; }
@media (max-width:768px) { .bca-logo { font-size:23px; } .brand b { font-size:13px; } }

/* 2026-10-05 역할 표시: 박스 빼고 머리 위 색 띠 + 로고 아래 색 글자 (학생 초록·교수 파랑·관리자 주황·최고관리자 자주) */
body { --role:transparent; }
body[data-role="student"] { --role:#289050; } body[data-role="prof"] { --role:#0880c0; }
body[data-role="admin"] { --role:#e07a1f; } body[data-role="super"] { --role:#b80878; }
header.top { border-top:4px solid var(--role); }
.brand small.role-line { display:block; font-size:12px; font-weight:700; letter-spacing:0; color:var(--role); line-height:1.3; }
.brand small.role-line:empty { display:none; }
.auth .btn.sm, .notif .bell { height:38px; min-height:38px; box-sizing:border-box; }
.auth .btn.sm { display:inline-flex; align-items:center; padding:0 14px; }

/* 2026-10-05 BCA 로고 굵은 고딕체 */
.bca-logo { font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif; font-weight:900; letter-spacing:.02em; }

/* 2026-10-05 글꼴을 교회 홈페이지와 동일하게 (나눔고딕 → 맑은고딕 순, 메뉴 700·제목 800) */
body, button, input, select, textarea { font-family:"Nanum Gothic", NanumGothic, "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif; }
nav.main a { font-weight:700; }
h1, h2, h1.ttl { font-weight:800; }

/* 2026-10-06 실시간 강의 (live.js) — 휴대폰: 크게 1명 + 아래 줄, 컴퓨터: 칸 나눔, 휴대폰 카메라 역할: 내 모습만 */
.lv-list { display:grid; gap:10px; }
.lv-item { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.lv-item b { display:block; font-size:16px; } .lv-item small { display:block; color:var(--sub); font-size:13px; margin:2px 0 4px; }
.lv-room { position:fixed; inset:0; z-index:1000; background:#0b1220; color:#fff; display:flex; flex-direction:column; }
.lv-top { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; padding-top:calc(12px + env(safe-area-inset-top)); font-size:15px; }
.lv-top span { color:#9fb0c8; font-size:13px; }
.lv-camnote { margin:0 12px 6px; padding:8px 12px; border-radius:10px; background:#17305c; color:#cfe0ff; font-size:13px; text-align:center; }
.lv-body { flex:1; min-height:0; padding:6px; display:flex; flex-direction:column; gap:6px; }
.lv-body.grid { display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; }
.lv-body.grid[data-n="1"] { grid-template-columns:1fr; }
.lv-body.grid[data-n="5"], .lv-body.grid[data-n="6"], .lv-body.grid[data-n="7"], .lv-body.grid[data-n="8"], .lv-body.grid[data-n="9"] { grid-template-columns:repeat(3,1fr); }
.lv-body.grid[data-n="10"], .lv-body.grid[data-n="11"], .lv-body.grid[data-n="12"] { grid-template-columns:repeat(4,1fr); }
.lv-main { flex:1; min-height:0; display:flex; } .lv-main .lv-tile { flex:1; }
.lv-strip { flex:0 0 112px; display:flex; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.lv-strip .lv-tile { flex:0 0 84px; height:112px; }
.lv-strip .lv-off { width:40px; height:40px; font-size:18px; } .lv-strip .lv-name { font-size:10px; left:4px; bottom:4px; padding:2px 5px; max-width:76px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lv-body.solo .lv-tile { flex:1; }
.lv-tile { position:relative; background:#1a2436; border-radius:12px; overflow:hidden; min-height:0; display:flex; align-items:center; justify-content:center; border:2px solid transparent; cursor:pointer; }
.lv-tile.speak { border-color:#3ddc84; }
.lv-tile video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } .lv-tile video.mirror { transform:scaleX(-1); }
.lv-main .lv-tile video, .lv-body.grid .lv-tile.teacher video { object-fit:contain; background:#000; }
.lv-tile:not(.has-video) video { display:none; }
.lv-off { width:64px; height:64px; border-radius:50%; background:#2c3a55; display:grid; place-items:center; font-size:26px; font-weight:800; }
.lv-tile.has-video .lv-off { display:none; }
.lv-name { position:absolute; left:8px; bottom:8px; z-index:2; background:rgba(0,0,0,.55); padding:3px 8px; border-radius:8px; font-size:12px; }
.lv-wait { margin:auto; text-align:center; color:#9fb0c8; font-size:16px; }
.lv-bar { display:flex; justify-content:center; gap:16px; padding:14px; padding-bottom:calc(14px + env(safe-area-inset-bottom)); background:rgba(0,0,0,.35); }
.lv-btn { width:54px; height:54px; border-radius:50%; border:0; background:#5a2430; color:#fff; display:grid; place-items:center; cursor:pointer; }
.lv-btn.on, .lv-btn.flip { background:#3b4d70; } .lv-btn.flip.on { background:#1e7a4c; } .lv-btn.leave { background:#d93a3a; } .lv-btn:disabled { opacity:.4; }
.lv-qr { position:absolute; inset:0; background:rgba(5,10,20,.75); display:grid; place-items:center; z-index:5; padding:16px; }
.lv-qr-card { background:#fff; color:var(--ink); border-radius:16px; padding:20px; width:min(360px,100%); text-align:center; }
.lv-qr-card b { font-size:18px; } .lv-qr-card p { color:var(--sub); font-size:14px; margin:8px 0; } .lv-qr-card p.small { font-size:12px; }
.lv-qr-img { width:220px; height:220px; margin:8px auto; display:grid; place-items:center; } .lv-qr-img svg { width:100%; height:100%; }
.lv-qr-card input { width:100%; font-size:11px; padding:6px; border:1px solid var(--line); border-radius:8px; margin-top:4px; }

/* 2026-10-06 게시판·자료 (bca.js) */
.bd-list { display:flex; flex-direction:column; border-top:1px solid var(--line); }
.bd-item { display:flex; flex-direction:column; gap:2px; padding:12px 4px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
a.bd-item:hover { background:#f7fafd; }
.bd-t { font-weight:700; font-size:16px; overflow-wrap:anywhere; } .bd-t a { color:var(--ink); }
.bd-m { color:var(--sub); font-size:13px; } .bd-c { color:var(--blue); font-weight:700; }
.bd-body { font-size:16px; line-height:1.75; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.bd-files { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding:12px; background:#f7f9fc; border-radius:10px; }
.bd-files a { color:var(--ink); }
.bd-cmt { padding:10px 0; border-bottom:1px solid #f0f2f6; font-size:15px; }
.lnk { border:0; background:none; color:var(--sub); text-decoration:underline; cursor:pointer; font:inherit; font-size:13px; padding:0 4px; }
.me-name { align-self:center; font-size:13px; font-weight:700; color:var(--sub); margin-right:4px; white-space:nowrap; }
.lv-vol { font-size:13px; font-weight:800; }
.lv-name { display:flex; align-items:center; gap:4px; } .lv-mute { display:inline-flex; color:#ff8a8a; } .lv-mute svg { width:14px; height:14px; }
.lv-sound { position:absolute; left:50%; top:64px; transform:translateX(-50%); z-index:6; border:0; border-radius:999px; background:#f0b429; color:#1d2433; font-weight:800; padding:10px 16px; font-size:14px; }
.lv-inapp { position:absolute; left:12px; right:12px; top:56px; z-index:7; background:#fff7e0; color:#3b2f0a; border-radius:12px; padding:12px 14px; font-size:14px; line-height:1.5; box-shadow:0 6px 20px rgba(0,0,0,.3); display:flex; flex-direction:column; gap:6px; }
.lv-inapp div { display:flex; gap:8px; justify-content:flex-end; } .lv-inapp button { border:0; border-radius:8px; padding:7px 12px; font-weight:700; background:#0f2a5c; color:#fff; } .lv-inapp button + button { background:#ddd; color:#333; }
/* 연결 상태: 칸 오른쪽 위 점 (약함=노랑, 나쁨=빨강) */
.lv-tile::after { content:''; position:absolute; top:8px; right:8px; width:10px; height:10px; border-radius:50%; background:transparent; z-index:3; }
.lv-tile[data-q="poor"]::after { background:#f0b429; box-shadow:0 0 0 2px rgba(0,0,0,.35); }
.lv-tile[data-q="lost"]::after { background:#e5484d; box-shadow:0 0 0 2px rgba(0,0,0,.35); }
/* 2026-10-06 서버 녹화 */
.lv-btn.rec-on { background:#5a2430; animation:recblink 1.2s infinite; } @keyframes recblink { 50% { opacity:.55; } }
.lv-recbadge { background:#d93a3a; color:#fff; font-size:12px; font-weight:800; padding:3px 9px; border-radius:999px; margin-left:8px; }
.rec-list { display:flex; flex-direction:column; gap:10px; }
.rec-item { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.rec-h { display:flex; justify-content:space-between; gap:8px; align-items:center; } .rec-h b { font-size:16px; }
.rec-m { display:flex; flex-wrap:wrap; gap:4px 12px; color:var(--sub); font-size:13px; margin-top:4px; }
.rec-p { color:var(--sub); font-size:13px; margin-top:4px; }
.rec-a { display:flex; gap:8px; align-items:center; margin-top:10px; }
/* 2026-10-07 과제·채점·정정 (assign.js) */
.asg-list { display:flex; flex-direction:column; gap:8px; }
.asg-item { display:block; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; color:var(--ink); text-decoration:none; }
a.asg-item:hover { background:#f7fafd; }
.asg-t b { font-size:16px; } .asg-m { color:var(--sub); font-size:13px; margin-top:4px; display:flex; flex-wrap:wrap; gap:4px 6px; align-items:center; }
.asg-fb { margin-top:6px; font-size:14px; background:#f6f9fc; border-radius:8px; padding:6px 10px; }
.asg-sub { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line); font-size:14px; display:flex; flex-direction:column; gap:4px; }
.asg-btns { display:flex; gap:8px; justify-content:flex-end; align-items:center; flex-wrap:wrap; margin-top:10px; } .asg-btns .muted { margin-right:auto; font-size:13px; }
.gr { display:inline-block; min-width:30px; text-align:center; font-weight:800; border-radius:6px; padding:1px 6px; } .gr.final { background:#0f2a5c; color:#fff; } .gr.draft { background:#fff3d6; color:#7a5300; border:1px dashed #e0b84a; }
.asg-modal { position:fixed; inset:0; z-index:1200; background:rgba(10,18,32,.55); display:grid; place-items:center; padding:12px; }
.asg-card { background:#fff; color:var(--ink); border-radius:16px; padding:16px; width:min(640px,100%); max-height:92vh; overflow:auto; display:flex; flex-direction:column; gap:8px; }
.asg-card textarea { width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:10px; padding:10px; font:inherit; font-size:15px; line-height:1.6; }
.asg-h { display:flex; flex-direction:column; gap:2px; } .asg-h b { font-size:17px; } .asg-view { white-space:normal; line-height:1.7; max-height:60vh; overflow:auto; }
.grd-list { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.grd-row { display:flex; flex-wrap:wrap; gap:8px 14px; justify-content:space-between; border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.grd-who { min-width:200px; flex:1; } .grd-in { display:flex; gap:6px; align-items:center; flex-wrap:wrap; } .grd-in .fb { min-width:160px; flex:1; } .grd-in select, .grd-in input { padding:7px 8px; border:1px solid var(--line); border-radius:8px; font:inherit; font-size:14px; }
.fx-thread { display:flex; flex-direction:column; gap:8px; } .fx-msg { border-radius:12px; padding:10px 12px; max-width:88%; } .fx-msg.stu { background:#f1f4fa; align-self:flex-start; } .fx-msg.prof { background:#e8f5ee; align-self:flex-end; } .fx-h { font-size:13px; color:var(--sub); margin-bottom:4px; }
.asg-new { margin:12px 0; } .asg-new summary { cursor:pointer; font-weight:700; color:var(--blue); }
.btn.plum { background:var(--plum); color:#fff; }
@media (max-width:640px) { .grd-in { width:100%; } .grd-in .fb { min-width:0; } }
.asg-card select, .asg-card input[type=file] { width:100%; box-sizing:border-box; padding:8px; border:1px solid var(--line); border-radius:10px; font:inherit; font-size:14px; }
@media (max-width:420px) { .lv-bar { gap:10px; } .lv-btn { width:48px; height:48px; } }
.asg-files { display:flex; flex-direction:column; gap:3px; margin-top:6px; font-size:14px; } .asg-files a { color:var(--blue); overflow-wrap:anywhere; }
.asg-memo { margin-top:6px; font-size:14px; color:var(--ink); background:#f7f9fc; border-radius:8px; padding:6px 10px; white-space:pre-wrap; }
.asg-fbx { margin:4px 0 2px 14px; font-size:14px; background:#eef7f1; border-left:3px solid var(--green); border-radius:6px; padding:5px 10px; color:var(--ink); } .asg-fbx b { color:var(--green); font-size:12px; margin-right:4px; }
.asg-file { padding:2px 0; }
/* 2026-10-10 교회 홈피 BCA 메뉴와 같은 색 컨셉: 바탕 아주 옅은 회청 #f2f5f9, 첫 화면 판 진청 #123a7a + 흰 글씨, 그라데이션 없음 (롤백: 이 블록 삭제) */
:root { --bg:#f2f5f9; }
.hero { background:#123a7a; color:#fff; }
.hero h1, .hero .slogan { color:#fff; }
.hero .eb { color:#c9d6ec; }
.hero .lead { color:#dfe7f3; }
.hero .btn { background:#fff; color:#123a7a; border-color:#fff; }
.hero .btn:hover { background:#eaf0f8; }
.hero .btn.ghost { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background:rgba(255,255,255,.12); }
/* 2026-10-10 버튼 모서리 통일: 교회 홈페이지·상담센터와 같은 10px */
.btn, .btn.sm { border-radius:10px; }
/* 2026-10-10 교수 채점 화면: 학생이 쓴 글·메모를 누르지 않아도 바로 보이게 */
.asg-body-inline { margin-top:8px; background:#f7f9fc; border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.asg-body-inline .lb { font-size:12px; font-weight:800; color:var(--sub); margin-bottom:4px; } .asg-body-inline .lb small { font-weight:600; }
.asg-body-inline .tx { font-size:15px; line-height:1.7; color:var(--ink); max-height:320px; overflow:auto; white-space:normal; overflow-wrap:anywhere; }
.grd-row .grd-who { min-width:0; flex:1 1 360px; }

/* ===== 2026-10-11 디자인 시안 2-1 적용 (aihelper, 성기민 님 보약 #2680bf173105) =====
   남색 + 십자가 빨강, 글꼴 Noto Sans KR 하나, 상자 최소·선으로 나눔, 화면 폭 끝까지 이어지는 연한 띠로 구역.
   메뉴 = 공개 4개 + '내 강의실'(로그인 뒤 수강신청·강의실·성적·마이페이지). 기능·주소는 그대로.
   롤백: 이 블록 삭제 + app.js·index.html 를 .bak_20261011_design 으로 */
:root { --navy:#1d3a72; --blue:#1d3a72; --mark:#b3282f; --ink:#111a2e; --sub:#5b6578; --line:#e3e7ee; --bg:#ffffff; --soft:#f4f6f9; --tint:#eef2f9; --card:#fff; }
body, button, input, select, textarea { font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif; }
body { background:var(--bg); line-height:1.7; }
a { color:var(--navy); }
h1, h2, h1.ttl { font-weight:900; letter-spacing:-.02em; }
h2 { font-weight:700; }
/* 머리 */
header.top { border-bottom:0; box-shadow:0 1px 0 var(--line); background:var(--bg); }
.top-in { max-width:1040px; min-height:72px; padding:0 20px; gap:28px; }
.bca-logo { color:var(--navy); font-size:22px; letter-spacing:.02em; display:inline-flex; align-items:center; gap:8px; }
.bca-logo i { width:3px; height:18px; background:var(--mark); display:inline-block; position:relative; flex-shrink:0; }
.bca-logo i::after { content:""; position:absolute; left:-5px; top:5px; width:13px; height:3px; background:var(--mark); }
.brand b { color:var(--sub); font-size:12px; font-weight:500; }
nav.main { gap:22px; }
nav.main a { padding:6px 0; border-radius:0; color:var(--sub); font-weight:700; font-size:15px; background:none; }
nav.main a.on, nav.main a:hover { background:none; color:var(--ink); }
nav.main a.on { box-shadow:inset 0 -2px 0 var(--ink); }
.auth { align-items:center; gap:14px; }
.auth a.login, .auth .me-name { font-size:14.5px; font-weight:700; color:var(--ink); }
.auth .me-name { color:var(--sub); font-weight:500; }
.auth .out { font-size:14px; color:var(--sub); cursor:pointer; background:none; border:0; padding:0; font-weight:700; }
/* 단추: 남색 알약 */
.btn, .btn.sm { border-radius:999px; background:var(--navy); color:#fff; font-weight:700; }
.btn { padding:10px 20px; }
.btn.sm { padding:7px 16px; font-size:14px; }
.btn.ghost { background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn.gray { background:var(--soft); color:var(--ink); }
.txt { font-weight:700; color:var(--navy); }
/* 본문·상자 */
main { max-width:1040px; padding:0 20px 64px; }
.card { border-radius:16px; border-color:var(--line); }
.eb { color:var(--mark); letter-spacing:.14em; }
.side { border-radius:16px; top:88px; }
.side a.on { background:var(--tint); color:var(--navy); }
.side h4.grp { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.side h4.grp:first-child { margin-top:6px; padding-top:0; border-top:0; }
table.t th { color:var(--sub); }
/* 연한 띠: 화면 폭 끝까지 */
.band { box-shadow:0 0 0 100vmax var(--b); clip-path:inset(0 -100vmax); background:var(--b); }
.band.tint { --b:var(--tint); } .band.soft { --b:var(--soft); }
/* 홈 */
.h2-hero { padding-block:72px 40px; }
.h2-hero h1 { font-weight:900; font-size:clamp(32px, 6vw, 54px); line-height:1.22; letter-spacing:-.03em; margin:0 0 18px; color:var(--ink); }
.h2-hero h1 span { color:var(--mark); }
.h2-hero p { color:var(--sub); font-size:17.5px; max-width:34em; margin:0 0 28px; }
.h2-hero .acts { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.h2-termwrap { padding-block:0 56px; }
.h2-term { background:var(--bg); border-radius:16px; padding:22px 26px; display:flex; flex-wrap:wrap; gap:14px 40px; align-items:center; box-shadow:0 1px 0 var(--line), 0 8px 24px rgba(17,26,46,.06); }
.h2-term .stt { font-weight:700; color:var(--mark); font-size:14px; }
.h2-term .stt::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--mark); margin-right:8px; vertical-align:1px; }
.h2-term h2 { margin:2px 0 0; font-size:20px; }
.h2-term dl { display:flex; gap:32px; margin:0; flex-wrap:wrap; }
.h2-term dt { font-size:13px; color:var(--sub); }
.h2-term dd { margin:0; font-weight:700; font-variant-numeric:tabular-nums; }
.h2-term .go { margin-left:auto; }
.h2-s { padding-block:52px; }
.h2-s + .h2-s { padding-block:52px 64px; }
.h2-s h2.t { font-size:22px; margin:0 0 18px; display:flex; justify-content:space-between; align-items:baseline; }
.h2-s h2.t a { font-size:14px; font-weight:700; color:var(--sub); }
.h2-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--ink); }
.h2-list li { display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); align-items:baseline; }
.h2-list li b { font-weight:700; font-size:17px; }
.h2-list li span.m { color:var(--sub); font-size:14.5px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.h2-list li .c { min-width:0; color:var(--ink); }
.band.soft .h2-list li { border-bottom-color:#d6dbe4; }
/* 공개 하위 화면: 띠 제목 + 탭, 상자 없이 */
.pg { padding-block:48px 0; margin-bottom:36px; }
.pg .crumb { font-size:13.5px; color:var(--sub); }
.pg h1 { font-size:clamp(28px, 4.6vw, 40px); font-weight:900; letter-spacing:-.02em; margin:6px 0 20px; }
.pg .tabs { display:flex; gap:24px; overflow-x:auto; scrollbar-width:none; }
.pg .tabs a { color:var(--sub); font-weight:700; padding:10px 0; white-space:nowrap; }
.pg .tabs a.on { color:var(--ink); box-shadow:inset 0 -2px 0 var(--ink); }
.pgbody > .card { background:none; border:0; border-radius:0; padding:0; box-shadow:none; }
.pgbody p.lead { font-size:17px; margin-bottom:24px; }
.pgbody table.t { border-top:1px solid var(--ink); }
.pgbody table.t th, .pgbody table.t td { padding:15px 12px 15px 0; }
.pgbody .grid .item { border-radius:14px; }
/* 바닥 */
footer { background:var(--soft); color:var(--sub); font-size:13.5px; padding:28px 20px; text-align:left; border-top:0; }
footer .fin { max-width:1000px; margin:0 auto; display:flex; flex-wrap:wrap; gap:4px 20px; }
footer .fin b { color:var(--ink); }
@media (max-width:760px) {
  .top-in { min-height:0; padding:10px 16px; gap:10px; }
  nav.main { gap:18px; }
  .h2-hero { padding-block:44px 28px; }
  .h2-term .go { margin-left:0; }
  .h2-list li { flex-direction:column; gap:2px; }
  .pg { padding-block:32px 0; margin-bottom:24px; }
}
#view > .card:first-child { margin-top:32px; }
