/* =====================================================================
 * 동문회 행사 참가신청 - 공통 스타일
 * 모바일 우선 (카카오톡 링크로 들어오는 경우가 대부분)
 * ===================================================================== */

/* 신일고 교표의 녹색을 '포인트'로만 씁니다.
   바탕은 따뜻한 중성색, 글자는 짙은 먹색 — 넓은 면을 초록으로 칠하지 않습니다. */
:root {
  /* --- 바탕 ------------------------------------------------------- */
  --bg:        #f7f7f4;   /* 순백이 아닌 종이색이라야 흰 카드가 떠 보입니다 */
  --surface:   #ffffff;
  --bg-soft:   #f2f3ef;
  --line:      #e6e6df;
  --line-2:    #d2d3ca;

  /* --- 글자 ------------------------------------------------------- */
  --text:      #161815;
  --text-soft: #3d413b;
  --text-dim:  #6b6f68;
  --text-mute: #9a9e96;
  --muted:     #6b6f68;

  /* --- 교표 초록 (깊이 세 단계) ------------------------------------ */
  --ink:       #0a2e1c;   /* Pine Ink  - 머리띠·바닥글 */
  --brand:     #0c6b37;   /* Emerald   - 교표 초록 */
  --brand-2:   #12a04e;   /* Sprout    - 밝은 쪽 */
  --brand-dark:#084d27;
  --brand-ink: #07401f;
  --brand-soft:#eef6f0;   /* Mint Wash */
  --brand-line:#d5e7db;

  /* --- 그 밖의 색 ------------------------------------------------- */
  --accent:    #b8860b;
  --danger:    #c0392b;
  --danger-soft:#fdecea;
  --ok:        #0b7a3b;
  --ok-soft:   #e7f4ea;
  --warn-bg:   #fff8d6;
  --sheet-hl:  #dff0e3;
  --sheet-ink: #075c2c;

  /* --- 모서리 ----------------------------------------------------- */
  --r-sm:      8px;
  --r:         12px;
  --r-lg:      16px;
  --radius:    12px;      /* 예전 이름 - 그대로 둡니다 */

  /* --- 깊이 (한 단계만 쓰던 것을 셋으로) --------------------------- */
  --sh-1: 0 1px 2px rgba(16,24,18,.05), 0 2px 8px rgba(16,24,18,.04);
  --sh-2: 0 2px 6px rgba(16,24,18,.07), 0 10px 26px rgba(16,24,18,.07);
  --sh-3: 0 8px 20px rgba(16,24,18,.12), 0 24px 60px rgba(16,24,18,.14);
  --shadow: var(--sh-1);  /* 예전 이름 */

  --mono:      ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

/* .btn 등에 display 가 지정돼 있으면 브라우저 기본 [hidden] 이 밀립니다 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic",
               "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
}

a { color: var(--brand-2); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }

.wrap      { max-width: 720px;  margin: 0 auto; padding: 0 14px 60px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 0 14px 60px; }

.muted   { color: var(--text-dim); }
.small   { font-size: 13px; }
.tiny    { font-size: 12px; }
.center  { text-align: center; }
.right   { text-align: right; }
.nowrap  { white-space: nowrap; }
.mono    { font-family: var(--mono); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.spacer { flex: 1 1 auto; }
.hide { display: none !important; }

/* ------------------------------------------------------------- 헤더 */
.topbar {
  background: var(--brand);
  color: #fff;
  padding: 13px 0;
  border-bottom: 3px solid var(--brand-dark);
}
.topbar .wrap,
.topbar .wrap-wide { display: flex; align-items: center; gap: 10px; padding-bottom: 0; }
.topbar .logo {
  width: 36px; height: 36px; flex: 0 0 auto;
  object-fit: contain; background: #fff;
  border-radius: 8px; padding: 3px;
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  border-radius: 8px; padding: 3px 6px; margin-left: -6px;
  transition: background .12s;
}
.topbar .brand:hover { background: rgba(255,255,255,.12); }
.topbar .brand .sub { display: block; }

.topbar h1 {
  font-size: 16.5px; margin: 0; font-weight: 700;
  letter-spacing: -.2px;
}
.topbar .sub { font-size: 11.5px; opacity: .72; margin-top: 1px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .btn { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }
.topbar .btn:hover { background: rgba(255,255,255,.28); }

/* ------------------------------------------------------------- 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 14px;
}
.card > h2 { font-size: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.card-head h2 { margin: 0; font-size: 16px; }

/* 행사 헤더 - 흰 카드에 초록은 위쪽 선 한 줄로만 */
.event-hero {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.event-hero h2 {
  font-size: 22px; margin: 0 0 16px;
  letter-spacing: -.6px; line-height: 1.25;
  color: var(--text);
}
.event-hero dl {
  display: grid; grid-template-columns: 62px 1fr;
  gap: 7px 14px; margin: 0; font-size: 14.5px;
}
.event-hero dt {
  color: var(--text-mute); font-size: 12.5px;
  font-weight: 600; letter-spacing: .2px; padding-top: 2px;
}
.event-hero dd { margin: 0; font-weight: 600; }
.event-hero .notice {
  margin-top: 16px; padding: 14px 16px;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-line; font-size: 14px; color: var(--text-dim);
  line-height: 1.65;
}
.event-hero .dday {
  display: inline-block; margin-left: 9px; padding: 3px 10px;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  vertical-align: middle; letter-spacing: .3px;
}

/* ------------------------------------------------------------- 폼 */
.field { margin-bottom: 14px; }
.field > label,
.field-label {
  display: block; font-weight: 600; font-size: 13px;
  margin-bottom: 6px; color: var(--text);
}
.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--text-mute); font-weight: 500; font-size: 12px; }

/* 숫자 입력 + 단위 (기수 __회) */
.with-suffix { position: relative; }
.with-suffix .input { padding-right: 38px; }
.with-suffix .suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 14px; pointer-events: none;
}
/* 스피너 화살표는 모바일에서 오히려 방해가 됩니다 */
.with-suffix .input::-webkit-outer-spin-button,
.with-suffix .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.with-suffix .input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* iOS 확대 방지 */
}
.textarea { min-height: 76px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(18,160,78,.18);
}
.input[readonly] { background: #f3f4f6; color: var(--text-dim); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 0; min-width: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr 1fr; } }

.hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }

/* 인원 선택 스테퍼 */
.stepper { display: flex; align-items: stretch; gap: 0; }
.stepper button {
  width: 46px; border: 1px solid var(--line-2); background: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-dim);
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child  { border-radius: 0 8px 8px 0; }
.stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.stepper .input {
  border-radius: 0; border-left: 0; border-right: 0;
  text-align: center; font-weight: 700;
}

/* 체크박스 / 라디오 */
.check {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border: 1px solid var(--line-2);
  border-radius: 8px; background: #fff; cursor: pointer; user-select: none;
}
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check.on { border-color: var(--brand); background: var(--brand-soft); }

/* ------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover:not(:disabled) { background: #f1f3f5; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger  { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled)  { background: #a93226; }
.btn-ghost   { background: transparent; }
.btn-lg  { padding: 14px 20px; font-size: 16px; width: 100%; }
.btn-sm  { padding: 6px 10px; font-size: 12.5px; }
.btn-link {
  border: none; background: none; padding: 2px 4px;
  color: var(--brand-2); text-decoration: underline; cursor: pointer; font-size: 13px;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- 탭 */
.tabs {
  display: flex; gap: 4px; margin-top: 16px;
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 10px 14px; border: none; background: none;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--text-dim); cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* GNB 바로 아래 붙는 주 메뉴 */
.tabs-main {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  margin-top: 0;
  padding: 0;
  position: sticky; top: 0; z-index: 20;
}
.tabs-main .wrap {
  display: flex; gap: 2px; padding-bottom: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* 파이어폭스 */
  -ms-overflow-style: none;           /* 예전 엣지 */
}
.tabs-main .wrap::-webkit-scrollbar { display: none; }   /* 크롬·사파리 */
.tabs-main button { flex: 1 1 auto; white-space: nowrap; }
.tabs-main button { margin-bottom: -1px; }

/* ------------------------------------------------------------- 배지 */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; vertical-align: middle;
  background: #eceff2; color: var(--text-dim);
}
.badge-open   { background: var(--ok-soft);     color: var(--ok); }
.badge-closed { background: var(--danger-soft); color: var(--danger); }
.badge-hidden { background: #eeeaf6;            color: #5b4bcc; }
.badge-paid   { background: var(--ok-soft);     color: var(--ok); }

/* ------------------------------------------------------------ 알림 */
.alert {
  padding: 12px 14px; border-radius: 8px; font-size: 14px;
  border: 1px solid transparent; margin-top: 12px;
}
.alert-info   { background: var(--brand-soft);  border-color: var(--brand-line); color: #0a5c2e; }
.alert-ok     { background: var(--ok-soft);     border-color: var(--brand-line); color: #0a5c2e; }
.alert-warn   { background: var(--warn-bg);     border-color: #e3d489; color: #6b5b00; }
.alert-danger { background: var(--danger-soft); border-color: #f3c2bc; color: #8e2b20; }

.empty {
  padding: 34px 16px; text-align: center;
  color: var(--text-mute); font-size: 14px;
}

/* ------------------------------------------------------- 내 신청 카드 */
.mine-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid var(--line);
  border-radius: 8px; margin-top: 8px; background: #fff;
}
.mine-item .who { font-weight: 700; }
.mine-item .cnt { color: var(--text-dim); font-size: 13px; }

/* 접어두는 선택 입력 영역 */
.more {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfb;
  margin-top: 4px;
}
.more > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 14px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: '+';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--text-mute); line-height: 1;
}
.more[open] > summary::after { content: '\2212'; }
.more[open] > summary { border-bottom: 1px solid var(--line); }
.more-title { font-weight: 700; font-size: 14px; color: var(--brand); padding-right: 24px; }
.more-sub   { font-size: 12px; color: var(--text-dim); padding-right: 24px; }
.more-body  { padding: 14px; }
.more-body .field:last-child { margin-bottom: 0; }

.mail-state {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfcfa;
}

/* 총무님만 보는 입력칸 */
.admin-only-box {
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbfa;
}
.admin-only-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }

/* 행사 안내 탭 */
.info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-of-type { border-bottom: 0; }
.info-key {
  flex: 0 0 72px; font-size: 12.5px; color: var(--text-mute);
  font-weight: 600; letter-spacing: .2px;
}
.info-val { flex: 1 1 auto; min-width: 0; font-weight: 600; word-break: keep-all; }
.info-sub { font-size: 14px; margin: 20px 0 8px; }
.info-notice {
  padding: 14px 16px; background: #faf9f6;
  border: 1px solid var(--line); border-radius: 8px;
  white-space: pre-line; font-size: 14px; color: var(--text-dim); line-height: 1.7;
}

/* 참여·찬조·협찬 문의 카드 */
.contact-title {
  font-weight: 700; font-size: 14px; color: var(--text);
  padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; flex-wrap: wrap;
}
.contact-key {
  flex: 0 0 52px; font-size: 12.5px; color: var(--text-dim); font-weight: 600;
}
.contact-val { flex: 1 1 auto; min-width: 0; font-weight: 600; word-break: break-all; }

/* ============================================ 후원해 주신 분들 (찬조·협찬) */
.sponsor-wall {
  margin-top: 24px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
}
.wall-head { text-align: center; margin-bottom: 18px; }
.wall-head h3 {
  margin: 0 0 4px;
  font-size: 21px; font-weight: 800; letter-spacing: -.6px;
  color: var(--text);
}
.wall-head p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.wall-group + .wall-group { margin-top: 20px; }
.wall-label {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 2px solid var(--brand-soft);
}
.wall-label > span:first-child {
  font-size: 15px; font-weight: 800; letter-spacing: 5px; color: var(--brand);
}
.wall-count { font-size: 13px; color: var(--text-dim); font-weight: 600; }

.wall-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .wall-cards { grid-template-columns: 1fr; } }

.wall-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fcfcfa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
}
.wall-card.goods { border-left-color: var(--accent); }

.wall-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wall-class {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 3px 9px; border-radius: 999px;
}
.wall-name {
  font-size: 21px; font-weight: 800; letter-spacing: -.5px;
  white-space: nowrap;
}
.wall-amount {
  margin-left: auto; flex: 0 0 auto;
  font-size: 24px; font-weight: 800; color: var(--brand);
  letter-spacing: -.5px;
}
/* 협찬은 물품 이름이 길어서 세로로 쌓습니다 (겹침 방지) */
.wall-card.goods {
  flex-direction: column; align-items: flex-start; gap: 6px;
}
.wall-card.goods .wall-who { width: 100%; }
.wall-item {
  width: 100%; text-align: left;
  font-size: 17px; font-weight: 700; color: #8a6508;
  word-break: keep-all; line-height: 1.35;
}

/* 찬조 카드는 가로 유지하되 좁아지면 줄바꿈 */
.wall-card.cash { flex-wrap: wrap; }
.wall-card.cash .wall-who { flex: 1 1 auto; }

@media (max-width: 420px) {
  .wall-name   { font-size: 19px; }
  .wall-amount { font-size: 21px; }
  .wall-item   { font-size: 15px; }
}

/* 남기신 말씀 */
.memo-line {
  font-size: 12.5px; color: var(--text-dim); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.memo-title { font-size: 14px; margin: 22px 0 8px; }

/* 방명록 */
.guest-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-line);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 7px;
  background: #fff;
}
.guest-head { display: flex; align-items: center; gap: 8px; }
.guest-who  { font-weight: 700; font-size: 13.5px; }
.guest-time { font-size: 11.5px; color: var(--text-mute); }
.guest-del  { color: var(--danger); }
.guest-text {
  margin-top: 3px; font-size: 14px; color: var(--text);
  white-space: pre-line; word-break: break-all;
}

/* ---------------------------------------------------- 집계표 (인쇄용) */
.sheet-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 표 너비는 **칸마다 정해 둔 최소폭**이 정합니다(아래 .c-class / .c-num / .c-name).
 * 표 전체에 min-width 를 박아 두면, 다섯 줄짜리 표도 그만큼 벌어져서
 * 휴대폰에서 옆으로 밀어야 합니다. 이름 옆에 빈 자리만 잔뜩 생기고요.
 * 사람이 많아 정말 넓어질 때만 .sheet-wrap 안에서 밀립니다. */
