/* ============================================================
   Innovator — 2005년 뼈대 위에 올린 2026년 인터페이스

   · 사진·로고(main_title, 세미나 사진, title 배너)는 원본 그대로
   · 메뉴 라벨·버튼·패널 같은 자잘한 그래픽은 걷어내고 CSS 로 다시 그림
   · 1000px / 147 · 650 · 150 의 3단 비례는 유지, 좁은 화면에서는 한 단으로
   ============================================================ */

:root {
  --ink:      #16202b;
  --ink-2:    #4b5661;
  --ink-3:    #8b96a2;
  --line:     #e7ecf1;
  --line-2:   #f1f5f8;
  --accent:   #2f5f9e;   /* 2005 남색 계열을 밝게 정리 */
  --deep:     #33384e;   /* 원본 푸터·메뉴 남색 */
  --tint:     #f5f8fb;
  --danger:   #c0392b;
  --r:        10px;
  --r-lg:     14px;
  --sh-sm:    0 1px 2px rgba(16,32,48,.05);
  --sh:       0 2px 12px rgba(16,32,48,.07);
  --sh-lg:    0 8px 28px rgba(16,32,48,.10);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "맑은 고딕", "Malgun Gothic",
               -apple-system, system-ui, sans-serif;
  font-size: 13px; line-height: 1.7; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

img { border: 0; display: block; max-width: 100%; }
b, strong { font-weight: 600; }
a { color: var(--ink); text-decoration: none; transition: color .14s ease, background .14s ease; }
a:hover { color: var(--accent); }
::selection { background: #d7e4f3; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------- 뼈대 ---------------- */

.wrap { width: 1000px; max-width: 100%; margin: 0 auto; padding: 0 0 44px; }

.head .logo img { width: 1000px; height: auto; }
.head .rule {
  height: 3px; border-radius: 3px; margin: 6px 0 22px;
  background: linear-gradient(90deg, var(--deep), var(--accent) 55%, #9dc0e2);
}

.cols {
  display: grid; grid-template-columns: 147px 650px 150px;
  justify-content: space-between; align-items: start; padding: 0 12px;
}

/* ---------------- 카드 공통 ---------------- */

.card {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  box-shadow: var(--sh-sm); margin-bottom: 12px; overflow: hidden;
}
.ph {
  margin: 0; padding: 9px 11px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-2);
  background: var(--tint); border-bottom: 1px solid var(--line);
}

/* ---------------- 좌측 ---------------- */

.lbox { padding: 11px; }
.lbox input {
  width: 100%; font-family: inherit; font-size: 12px; padding: 7px 9px;
  border: 1px solid #d7dde3; border-radius: 7px; margin-bottom: 5px; color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.lbox input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,95,158,.13); }
.lbox .btn { width: 100%; justify-content: center; }
.lbox .who { font-size: 12px; color: var(--ink-2); }
.lbox .who b { color: var(--ink); }
.lbox .row { padding-top: 6px; font-size: 11.5px; }
.lbox .row a { color: var(--ink-3); }
.lbox .row a:hover { color: var(--accent); }
.lbox .sep { color: #dee4ea; padding: 0 4px; }

.lrecent { padding: 7px 9px 9px; font-size: 11.5px; }
.lrecent a {
  display: block; color: var(--ink-2); padding: 5px 7px 5px 15px; border-radius: 6px;
  position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lrecent a::before {
  content: ""; position: absolute; left: 6px; top: 13px;
  width: 3px; height: 3px; border-radius: 50%; background: #c5ced6;
}
.lrecent a:hover { background: var(--tint); color: var(--accent); }
.lrecent a:hover::before { background: var(--accent); }
.lrecent .none { color: #b9c2ca; padding: 4px 7px; }

.lphoto {
  display: block; position: relative; margin: 0 0 12px;
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.lphoto img { width: 100%; height: auto; transition: transform .3s ease; }
.lphoto span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 8px;
  font-size: 11px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(12,20,30,.72));
  opacity: 0; transition: opacity .2s ease;
}
.lphoto:hover img { transform: scale(1.05); }
.lphoto:hover span { opacity: 1; }

.cta {
  display: block; border-radius: var(--r); padding: 11px 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  color: #fff; box-shadow: 0 3px 12px rgba(47,95,158,.24);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cta b { display: block; font-size: 12.5px; }
.cta span { display: block; font-size: 9px; letter-spacing: .09em; color: rgba(255,255,255,.6); margin-top: 1px; }
.cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47,95,158,.3); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.quick a {
  text-align: center; font-size: 11px; padding: 8px 2px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.quick a:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }

.lcount {
  text-align: center; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.lcount b { color: var(--accent); font-size: 12px; letter-spacing: 0; }

/* ---------------- 우측 ---------------- */

.menu {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  overflow: hidden; box-shadow: var(--sh-sm); margin-bottom: 12px;
}
.menu a {
  display: block; position: relative; padding: 10px 12px;
  font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--line-2);
}
.menu a:last-child { border-bottom: 0; }
.menu a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent; transition: background .14s ease;
}
.menu a:hover { background: var(--tint); color: var(--accent); }
.menu a.on { background: var(--tint); color: var(--accent); font-weight: 600; }
.menu a.on::before { background: var(--accent); }

.blogbtn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; margin-bottom: 12px; border-radius: var(--r);
  background: var(--deep); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
}
.blogbtn em { font-style: normal; font-weight: 400; font-size: 11px;
              letter-spacing: 0; color: rgba(255,255,255,.6); }
.blogbtn:hover { background: #3d4359; color: #fff; }

.offlinks { padding: 6px 8px 8px; }
.offlinks a { display: block; font-size: 11.5px; color: var(--ink-2); padding: 5px 8px; border-radius: 6px; }
.offlinks a:hover { background: var(--tint); color: var(--accent); }

/* ---------------- 푸터 ---------------- */

.foot {
  margin: 34px 12px 0; border-radius: var(--r-lg); padding: 17px 22px;
  background: linear-gradient(135deg, #2b3042, #3b4159);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fmark {
  font-family: Georgia, "Times New Roman", serif; font-size: 19px;
  letter-spacing: .01em; color: rgba(255,255,255,.92);
}
.fcopy { font-size: 11px; color: rgba(255,255,255,.5); }

/* ---------------- 중앙 ---------------- */

.colC { min-width: 0; }
#visual {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh); margin-bottom: 22px;
}
#visual img { width: 100%; height: auto; }

#view { animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* 홈 — 게시판별 카드 */
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bbox {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  box-shadow: var(--sh-sm); padding: 13px 15px 14px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.bbox:hover { border-color: #d3dde7; box-shadow: var(--sh); }
.bbox .bt { display: flex; align-items: baseline; gap: 7px; padding-bottom: 9px; }
.bbox .bt a { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.bbox .bt a:hover { color: var(--accent); }
.bbox .bt .more { margin-left: auto; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.bbox .bt .more:hover { color: var(--accent); }
.bbox ul { list-style: none; margin: 0; padding: 0; }
.bbox li {
  display: flex; gap: 8px; align-items: baseline; font-size: 12px;
  padding: 4px 0; color: var(--ink-2);
}
.bbox li a { flex: 1; min-width: 0; color: var(--ink-2);
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbox li a:hover { color: var(--accent); }
.bbox li .d { flex: none; font-size: 10.5px; color: #b6bfc8; }
.bbox .none { font-size: 11.5px; color: #b6bfc8; padding: 8px 0; }

/* ---------------- 게시판 머리 ---------------- */

.board-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.board-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.board-head .descr { font-size: 12px; color: var(--ink-3); }
.board-head .cnt { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

.searchbar { display: flex; gap: 6px; align-items: center; margin: 16px 0 2px; }
.searchbar input[type=search] {
  flex: 0 0 250px; width: 250px; font-size: 12.5px; padding: 8px 13px; border-radius: 9px;
}
.searchbar .btn { flex: none; white-space: nowrap; }
.searchbar .hit { font-size: 11.5px; color: var(--ink-2); }
.searchbar .clear { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.searchbar .clear:hover { color: var(--accent); }

/* ---------------- 글 목록 ---------------- */

.list { margin-top: 12px; border-top: 1px solid var(--line); }
.list .row {
  display: flex; gap: 11px; align-items: center; padding: 12px 6px;
  border-bottom: 1px solid var(--line-2); border-radius: 8px;
}
.list .row:hover { background: var(--tint); }

.av {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: -.02em;
  background: linear-gradient(135deg, #6f8fb5, #35608f);
}
.av.c1 { background: linear-gradient(135deg, #7f9bc4, #3a5f96); }
.av.c2 { background: linear-gradient(135deg, #86a9a0, #3f7768); }
.av.c3 { background: linear-gradient(135deg, #b39aa8, #7d5f74); }
.av.c4 { background: linear-gradient(135deg, #a8a08c, #77694c); }
.av.c5 { background: linear-gradient(135deg, #8d93b8, #4e548a); }

.rmain { flex: 1; min-width: 0; }
.rt {
  display: block; font-size: 13.5px; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list .row:hover .rt { color: var(--accent); }
.rm { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.rm i { font-style: normal; padding: 0 5px; color: #d9dfe5; }

.cmtn {
  display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700;
  color: var(--accent); vertical-align: 1px;
}
.newmark {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px;
  color: #fff; background: var(--danger);
}
.thumbmini {
  flex: none; width: 46px; height: 34px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--line);
}

/* 페이지 번호 */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 22px 0 4px; }
.pager a, .pager span {
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 8px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.pager .cur { border-color: transparent; background: var(--accent); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: none; color: var(--ink-3); min-width: 16px; }

/* 사진방 */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 16px; }
.thumb {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff;
  box-shadow: var(--sh-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.thumb:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); border-color: #d3dde7; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb .ph2 { width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef2f5, #e3e9ee); }
.thumb .cap { display: block; padding: 9px 11px 11px; }
.thumb .cap b {
  display: block; font-size: 12.5px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thumb .cap span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 글 보기 ---------------- */

.v-head { padding: 14px 0 0; }
.v-subj { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.4; }
.v-meta {
  display: flex; align-items: center; gap: 10px; padding: 12px 0 14px;
  border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3);
}
.v-meta .who b { display: block; font-size: 12.5px; color: var(--ink); }
.v-meta .who span { display: block; }
.v-body {
  padding: 24px 0 30px; min-height: 140px; white-space: pre-wrap; word-break: break-word;
  font-size: 14.5px; line-height: 1.9; color: #22303d;
}
.v-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.v-body img { max-width: 100%; height: auto; border-radius: var(--r); margin-bottom: 16px; box-shadow: var(--sh); }

.prevnext { border-top: 1px solid var(--line); margin-bottom: 4px; }
.prevnext a, .prevnext span {
  display: flex; gap: 12px; align-items: center; padding: 10px 4px;
  border-bottom: 1px solid var(--line-2); font-size: 12px;
}
.prevnext .lb { flex: none; width: 48px; color: var(--ink-3); font-size: 11px; }
.prevnext a:hover { background: var(--tint); }
.prevnext span { color: #c3ccd4; }

/* ---------------- 폼 ---------------- */

input[type=text], input[type=email], input[type=password], input[type=search], textarea {
  font-family: inherit; font-size: 13px; padding: 9px 12px; color: var(--ink);
  border: 1px solid #d7dde3; border-radius: 9px; background: #fff; width: 100%;
  line-height: 1.6; transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,95,158,.13); }
::placeholder { color: #b4bcc4; }
textarea { min-height: 260px; line-height: 1.85; resize: vertical; }
input[type=file] { font-size: 12px; color: var(--ink-2); }
label { display: block; font-size: 11.5px; color: var(--ink-2); margin: 14px 0 5px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px;
  font-family: inherit; font-size: 12.5px; line-height: 1.5; cursor: pointer;
  border: 1px solid #d7dde3; border-radius: 9px; background: #fff; color: var(--ink-2);
  transition: border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}
.btn:hover { border-color: #b6c1cc; background: #fafcfd; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary {
  background: linear-gradient(135deg, var(--deep), var(--accent));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px rgba(47,95,158,.22);
}
.btn.primary:hover { color: #fff; box-shadow: 0 4px 14px rgba(47,95,158,.3); }
.btn.sm { padding: 4px 10px; font-size: 11px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-3); padding: 3px 7px; }
.btn.ghost:hover { color: var(--danger); background: #fdf4f3; border-color: transparent; }

.btns { padding: 18px 0 2px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.btns .right { margin-left: auto; }

.form { max-width: 380px; margin: 34px auto 48px; }
.form h2 { font-size: 21px; margin: 0 0 5px; font-weight: 700; letter-spacing: -.03em; }
.form p.help { font-size: 12px; color: var(--ink-3); margin: 0 0 16px; }
.form .foot-link { text-align: center; padding-top: 12px; }
.form .foot-link a { font-size: 11.5px; color: var(--ink-3); }
.form .foot-link a:hover { color: var(--accent); }

.msg {
  padding: 12px 14px; font-size: 12.5px; margin: 12px 0;
  border: 1px solid; border-radius: var(--r); line-height: 1.7;
}
.msg.err  { background: #fdf5f4; border-color: #eed3d0; color: #a53a2f; }
.msg.ok   { background: #f2f9f4; border-color: #cde3d3; color: #21683a; }
.msg.info { background: #f5f9fd; border-color: #d6e2f0; color: #35608f; }
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 알림 토스트 */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 11px 20px;
  border-radius: 999px; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 90; max-width: 90vw;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); }

/* ---------------- 회원 관리 ---------------- */

.admin { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.admin .arow {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-bottom: 1px solid var(--line-2); font-size: 12px;
}
.admin .arow:last-child { border-bottom: 0; }
.admin .arow:hover { background: var(--tint); }
.admin .ainfo { flex: 1; min-width: 0; }
.admin .ainfo b { font-size: 13px; }
.admin .ainfo span { display: block; font-size: 11px; color: var(--ink-3);
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin .aact { flex: none; display: flex; gap: 5px; }

.tag {
  display: inline-block; font-size: 10px; padding: 1px 7px; border: 1px solid;
  border-radius: 999px; white-space: nowrap; line-height: 1.7; font-weight: 600;
}
.tag.wait   { color: #9a6100; border-color: #ecd3a0; background: #fdf8ee; }
.tag.ok     { color: #21683a; border-color: #c6dccd; background: #f2f9f4; }
.tag.reg    { color: #0d6a72; border-color: #b7dbdd; background: #f0f9fa; }
.tag.admin  { color: #2f5f9e; border-color: #c3d5ea; background: #f3f8fd; }
.tag.master { color: #fff; border-color: transparent;
              background: linear-gradient(135deg, #33384e, #2f5f9e); }

/* 등급 통계 */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0 6px; }
.stats div {
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 6px;
  text-align: center; background: #fff;
}
.stats b { display: block; font-size: 19px; letter-spacing: -.03em; }
.stats span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

/* 정회원 전용 표시 */
.lvtag {
  float: right; font-size: 9.5px; font-weight: 600; letter-spacing: 0;
  color: #9aa4ae; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 7px; line-height: 1.8; background: #fff;
}
.lvtag.on { color: #0d6a72; border-color: #b7dbdd; background: #f0f9fa; }
.offlinks a.locked, .menu a.locked { color: #a9b2bb; }
.offlinks a.locked::after, .menu a.locked::after { content: " 🔒"; font-size: 9px; }

.bbox.locked { background: #fbfcfd; }
.bbox .more.lock { color: #a9b2bb; }
.lockbox { border-style: solid; background: #fbfcfd; }
.lockbox .btn { margin-top: 10px; }

/* 다가오는 일정 띠 */
.upcoming {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px;
  margin-bottom: 16px; background: linear-gradient(90deg, var(--tint), #fff);
}
.upcoming .ulabel {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--accent);
  text-transform: uppercase;
}
.upcoming a { font-size: 12.5px; color: var(--ink-2); }
.upcoming a b { color: var(--ink); font-variant-numeric: tabular-nums; }
.upcoming a i { font-style: normal; color: var(--ink-3); font-size: 11px; padding-left: 5px; }
.upcoming a:hover { color: var(--accent); }
.upcoming .uall { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 모임 일정 ---------------- */

.cal {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 16px; background: #fff; box-shadow: var(--sh-sm);
}
.calhead {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: var(--tint);
}
.calhead b { font-size: 15px; letter-spacing: -.02em; min-width: 104px; text-align: center; }
.cnav {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2);
  font-size: 15px; line-height: 1;
}
.cnav:hover { border-color: var(--accent); color: var(--accent); }
.calhead .right { margin-left: auto; }

.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cdow {
  padding: 9px 0; text-align: center; font-size: 11px; font-weight: 600;
  color: var(--ink-3); background: #fcfdfe; border-bottom: 1px solid var(--line);
}
.cdow.sun { color: #c0392b; }
.cdow.sat { color: #2f5f9e; }

.cday {
  min-height: 84px; padding: 6px 6px 8px; border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px;
}
.cday:nth-child(7n+7) { border-right: 0; }
.cday.out { background: #fcfdfe; }
.cday > b { font-size: 11.5px; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.cday.sun > b { color: #c0392b; }
.cday.sat > b { color: #2f5f9e; }
.cday.today { background: #f3f8fd; }
.cday.today > b {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
}
.cev {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  font-family: inherit; font-size: 10.5px; line-height: 1.5; padding: 3px 6px;
  border-radius: 6px; color: #fff; background: linear-gradient(135deg, #4a6f96, #2f5f9e);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cev:hover { filter: brightness(1.08); }

.evlist { margin-top: 26px; }
.evlist h3 { font-size: 14px; margin: 0 0 10px; letter-spacing: -.02em; }
.evitem {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 9px; background: #fff;
}
.evitem:hover { border-color: #d3dde7; box-shadow: var(--sh-sm); }
.evdate {
  flex: none; width: 52px; text-align: center; padding: 6px 0; border-radius: 9px;
  background: var(--tint); border: 1px solid var(--line);
}
.evdate b { display: block; font-size: 14px; letter-spacing: -.03em; color: var(--accent);
            font-variant-numeric: tabular-nums; }
.evdate span { display: block; font-size: 10px; color: var(--ink-3); }
.evmain { flex: 1; min-width: 0; }
.evmain > b { display: block; font-size: 14px; letter-spacing: -.02em; }
.evmain > span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.evmain .evbody { color: var(--ink-2); font-size: 12.5px; margin-top: 6px; white-space: pre-wrap; }
.evact { flex: none; display: flex; gap: 5px; }

.evpanel { position: relative; margin-top: 16px; }
.evpanel .close { position: absolute; right: 6px; top: -26px; }
.evform { margin-top: 16px; }
.evform .in { padding: 4px 14px 14px; }
.evgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=date] {
  font-family: inherit; font-size: 13px; padding: 9px 12px; width: 100%;
  border: 1px solid #d7dde3; border-radius: 9px; color: var(--ink);
}

/* ---------------- 댓글 ---------------- */

.cbox { border: 1px solid var(--line); border-radius: var(--r); margin-top: 26px; overflow: hidden; }
.cbox h3 {
  margin: 0; padding: 10px 14px; background: var(--tint);
  border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); font-weight: 600;
}
.cbox h3 b { color: var(--accent); }
.cbox .in { padding: 4px 14px 14px; }
.citem { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.citem:last-of-type { border-bottom: 0; }
.citem .cmain { flex: 1; min-width: 0; }
.citem .top { display: flex; align-items: center; gap: 7px; }
.citem b { font-size: 12.5px; }
.citem .d { color: var(--ink-3); font-size: 10.5px; }
.citem .tx { font-size: 13px; white-space: pre-wrap; word-break: break-word; margin-top: 1px; }
.citem .del { margin-left: auto; }
.cnone { color: #b6bfc8; font-size: 12px; display: block; padding: 12px 0 4px; }
.crow { display: flex; gap: 7px; padding-top: 12px; }
.crow .btn { flex: none; }

/* ---------------- 기타 ---------------- */

.empty {
  padding: 54px 0; text-align: center; color: var(--ink-3); font-size: 13px;
  border: 1px dashed var(--line); border-radius: var(--r); margin-top: 16px;
}
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; }
.loading { padding: 44px 0; text-align: center; color: #ccd4db; font-size: 12px; }

.about { padding: 22px 0; font-size: 14.5px; line-height: 2; }
.about p { margin: 0 0 18px; }
.about p:last-child { margin-bottom: 0; }
.about b { color: var(--accent); }

.hint { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.7; }

.calframe {
  width: 100%; height: 540px; border: 1px solid var(--line);
  border-radius: var(--r); margin-top: 16px; overflow: hidden;
}

/* ---------------- 좁은 화면 ---------------- */

@media (max-width: 1023px) {
  .wrap { padding: 0 14px 40px; }
  .cols { grid-template-columns: 1fr; gap: 22px; padding: 0; }
  .colR { order: -1; }
  .colL { order: 1; }
  .menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .menu a { border-bottom: 0; border-right: 1px solid var(--line-2); text-align: center; }
  .menu a:last-child { border-right: 0; }
  .menu a::before { width: 100%; height: 3px; bottom: auto; }
  .bgrid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cday { min-height: 62px; }
  .evgrid { grid-template-columns: 1fr; }
  .foot { margin: 30px 0 0; flex-direction: column; gap: 6px; text-align: center; }
  .searchbar input[type=search] { flex: 1 1 auto; width: auto; }
  .quick { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .v-subj { font-size: 19px; }
  .v-body { font-size: 15px; }
  .thumbs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .list .row { padding: 11px 4px; }
  .rt { white-space: normal; }
}
