:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --primary: #3182F6;
  --primary-soft: #e8f1fe;
  --text: #191F28;
  --muted: #8B95A1;
  --border: #E5E8EB;
  --today: #fff7e6;
  --today-line: #ffd591;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
h1 { margin: 0; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* 헤더 */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 10px; }
.me-school { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ===== 로그인 게이트 ===== */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.gate-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.gate-brand { font-size: 24px; font-weight: 800; color: var(--primary); text-align: center; }
.gate-sub { font-size: 14px; color: var(--muted); text-align: center; margin: -2px 0 16px; }
.gate-box input[type=text], .gate-box input[type=password] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.gate-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.gate-box .keep { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.gate-box .keep input { width: 18px; height: 18px; }
#gate-login, #gate-register { display: flex; flex-direction: column; gap: 10px; }
.gate-switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.gr-gradeclass { display: flex; gap: 10px; }
.gr-gradeclass select, .gr-gradeclass input { flex: 1; height: 50px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: var(--surface); min-width: 0; }

/* 학생/교사 선택 토글 */
.acct-type { display: flex; gap: 8px; }
.acct-btn { flex: 1; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.acct-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
#gr-teacher-fields input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.gr-teacher-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.gr-school { position: relative; }
.gr-school-picked { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.gr-school-picked.ok { color: var(--primary); font-weight: 600; }

/* 학교 검색 공통 (게이트 회원가입) */
.search-box { display: flex; gap: 6px; }
.search-box input { flex: 1; height: 50px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.search-btn { height: 50px; padding: 0 14px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.search-btn:hover { background: #1b64da; }
.search-results { position: absolute; top: 56px; left: 0; right: 0; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.1); z-index: 20; padding: 6px; }
.result-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.result-item:hover { background: #f1f3f5; }
.result-item .rn { font-weight: 600; font-size: 14px; }
.result-item .ra { font-size: 12px; color: var(--muted); margin-top: 2px; }
.result-item.disabled { opacity: .5; cursor: default; }
.result-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

.container { max-width: 760px; margin: 0 auto; padding: 18px 20px calc(80px + env(safe-area-inset-bottom)); }

/* 하단 탭바 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto;
}
.tab {
  flex: 1; min-height: 52px; border: none; background: none; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tab-ic { font-size: 20px; }
.tab.is-active { color: var(--primary); }

/* 급식 */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.meal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.meal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.meal-kind { font-size: 16px; font-weight: 700; }
.meal-kind .badge-k { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; margin-right: 8px; }
.meal-cal { font-size: 12px; color: var(--muted); }
.meal-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.meal-items li { font-size: 14.5px; padding-left: 14px; position: relative; }
.meal-items li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }

/* ===== 커뮤니티 ===== */
.btn-primary { height: 44px; padding: 0 16px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn-primary:hover { background: #1b64da; }
.btn-primary.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-ghost { height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-ghost:hover { background: #f1f3f5; }
.btn-ghost.sm { height: 36px; padding: 0 12px; font-size: 13px; }

/* 로그인 박스 */
.cu-authbox { max-width: 360px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.cu-authbox h2 { font-size: 20px; }
.cu-auth-sub { color: var(--muted); font-size: 14px; margin: -2px 0 10px; }
.cu-authbox input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.cu-authbox input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cu-school-note { font-size: 13px; color: var(--muted); min-height: 16px; margin: 0; }

/* 상단 */
.cu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cu-school { font-size: 15px; } .cu-school b { color: var(--primary); }

/* 재학생 인증 배너 */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; color: #8a5a00; }
.verify-banner .btn-primary.sm { flex: 0 0 auto; }

/* 인증 모달 */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(17,24,39,.42); display: flex; align-items: center; justify-content: center; padding: 20px; }
.verify-box { background: var(--surface); width: 100%; max-width: 340px; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.verify-box h3 { margin: 0; font-size: 18px; }
.verify-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.verify-box input { height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.verify-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 게시판 탭 */
.cu-boards { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.cu-board { flex: 0 0 auto; padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cu-board.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.cu-listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cu-listhead > span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.listhead-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.listhead-right .btn-primary.sm { white-space: nowrap; flex: 0 0 auto; }
.cu-sort { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--text); flex: 0 0 auto; }

/* 글 목록 추가 요소 */
.pr-like { flex: 0 0 auto; font-size: 12px; color: #e8590c; font-weight: 700; }
.pr-views { flex: 0 0 auto; font-size: 12px; color: var(--primary); font-weight: 700; background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }

/* 상세 조회수 칩 */
.views-chip { color: var(--primary); font-weight: 700; background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }

/* 추천 버튼 */
.like-wrap { display: flex; justify-content: center; margin: 18px 0; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; transition: all 120ms; }
.like-btn b { color: #e8590c; }
.like-btn:hover { border-color: #ffc9a0; }
.like-btn.on { background: #fff4ec; border-color: #ffa94d; color: #e8590c; }

/* 인라인 답글창 */
.reply-box { display: flex; gap: 8px; margin: 8px 0 4px 20px; }
.reply-input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.reply-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 글 목록: 정보 밀도 높은 리스트 */
.post-list { border-top: 1px solid var(--border); }
.post-row { display: flex; align-items: center; gap: 8px; padding: 11px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.post-row:hover { background: #f8f9fb; }
.post-row .pr-board { flex: 0 0 auto; font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 2px 7px; border-radius: 6px; }
.post-row .pr-title { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row .pr-cmt { flex: 0 0 auto; font-size: 12px; color: var(--primary); font-weight: 700; }
.post-row .pr-meta { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.post-list-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 글 상세 */
.cu-detail-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.cu-detail-head h2 { font-size: 18px; margin: 6px 0; }
.cu-detail-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; }
.cu-detail-body { font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin-bottom: 16px; }
.cu-detail-actions { display: flex; gap: 8px; margin-bottom: 20px; }

/* 댓글 */
.cmt-list { border-top: 1px solid var(--border); }
.cmt { padding: 10px 2px; border-bottom: 1px solid var(--border); }
.cmt.reply { padding-left: 20px; background: #fafbfc; }
.cmt-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.cmt-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cmt-actions { margin-top: 4px; display: flex; gap: 8px; }
.cmt-actions button { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.cmt-form { display: flex; gap: 8px; margin-top: 14px; }
.cmt-form input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }

/* 글쓰기 */
#cu-write select, #cu-write input, #cu-write textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; margin-bottom: 10px; font-family: inherit; }
#cu-write select:focus, #cu-write input:focus, #cu-write textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
#cu-write textarea { resize: vertical; }

/* 선택 영역 */
.controls { display: flex; gap: 12px; margin-bottom: 14px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
select {
  width: 100%; height: 48px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 15px; color: var(--text);
}
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 주 이동 */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.btn-nav {
  width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; font-size: 22px; color: var(--text); line-height: 1;
}
.btn-nav:hover { background: #f1f3f5; }
.week-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.btn-today {
  height: 34px; padding: 0 12px; border: none; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px;
}

/* 시간표 */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.timetable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.timetable th, .timetable td {
  border: 1px solid var(--border); text-align: center; padding: 10px 4px;
  font-size: 14px; vertical-align: middle;
}
.timetable thead th { background: #fafbfc; font-weight: 700; font-size: 13px; color: var(--muted); }
.timetable thead th .wd { font-size: 14px; color: var(--text); }
.timetable thead th .dt { font-size: 11px; color: var(--muted); font-weight: 500; }
.timetable .period-col { width: 44px; background: #fafbfc; font-weight: 700; color: var(--muted); font-size: 12px; }

/* 오늘 열 강조 */
.timetable th.is-today { background: var(--today); color: var(--text); }
.timetable th.is-today .wd { color: #d48806; }
.timetable td.is-today { background: var(--today); }
.timetable col.is-today + col {}

.subject { font-weight: 600; }
.subject.empty { color: var(--muted); font-weight: 400; }

/* 수정 바 */
.editbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.btn-edit {
  height: 38px; padding: 0 14px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text);
}
.btn-edit:hover { background: #f1f3f5; }
.btn-edit.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.edit-hint { font-size: 12.5px; color: var(--muted); }

/* 수정 모드: 칸 눌러서 바꾸기 */
.timetable.editing td:not(.period-col) { cursor: pointer; }
.timetable.editing td:not(.period-col):hover { background: var(--primary-soft); outline: 2px solid var(--primary); outline-offset: -2px; }

/* 수정된 칸 표시 */
td.edited { position: relative; }
td.edited .subject { color: var(--primary); }
td.edited::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

.msg { text-align: center; color: var(--muted); font-size: 13px; padding: 14px; margin: 0; }

/* 작은 화면 */
@media (max-width: 480px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .brand { text-align: center; }
  .school-search { width: 100%; }
  .search-box input { width: 100%; flex: 1; }
  .search-results { width: 100%; }
}
@media (max-width: 420px) {
  .container { padding: 14px 12px 32px; }
  .timetable th, .timetable td { padding: 8px 2px; font-size: 13px; }
  .timetable .period-col { width: 34px; }
}

/* ===== 관리자 화면 ===== */
.admin-header { background: #191f28; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; position: sticky; top: 0; z-index: 10; }
.admin-brand { font-size: 18px; font-weight: 800; margin: 0; }
.admin-header .btn-ghost { background: transparent; color: #fff; border-color: #3a4049; }
.admin-header .btn-ghost:hover { background: #2a2f37; }
.admin-main { max-width: 640px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.admin-card h2 { font-size: 19px; margin: 0 0 6px; }
.admin-help { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.admin-search { position: relative; margin-bottom: 18px; }
.adm-school-info { background: var(--primary-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.adm-school-name { font-size: 16px; font-weight: 700; }
.adm-school-code { font-size: 13px; color: var(--muted); margin-top: 4px; }
.adm-school-code b { color: var(--text); }
.adm-issue-row { display: flex; gap: 12px; margin-bottom: 12px; }
.adm-role-select { display: flex; gap: 8px; margin-bottom: 12px; }
.adm-role-btn { flex: 1; height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.adm-role-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.adm-code-item .role-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.role-tag.teacher { background: #fff4ec; color: #e8590c; }
.role-tag.student { background: var(--primary-soft); color: var(--primary); }
.adm-issue-row label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.adm-issue-row input { height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.adm-newcode { margin-top: 18px; background: #e7f6ec; border: 1px solid #b7e4c7; border-radius: 12px; padding: 14px 16px; }
.adm-newcode > span { font-size: 12.5px; color: #15803d; font-weight: 600; }
.adm-code-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.adm-code-row code { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: #15803d; flex: 1; }
.adm-codes-title { font-size: 15px; margin: 24px 0 10px; }
.adm-codes { display: flex; flex-direction: column; gap: 8px; }
.adm-code-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.adm-code-item code { font-weight: 700; letter-spacing: 1px; }
.adm-code-item .meta { font-size: 12px; color: var(--muted); }
.adm-codes-empty { color: var(--muted); font-size: 13px; padding: 14px; text-align: center; }

/* ===== 4단계 관리자 대시보드 ===== */
.screq-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.admin-subtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; }
.admin-subtab { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.admin-subtab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-panel h2 { font-size: 19px; margin: 0 0 6px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.admin-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.admin-row .ar-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.admin-row .ar-title { font-weight: 700; font-size: 15px; }
.admin-row .ar-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.admin-row .ar-actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-row .ar-actions .btn-primary, .admin-row .ar-actions .btn-ghost { height: 38px; padding: 0 14px; font-size: 13px; }
.admin-empty { text-align: center; color: var(--muted); padding: 36px 16px; border: 1px dashed var(--border); border-radius: 12px; }

/* 통계 카드 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 발급 박스 */
.issue-box, .assign-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.issue-row, .assign-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.issue-row label { flex: 1; min-width: 90px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.issue-row input, .issue-row select { height: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.issue-box .btn-primary, .issue-box .btn-ghost { height: 42px; padding: 0 14px; font-size: 14px; margin-right: 6px; }
.assign-row input, .assign-row select { height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.assign-row input { flex: 1; min-width: 120px; }
.assign-box h3 { font-size: 15px; margin: 0 0 10px; }

/* 코드 필터 */
.code-filter { display: flex; gap: 8px; margin-bottom: 10px; }
.code-filter input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.code-filter select { height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.code-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--surface); }
.code-item code { font-weight: 700; letter-spacing: 1px; }
.code-item .cstate { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.cstate.unused { background: var(--primary-soft); color: var(--primary); }
.cstate.used { background: #e7f6ec; color: #15803d; }
.cstate.revoked { background: #fdecec; color: #dc2626; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; font-size: 14px; line-height: 1.9; }

/* 작은 신고 버튼 */
.report-btn { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.report-btn:hover { color: #dc2626; }

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .issue-row label { min-width: 0; }
}

/* 신고된 글/댓글 내용 미리보기 */
.report-content { background: #f7f8fa; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 10px 0; }
.report-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.report-body { font-size: 13.5px; color: var(--text); white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow: auto; }
.report-content.deleted { color: var(--muted); font-size: 13px; text-align: center; }