table.sheet {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 13px;
}
table.sheet th,
table.sheet td {
  border: 1px solid #4a5a4e;
  padding: 4px 6px;
  height: 26px;
  text-align: center;
  vertical-align: middle;
}
table.sheet .c-class {
  width: 62px; background: #eef3ef; font-weight: 700; white-space: nowrap;
}
table.sheet .c-num   { width: 44px; font-weight: 700; }
table.sheet .c-name  { min-width: 84px; }
table.sheet .c-name.clickable { cursor: pointer; }
table.sheet .c-name.clickable:hover { background: var(--brand-soft); outline: 2px solid var(--brand-2); }

table.sheet .sheet-head .c-title {
  background: var(--sheet-hl);
  color: var(--sheet-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
}
table.sheet .sheet-head .c-class,
table.sheet .sheet-head .c-num { background: #eef3ef; }

table.sheet tr.has-entry .c-name:not(:empty) { font-weight: 600; }

table.sheet .sheet-total th,
table.sheet .sheet-total td { background: var(--sheet-hl); font-weight: 800; }
table.sheet .sheet-total .c-grand { color: var(--sheet-ink); }

table.sheet .sheet-sponsor-head th {
  background: var(--sheet-hl);
  color: var(--sheet-ink);
  font-weight: 800; letter-spacing: 2px;
}
table.sheet .sheet-sponsor td {
  text-align: left; padding-left: 8px; font-size: 12.5px;
}
table.sheet .sheet-bank td {
  background: var(--sheet-hl); color: var(--sheet-ink);
  font-weight: 700; font-size: 13px;
}

table.sheet .sheet-foot td {
  background: var(--sheet-hl);
  font-weight: 700; font-size: 13px; color: var(--sheet-ink);
}

/* ------------------------------------------------------- 명단 테이블 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 여기도 같은 이유로 표 전체 min-width 를 두지 않습니다.
 * 칸이 많은 표라 대개는 넓어지지만, 좁을 때까지 억지로 벌릴 이유는 없습니다. */
table.list {
  width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff;
}
table.list th, table.list td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px; text-align: left; vertical-align: middle;
}
table.list thead th {
  background: #f7f8fa; font-size: 12.5px; color: var(--text-dim);
  border-bottom: 2px solid var(--line-2); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.list tbody tr:hover { background: #fafbfc; }
table.list tbody tr.sel   { background: var(--brand-soft); }
table.list td.num  { text-align: center; width: 44px; color: var(--text-dim); }
table.list td.chk, table.list th.chk { width: 34px; text-align: center; }
table.list input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
table.list .name { font-weight: 700; }
table.list .actions { white-space: nowrap; text-align: right; }

/* 신청자 표 - 한 사람을 두 줄로 */
table.list tr.reg-top td { border-bottom: 0; padding-bottom: 4px; }
table.list tr.reg-sub td { padding-top: 0; padding-bottom: 10px; }
table.list tr.reg-top .strong { font-weight: 800; color: var(--brand); }

.reg-bits {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding-left: 34px;
  font-size: 12.5px; color: var(--text-dim);
}
.reg-bits .bit b {
  font-weight: 600; color: var(--text-mute); margin-right: 3px;
}
.reg-bits .bit.money { color: var(--brand); font-weight: 600; }
.reg-bits .bit.when { color: var(--text-mute); margin-left: auto; }
.reg-bits:empty { display: none; }

@media (max-width: 520px) {
  .reg-bits { padding-left: 8px; gap: 3px 10px; font-size: 12px; }
  .reg-bits .bit.when { margin-left: 0; }
}

/* ================================================= 신청자 명단 (카드형) */
.reg-head-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-top: 4px;
  border-bottom: 2px solid var(--line-2);
}
.reg-all { display: flex; align-items: center; gap: 8px; cursor: pointer;
           font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.reg-all input { width: 17px; height: 17px; accent-color: var(--brand); }

.reg-list { display: block; }

.reg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.reg-row:hover { background: #fbfcfa; }
.reg-row.sel   { background: var(--brand-soft); }

.reg-chk { flex: 0 0 auto; display: flex; align-items: center; cursor: pointer; }
.reg-chk input { width: 17px; height: 17px; accent-color: var(--brand); }

.reg-no {
  flex: 0 0 24px; text-align: right;
  font-size: 12px; color: var(--text-mute);
}

.reg-main { flex: 1 1 auto; min-width: 0; }

.reg-line1 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.reg-cls {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 2px 9px; border-radius: 999px;
}
.reg-cls.none { color: var(--text-mute); background: #f2f2ee; border-color: var(--line); }
.reg-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.reg-head { font-size: 14px; color: var(--text-dim); }
.reg-head b { font-size: 16px; color: var(--brand); font-weight: 800; }
.reg-head.zero { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.reg-break { font-size: 12px; color: var(--text-mute); }

.reg-line2 {
  display: flex; flex-wrap: wrap; gap: 3px 14px;
  margin-top: 4px; font-size: 12.5px; color: var(--text-dim);
}
.reg-line2 .bit b { font-weight: 600; color: var(--text-mute); margin-right: 3px; }
.reg-line2 .bit.money { color: var(--brand); font-weight: 600; }
.reg-line2 .bit.dim   { color: var(--text-mute); }

.reg-when { flex: 0 0 auto; font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }
.reg-act  { flex: 0 0 auto; display: flex; gap: 6px; }

@media (max-width: 640px) {
  .reg-row { flex-wrap: wrap; gap: 8px 10px; padding: 11px 8px; }
  .reg-no  { flex: 0 0 20px; }
  .reg-main { flex: 1 1 100%; order: 3; padding-left: 30px; }
  .reg-when { order: 2; margin-left: auto; }
  .reg-act  { order: 4; flex: 1 1 100%; padding-left: 30px; }
  .reg-act .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------- 행사 목록 */
.event-list { display: grid; gap: 10px; }
.event-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.event-item:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.event-item.on { border-color: var(--brand); background: var(--brand-soft); }
.event-item .ttl { font-weight: 700; font-size: 15px; }
.event-item .meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.event-item .cnt {
  margin-left: auto; text-align: center; font-weight: 800;
  color: var(--brand); font-size: 18px; line-height: 1.1;
}
.event-item .cnt small { display: block; font-size: 11px; color: var(--text-mute); font-weight: 600; }

/* 왼쪽 사이트 관리 메뉴 */
.side-menu { display: grid; gap: 2px; }
.side-menu button {
  text-align: left; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim);
  padding: 10px 12px; border-radius: 8px;
}
.side-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.side-menu button.on {
  background: var(--brand-soft); color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

.only-mobile { display: none; }
.only-mobile-block { display: none; }

/* 관리자 2단 레이아웃 */
.admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.admin-grid > * { min-width: 0; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

/* 통계 요약 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.stat .v {
  font-size: 25px; font-weight: 800; color: var(--text);
  line-height: 1.15; letter-spacing: -.5px;
}
.stat .k { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; letter-spacing: .2px; }

/* ------------------------------------------------------------ 모달 */
.modal-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,30,18,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 12px; padding: 20px;
  width: 100%; max-width: 520px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  max-height: 92vh; overflow-y: auto;
}
.modal-sm { max-width: 380px; }
.modal-wide { max-width: 720px; }
.modal h3 { font-size: 17px; margin: 0 0 10px; }
.modal-msg { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; white-space: pre-line; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* 되돌릴 수 없는 일 — 무엇이 지워지고 무엇이 남는지 */
.note-box {
  margin: 2px 0 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
}
.note-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.note-row + .note-row { margin-top: 7px; }
.note-row .k {
  flex: 0 0 auto; min-width: 86px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-align: center;
}
.note-row .k.bad { background: #fdeaea; color: #a12c2c; }
.note-row .k.ok  { background: #e7f4ec; color: var(--brand-ink); }
.note-row .v { color: var(--text); word-break: keep-all; }
.note-when {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); word-break: keep-all;
}
.note-when b { display: block; margin-bottom: 2px; color: var(--text-dim); }

/* ---------------------------------------------------------- 토스트 */
.toast-box {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  background: #1c2620; color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.28);
  animation: toastIn .18s ease-out;
}
.toast.ok    { background: var(--brand); }
.toast.error { background: #c0392b; }
.toast.out   { opacity: 0; transition: opacity .45s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }

/* ---------------------------------------------------------- 로딩 */
.loading { padding: 40px; text-align: center; color: var(--text-mute); }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 10px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 로컬 테스트 모드 표시 */
.mock-flag {
  background: #3d3300; color: #ffe066; text-align: center;
  font-size: 12px; padding: 5px 10px;
}


/* ==================================================== 휴대폰 화면 최적화 */
.scroll-hint { display: none; }

@media (max-width: 600px) {
  .scroll-hint { display: block; color: var(--text-mute); }
}

@media (max-width: 520px) {
  body { font-size: 14.5px; }

  .wrap, .wrap-wide {
    padding-left: 10px; padding-right: 10px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .topbar { padding: 11px 0; }
  .topbar h1 { font-size: 15.5px; }
  .topbar .sub { font-size: 12.5px; }
  .topbar .logo { width: 30px; height: 30px; }

  .card { padding: 14px; border-radius: 10px; margin-top: 10px; }
  .card-head h2, .card > h2 { font-size: 15px; }

  .event-hero { padding: 16px; margin-top: 10px; }
  .event-hero h2 { font-size: 19px; }
  .event-hero dl { grid-template-columns: 56px 1fr; gap: 3px 8px; font-size: 13.5px; }
  .event-hero .notice { font-size: 13.5px; }

  /* 탭이 여러 개라 좁아지지 않게 - 넘치면 옆으로 밀어 봅니다 */
  .tabs { margin-top: 12px; }
  .tabs button { flex: 0 0 auto; padding: 10px 9px; font-size: 13px; }

  .stats { gap: 8px; }
  .stat { padding: 10px 6px; }
  .stat .v { font-size: 21px; }
  .stat .k { font-size: 11.5px; }

  .row-2, .row-3 { gap: 8px; }
  .field { margin-bottom: 12px; }
  .btn-lg { padding: 15px 20px; }

  .modal { padding: 16px; border-radius: 10px; }
  .modal-actions { gap: 6px; }
  .modal-actions .btn { flex: 1 1 auto; }

  /* 집계표 - 손가락으로 밀기 편하게 */
  table.sheet { font-size: 12.5px; }
  table.sheet th, table.sheet td { height: 30px; padding: 3px 5px; }
  table.sheet .c-class { width: 54px; }
  table.sheet .c-num   { width: 38px; }
  table.sheet .c-name  { min-width: 76px; }
  table.sheet .sheet-head .c-title { font-size: 13.5px; }

  .sheet-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    scroll-snap-type: x proximity;
  }

  /* 후원 카드 */
  .sponsor-wall { padding: 16px 12px; }
  .wall-head h3 { font-size: 19px; }
  .wall-card { padding: 12px 13px; }

  .guest-item { padding: 9px 11px; }
  .contact-row { gap: 8px; }
  .contact-key { flex-basis: 46px; }
}

/* 아주 좁은 기기 (360px 이하) */
@media (max-width: 360px) {
  .tabs button { font-size: 12.5px; padding: 9px 7px; }
  .event-hero h2 { font-size: 17.5px; }
  .stat .v { font-size: 19px; }
}

/* 페이지 이동 */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 14px;
}
.pager-info { font-size: 12.5px; color: var(--text-dim); }

/* ================================================ 관리자 모바일 */
@media (max-width: 900px) {
  .only-mobile:not([hidden])       { display: inline-flex; }
  .only-mobile-block:not([hidden]) { display: flex; }
  .hide-mobile                     { display: none !important; }
  span.hide-mobile                 { display: none !important; }

  /* 헤더를 한 줄로 */
  .topbar { padding: 10px 0; }
  .topbar h1 { font-size: 15px; white-space: nowrap; }
  .topbar .sub { font-size: 12.5px; }

  /* 왼쪽 메뉴는 접어 둡니다 (상단 ☰ 메뉴) */
  #adminSide { display: none; }
  body.side-open #adminSide { display: block; }
  #adminSide .card { margin-top: 10px; }

  /* 사이트맵·RSS 단추가 늘어 한 줄에 다 안 들어갑니다 — 넘치면 다음 줄로 (2026-09-27) */
  .side-extra {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid var(--line);
  }
  .side-extra .btn { flex: 1 1 auto; }

  #adminSide .event-item { padding: 11px 12px; }
  #adminSide .event-item .ttl  { font-size: 14px; }
  #adminSide .event-item .meta { font-size: 11.5px; }
  #adminSide .event-item .cnt  { font-size: 15px; }

  /* 사이트 관리는 가로 칩 */
  .side-menu {
    grid-auto-flow: column; grid-auto-columns: max-content;
    overflow-x: auto; gap: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .side-menu::-webkit-scrollbar { display: none; }
  .side-menu button { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .side-menu button.on { box-shadow: none; }

  /* 행사 머리말 압축 */
  #paneHead { padding: 13px; margin-top: 10px !important; }
  #paneHead .card-head { gap: 8px; margin-bottom: 6px; }
  #paneHead h2 { font-size: 15px; }
  #paneMeta { font-size: 11.5px; line-height: 1.55; }

  /* .spacer 가 폭을 밀어내서 가로 스크롤이 생기던 문제 */
  .card-head .spacer { display: none; }
  /* 버튼 글자가 nowrap 이라 칸이 안 줄어들던 문제 : 줄바꿈 허용 + minmax(0) */
  #paneHead .btn-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px; width: 100%; min-width: 0;
  }
  #paneHead .btn-row .btn {
    width: 100%; min-width: 0;
    white-space: normal; line-height: 1.25;
    padding: 9px 8px; font-size: 13px;
  }

  /* 통계는 4칸 한 줄 */
  #statsBox { grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px !important; }
  #statsBox .stat { padding: 8px 2px; border-radius: 8px; }
  #statsBox .stat .v { font-size: 17px; }
  #statsBox .stat .k { font-size: 12px; letter-spacing: -.3px; }

  /* 행사 탭은 위에 붙여 둡니다 */
  #tabs {
    position: sticky; top: 0; z-index: 15;
    background: var(--bg); margin-top: 10px; padding-top: 4px;
    scrollbar-width: none;
  }
  #tabs::-webkit-scrollbar { display: none; }
  #tabs button { flex: 0 0 auto; padding: 10px 10px; font-size: 13px; }

  /* 도구 줄 : 한 줄로 밀어서 보기 */
  #tab-list > .card-head { flex-wrap: wrap; align-items: stretch; }
  #qSearch { max-width: none !important; flex: 1 1 auto; min-width: 0; }
  #tab-list .card-head .btn-row {
    width: 100%; flex: 1 1 100%; min-width: 0;
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  #tab-list .card-head .btn-row::-webkit-scrollbar { display: none; }
  #tab-list .card-head .btn-row .btn { flex: 0 0 auto; }

  /* 표 */
  table.list { font-size: 12.5px; }
  table.list th, table.list td { padding: 7px 6px; }
}

@media (max-width: 480px) {
  /* 도구 줄이 좁으면 검색을 아래로 내립니다 */
  #tab-list > .card-head { flex-wrap: wrap; }
  #qSearch { flex: 1 1 100%; order: 2; }
  #tab-list .card-head .btn-row { flex: 1 1 100%; order: 1; }
}

/* ========================================================== 방문 통계 */
.visit-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 150px; margin-bottom: 10px;
}
.visit-col {
  flex: 1 1 0; display: flex; flex-direction: column;
  align-items: center; height: 100%; min-width: 0;
}
.visit-bar-wrap {
  flex: 1 1 auto; width: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
}
.visit-bar {
  width: 40%; max-width: 14px;
  border-radius: 3px 3px 0 0;
  transition: height .2s;
}
.visit-bar.v { background: var(--brand); }        /* 방문자 */
.visit-bar.w { background: var(--brand-line); }   /* 조회수 */

.legend { font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin-left: 10px; }
.legend i {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 2px; vertical-align: baseline; margin-right: 3px;
}
.legend .lg-v { background: var(--brand); }
.legend .lg-w { background: var(--brand-line); }
.visit-num { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-top: 4px; }
.visit-day { font-size: 10px; color: var(--text-mute); margin-top: 2px; white-space: nowrap; }

@media (max-width: 520px) {
  .visit-chart { height: 120px; gap: 2px; }
  .visit-day { font-size: 9px; transform: rotate(-45deg); transform-origin: center; }
}

/* 방문 기록 */
tr.log-act td { background: var(--brand-soft); }
tr.log-act td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

.log-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.log-chip {
  font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line);
  padding: 3px 10px; border-radius: 999px;
}
.log-chip.brw {
  background: #f4f4f0; color: var(--text-dim); border-color: var(--line);
}

/* ============================================================ 조직도 */
.org-head {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.org-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.org-group {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px;
}
.org-members { margin-top: 8px; display: grid; gap: 6px; }

.org-person {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.org-cls {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 2px 8px; border-radius: 999px;
}
.org-name { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.org-role { font-size: 12.5px; color: var(--text-dim); margin-left: auto; }

/* 회장·수석부회장 */
.org-person.lead {
  background: var(--brand); border-color: var(--brand);
  padding: 14px 18px; min-width: 210px;
}
.org-person.lead .org-cls {
  background: rgba(255,255,255,.2); color: #fff; border-color: transparent;
}
.org-person.lead .org-name { color: #fff; font-size: 17px; }
.org-person.lead .org-role { color: rgba(255,255,255,.82); font-weight: 600; }

/* 각 부서장 */
.org-person.chief {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.org-person.chief .org-name { font-size: 15.5px; }
.org-person.chief .org-role { color: var(--brand); font-weight: 700; }

@media (max-width: 520px) {
  .org-head { gap: 8px; padding-bottom: 16px; margin-bottom: 16px; }
  .org-person.lead { min-width: 0; width: 100%; }
  .org-grid { gap: 10px; }
}

/* ========================================================== 후원 배너 */
.banner-strip:empty { display: none; }
.banner-strip {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 22px 0 4px;
  align-items: stretch;
}

/* 가운데 '후원' 구분선 */
.banner-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 2px;
}
.banner-head::before, .banner-head::after {
  content: ''; flex: 1 1 auto; height: 1px; background: var(--line);
}
.banner-head span {
  font-size: 11.5px; font-weight: 700; letter-spacing: 4px;
  color: var(--text-mute);
}

.banner-item {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  text-decoration: none; color: inherit;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
a.banner-item { cursor: pointer; position: relative; }
a.banner-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 6px 18px rgba(20,20,16,.08);
}
a.banner-item:hover .banner-arrow { background: var(--brand); color: #fff; border-color: var(--brand); }
a.banner-item:hover .banner-mark  { background: var(--brand); color: #fff; }

.banner-img { display: block; width: 100%; height: auto; }

.banner-text {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: 18px;
}
.banner-head-row { display: flex; align-items: center; gap: 12px; }
.banner-mark {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 17px;
  transition: background .14s, color .14s;
}
.banner-title {
  font-weight: 700; font-size: 15.5px; letter-spacing: -.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.banner-sub {
  font-size: 13px; color: var(--text-dim); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 링크가 있는 배너임을 알려 주는 줄 - 카드 아래쪽에 붙습니다 */
.banner-go {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 14px;
}
.banner-host {
  font-size: 12px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.banner-arrow {
  margin-left: auto; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 5px 12px; border-radius: 999px;
  transition: background .14s, color .14s, border-color .14s;
}

/* 이미지 배너는 모서리에 표시 */
.banner-badge {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(12,107,55,.9);
  padding: 5px 12px; border-radius: 999px;
  pointer-events: none;
}

@media (max-width: 520px) {
  .banner-strip { gap: 8px; margin-top: 18px; }
  .banner-text { padding: 15px; }
  .banner-mark { width: 34px; height: 34px; font-size: 15px; }
}

/* ============================================================ 푸터 */
.site-foot {
  margin-top: 44px;
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 30px 0 26px;
  border-top: 3px solid var(--brand-2);
}
.site-foot .wrap { padding-bottom: 0; }

.foot-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-logo {
  width: 42px; height: 42px; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 3px;
}
.foot-name {
  color: #fff; font-weight: 700; font-size: 16px;
  letter-spacing: -.3px;
}
.foot-slogan { font-size: 12.5px; margin-top: 2px; opacity: .8; }

.foot-nav { display: grid; gap: 10px; }

.foot-menu {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  max-width: 100%;          /* 6px 씩 옆으로 삐져나가던 것을 잡습니다 */
}

/* '이번 행사' / '동문회' 같은 작은 머리말 */
.foot-menu-cap {
  flex: 0 0 auto; margin-right: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.42);
}

/* 성격이 다른 묶음이라 선으로 갈라 둡니다 */
.foot-menu-2 {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.13);
}

@media (max-width: 560px) {
  .foot-menu-cap { flex: 1 0 100%; margin: 0 0 2px 6px; font-size: 12.5px; }
}

.foot-menu button {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,.72);
  padding: 7px 12px; border-radius: 6px;
}
.foot-menu button:hover { background: rgba(255,255,255,.12); color: #fff; }
.foot-menu button.on { color: #fff; }

.foot-contact {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 6px 14px; margin: 18px 0 0; font-size: 13px;
}
.foot-contact dt { opacity: .6; font-size: 12px; }
.foot-contact dd { margin: 0; color: rgba(255,255,255,.9); }

.foot-bottom {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
}
.foot-copy { opacity: .7; }
.foot-links { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; }
.foot-links a, .foot-links button {
  color: rgba(255,255,255,.72); text-decoration: none;
  font: inherit; font-size: 12px;
  border: 0; background: none; padding: 0; cursor: pointer;
}
.foot-links a:hover, .foot-links button:hover { color: #fff; }
.foot-credit { opacity: .5; }

@media (max-width: 520px) {
  .site-foot { margin-top: 32px; padding: 24px 0 22px; }
  .foot-top { gap: 14px; }
  .foot-menu { gap: 0; }
  .foot-menu button { font-size: 13px; padding: 6px 9px; }
  .foot-contact { grid-template-columns: 62px 1fr; font-size: 12.5px; }
  .foot-bottom { gap: 10px; }
  .foot-credit { flex: 1 1 100%; }
}

/* ========================================================== 인쇄 */
@media print {
  @page { size: A4 portrait; margin: 10mm; }

  body { background: #fff; font-size: 12px; }
  .topbar, .site-foot, .tabs, .no-print, .btn, .toast-box, .mock-flag,
  .modal-back, .card-head .btn-row { display: none !important; }

  .wrap, .wrap-wide { max-width: none; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin: 0; }

  .print-only { display: block !important; }

  .sheet-wrap { overflow: visible; }
  table.sheet { min-width: 0; width: 100%; font-size: 11px; page-break-inside: auto; }
  table.sheet th, table.sheet td {
    height: 22px; padding: 2px 4px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  table.sheet tr { page-break-inside: avoid; }

  table.list { min-width: 0; font-size: 11px; }
  table.list thead th { position: static; }
}
.print-only { display: none; }

/* 행사 목록 소제목 (관리자 · 공개 페이지 공용) */
.side-group {
  margin: 14px 2px 6px; font-size: 11.5px; font-weight: 700;
  color: var(--muted); letter-spacing: .02em;
}
.side-group:first-child { margin-top: 2px; }
.side-group .n {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  border-radius: 6px; background: var(--line); color: var(--muted);
  font-size: 10.5px; font-weight: 700;
}

.event-list { display: grid; gap: 8px; }
.event-list + .info-sub { margin-top: 22px; }
#eventsBox .info-sub {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted);
}
#eventsBox .info-sub ~ .info-sub { margin-top: 22px; }
#eventsBox .event-item .cnt small { margin-left: 1px; font-weight: 500; }

/* ====================================================== 동문 업소 · 소식 */

/* 올리기 버튼과 목록 사이를 갈라 둡니다 */
#shopMain .btn-row { margin-bottom: 4px; }

#shopBox { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.shop-rows-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.shop-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border: 0; background: none; cursor: pointer;
  text-align: left; font: inherit;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.shop-row:last-child { border-bottom: 0; }
.shop-row:hover  { background: var(--bg-soft); }
.shop-row:active { background: var(--line); }

.shop-th {
  flex: 0 0 auto; width: 66px; height: 66px;
  border-radius: 11px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.shop-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-th.no-img {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
}
.shop-th.no-img .mark { width: 62%; height: 62%; object-fit: contain; opacity: .55; }

.shop-row-main { min-width: 0; flex: 1 1 auto; }
.shop-row-top  { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.shop-row-who  { font-size: 12px; color: var(--muted); font-weight: 600; }
.shop-row-title {
  font-size: 15px; font-weight: 800; color: var(--text);
  line-height: 1.35; word-break: keep-all;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-row-sum {
  margin-top: 2px; font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-row-go { flex: 0 0 auto; font-size: 20px; color: var(--text-mute); }

/* ---------------------------------------------------- 상세 */
.back-link {
  border: 0; background: none; cursor: pointer; font: inherit;
  padding: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--brand);
}
.back-link:hover { text-decoration: underline; }

.shop-hero {
  margin: 0 0 16px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.shop-hero img { width: 100%; display: block; }

.shop-d-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.shop-d-title {
  margin: 0; font-size: 20px; font-weight: 800;
  color: var(--text); line-height: 1.3; word-break: keep-all;
}
.shop-d-cat { margin-top: 4px; font-size: 13px; color: var(--muted); }

.shop-rows {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 5px 14px; margin: 16px 0 0;
  font-size: 14px; line-height: 1.5;
}
.shop-rows dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.shop-rows dd { margin: 0; min-width: 0; word-break: break-all; }
.shop-rows dd a { color: var(--brand); text-decoration: none; }
.shop-rows dd a:hover { text-decoration: underline; }

.shop-text {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px; line-height: 1.7; color: var(--text-soft);
  white-space: pre-wrap; word-break: keep-all;
}

.shop-act {
  display: flex; gap: 8px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.shop-act .btn { flex: 1 1 0; }

.badge-promo { background: #e8f0fe; color: #1a4d8f; }
.badge-news  { background: #fdf0e3; color: #8a5100; }

@media (max-width: 480px) {
  .shop-row { gap: 10px; padding: 11px 12px; }
  .shop-th  { width: 56px; height: 56px; border-radius: 9px; }
  .shop-row-title { font-size: 14px; }
  .shop-row-sum   { font-size: 12px; }
  .shop-d-title   { font-size: 18px; }
  .shop-rows { font-size: 13.5px; gap: 4px 12px; }
  .shop-act { flex-wrap: wrap; }
}


@media (max-width: 480px) {
  .shop-rows { grid-template-columns: max-content 1fr; gap: 3px 10px; font-size: 13px; }
}

/* ====================================================== 사진 · 영상 */
.album-list {
  display: grid; gap: 16px 14px; margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  align-items: start;
}

.album-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.album-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

.album-link { display: block; text-decoration: none; }

.album-thumb {
  position: relative; aspect-ratio: 16 / 10;
  background: #eceee9; border-bottom: 1px solid var(--line);
}
.album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-thumb .play {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 34px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.album-thumb.no-img {
  display: flex; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center; color: var(--muted);
}
.album-thumb.no-img .ico { font-size: 26px; line-height: 1; opacity: .5; }
.album-thumb.no-img .go  { font-size: 11.5px; font-weight: 600; }

.album-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; }

.album-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.4; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-who  { font-size: 12px; color: var(--muted); font-weight: 600; }
.album-when { font-size: 11.5px; color: var(--text-mute); }
.album-act  { display: flex; gap: 6px; margin-top: 4px; }
.album-act .btn { flex: 1 1 0; }

.badge-youtube { background: #fdecea; color: #b3261e; }
.badge-naver   { background: #e6f4ea; color: #1e7a3c; }
.badge-band    { background: #e8f0fe; color: #1a4d8f; }
.badge-gphoto  { background: #fef7e0; color: #8a6100; }
.badge-insta   { background: #fdeaf4; color: #a3186a; }
.badge-drive   { background: #e8f0fe; color: #1a4d8f; }
.badge-kakao   { background: #fef7c0; color: #6b5300; }
.badge-link    { background: var(--bg-soft); color: var(--muted); }

@media (max-width: 560px) {
  .album-list { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .album-title { font-size: 13px; }
  .album-body  { padding: 9px 10px 10px; gap: 4px; }
  .album-act   { flex-direction: column; }
}


@media (max-width: 480px) {
  .album-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .album-title { font-size: 13px; }
  .album-body { padding: 9px 10px 10px; }
}

.field-pick { margin: 10px 0 4px; }
.field-pick label { display: block; margin-bottom: 5px; font-size: 12.5px;
                    font-weight: 700; color: var(--muted); }
.field-pick .select { width: 100%; }

/* 상세 아래 이전글 · 다음글 · 목록 */
.post-nav {
  margin-top: 22px; padding-top: 4px;
  border-top: 1px solid var(--line);
}
.post-nav-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 2px; border: 0; background: none; font: inherit;
  text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.post-nav-row:hover:not(.off) { background: var(--bg-soft); }
.post-nav-row.off { cursor: default; }

.post-nav-lab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  min-width: 66px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.post-nav-lab .arw { font-size: 13px; opacity: .7; }

.post-nav-tit {
  min-width: 0; flex: 1 1 auto;
  font-size: 13.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-nav-row.off .post-nav-tit { color: var(--text-mute); }

.post-list-cap {
  margin: 20px 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .03em; color: var(--muted);
}
.shop-row.now { background: var(--bg-soft); cursor: default; }
.shop-row.now .shop-row-title { color: var(--brand); }
.shop-row.now .shop-row-go { visibility: hidden; }

.post-nav-act { display: flex; justify-content: center; margin-top: 16px; }
.post-nav-act .btn { min-width: 140px; }

@media (max-width: 480px) {
  .post-nav-lab { min-width: 58px; font-size: 12px; }
  .post-nav-tit { font-size: 13px; }
}

/* 사진·영상 : 행사별 머리말 */
.album-list { align-items: start; }
.album-group {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  margin: 24px 0 4px; padding: 8px 12px;
  border-radius: 9px; background: var(--bg-soft);
  border-left: 3px solid var(--brand);
}
.album-group:first-child { margin-top: 6px; }
.album-group .g-title { font-size: 14.5px; font-weight: 800; color: var(--brand-ink, var(--text)); }
.album-group .g-date  { font-size: 12px; font-weight: 600; color: var(--muted); }

/* 카드에 붙는 행사 이름 */
.album-ev {
  font-size: 11.5px; font-weight: 700; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 상세 맨 위의 행사 표시 */
.event-chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 12px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text);
}
.event-chip:hover { background: var(--line); }
.event-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); flex: 0 0 auto;
}
.event-chip .d { font-weight: 600; color: var(--muted); }

/* 페이지 안에서 영상 재생 */
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 0 0 16px; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
/* 쇼츠는 세로라 폭을 줄여 화면을 덜 차지하게 합니다 */
.video-wrap.is-short {
  aspect-ratio: 9 / 16;
  max-width: 340px; margin-left: auto; margin-right: auto;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* 카드에 붙는 댓글 수 */
.cmt-count {
  margin-left: 7px; padding: 1px 6px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
  font-size: 11px; font-weight: 700;
}

/* 댓글 */
.cmt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.cmt-head h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--text); }

.cmt-list { display: grid; gap: 2px; }
.cmt-empty { padding: 14px 2px; font-size: 13px; color: var(--text-mute); }

.cmt-item { padding: 11px 2px; border-bottom: 1px solid var(--line); }
.cmt-item:last-child { border-bottom: 0; }
.cmt-top { display: flex; align-items: center; gap: 8px; }
.cmt-top b { font-size: 13px; color: var(--text); }
.cmt-when { font-size: 11.5px; color: var(--text-mute); }
.cmt-del {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--danger, #b3261e);
}
.cmt-del:hover { text-decoration: underline; }
.cmt-body {
  margin: 5px 0 0; font-size: 13.5px; line-height: 1.6;
  color: var(--text-soft); white-space: pre-wrap; word-break: break-word;
}

.cmt-form {
  margin-top: 14px; padding: 13px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; gap: 8px;
}
.cmt-who { display: grid; grid-template-columns: 1fr 88px; gap: 8px; }
.cmt-form .btn-row { justify-content: flex-end; }

@media (max-width: 480px) {
  .video-wrap.is-short { max-width: 100%; }
}

/* 관리자 : 댓글이 어디에 달렸는지 */
.cmt-where {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 5px; padding: 3px 9px 3px 4px;
  border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--brand);
  text-decoration: none; max-width: 100%;
}
.cmt-where:hover { background: var(--line); }
.cmt-where.off { color: var(--text-mute); }
.cmt-where .tag {
  padding: 1px 6px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 700; flex: 0 0 auto;
}
.cmt-where .go { font-size: 11px; opacity: .7; }

.cmt-said {
  margin: 3px 0 4px; padding: 7px 10px;
  border-radius: 8px; background: var(--bg-soft);
  font-size: 13px; line-height: 1.55; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}

/* 관리자 : 사진·영상 목록 */
.a-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }

.a-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-bottom: 1px solid var(--line);
}
.a-row:last-child { border-bottom: 0; }
.a-row.off { background: var(--bg-soft); opacity: .72; }

.a-th {
  width: 84px; height: 56px; border-radius: 8px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.a-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-th.no-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--muted); opacity: .5;
}

.a-main { min-width: 0; flex: 1 1 auto; }
.a-top  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.a-ev   { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.a-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.a-meta {
  margin-top: 2px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.a-act { flex: 0 0 auto; display: flex; gap: 5px; }

@media (max-width: 700px) {
  .a-row { flex-wrap: wrap; }
  .a-th  { width: 64px; height: 46px; }
  .a-act { width: 100%; }
  .a-act .btn { flex: 1 1 0; }
}


/* ==========================================================================
   신일 에메랄드 — 마무리 층
   앞의 규칙을 덮어씁니다. 되돌리려면 이 아래만 지우면 됩니다.
   ========================================================================== */

/* ------------------------------------------------ 글자 */
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
               BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;      /* 한글은 살짝 좁혀야 덜 성깁니다 */
  line-height: 1.65;
}

h1, h2, h3, h4 {
  letter-spacing: -0.025em;     /* 제목은 더 좁게 */
  line-height: 1.3;
  word-break: keep-all;         /* 한글 단어를 자르지 않습니다 */
}

.card-head h2 { font-weight: 800; }

/* 숫자는 폭을 고르게 — 집계표가 흔들리지 않습니다 */
.stat .v, .sheet td, .sheet th, .reg-head b, .cnt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------ 머리띠 */
.topbar {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--ink) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, var(--sh-1);
}
.topbar h1 { letter-spacing: -0.03em; }

/* ------------------------------------------------ 카드 */
.card {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  border-color: var(--line);
}

/* ------------------------------------------------ 버튼 */
.btn {
  border-radius: var(--r-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color .14s ease, border-color .14s ease,
              box-shadow .14s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(12,107,55,.25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(12,107,55,.3);
}

.btn-lg { border-radius: var(--r); font-size: 16px; }

/* 눈으로 초점을 따라갈 수 있게 */
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* ------------------------------------------------ 입력칸 */
.input, .select, .textarea {
  border-radius: var(--r-sm);
  border-color: var(--line-2);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }

/* ------------------------------------------------ 알약 표시 */
.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 2px 9px;
}

/* ------------------------------------------------ 탭 */
.tabs-main button {
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color .14s ease, background-color .14s ease;
}

/* ------------------------------------------------ 통계 상자 */
.stats .stat {
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.stats .stat .v {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}
.stats .stat .k { color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------ 팝업 */
.modal {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}

/* ------------------------------------------------ 목록 줄 */
.shop-rows-list, .a-list, .event-list, .album-card {
  border-radius: var(--r);
}
.event-item, .shop-row, .a-row {
  transition: background-color .14s ease;
}

/* ------------------------------------------------ 바닥글 */
.site-foot {
  background: linear-gradient(180deg, var(--ink) 0%, #06210f 100%);
}

/* ------------------------------------------------ 움직임을 싫어하는 분 배려 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 무엇으로 보낼지 고르는 줄 */
.pick-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 8px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer; font: inherit; text-align: left;
  transition: border-color .14s ease, background-color .14s ease;
}
.pick-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.pick-t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.pick-d { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pick-go { margin-left: auto; font-size: 20px; color: var(--text-mute); }

/* 교표 마크 — 흰 판 위에 초록 마크가 올라갑니다 */
.topbar .logo, .foot-logo {
  background: #fff;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* ====================================================== 업데이트 내역 */
.ver {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ver:last-child { border-bottom: 0; }

.ver-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.ver-no {
  flex: 0 0 auto; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ver-no.now { background: var(--brand); border-color: var(--brand); color: #fff; }
.ver-title { font-size: 15px; font-weight: 800; color: var(--text); }
.ver-date  { margin-left: auto; font-size: 12px; color: var(--text-mute); }

.ver-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ver-items li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; line-height: 1.6;
}
.ver-txt { min-width: 0; color: var(--text-soft); word-break: keep-all; }
.ver-txt b { color: var(--text); font-weight: 700; }

.ver-items .tag {
  flex: 0 0 auto; margin-top: 2px;
  min-width: 44px; text-align: center;
  padding: 2px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: -.02em;
}
.tag-new { background: var(--brand-soft); color: var(--brand); }
.tag-imp { background: #eef2f8;           color: #33507a; }
.tag-fix { background: var(--danger-soft); color: var(--danger); }
.tag-sec { background: #fdf3e3;           color: #8a5100; }

@media (max-width: 480px) {
  .ver-date { margin-left: 0; width: 100%; }
  .ver-items li { font-size: 13px; }
}

/* ====================================================== 동문 마당 손질 */

/* 목록 줄 : 조금 더 시원하게 */
.shop-rows-list { border-radius: var(--r-lg); box-shadow: var(--sh-1); }

.shop-row { padding: 15px 16px; gap: 14px; align-items: flex-start; }
.shop-row:hover .shop-row-title { color: var(--brand); }

.shop-th {
  width: 78px; height: 78px; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16,24,18,.10);
}
.shop-th.no-img { background: var(--brand-soft); border-color: var(--brand-line); }
.shop-th.no-img .mark { width: 58%; height: 58%; opacity: .42; }

.shop-row-top { gap: 7px; margin-bottom: 5px; }
.shop-row-cat {
  padding: 1px 7px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.shop-row-title {
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  transition: color .14s ease;
  white-space: normal; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 주소 · 전화 · 시간을 칩으로 */
.shop-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px;
}
.shop-chips .chip {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; padding: 3px 9px;
  border-radius: 999px; background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 600; color: var(--brand-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-chips .chip.soft {
  background: var(--bg-soft); border-color: var(--line); color: var(--muted);
}
.shop-chips .i { font-size: 11px; line-height: 1; }

.shop-row-go { align-self: center; font-size: 22px; }

/* 상세 맨 위 : 어디에 있는 글인지 */
.page-bar {
  display: flex; align-items: center; gap: 10px;
  margin: -2px 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.page-bar .back-link { padding: 0; }
.page-bar-name {
  margin-left: auto;
  padding: 3px 11px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 800; color: var(--brand-ink);
}

@media (max-width: 480px) {
  .shop-row { padding: 12px 12px; gap: 11px; }
  .shop-th  { width: 64px; height: 64px; border-radius: 10px; }
  .shop-row-title { font-size: 14.5px; }
  .shop-chips .chip { font-size: 11.5px; padding: 2px 8px; }
}

/* 배너가 없을 때 빈 자리가 남던 문제
   (:empty 규칙이 아래 .banner-strip 에 덮이고 있었습니다) */
.banner-strip:empty { display: none !important; margin: 0 !important; }

/* 탭 바로 아래 여백을 조금 줄입니다 */
main.wrap { padding-top: 14px; }

/* 배너가 없으면 감싸는 상자까지 접습니다 (아래 패딩 48px 이 남던 문제) */
.banner-wrap { padding-bottom: 0; }
.banner-wrap:has(.banner-strip:empty) { display: none; }
.banner-wrap .banner-strip { margin-bottom: 18px; }

/* 후원 카드에 그림이 없을 때는 교표를 씁니다 */
.banner-mark { overflow: hidden; }
.banner-mark img { width: 60%; height: 60%; object-fit: contain; opacity: .5; }

/* ====================================================== 행사 안내 공유 */
.hero-top {
  display: flex; align-items: flex-start; gap: 12px;
  flex-wrap: wrap;
}
.hero-top h2 { margin: 0; flex: 1 1 auto; min-width: 0; }

.hero-share {
  flex: 0 0 auto; margin-top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-ink);
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease;
}
.hero-share:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero-share .i { font-size: 13px; line-height: 1; }

@media (max-width: 560px) {
  .hero-top { flex-direction: column; gap: 10px; }
  .hero-share { width: 100%; justify-content: center; padding: 10px 14px; }
}

/* ====================================================== 행사 당일 접수대 */
.desk-sum {
  margin-top: 12px; padding: 16px;
  border-radius: var(--r); background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.desk-big { font-size: 15px; color: var(--brand-ink); font-weight: 600; }
.desk-big b {
  font-size: 34px; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.desk-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.desk-bar {
  margin-top: 10px; height: 8px; border-radius: 999px;
  background: #fff; overflow: hidden;
}
.desk-bar span {
  display: block; height: 100%; background: var(--brand);
  transition: width .3s ease;
}

/* 접수대는 서서 쓰는 화면이라 칸을 크게 잡습니다 */
.input-lg { font-size: 17px; padding: 14px 14px; }

#deskFilter { margin-top: 8px; }
#deskFilter .btn.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

.desk-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.desk-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  background: #fff;
}
.desk-row:last-child { border-bottom: 0; }
.desk-row.on { background: var(--brand-soft); }

.desk-who { min-width: 0; flex: 1 1 auto; }
.desk-name { font-size: 17px; font-weight: 700; color: var(--text); }
.desk-row.on .desk-name { color: var(--brand-ink); }
.desk-cls {
  display: inline-block; margin-right: 7px; padding: 1px 8px;
  border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.desk-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* 손가락으로 누르는 버튼이라 크게 */
.desk-hit {
  flex: 0 0 auto; min-width: 82px; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.desk-hit:active { transform: translateY(1px); }

/* 왔음 · 먼저 감 — 위아래로 나란히 */
.desk-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.desk-out {
  min-width: 82px; padding: 7px 10px;
  border-radius: 10px; border: 1px dashed var(--line-2);
  background: #fff; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.desk-out:active { transform: translateY(1px); }
.desk-out.on { border-style: solid; border-color: #b98a2e; background: #fff8e8; color: #8a6410; }

/* 먼저 가신 분 줄은 한 톤 죽여 둡니다 — 찾는 것은 남아 계신 분입니다 */
.desk-row.gone { background: #fbfbf9; }
.desk-row.gone .desk-name { color: var(--muted); }
.tag-left {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: #fff3d8; color: #8a6410;
  font-size: 11.5px; font-weight: 700;
}
.desk-left {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.desk-left .i { margin-right: 5px; }
.desk-left b { color: var(--text); }
.desk-hit.on {
  background: #fff; color: var(--muted); border-color: var(--line-2);
  font-weight: 700;
}

/* 자료 내려받기 */
.backup-box {
  margin-top: 22px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-soft);
}
.backup-t { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }

@media (max-width: 480px) {
  .desk-name { font-size: 16px; }
  .desk-hit  { min-width: 74px; padding: 12px 12px; font-size: 14px; }
  .desk-out  { min-width: 74px; padding: 6px 8px; font-size: 12.5px; }
  .desk-big b { font-size: 30px; }
}

/* 어디에 올린 링크인지 표시하기 */
.tag-maker {
  margin: 16px 0 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft);
}
.tag-maker h3 { margin: 0 0 4px; font-size: 15px; }
.tag-out { display: flex; gap: 8px; margin-top: 10px; }
.tag-out .input { flex: 1 1 auto; font-size: 13px; }

/* 지도 바로 밑 순위 두 개 */
.geo-ranks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-top: 12px;
}

/* 진짜 지도 (관리자 방문 통계에서만) */
.geo-leaf {
  height: 320px; margin: 12px 0 4px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.geo-leaf .leaflet-container { font: inherit; }
@media (max-width: 520px) { .geo-leaf { height: 260px; } }

/* 어디서 보시나 */
.geo-box {
  margin: 16px 0 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft);
}
.geo-head { display: flex; align-items: center; gap: 12px; }
.geo-head h3 { margin: 0; font-size: 15px; flex: 1 1 auto; }

/* 찬조 · 협찬해 주신 분들 */
.giver-list { border-top: 1px solid var(--line); }
.giver-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
}
.giver-who {
  flex: 0 0 auto; min-width: 96px;
  font-weight: 700; color: var(--brand-ink); word-break: keep-all;
}
.giver-what { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.giver-cash, .giver-goods {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 600; word-break: keep-all;
}
.giver-cash  { background: var(--brand-soft); color: var(--brand-ink); }
.giver-goods { background: var(--bg-soft); color: var(--text-dim);
               border: 1px solid var(--line); }
@media (max-width: 520px) {
  .giver-row { gap: 8px; }
  .giver-who { min-width: 82px; font-size: 14px; }
  .giver-cash, .giver-goods { font-size: 12.5px; }
}

/* 교가 · 응원가 */
.song + .song { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.song-title {
  margin: 0 0 8px; font-size: 15px; color: var(--brand-ink); letter-spacing: -.2px;
}
.song-body { font-size: 15.5px; line-height: 1.9; color: var(--text); word-break: keep-all; }
.song-line { padding: 1px 0; }

/* 동문 주소록 */
.dir-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dir-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff;
}
.dir-row:last-child { border-bottom: 0; }
.dir-row.noclass { background: #fffdf5; }
.dir-cls {
  flex: 0 0 auto; min-width: 52px; text-align: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.dir-row.noclass .dir-cls { background: #fff3d8; border-color: #f0dCa8; color: #8a6410; }
.dir-name { flex: 1 1 auto; min-width: 0; font-weight: 700; color: var(--text); }
.dir-phone { flex: 0 0 auto; font-size: 13px; color: var(--muted);
             font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .dir-phone { font-size: 12px; }
  .dir-name  { font-size: 14px; }
}

/* 신청 건수 밑의 사람 수 */
.cnt-sub { margin-top: 1px; font-size: 11px; font-weight: 600; color: var(--muted); }

/* 접속 주소 — 방문자 칸 밑에 작게 */
.ip {
  margin-top: 2px; font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; word-break: break-all;
}

/* 참석 명단 이름 뒤의 도착·귀가 표시 */
/* em 을 쓰면 표 글씨가 줄 때 같이 줄어서 9px 까지 내려갑니다.
 * 읽으라고 붙인 표시가 안 읽히면 없느니만 못하므로 px 로 못 박습니다. */
.mark {
  display: inline-block; margin-left: 5px;
  font-size: 13px; font-weight: 700; line-height: 1;
  vertical-align: baseline;
}
.mark-here { color: var(--brand-2, #2e7d4f); }
.mark-left {
  color: var(--text-dim, #8a8f8b);
  font-size: 11.5px; letter-spacing: -.3px;
}
.mark-bus { font-size: 12.5px; }

/* 접수대 — 몇 시에 오시고 몇 시에 가셨는지 */
.desk-time {
  margin-left: 6px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); white-space: nowrap;
}
.desk-time.in  { color: var(--brand-2, #2e7d4f); }

/* 행사 당일 — 지금 몇 분 오셨나 */
.sheet-here {
  margin: 8px 0 0; padding: 9px 12px; border-radius: 8px;
  background: var(--brand-soft); border: 1px solid var(--brand-2);
  color: var(--brand); font-size: 14px; font-weight: 700;
}

/* 표 밑에 붙는 설명 */
.sheet-legend {
  margin-top: 6px; font-size: 12.5px; color: var(--text-dim);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.sheet-legend b { font-weight: 700; }

/* 이름으로 기수를 찾았을 때 뜨는 한 마디 */
.cls-hint { color: var(--brand); font-weight: 700; }

/* 글자 수가 한도를 넘었을 때 */
.tiny.over { color: var(--danger, #c0392b); font-weight: 700; }

/* 옆 메뉴에서 딴 쪽으로 나가는 줄 (설명서) */
.side-menu .side-link {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 10px 12px; border-radius: 8px;
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 600; text-align: left;
}
.side-menu .side-link:hover { background: var(--bg-soft); color: var(--text); }
.side-out { font-size: 12px; opacity: .7; }

/* 명단 — 새로 들어온 분 */
.reg-new {
  display: inline-block; margin-right: 6px;
  padding: 1px 7px; border-radius: 999px;
  background: #e8f1ff; color: #1f5fbf; border: 1px solid #bcd3f5;
  font-size: 11.5px; font-weight: 700; vertical-align: 1px;
}
.reg-fresh {
  margin-right: 8px; padding: 3px 10px; border-radius: 999px;
  background: #e8f1ff; color: #1f5fbf; border: 1px solid #bcd3f5;
  font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.reg-fresh:hover { background: #d7e7ff; }
/* 명단 머리줄 안에 들어가는 작은 갈래 — 무대용 여백을 걷어 냅니다 */
.seg.seg-sm { margin: 0; padding: 3px; }
.seg-sm .seg-btn { padding: 5px 11px; font-size: 12.5px; }
#regSort { margin-right: 8px; }
@media (max-width: 560px) {
  .reg-head-bar { flex-wrap: wrap; row-gap: 6px; }
}

/* 명단 — 총무가 받아 적은 신청 */
.reg-src {
  display: block; margin-top: 2px;
  font-size: 11.5px; color: var(--text-dim); font-weight: 600;
}
.reg-when[title] { cursor: help; }

/* 안내문 끝에 붙는 '자세히' 링크 */
.hint-more {
  margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-2);
  color: var(--brand); text-decoration: none;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.hint-more:hover { background: var(--brand-2); color: #fff; }

/* 발바닥 메뉴의 링크는 옆 단추들과 **똑같이** 보여야 합니다.
 * block/100% 로 뒀더니 '이용 안내' 만 한 줄을 통째로 차지했습니다. */
.foot-menu a {
  border: 0; background: none; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,.72);
  padding: 7px 12px; border-radius: 6px;
  display: inline-flex; align-items: center;
}
.foot-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* 안 오신 분 명단 */
.away-list { max-height: 52vh; overflow-y: auto; margin: 4px 0 10px; }
.away-grp { padding: 10px 0; border-bottom: 1px solid var(--line); }
.away-grp:last-child { border-bottom: 0; }
.away-cls { margin-bottom: 6px; font-size: 14px; }
.away-names { display: flex; flex-wrap: wrap; gap: 6px; }
.away-one {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600;
}
.away-one.nop { background: #fdf1e3; border-color: #f0d6b0; }
.away-ph { font-size: 12.5px; font-weight: 500; color: var(--text-dim);
           font-variant-numeric: tabular-nums; }
.away-ph.none { color: #9a5b00; }
.away-job { font-size: 12px; color: var(--text-dim); }

/* 연결이 끊겼을 때 화면 맨 위에 붙는 띠 */
.off-bar {
  position: sticky; top: 0; z-index: 900;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 11px 16px;
  background: #b3261e; color: #fff;
  font-size: 14px; line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.off-bar b { font-weight: 800; }
@media (max-width: 560px) { .off-bar { font-size: 13px; padding: 10px 12px; } }

/* 접수대 — 연락처를 어디서도 못 찾는 분 */
.tag-nophone {
  display: inline-block; margin-left: 6px;
  padding: 1px 7px; border-radius: 6px;
  background: #fdf1e3; color: #9a5b00; border: 1px solid #f0d6b0;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* 이름을 눌러 펼쳐 보는 카드 */
.reg-name.tap, .desk-name .tap { cursor: pointer; text-underline-offset: 3px; }
.reg-name.tap:hover, .desk-name .tap:hover { text-decoration: underline; }
.who { display: grid; gap: 2px; margin: 4px 0 10px; }
.who-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px;
  padding: 7px 2px; border-bottom: 1px solid var(--line);
}
.who-row:last-child { border-bottom: 0; }
.who-k { color: var(--text-dim); font-size: 13px; }
.who-v { font-size: 14px; word-break: break-all; }
.who-v.strong { font-weight: 700; color: var(--brand); }
.who-v .btn { margin-top: 6px; }

/* 주소록 목록 — 하는 일. 이름보다 뒤로 물러나 있어야 합니다 */
.dir-job {
  flex: 0 1 auto; min-width: 0; max-width: 42%;
  color: var(--text-dim); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 좁은 화면에서는 이름·번호가 먼저입니다. 하는 일은 수정 창에서 보세요 */
@media (max-width: 520px) { .dir-job { display: none; } }
.who-v > div { display: inline; }

/* 신청자 명단 — 조직도에 있는 분.
 * 알아보기만 하면 되는 곁가지라 테두리도 바탕도 두지 않습니다.
 * 명단에서 눈에 먼저 들어와야 하는 건 이름이지 직책이 아닙니다. */
.reg-role {
  margin-left: 6px;
  color: var(--text-dim); font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}

/* 눌러서 거를 수 있는 숫자 타일 */
.stat.tap { cursor: pointer; transition: border-color .12s, background .12s; }
.stat.tap:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.stat.tap.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.stat.tap.on .v { color: var(--brand); }

/* 서버 사용량 */
.usage-rows { display: grid; gap: 6px; margin-bottom: 10px; }
.usage-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 10px; background: var(--soft); border-radius: 8px;
}
.usage-k { font-weight: 600; }
.usage-v { font-variant-numeric: tabular-nums; }
.usage-bar {
  height: 10px; border-radius: 999px; background: var(--line);
  overflow: hidden; margin: 10px 0 6px;
}
.usage-bar > span { display: block; height: 100%; background: var(--brand); }
.usage-parts {
  margin: 6px 0 0; padding-left: 18px;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* 카톡 미리보기 그림 고르는 줄 */
.og-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.og-prev {
  width: 200px; aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: #eee;
}

/* 글처럼 보이는 단추 */
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--brand-ink); text-decoration: underline;
}

/* 접속 주소 밑에 지역 한 줄 */
.place {
  margin-top: 1px; font-size: 11px; font-weight: 600;
  color: var(--brand-ink); word-break: keep-all;
}

/* 검색해서 오신 분의 검색어 */
.kw { margin-left: 6px; color: var(--brand-ink); font-weight: 600; }

/* 자주 갈 곳은 아니지만 길은 있어야 하는 자리 (휴지통 등) */
.btn-quiet { color: var(--muted); border-style: dashed; }

/* 접수대 회비 */
.desk-money {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--brand-line);
  font-size: 13px; color: var(--muted);
}
.desk-money b {
  color: var(--brand-ink); font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.desk-money .tot b { font-size: 16px; }
.desk-money .small { font-size: 12px; }

.fee-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 9px;
}
.fee-amt {
  width: 104px; padding: 8px 10px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fee-btn {
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer;
}
.fee-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fee-done { font-size: 12.5px; font-weight: 700; color: var(--brand); }

@media (max-width: 480px) {
  .fee-amt { width: 92px; }
  .fee-btn { padding: 8px 10px; }
}

/* 접수대 : 버스 · 2차 표시 */
.desk-bus {
  display: flex; align-items: center; gap: 5px;
  margin-top: 9px; padding-top: 9px;
  border-top: 1px solid var(--brand-line);
  font-size: 13px; color: var(--muted);
}
.desk-bus b { color: var(--brand-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.desk-bus .i { font-size: 14px; }

.desk-meta .tag-bus,
.desk-meta .tag-car,
.desk-meta .tag-after {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.desk-meta .tag-bus   { background: #e6f0fb; color: #1a4d8f; }
.desk-meta .tag-car   { background: var(--bg-soft); color: var(--muted); }
.desk-meta .tag-after { background: #fdf0e3; color: #8a5100; }

.desk-money .warn { color: var(--danger); font-weight: 700; }

/* 접수대 검색창 — 검색이라는 게 바로 보이게 */
.desk-search { position: relative; display: block; }
.desk-search .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; opacity: .5; pointer-events: none;
}
.desk-search .input { padding-left: 44px; padding-right: 40px; }
.desk-search .input::-webkit-search-cancel-button { display: none; }
.desk-search .clr {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: var(--line); color: var(--muted);
  font: inherit; font-size: 13px; cursor: pointer;
}
.desk-search .clr:hover { background: var(--line-2); color: var(--text); }

/* 회비를 더 내시는 분 : 빠르게 올리기 */
.fee-bump { display: flex; gap: 4px; }
.fee-plus {
  padding: 8px 9px; border-radius: 8px;
  border: 1px dashed var(--line-2); background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted);
  cursor: pointer;
}
.fee-plus:hover { border-color: var(--brand); color: var(--brand); }
.fee-plus.reset { border-style: solid; }
.desk-money .plus { color: var(--brand); font-weight: 700; }

.fee-plus.minus { border-color: var(--line-2); color: var(--danger); }
.fee-plus.minus:hover { border-color: var(--danger); color: var(--danger); }

/* 저장됐다는 표시 */
.fee-amt.saved {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  transition: none;
}

/* ====================================================== 오늘 오신 분 */
.arrived {
  margin-top: 20px; padding: 16px;
  border: 1px solid var(--brand-line); border-radius: var(--r);
  background: var(--brand-soft);
}
.arrived-head { display: flex; align-items: baseline; gap: 10px; }
.arrived-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: var(--brand-ink);
}
.arrived-cnt { margin-left: auto; font-size: 13px; color: var(--muted); }
.arrived-cnt b {
  font-size: 20px; font-weight: 800; color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.arrived-bar {
  margin: 10px 0 12px; height: 8px; border-radius: 999px;
  background: #fff; overflow: hidden;
}
.arrived-bar span {
  display: block; height: 100%; background: var(--brand);
  transition: width .4s ease;
}

.arrived-names { display: flex; flex-wrap: wrap; gap: 6px; }
.arrived-one {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-line);
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.arrived-one .c {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}

@media (max-width: 480px) {
  .arrived { padding: 14px; }
  .arrived-one { font-size: 13px; padding: 4px 9px; }
}

/* ====================================================== 방문 통계 카드 */
.stat-cards {
  display: grid; gap: 12px; margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.stat-card {
  padding: 15px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff; box-shadow: var(--sh-1);
}
.stat-card.wide { grid-column: 1 / -1; }
.stat-card h4 {
  margin: 0 0 12px; font-size: 13.5px; font-weight: 800; color: var(--text);
}
.stat-empty { font-size: 12.5px; color: var(--text-mute); padding: 6px 0; }

/* 순위 막대 */
.rank { display: grid; gap: 7px; }
.rank-row { position: relative; padding: 7px 2px; }
.rank-bar {
  position: absolute; inset: 0; border-radius: 6px;
  background: var(--bg-soft); overflow: hidden;
}
.rank-bar span {
  display: block; height: 100%; background: var(--brand-soft);
  border-right: 2px solid var(--brand-line);
}
.rank-txt {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  padding: 0 9px;
}
.rank-k {
  min-width: 0; flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-n { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.rank-n b {
  font-size: 13.5px; font-weight: 800; color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

/* 지난 7일 */
.week-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.week-row:last-of-type { border-bottom: 0; }
.week-k { flex: 1 1 auto; font-size: 13px; color: var(--muted); }
.week-v {
  font-size: 18px; font-weight: 800; color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.week-d { font-size: 12px; font-weight: 700; color: var(--text-mute); min-width: 58px;
          text-align: right; }
.week-d.up   { color: var(--brand); }
.week-d.down { color: var(--danger); }
.week-best {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}

/* 하루 중 언제 */
.hours {
  display: flex; align-items: flex-end; gap: 2px; height: 96px;
  padding-bottom: 16px; position: relative;
}
.hour {
  flex: 1 1 0; height: 100%; position: relative;
  display: flex; align-items: flex-end;
}
.hour .bar {
  width: 100%; background: var(--brand-line); border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.hour.top .bar { background: var(--brand); }
.hour .tick {
  position: absolute; bottom: -16px; left: 0;
  font-size: 10.5px; color: var(--text-mute); white-space: nowrap;
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .hours { height: 80px; }
}


/* ==========================================================================
   집계표 색 위계
   연두색 하나로 제목·합계·안내·찬조를 다 칠하던 것을 역할별로 나눕니다.
   같은 색이면 눈이 어디를 먼저 봐야 할지 모릅니다.
   ========================================================================== */

/* 1단계 — 표 제목 : 이 표가 무엇인지. 가장 진하게 */
table.sheet .sheet-head .c-title {
  background: var(--brand);
  color: #fff;
  letter-spacing: -.01em;
}
table.sheet .sheet-head .c-class,
table.sheet .sheet-head .c-num {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
}

/* 2단계 — 합계 : 표 안에서 가장 중요한 숫자. 연두는 여기만 씁니다 */
table.sheet .sheet-total th,
table.sheet .sheet-total td {
  background: var(--sheet-hl);
  color: var(--sheet-ink);
  border-top: 2px solid var(--brand);
}
table.sheet .sheet-total .c-grand { font-size: 15px; }

/* 3단계 — 바닥 안내(장소·버스·문의) : 메모처럼 조용히.
   장소는 화면 맨 위 행사 카드에 이미 크게 나오므로 여기서 또 강조할 이유가 없습니다. */
table.sheet .sheet-foot td {
  background: #fff;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -.01em;
  border-top: 1px solid var(--line);
  padding-top: 9px; padding-bottom: 9px;
}
/* 안내 줄끼리는 선을 옅게 — 표가 아니라 메모로 읽히게 */
table.sheet .sheet-foot + .sheet-foot td { border-top: 1px dashed var(--line); }

/* 계좌 줄은 옅은 금색 — 돈 이야기는 초록과 구분합니다 */
table.sheet .sheet-bank td {
  background: #fdf8ec;
  color: #7a5600;
  font-weight: 700;
  border-top: 1px solid #eadfc4;
}

/* 찬조 · 협찬 머리 : 초록을 또 쓰면 합계와 헷갈립니다.
   돈·물품 이야기라 계좌 줄과 같은 옅은 금색 계열로 묶습니다.
   검정에 가까운 띠는 표를 무겁게 눌러 버립니다. */
table.sheet .sheet-sponsor-head th {
  background: #f7f0df;
  color: #7a5600;
  letter-spacing: 3px;
  border-top: 2px solid #d9c48d;
  border-bottom: 1px solid #e6d7ae;
}
table.sheet .sheet-sponsor td { color: var(--text-soft); }

/* 인쇄할 때는 잉크를 아끼되 위계는 남깁니다 */
@media print {
  table.sheet .sheet-head .c-title,
  table.sheet .sheet-head .c-class,
  table.sheet .sheet-head .c-num {
    background: #e8efe9 !important;
    color: #000 !important;
    border: 1px solid #999 !important;
  }
  table.sheet .sheet-total th,
  table.sheet .sheet-total td { background: #f2f5f2 !important; color: #000 !important; }
  table.sheet .sheet-foot td,
  table.sheet .sheet-bank td { background: #fff !important; color: #000 !important; }
  table.sheet .sheet-sponsor-head th {
    background: #f2efe6 !important; color: #000 !important;
    border: 1px solid #999 !important;
  }
}

/* ====================================================== SEO 설정 */
.seo-step {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.seo-step:last-of-type { border-bottom: 0; }
.seo-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.seo-b { min-width: 0; flex: 1 1 auto; }
.seo-t { font-size: 14.5px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.seo-b .field { margin-top: 12px; }
.seo-b .input { font-family: var(--mono); font-size: 12.5px; }

.seo-url {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px;
  border-radius: var(--r-sm); background: var(--bg-soft);
  border: 1px solid var(--line);
}
.seo-url code {
  min-width: 0; flex: 1 1 auto; font-family: var(--mono);
  font-size: 12.5px; color: var(--brand-ink); word-break: break-all;
}

.seo-note {
  margin-top: 18px; padding: 14px;
  border-radius: var(--r-sm); background: #fdf8ec;
  border: 1px solid #eadfc4;
  font-size: 13px; line-height: 1.65; color: #6b4e00;
}

@media (max-width: 480px) {
  .seo-step { gap: 10px; }
  .seo-url .btn { flex: 1 1 auto; }
}

/* ====================================================== 자주 묻는 것 */
.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line); background: #fff; }
.faq-item:last-child { border-bottom: 0; }

.faq-item > summary {
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  word-break: keep-all;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: 'Q'; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.faq-item > summary::after {
  content: '+'; margin-left: auto; flex: 0 0 auto;
  font-size: 18px; color: var(--text-mute); line-height: 1;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item[open] > summary { color: var(--brand-ink); }
.faq-item > summary:hover { background: var(--bg-soft); }

.faq-item > p {
  margin: 0; padding: 0 16px 16px 48px;
  font-size: 13.5px; line-height: 1.7; color: var(--text-soft);
  word-break: keep-all;
}

@media (max-width: 480px) {
  .faq-item > summary { font-size: 14px; padding: 13px 13px; }
  .faq-item > p { padding: 0 13px 14px 45px; font-size: 13px; }
}

/* 사이드 메뉴 묶음 이름 */
.menu-cap {
  margin: 4px 2px 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .03em; color: var(--text-mute);
}
.menu-cap.mt-2 {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  /* 모바일에서는 가로 칩이라 묶음 이름을 한 줄로 */
  .menu-cap { margin: 10px 2px 5px; }
  .menu-cap.mt-2 { margin-top: 12px; padding-top: 12px; }
}

/* ====================================================== SEO 관리 */
.seo-check { margin: 14px 0 4px; }
.seo-score {
  font-size: 13.5px; color: var(--muted); margin-bottom: 10px;
}
.seo-score b {
  font-size: 20px; font-weight: 800; color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.seo-rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seo-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 13px; border-bottom: 1px solid var(--line);
  background: #fff; font-size: 13px;
}
.seo-row:last-child { border-bottom: 0; }
.seo-row .mark {
  flex: 0 0 auto; width: 18px; text-align: center;
  font-weight: 800; color: var(--text-mute);
}
.seo-row.ok .mark { color: var(--brand); }
.seo-row.no { background: #fffdf7; }
.seo-row .k { flex: 0 0 auto; min-width: 118px; font-weight: 700; color: var(--text); }
.seo-row .v { min-width: 0; color: var(--muted); }

/* 구글에 이렇게 보입니다 */
.seo-preview { margin: 16px 0 4px; }
.seo-pv-cap {
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px;
}
.pv-len { font-weight: 600; color: var(--text-mute); }
.pv-len.warn { color: var(--danger); }

.pv-google {
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff;
}
.pv-url   { font-size: 12.5px; color: #4d5156; margin-bottom: 3px; }
.pv-title {
  font-size: 18px; color: #1a0dab; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pv-desc  {
  margin-top: 4px; font-size: 13px; color: #4d5156; line-height: 1.58;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 직접 넣은 문답 */
.faq-admin { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-a-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff;
}
.faq-a-row:last-child { border-bottom: 0; }
.faq-a-row.off { background: var(--bg-soft); opacity: .72; }
.faq-a-q { font-size: 14px; font-weight: 700; color: var(--text); }
.faq-a-a {
  margin-top: 2px; font-size: 12.5px; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.faq-a-m { margin-top: 3px; font-size: 11.5px; color: var(--text-mute); }

@media (max-width: 560px) {
  .seo-row { flex-wrap: wrap; }
  .seo-row .k { min-width: 0; }
  .seo-row .v { flex: 1 0 100%; padding-left: 28px; }
  .faq-a-row { flex-wrap: wrap; }
  .faq-a-row .mine-act { width: 100%; }
}

/* ==================================================================
   경품 추첨
   현장에서 노트북을 큰 화면에 물려 놓고 씁니다. 뒷자리에서도 이름이
   읽혀야 하므로 당첨자 글씨는 화면 폭에 맞춰 커집니다.
   ================================================================== */

/* 동문 / 가족 고르기 */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; max-width: 100%;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; margin: 4px 0 16px;
}
.seg-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim);
  letter-spacing: -0.01em; transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.on {
  background: var(--brand); color: #fff; box-shadow: var(--sh-1);
}

/* 설정 안에서 칸을 나눌 때 — 무대용보다 조용하게 */
.seg-sub { margin: 2px 0 6px; }
.seg-sub .seg-btn { padding: 8px 16px; font-size: 13px; }

/* 뽑는 화면 */
.draw-stage {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 240px; padding: 32px 20px;
  border-radius: var(--r-lg);
  /* 가운데가 밝고 가장자리가 어두운 무대. 통과 공이 앞으로 떠 보입니다. */
  background:
    radial-gradient(ellipse 78% 62% at 50% 40%, rgba(120, 235, 170, .18), transparent 68%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 45%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(165deg, #06251a 0%, #0a3d24 48%, #0c5c33 100%);
  color: #fff; text-align: center;
}
.draw-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #eaf5ee;
}
.draw-prize {
  font-size: 17px; font-weight: 700; color: #e6f6ec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  word-break: keep-all; letter-spacing: -0.01em;
}
/* 돌림판 창 — 한 줄만 보이고 그 안에서 이름이 흘러갑니다 */
.draw-name {
  /* 글자 크기 하나에서 줄 높이를 끌어냅니다. 따로 정하면 화면 폭에 따라
     창과 줄이 어긋나 두 줄이 걸쳐 보입니다. */
  --fs: clamp(30px, 7vw, 68px);
  --rh: calc(var(--fs) * 1.34);
  position: relative; width: 100%; height: var(--rh); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.draw-strip { will-change: transform; }
.draw-row {
  height: var(--rh); line-height: var(--rh);
  font-size: var(--fs); font-weight: 800;
  letter-spacing: -0.03em; white-space: nowrap; overflow: hidden;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
@keyframes reelSpin {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.draw-sub { font-size: 13px; color: #a9cdb8; min-height: 18px;
  white-space: pre-line; line-height: 1.5; }

/* 도는 동안에는 일부러 흐리게 — 눈이 이름을 못 읽어야 두근거립니다 */
.draw-stage.rolling .draw-row { filter: blur(1.2px); opacity: .85; }
.draw-stage .draw-row { transition: filter .25s, opacity .25s; }

/* 멈추는 자리 표시 — 돌림판의 바늘 */
.draw-name::before, .draw-name::after {
  content: ''; position: absolute; top: 50%; margin-top: -7px;
  border: 7px solid transparent; pointer-events: none;
}
.draw-name::before { left: 0;  border-left-color:  var(--brand-2); }
.draw-name::after  { right: 0; border-right-color: var(--brand-2); }

/* 멈추는 순간 */
.draw-stage.hit .draw-row { animation: drawPop .55s cubic-bezier(.2, 1.5, .4, 1); }
.draw-stage.hit::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.34), transparent 62%);
  animation: drawFlash .9s ease-out forwards;
}
@keyframes drawPop {
  0%   { transform: scale(.72); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes drawFlash { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .draw-stage.hit .draw-row { animation: none; }
  .draw-stage.hit::after { animation: none; opacity: 0; }
  .draw-stage.rolling .draw-row { filter: none; }
  .draw-strip { animation: none !important; }
}

/* 전체 화면으로 띄웠을 때 */
.draw-stage:fullscreen { min-height: 100vh; border-radius: 0; gap: 20px; }
.draw-stage:fullscreen .draw-name { --fs: clamp(56px, 13vw, 190px); }
.draw-stage:fullscreen .draw-prize { font-size: clamp(20px, 3vw, 40px); }

/* 조작줄 */
.draw-ctl { display: flex; gap: 8px; margin-top: 14px; align-items: stretch; }
.draw-ctl .select { flex: 1 1 auto; min-width: 0; }
.draw-ctl .select.shrink { flex: 0 1 40%; }
.draw-ctl #drawFree { flex: 1 1 auto; min-width: 0; }
.draw-ctl .btn-lg { width: auto; flex: 0 0 auto; padding-left: 26px; padding-right: 26px; }
.draw-ctl #btnDrawBare { background: #fff; border-color: var(--brand-line); color: var(--brand); font-weight: 600; }

.draw-opt {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px;
}
.draw-opt .check { flex: 0 0 auto; }
.draw-opt .select-sm {
  flex: 0 1 auto; width: auto; height: 40px; padding: 0 32px 0 12px;
  font-size: 13px; font-weight: 600;
}
.draw-opt #btnDrawFull { margin-left: auto; }
.draw-live {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px; padding: 12px 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
}
.draw-live .check { background: transparent; border-color: transparent; padding-left: 0; }
.draw-live .btn { margin-left: auto; }

.draw-pool {
  margin: 8px 0 0; font-size: 13px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* 경품 · 당첨 목록 */
/* 현장 등록 — 손이 바쁠 때 쓰는 한 줄 */
.prize-quick { display: flex; gap: 6px; margin-bottom: 8px; }
.prize-quick .input { flex: 1 1 0; min-width: 0; }
.prize-quick .input:last-of-type { flex: 0 1 34%; }
.prize-quick .btn { flex: 0 0 auto; padding-left: 20px; padding-right: 20px; }

.prize-list { display: flex; flex-direction: column; gap: 6px; }
.prize-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.prize-row.done { background: var(--bg-soft); color: var(--text-mute); }
.prize-c { flex: 1 1 auto; min-width: 0; }
.prize-t { font-size: 14px; font-weight: 600; word-break: keep-all; }
.prize-m { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.prize-row.done .prize-t { text-decoration: line-through; }
.prize-act { display: flex; gap: 6px; flex: 0 0 auto; }
.win-name { color: var(--brand); font-weight: 700; }

@media (max-width: 560px) {
  .draw-stage { min-height: 190px; padding: 26px 16px; }
  .draw-ctl { flex-direction: column; }
  .draw-ctl .btn-lg { width: 100%; }
  .draw-ctl .select.shrink { flex: 1 1 auto; }
  .draw-opt .select-sm { flex: 1 1 100%; width: 100%; }
  .draw-opt #btnDrawFull { margin-left: 0; width: 100%; }
  .prize-quick { flex-wrap: wrap; }
  .prize-quick .input, .prize-quick .input:last-of-type { flex: 1 1 100%; }
  .prize-quick .btn { width: 100%; }
  .prize-row { flex-wrap: wrap; }
  .prize-act { width: 100%; }
  .prize-act .btn { flex: 1 1 auto; }
}
.mt-16 { margin-top: 16px; }

/* ==================================================================
   추첨 연출 — 뽑기 공 · 경품 카드 · 종이꽃
   ================================================================== */

/* 뽑기 공 통 */
.draw-balls {
  display: block; width: 100%;
  height: clamp(190px, 30vw, 320px);
  margin: 2px 0 -4px;
}
.draw-stage:fullscreen .draw-balls { height: clamp(280px, 46vh, 620px); }

/* 어떤 색이 무슨 뜻인지 */
.draw-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin: -2px 0 4px; font-size: 13px; color: #e0f2e7;
}
.draw-legend:empty { display: none; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i {
  width: 12px; height: 12px; border-radius: 50%; background-size: cover;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .75),
              0 0 0 1px rgba(255, 255, 255, .35);
}
/* 통 안에 몇 장 들어 있는지 — 눈에 보이는 공 수와 말이 맞아야 합니다 */
/* 50·60대가 멀리서 보십니다 — 여기만 한 치수 크게 */
.lg.n {
  color: #eaf7ef; font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

/* 공이 도는 동안에는 이름 칸을 비워 둡니다 */
.draw-name.quiet { height: 0; }

/* 종이꽃 */
.fx-confetti {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
}

/* 멈추는 순간 무대가 한 번 들썩입니다 */
.draw-stage.hit { animation: drawShake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes drawShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* 도는 동안 바탕이 숨을 쉽니다 */
.draw-stage.rolling { animation: drawGlow 1.1s ease-in-out infinite alternate; }
@keyframes drawGlow {
  from { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); }
  to   { box-shadow: inset 0 0 60px 0 rgba(18, 160, 78, .45); }
}

@media (prefers-reduced-motion: reduce) {
  .draw-stage.hit { animation: none; }
  .draw-stage.rolling { animation: none; }
}

/* 경품 카드 — 눌러서 바로 뽑기 */
.prize-picks {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.prize-picks.busy { opacity: .5; pointer-events: none; }

.pick {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; min-height: 78px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--r-sm);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pick:hover  { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.pick:active { transform: translateY(0) scale(.985); }
.pick-ico { font-size: 18px; line-height: 1; }
.pick-t {
  font-size: 14px; font-weight: 700; word-break: keep-all;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-m { font-size: 12px; color: var(--text-dim); }

.pick.done {
  background: var(--bg-soft); border-left-color: var(--line-2); color: var(--text-mute);
}
.pick.done .pick-t { text-decoration: line-through; }
.pick.done:hover { transform: none; box-shadow: none; }

.pick-bare { border-left-color: var(--accent); }

@media (max-width: 560px) {
  .prize-picks { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .pick { min-height: 70px; padding: 10px 12px; }
}

/* 추첨이 열린 동안만 나오는 띠 — 그날 그 시간에만 필요한 길입니다 */
.live-strip {
  appearance: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 -10px; padding: 13px 16px;
  font: inherit; font-size: 14px; color: #fff; text-align: left;
  background: linear-gradient(100deg, var(--ink), var(--brand) 70%, var(--brand-2));
  border: 0; border-radius: var(--r);
  box-shadow: var(--sh-2);
  transition: transform .12s, box-shadow .12s;
}
.live-strip:hover  { transform: translateY(-1px); box-shadow: var(--sh-3); }
.live-strip:active { transform: translateY(0); }
.live-strip b { font-weight: 700; letter-spacing: -0.01em; }
.live-go { margin-left: auto; font-size: 13px; color: #cfe8d8; white-space: nowrap; }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: #ffd75e; box-shadow: 0 0 0 0 rgba(255, 215, 94, .7);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  to { box-shadow: 0 0 0 12px rgba(255, 215, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* 글 속에 섞이는 단추 — 링크처럼 보여야 자연스럽습니다 */
.linkish {
  appearance: none; background: none; border: 0; padding: 0;
  font: inherit; color: var(--brand); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--brand-2); }

/* 식순 — 왼쪽에 시간, 오른쪽에 순서. 시간이 없으면 점만 찍습니다 */
.program { list-style: none; margin: 0; padding: 0; }
.program-row {
  position: relative;
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
}
.program-row:last-child { border-bottom: 0; }
.program-row::before {
  content: ''; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft);
}
.program-t {
  flex: 0 0 auto; min-width: 62px;
  font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums;
}
.program-t:empty { min-width: 0; }
.program-w { flex: 1 1 auto; word-break: keep-all; }

@media (max-width: 480px) {
  .program-t { min-width: 54px; font-size: 14px; }
}

/* 후원 카드 위아래 — 지금까지 모인 것과, 함께하는 길 */
.wall-strip {
  display: flex; justify-content: center; margin: -4px 0 14px;
}
.wall-strip-t {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; box-shadow: var(--sh-1);
}
.wall-strip-t:empty { display: none; }

.wall-cta {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px dashed var(--brand-line); text-align: center;
}
.wall-cta-t {
  margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--brand-ink);
}
.wall-cta-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.wall-cta-row .btn { min-width: 132px; }
.wall-cta .hint { margin-top: 10px; }

@media (max-width: 480px) {
  .wall-cta-row .btn { flex: 1 1 auto; min-width: 0; }
}

/* 행사 안내 아래 — 바로 갈 길 */
.info-do { text-align: center; }
.info-do-t {
  margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--brand-ink);
}
.info-do-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.info-do-row .btn-lg { width: auto; min-width: 190px; }

@media (max-width: 480px) {
  .info-do-row { flex-direction: column; }
  .info-do-row .btn-lg { width: 100%; min-width: 0; }
}

/* 오시기로 한 분들 — 기수별로 이름만 */
.roster-sum {
  margin: 0 0 12px; font-size: 15px; color: var(--text-soft);
}
.roster-sum b { color: var(--brand); font-size: 18px; }
.roster { display: flex; flex-direction: column; }
.roster-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.roster-row:last-child { border-bottom: 0; }
.roster-c {
  flex: 0 0 auto; min-width: 54px;
  font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums;
}
.roster-n { flex: 1 1 auto; word-break: keep-all; line-height: 1.7; }

@media (max-width: 480px) {
  .roster-c { min-width: 46px; font-size: 14px; }
  .roster-n { font-size: 14px; }
}

/* 동문회 게시판 — 어디에 남긴 글인지가 한눈에 보여야 합니다 */
.board-form { margin: 4px 0 18px; }
.board-form .cmt-who { margin-bottom: 8px; }

.board { display: flex; flex-direction: column; }
.board-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }

.board-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px;
}
.board-who { font-weight: 700; color: var(--text); }
.board-when { margin-left: auto; font-size: 12px; color: var(--text-mute); }

.board-where {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim);
  background: none; border: 0; padding: 0; font-family: inherit;
}
.board-where.go { cursor: pointer; }
.board-where.go:hover { color: var(--brand); text-decoration: underline; }
.board-where .tag {
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 11px; font-weight: 700;
}

/* 게시판 안의 사진·영상 한 줄 */
.board-photo {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px; margin-bottom: 6px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; text-align: left;
  font: inherit; color: var(--text);
  transition: border-color .12s, background .12s;
}
.board-photo:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.board-thumb {
  flex: 0 0 auto; width: 64px; height: 48px; border-radius: 6px;
  object-fit: cover; background: var(--line);
}
.board-thumb.no {
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.board-photo-t {
  flex: 1 1 auto; min-width: 0; font-weight: 700; word-break: keep-all;
}

.board-body {
  margin: 0; color: var(--text-soft); line-height: 1.7;
  word-break: keep-all; white-space: pre-wrap;
}

@media (max-width: 480px) {
  .board-when { margin-left: 0; width: 100%; }
}

/* 참석자 화면의 남은 경품 — 보여 주기만 합니다 */
.pub-prizes {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.pub-prize {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px; min-height: 72px;
  background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--r-sm);
}
.pub-prize-i { font-size: 17px; line-height: 1; }
.pub-prize-t {
  font-size: 14px; font-weight: 700; word-break: keep-all;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pub-prize-m { font-size: 12px; color: var(--text-dim); }

.pub-prize.done {
  background: var(--bg-soft); border-left-color: var(--line-2); color: var(--text-mute);
}
.pub-prize.done .pub-prize-t { text-decoration: line-through; }

@media (max-width: 560px) {
  .pub-prizes { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
}

/* 지워진 글 — 관리자 목록에서는 남겨 두되 지워졌다고 적습니다 */
.mine-item.off { opacity: .55; }
.tag.gone {
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger);
  font-size: 11px; font-weight: 700;
}

/* 게시판 — 내 글에만 붙는 단추 */
.board-act { display: flex; gap: 12px; margin-top: 8px; }
.linkish.danger { color: var(--danger); }
.linkish.danger:hover { color: #a03227; }
.mb-1 { margin-bottom: 8px; }

/* ---------------------------------------------------------------------
 * 휴대폰에서 너무 작은 글 막기.
 *
 * 동문회 화면은 쉰에서 일흔 사이 분들이 많이 보십니다. 10~11px 은
 * 안경을 벗고는 못 읽습니다. 자잘한 안내문까지 12px 아래로는 안 내려가게
 * 바닥을 깔아 둡니다. 여기보다 더 자세한 규칙이 있으면 그쪽이 이기므로,
 * 일부러 작게 쓴 자리가 있다면 그대로 남습니다.
 * ------------------------------------------------------------------- */
@media (max-width: 560px) {
  .hint, .tiny, .sub, .muted,
  .pick-d, .ver-date, .pager-info,
  .foot-menu-cap, .stat .k {
    font-size: 12.5px;
  }
}

/* ---------------------------------------------------------------------
 * 발바닥 메뉴 — 휴대폰에서 손가락으로 누를 수 있게.
 *
 * 33px 짜리 단추는 어르신 손가락으로는 잘 안 눌립니다. 눌러도 옆 것이
 * 눌리고요. 44px 은 되어야 합니다.
 * ------------------------------------------------------------------- */
@media (max-width: 560px) {
  .foot-menu { gap: 4px; }
  .foot-menu button,
  .foot-menu a {
    min-height: 44px; padding: 10px 14px; font-size: 14px;
  }
}

/* =====================================================================
 * 휴대폰에서 누를 자리 넓히기.
 *
 * 애플·구글이 권하는 최소 크기가 44px 입니다. 여기 메뉴들은 33~43px
 * 이었습니다. 젊은 손으로는 눌리지만, 이 사이트를 쓰는 분들은 쉰에서
 * 일흔 사이입니다. 접수대는 한 손에 명단을 들고 누르는 자리이고요.
 *
 * 글자 크기는 거의 그대로 두고 **위아래 여백만** 늘립니다 — 글자를 키우면
 * 칩이 넓어져 한 줄에 안 들어가고, 옆으로 미는 일이 늘어납니다.
 * ================================================================== */
@media (max-width: 900px) {
  /* 관리자 — 사이트 관리 칩 · 설명서 링크 */
  .side-menu button,
  .side-menu .side-link {
    min-height: 44px; padding: 11px 14px;
    display: inline-flex; align-items: center;
  }

  /* 관리자 — 행사 탭 (명단 · 집계표 · 접수대 · 경품 · 설정) */
  #tabs button { min-height: 46px; }

  /* 갈래 단추 (추첨 대상 · 명단 정렬 · 설정 안 칸 나누기) */
  .seg-btn { min-height: 44px; }
  .seg.seg-sm .seg-btn { min-height: 40px; }

  /* 눌러서 거르는 숫자 칸 */
  #statsBox .stat.tap { min-height: 52px; }

  /* 명단 머리줄 — 좁으면 두 줄로 내려가게 */
  .reg-head-bar { flex-wrap: wrap; row-gap: 8px; }
  .reg-fresh { min-height: 36px; display: inline-flex; align-items: center; }
}


/* ====================================================== 회계 (결산 · 납입 · 흐름)
   총무님이 해마다 손으로 만드시던 종이를 그대로 옮긴 표입니다.
   화면에서 보시던 그대로 인쇄되어야 해서 선을 또렷하게 둡니다. */
.led-title {
  margin: 0 0 10px; font-size: 15.5px; font-weight: 800; color: var(--text);
}
.led-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
/* 오른쪽 칸 — 지출부터 맺음 · 협찬까지 아래로 이어집니다 */
.led-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.led-col table.led.led-sum { margin-top: 0; max-width: none; }
.led-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.led {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--card);
}
table.led th, table.led td {
  border: 1px solid var(--line); padding: 5px 8px; vertical-align: middle;
}
table.led thead th {
  background: #e8efe9; color: #10331f; font-weight: 800;
  letter-spacing: .04em; text-align: center;
}
table.led .led-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.led .led-cls { width: 4.5em; color: var(--muted); white-space: nowrap; }
table.led .led-cat { width: 5em; text-align: center; font-weight: 700; background: #fafbfa; }
table.led .led-evt { font-size: 11px; color: var(--muted); font-weight: 600; }
table.led .led-sub td { background: #f4f6f4; font-weight: 700; }
table.led .led-total td, table.led .led-total th {
  background: #eef2ee; font-weight: 800; border-top: 2px solid #9db3a4;
}
table.led .led-strong { font-weight: 800; }
table.led .led-zero { color: var(--line); }
table.led .led-minus { color: #b3261e; }
table.led .led-warn { font-size: 11px; color: #b3261e; font-weight: 700; }
table.led.led-sum { margin-top: 14px; max-width: 420px; }
table.led.led-fee { min-width: 640px; }
table.led.led-fee thead th { position: sticky; top: 0; z-index: 1; }
.led-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* 지출 한 줄 입력 */
.exp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 6px; background: var(--card);
}
.exp-cat {
  flex: 0 0 auto; min-width: 3.5em; text-align: center;
  padding: 2px 8px; border-radius: 999px; background: #eef2ee;
  font-size: 11.5px; font-weight: 700; color: #2a5a3c;
}
.exp-ttl { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.exp-amt { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 800; }
.exp-act { flex: 0 0 auto; display: flex; gap: 6px; }

/* 접수대 마감 띠 */
.lock-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff7e6; border: 1px solid #e6c98a; color: #6b4b00;
  font-size: 13px;
}
.lock-bar b { font-weight: 800; }

/* screen 으로 묶습니다. 그냥 (max-width:720px) 로 두면 **A4 인쇄 폭도**
   여기에 걸려서, 결산 2단이 1단으로 무너진 채 인쇄됐습니다. */
@media screen and (max-width: 720px) {
  .led-cols { grid-template-columns: 1fr; }
  table.led { font-size: 12px; }
  table.led th, table.led td { padding: 4px 6px; }
  .exp-row { flex-wrap: wrap; row-gap: 6px; }
  .exp-ttl { flex: 1 1 100%; order: 3; }
  .exp-act { margin-left: auto; }
}

@media print {
  .led-wrap { overflow: visible; }
  table.led.led-fee { min-width: 0; }
  table.led.led-fee thead th { position: static; }
  table.led { font-size: 10.5px; page-break-inside: auto; }
  table.led tr { page-break-inside: avoid; }
  table.led th, table.led td {
    border: 1px solid #999 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  table.led thead th { background: #e8efe9 !important; color: #000 !important; }
  table.led .led-sub td { background: #f4f6f4 !important; color: #000 !important; }
  table.led .led-total td { background: #eef2ee !important; color: #000 !important; }
  .lock-bar { display: none !important; }
}

/* 찬조 금액 — 눌러서 실제 금액을 적습니다 */
.led-amt {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  text-align: right; cursor: pointer; font: inherit; color: inherit;
  border-radius: 6px;
}
.led-amt:hover { background: #f1f5f1; }
.led-amt-n { display: block; font-variant-numeric: tabular-nums; font-weight: 700; }
.led-amt-t { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.led-amt.bad .led-amt-n { color: var(--text); font-weight: 600; }
.led-amt.bad .led-amt-t { color: #b3261e; font-weight: 700; }
table.led .led-none { color: var(--muted); text-align: center; }

@media print {
  .led-amt { background: none !important; }
  .led-amt.bad .led-amt-t { color: #000 !important; }
}

/* 찬조가 회비를 대신했는지 · 회비는 따로 내셨는지 */
.led-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: #f3ece0; color: #7a5a22;
  font-size: 10.5px; font-weight: 700; vertical-align: 1px;
}
.led-tag.ok { background: #e9f1ea; color: #2a5a3c; }
/* 사람이 아니라 단체 — 신동회 · 총동문회 … */
.led-tag.org { background: #e6ecf5; color: #2f4a70; }
table.led tr.led-org td { background: #fbfcfe; }
table.led .led-inst { color: #7a5a22; font-weight: 700; font-size: 12px; }

/* 면제·찬조로를 고르면 금액 칸은 잠깁니다 */
.fee-box.fee-locked .fee-amt,
.fee-box.fee-locked .fee-plus { opacity: .38; }
.fee-box.fee-locked .fee-amt { text-decoration: line-through; }

/* 행사가 끝나 명단을 닫았을 때 — 표 자리에 놓습니다 */
.list-closed {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
}
.list-closed .lc-i { flex: 0 0 auto; font-size: 26px; line-height: 1; opacity: .7; }
.list-closed .lc-b { min-width: 0; flex: 1 1 auto; }
.list-closed .lc-t { font-size: 16px; font-weight: 800; color: var(--text); }
.list-closed .lc-s {
  margin-top: 5px; font-size: 14px; font-weight: 700; color: var(--brand);
}
.list-closed .lc-p {
  margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted);
}

@media (max-width: 560px) {
  .list-closed { padding: 18px 15px; gap: 11px; }
  .list-closed .lc-t { font-size: 15px; }
}

/* 지출 붙여넣기 — 담기 전에 읽어 낸 것을 그대로 보여 줍니다 */
textarea.input.ta {
  min-height: 150px; resize: vertical; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; white-space: pre; overflow-x: auto;
}
.exp-prev { margin-top: 12px; max-height: 260px; overflow-y: auto; }
.exp-prev-h {
  position: sticky; top: 0; z-index: 1;
  padding: 7px 10px; margin-bottom: 6px; border-radius: 8px;
  background: #eef2ee; font-size: 13px; color: var(--text);
}
.exp-prev-r {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.exp-prev-r:last-child { border-bottom: 0; }
.exp-prev-r .exp-ttl { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.exp-prev-r .exp-amt { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ============================================ 관리 화면 · 휴대폰 손가락
   손가락이 닿는 곳은 44px 이 바닥입니다. 실제로 재 보니 관리 화면의
   작은 단추가 34px, 사이트 메뉴는 화면 밖으로 밀려 있었습니다. */
@media (max-width: 900px) {

  /* 사이트 관리 메뉴 — 가로로 밀던 띠를 **두 칸 격자**로 폅니다.
     열두 개가 493px 로 늘어서 있어서, 옆으로 밀지 않으면 뒤쪽 여섯 개는
     있는 줄도 몰랐습니다. 격자로 펴면 여섯 줄이 한눈에 들어옵니다. */
  .side-menu {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    gap: 8px;
  }
  /* 칸을 그려 줍니다. 격자로 폈더니 글자만 떠 있어서
     **눌러지는 것인지** 알 수가 없었습니다. */
  .side-menu button,
  .side-menu .side-link {
    min-height: 48px; padding: 12px; font-size: 13.5px;
    white-space: normal; line-height: 1.3;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--card); color: var(--text);
    display: flex; align-items: center;
  }
  .side-menu button.on {
    background: var(--brand-soft); color: var(--brand);
    border-color: var(--brand); box-shadow: none; font-weight: 800;
  }
  .side-menu .side-link { color: var(--text-dim); }

  /* ☰ 메뉴 — 사이트 관리로 들어가는 유일한 문입니다 */
  #btnAdminMenu {
    min-height: 44px; padding: 10px 14px; font-size: 13.5px; font-weight: 700;
  }

  /* 작은 단추 — 카드 머리에 줄줄이 있는 것들 */
  .btn-sm { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .btn-row { flex-wrap: wrap; gap: 6px; }
  .card-head .btn-row .btn { flex: 1 1 auto; }

  /* 명단 머리의 단추 여섯 개가 옆으로 밀려 있었습니다 (499px > 326px).
     「선택 삭제」·「휴지통」 은 화면 밖이라 밀어야 나왔습니다.
     메뉴와 같은 까닭으로, 밀지 말고 **줄을 바꿔** 다 보이게 합니다. */
  #tab-list .card-head .btn-row {
    flex-wrap: wrap; overflow-x: visible;
  }
  #tab-list .card-head .btn-row .btn { flex: 1 1 auto; }

  /* 칸 고르기 · 목록 상자.
     위쪽 블록에 .seg.seg-sm .seg-btn 이 40px 로 더 좁게 잡혀 있어서,
     「기수순 · 최근 신청순」 만 40px 로 남아 있었습니다 — 같이 올립니다. */
  .seg-btn, .seg.seg-sm .seg-btn { min-height: 44px; }
  .select, .select-sm { min-height: 44px; }

  /* 검색어 지우기 ✕ — 26px 이라 거의 안 눌렸습니다.
     단추를 키운 만큼 입력칸 오른쪽도 비워야 마지막 글자가 안 가립니다. */
  .desk-search .clr, .clr { width: 44px; height: 44px; }
  .desk-search .input { padding-right: 58px; }

  /* 네모칸 — 글자를 눌러도 되지만 네모도 보이게 키웁니다 */
  .check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }

  /* 지출 한 줄의 수정·삭제가 줄바꿈되며 칸을 잡아먹지 않게 */
  .exp-act .btn-sm { min-height: 40px; padding: 8px 10px; }
}

/* ============================================ 좁은 화면 마무리
   재 보고 나온 것들입니다. */
@media (max-width: 560px) {
  /* 두 칸으로 나뉘어 있던 줄을 한 칸으로.
     「이월 (첫 행사 앞 잔고)」 이 「예: 5,4」 까지만 보였습니다 —
     여덟 자리 숫자를 넣는 칸인데 절반이 잘렸습니다. */
  .row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* 신청 페이지 — 손가락이 닿는 곳 */
  .hero-share { min-height: 44px; }
  /* 「찬조·협찬만 등록하기」 21px · 「맨 위로」 20px 였습니다 */
  .linkish { min-height: 44px; padding: 10px 4px; }
  .foot-links button, .foot-links a {
    min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px;
  }
}

/* 통장과 맞춰 본 결과 — 이번에 두 번 어긋났던 것을 여기서 잡습니다 */
.bank-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  font-size: 13.5px; border: 1px solid;
}
.bank-bar b { font-weight: 800; font-size: 14.5px; }
.bank-bar.ok  { background: #eef5f0; border-color: #b6d3c0; color: #1d5136; }
.bank-bar.bad { background: #fdf0ee; border-color: #e6b5ad; color: #8c2d1f; }
.bank-bar .bank-why { flex: 1 1 100%; font-size: 12.5px; opacity: .9; }

/* 마감한 행사 — 회비는 보여 주되 못 고칩니다 */
.fee-done.fee-fixed {
  display: inline-block; margin-top: 6px; padding: 4px 10px;
  border-radius: 8px; background: #f2f5f2; color: var(--text);
  font-size: 12.5px; font-weight: 700;
}

/* ============================================ 회계 인쇄 마무리
   재 보니 회비 납입 내역이 오른쪽 행사 칸부터 통째로 잘려 나왔습니다. */
@media print {
  /* 결산은 종이에서도 2단 그대로 */
  .led-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .led-col  { display: grid; gap: 10px; }

  /* 납입 내역은 칸이 많아 가로로 눕히고, 폭에 맞춰 줄입니다 */
  #tab-finance table.led.led-fee {
    table-layout: fixed; width: 100%; font-size: 9px;
  }
  #tab-finance table.led.led-fee th,
  #tab-finance table.led.led-fee td {
    padding: 2px 3px; word-break: keep-all; overflow-wrap: anywhere;
  }
  #tab-finance table.led.led-fee .led-num { white-space: normal; }
}

/* 「경품 추첨 진행 중」 띠를 감싼 상자.
   .wrap 의 아래 여백(휴대폰 48px)을 그대로 물려받아서, 띠가 숨어 있을 때도
   탭 바로 밑에 빈 칸이 48px 생겼습니다 — 휴대폰 첫 화면이라 아깝습니다. */
.live-wrap { padding-bottom: 0; }

/* 끝난 행사 — D-day 자리에 「지난 행사」 */
.dday.done { background: #eceee9; color: #5c6660; }
