/* share 전용 부품 (SHARE.md 3.3): 드롭존 · 파일 줄 · 파일 유형 칩 · 올리기 진행률 · 탭 점 배지.
   색·글꼴은 packages/ui 토큰(theme.css)만 쓴다 — 새 색을 만들지 않는다. 다른 사이트도 쓰게 되면 packages/ui 로 올린다.
   불러오는 순서: style.css → theme.css → v3.css → share.css */

.share-main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.share-main > h1 { margin: 0 0 6px; font-size: 30px; color: var(--navy); letter-spacing: -0.02em; }
.share-main > .lead { margin: 0 0 22px; color: var(--muted); }
@media (max-width: 560px) {
  .share-main { padding: 20px 16px 48px; }
  .share-main > h1 { font-size: 24px; }
}

/* 드롭존 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 150px; padding: 24px 16px; text-align: center; cursor: pointer;
  background: var(--surface); border: 2px dashed var(--sky); border-radius: var(--radius);
  color: var(--navy); transition: background .15s;
}
.dropzone:hover, .dropzone:focus-visible { background: var(--type-choice-soft); outline: none; }
.dropzone.drag { background: var(--type-choice-soft); border-style: solid; }
.dropzone .dz-icon { font-size: 34px; line-height: 1; }
.dropzone .dz-title { font-family: var(--font-head); font-weight: 900; font-size: 18px; }
.dropzone .dz-sub { font-size: 13px; color: var(--muted); }
.dropzone input[type=file] { display: none; }
.dropzone.off { cursor: not-allowed; opacity: .55; }

/* 파일 목록 */
.flist, .uplist { list-style: none; margin: 0; padding: 0; }
.frow, .uprow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); min-width: 0;
}
.frow:last-child, .uprow:last-child { border-bottom: 0; }
.fmain { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fname { font-family: var(--font-body); font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.fname .fx { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.fmeta { font-size: 12px; color: var(--muted); }
.factions { flex: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; margin-left: auto; }
/* 삭제 확인('정말 지울까요? [삭제] [취소]')이 열리면 버튼 줄을 아래 한 줄로 — 좁은 화면에서 이름이 한 글자 폭으로 눌리지 않게 */
.factions:has(.ui-inline) { flex: 1 0 100%; }
.fempty { margin: 0; padding: 28px 8px; text-align: center; color: var(--muted); }
.fgroup { margin: 18px 0 4px; font-family: var(--font-head); font-weight: 900; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.fgroup:first-child { margin-top: 0; }
.fgroup .fzip { margin-left: 8px; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0; }

/* 파일 유형 칩: 코드 / 문서 / 그 밖 */
.fchip {
  flex: none; width: 46px; height: 34px; display: grid; place-items: center; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: var(--type-choice-soft); color: var(--navy);
}
.fchip.code { background: var(--type-code-soft); color: var(--type-code); }
.fchip.doc { background: var(--type-short-soft); color: var(--type-short); }

/* 새 파일 점(amber) — 탭·파일 줄 */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.tab .dot { margin-left: 4px; }
.frow.is-new { background: linear-gradient(90deg, var(--warn-soft), transparent 60%); }

/* 올리기 진행률: 진행 sky / 완료 ok-strong / 실패 bad */
.uplist:empty { display: none; }
.uplist { margin-top: 12px; }
.upbar { display: block; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin: 3px 0 1px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--sky); transition: width .2s; }
.uprow.done .upbar i { background: var(--ok-strong); }
.uprow.done [data-msg] { color: var(--ok); font-weight: 700; font-size: 14px; }   /* '✓ 선생님께 냈어요' — 제출 끝을 분명히 (학생들이 [내려받기]를 확인 버튼으로 누름, 2026-10-17) */
.uprow.fail .upbar i { background: var(--bad); }
.uprow.fail [data-msg] { color: var(--bad); }

/* 파일함 카드 + 탭 */
.box-card { margin-top: 22px; padding: 0; overflow: hidden; }
.box-card .tabs { border-top: 0; padding: 0 8px; overflow-x: auto; }
.box-card .tab { white-space: nowrap; }
.box-body { padding: 10px 18px 16px; }
.box-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 18px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .box-body { padding: 8px 12px 12px; }
  .frow { gap: 10px; }
  .fchip { width: 40px; }
}

/* 관리자 학생 목록 */
.st-table td, .st-table th { white-space: nowrap; }
.st-table td:first-child { white-space: normal; }
.st-table tr.off td { color: var(--muted); }
.warn-line { margin: 0 0 12px; padding: 10px 14px; background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); font-size: 14px; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; }
.pick-list label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.share-foot { max-width: 1080px; margin: 0 auto; padding: 0 24px 32px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.share-foot a { color: var(--muted); }
.list-tools input[type=checkbox], .list-tools input[type=radio] { flex: none; min-width: 0; }   /* packages/ui .list-tools input 은 검색칸용 */
@media (max-width: 360px) { .box-card .tab { padding-left: 9px; padding-right: 9px; } }   /* 아주 좁은 폰에서 탭 3개가 한 줄에 */
