/* 파수꾼: 흰 바탕 · 얇은 구분선 · 굵은 제목 (블라인드 같은 담백한 커뮤니티). 휴대폰 먼저, 넓은 화면은 두 칸 */
:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --line: #ececf0;
  --line2: #dcdde3;
  --text: #15171c;
  --sub: #6b7180;
  --faint: #9aa0ab;
  --navy: #14213d;
  --accent: #2f5bff;
  --accent-soft: #eef2ff;
  --hot: #e5484d;
  --radius: 12px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ───── 머리말 ───── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: var(--sat); }
.top-in { display: flex; align-items: center; gap: 12px; max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--navy); }
.logo svg { width: 24px; height: 24px; fill: var(--navy); stroke: none; }
.logo svg .tick { fill: none; stroke: #5b8cff; stroke-width: 2.2; }
.gnb { display: none; gap: 4px; margin-left: 18px; }
.gnb a { padding: 8px 12px; border-radius: 8px; color: var(--sub); font-weight: 600; }
.gnb a:hover { color: var(--text); background: var(--soft); }
.gnb a.on { color: var(--text); }
.top-act { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); }
.icon-btn:hover { background: var(--soft); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); border: 2px solid #fff; }
.write-btn { display: none; padding: 8px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem; }
.me-link { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 0.86rem; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── 본문 ───── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 8px 16px calc(84px + var(--sab)); min-height: 60vh; outline: none; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(88px + var(--sab)); color: var(--faint); font-size: 0.78rem; }
.foot p { margin: 4px 0; }
.foot-links a, .legal-links a { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.legal-links { color: var(--faint); font-size: 0.8rem; text-align: center; }
/* 회원 탈퇴 */
.leave-wrap { margin-top: 28px; }
.leave { max-width: 440px; margin: 8px auto 0; padding: 16px; border: 1px solid #f3c6c8; border-radius: 12px; background: #fff7f7; font-size: 0.88rem; }
.leave strong { color: var(--hot); }
.leave p { margin: 6px 0; color: var(--sub); }
.leave-row { display: flex; gap: 8px; margin-top: 10px; }
.leave-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; }
.btn.danger { background: var(--hot); border-color: var(--hot); color: #fff; }
.sec { padding: 18px 0 6px; }
.sec + .sec { border-top: 8px solid var(--soft); margin: 0 -16px; padding: 18px 16px 6px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec h2 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.more { color: var(--sub); font-size: 0.86rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.page-head h1, .write h1, .onboard h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.cat { color: #5b6b8c; }
.empty { padding: 28px 0; color: var(--faint); text-align: center; }
.note { margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--sub); font-size: 0.82rem; }
.center { text-align: center; }
.time { color: var(--faint); font-size: 0.8rem; }

/* 홈: 휴대폰은 칸을 풀어 ①②③④ 순서로 */
.home-grid { display: flex; flex-direction: column; }
.home-grid .col-main, .home-grid .col-side { display: contents; }
.home-grid .o1 { order: 1; } .home-grid .o2 { order: 2; } .home-grid .o3 { order: 3; } .home-grid .o4 { order: 4; }
.home-grid .sec { border-top: 8px solid var(--soft); margin: 0 -16px; padding: 18px 16px 6px; }
.home-grid .o1 { border-top: 0; margin: 0; padding: 18px 0 6px; }

/* 홈 ① 뉴스 */
/* 국내 · 해외 탭 */
.rtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.rtab { position: relative; padding: 6px 2px 9px; border: 0; background: none; color: var(--faint); font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.rtab:hover { color: var(--sub); }
.rtab.on { color: var(--text); }
.rtab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
/* 3줄짜리 창 안에서 순위 목록이 위로 굴러간다 (app.js newsRoller 의 PER 와 같은 줄 수) */
.roll { --row: 48px; }
.roll.paged { height: calc(var(--row) * 3); overflow: hidden; }
.roll .roll-track { margin: 0; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.roll .roll-track.no-anim { transition: none; }
.roll .rank li a { display: flex; align-items: center; gap: 8px; height: var(--row); padding: 0; box-sizing: border-box; }
.roll .rank .num { flex: none; width: 18px; }
.roll .rank .rk { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roll .rank .nt { flex: none; color: var(--faint); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.rank .num.top { color: var(--hot); }
.roll-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.roll-foot .updated { margin: 0; }
.roll-ctl { display: flex; align-items: center; gap: 2px; color: var(--sub); font-size: 0.78rem; }
.roll-no { min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.roll-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: #fff; color: var(--sub); font: inherit; font-size: 0.9rem; line-height: 1; cursor: pointer; }
.roll-btn:hover { border-color: #c5c8d1; color: var(--text); }
.roll-btn[aria-label*="멈춤"], .roll-btn[aria-label*="다시"] { margin-left: 4px; font-size: 0.62rem; }
@media (prefers-reduced-motion: reduce) { .roll .roll-track { transition: none; } }
.meta { color: var(--sub); font-size: 0.8rem; }
/* 뉴스 분야 라벨 (이미지 대신) */
.cat-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; font-style: normal; vertical-align: 1px; }
.cat-tag.c0 { background: #eef2ff; color: #3341b8; }
.cat-tag.c1 { background: #fff1f1; color: #c0262d; }
.cat-tag.c2 { background: #fff7e6; color: #b45309; }
.cat-tag.c3 { background: #f3eefe; color: #6d28d9; }
.cat-tag.c4 { background: #ecfdf5; color: #047857; }
.cat-tag.c5 { background: #f1f5f9; color: #475569; }
.cat-tag.c6 { background: #ecfeff; color: #0e7490; }
.cat-tag.c7 { background: #f4f4f5; color: #52525b; }
.rank { list-style: none; margin: 4px 0 0; padding: 0; }
.rank li a, .list li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .num { display: inline-block; width: 24px; color: var(--accent); }
.rank small, .list small { color: var(--sub); }
.list { list-style: none; margin: 0; padding: 0; }
.list li a:hover .tt, .rank li a:hover .tt { text-decoration: underline; text-underline-offset: 3px; }

/* 홈 ② 일정 */
.ev-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-card { display: grid; align-content: start; gap: 2px; min-height: 92px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--radius); }
.ev-card .dd { color: var(--accent); font-size: 0.95rem; }
.ev-card .kind { font-size: 0.78rem; color: var(--sub); }
.ev-card .tt { font-size: 0.86rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 ④ 채용 */
.job-mini { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.job-mini .box { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line2); border-radius: var(--radius); }
.dd { font-weight: 800; color: var(--sub); white-space: nowrap; }
.dd.hot { color: var(--hot); }

/* ───── 칩 · 버튼 ───── */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; padding: 7px 13px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--sub); font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.seg a { padding: 6px 12px; border-radius: 999px; color: var(--sub); font-size: 0.84rem; font-weight: 700; }
.seg a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(0.95); }
.btn.big { width: 100%; padding: 14px; font-size: 1rem; border-radius: 12px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.link { border: 0; background: none; color: var(--sub); cursor: pointer; font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--hot); }

/* ───── 글 목록 ───── */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li a { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-title { font-weight: 700; line-height: 1.4; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.author { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.author b { font-size: 0.86rem; }
.author small { color: var(--sub); font-size: 0.78rem; }
.author .op { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-style: normal; font-weight: 700; }
.counts { display: inline-flex; gap: 10px; color: var(--faint); font-size: 0.78rem; margin-left: auto; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.9rem; }

/* ───── 글 보기 ───── */
.post { padding: 10px 0; }
.post .back { display: inline-block; margin: 4px 0 6px; font-size: 0.86rem; font-weight: 600; }
.post h1 { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.4; letter-spacing: -0.02em; }
.p-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.p-author .time { margin-left: auto; }
.p-body { padding: 18px 0 22px; white-space: pre-wrap; font-size: 1rem; line-height: 1.75; }
.p-act { display: flex; gap: 8px; padding-bottom: 18px; border-bottom: 8px solid var(--soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.btn.like.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.comments h2 { margin: 18px 0 6px; font-size: 1rem; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-head .avatar { width: 28px; height: 28px; font-size: 0.78rem; }
.comments li p { margin: 6px 0 0 36px; white-space: pre-wrap; }
.c-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 14px; }

/* ───── 입력 ───── */
input[type=text], input[type=search], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.6; }
.write, .onboard { display: grid; gap: 12px; max-width: 720px; padding: 14px 0; }
.lbl { margin-top: 4px; font-weight: 700; font-size: 0.9rem; }
.hint { margin: 0; color: var(--sub); font-size: 0.88rem; }
.count { justify-self: end; color: var(--faint); font-size: 0.78rem; margin-top: -6px; }
.nick-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.preview { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--soft); }
.preview small { color: var(--sub); font-size: 0.8rem; }
.preview .p-author { border: 0; padding: 0; }
.search { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 0 6px; }

/* ───── 뉴스 · 일정 · 채용 ───── */
.news, .events, .jobs { list-style: none; margin: 0; padding: 0; }
.n-item { display: grid; gap: 5px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.n-item .n-top { display: flex; align-items: center; gap: 6px; }
.n-item .pill { margin-left: 0; }
.n-item strong { display: block; font-size: 1rem; line-height: 1.45; }
.n-item p { margin: 0 0 4px; color: var(--sub); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.events li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.events .dd { width: 64px; color: var(--accent); }
.events .kind, .ev-card .kind { display: inline-block; margin-right: 6px; }
.events .kind { padding: 1px 8px; border-radius: 6px; background: var(--soft); color: var(--sub); font-size: 0.76rem; font-weight: 700; }
.events strong { font-size: 0.95rem; }
.events .meta { display: block; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; margin-bottom: 8px; border: 1px solid var(--line2); border-radius: var(--radius); }
.job .co { color: var(--sub); font-weight: 600; }
.job strong { display: block; margin: 2px 0; }

/* ───── 로그인 · MY ───── */
.login { display: grid; justify-items: center; gap: 10px; max-width: 400px; margin: 0 auto; padding: 36px 0 20px; text-align: center; }
.login-mark { font-size: 2.6rem; }
.login h1 { margin: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.login .sub { margin: 0 0 10px; color: var(--sub); }
.error { width: 100%; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff1f1; color: #b42318; font-size: 0.88rem; }
.sso-list { display: grid; gap: 10px; width: 100%; }
.sso { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 12px; font-weight: 700; font-size: 0.98rem; }
.sso i { width: 20px; height: 20px; border-radius: 6px; }
.sso small { position: absolute; right: 14px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.1); font-size: 0.72rem; font-weight: 700; }
.sso.kakao { background: #fee500; color: rgba(0, 0, 0, 0.85); }
.sso.kakao i { background: rgba(0, 0, 0, 0.85); border-radius: 50% 50% 50% 12%; }
.sso.naver { background: #03c75a; color: #fff; }
.sso.naver i { background: #fff; border-radius: 3px; }
.sso.google { background: #fff; color: #1f1f1f; border: 1px solid var(--line2); }
.sso.google i { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); border-radius: 50%; }
.sso.off { opacity: 0.6; }
.promise { list-style: none; margin: 14px 0 0; padding: 14px 16px; width: 100%; display: grid; gap: 6px; border-radius: 12px; background: var(--soft); color: var(--sub); font-size: 0.86rem; text-align: left; }
.dev { display: grid; gap: 8px; margin-top: 16px; padding: 12px; width: 100%; border: 1px dashed var(--line2); border-radius: 12px; color: var(--sub); }
.my-card { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 16px; border: 1px solid var(--line2); border-radius: var(--radius); }
.my-card .avatar { width: 48px; height: 48px; font-size: 1.2rem; }
.my-card > div { display: grid; flex: 1; min-width: 0; }
.my-card small { color: var(--sub); font-size: 0.82rem; }
.my-card .prov { color: var(--faint); }
.alerts li.new a { font-weight: 700; }

/* ───── 아래 탭 (휴대폰) ───── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--sab); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; color: var(--faint); font-size: 0.72rem; font-weight: 600; }
.tabbar a.on { color: var(--text); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .tab-write svg { width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--navy); color: #fff; stroke-width: 2.4; }

.toast { position: fixed; left: 50%; bottom: calc(80px + var(--sab)); z-index: 50; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: rgba(21, 23, 28, 0.92); color: #fff; font-size: 0.88rem; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───── 넓은 화면: 위쪽 메뉴 + 두 칸 ───── */
@media (min-width: 960px) {
  .gnb, .write-btn { display: flex; }
  .tabbar { display: none; }
  .wrap { padding-bottom: 40px; }
  .foot { padding-bottom: 32px; }
  .toast { bottom: 32px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .home-grid .col-main, .home-grid .col-side { display: block; }
  .home-grid .sec { border-top: 0; margin: 0; padding: 22px 0 6px; }
  .home-grid .sec + .sec { border-top: 1px solid var(--line); }
  .col-side { position: sticky; top: 72px; }
  .col-side .ev-row { grid-template-columns: 1fr; }
  .col-side .ev-card { min-height: 0; grid-template-columns: 56px 1fr; column-gap: 8px; }
  .col-side .ev-card .dd { grid-row: span 2; align-self: center; }
  .sec + .sec { margin: 0; padding: 22px 0 6px; border-top: 1px solid var(--line); }
  .p-act { margin: 0; padding-left: 0; padding-right: 0; }
  .post, .comments { max-width: 820px; }
}
@media (max-width: 380px) {
  .ev-row { grid-template-columns: repeat(3, minmax(96px, 1fr)); overflow-x: auto; }
  .me-link { max-width: 92px; }
}

/* 실제 수집 데이터 */
.updated { display: block; margin-top: 8px; color: var(--faint); font-size: 0.74rem; }
.pill { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-style: normal; font-weight: 700; }
.job-mini .jm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-mini .box { min-width: 0; }
.job-mini .dd { flex: none; }
.ev-item { display: flex; gap: 14px; align-items: center; width: 100%; }
.events li { padding: 0; }
.events .ev-item { padding: 13px 0; }
a.n-item:hover strong, a.ev-item:hover strong, a.job:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ───── 보안 일정 달력 ───── */
.cal { margin: 4px 0 18px; padding: 12px; border: 1px solid var(--line2); border-radius: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 1.05rem; }
.cal-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.3rem; color: var(--text); }
.cal-btn:hover { background: var(--soft); }
.cal-btn.off { opacity: 0.25; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow { padding: 4px 0; text-align: center; font-size: 0.74rem; font-weight: 700; color: var(--faint); }
.cal-dow.sun, .cal-day.sun .n { color: #e5484d; }
.cal-dow.sat, .cal-day.sat .n { color: #2f5bff; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; min-height: 52px; padding: 5px 2px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: center; }
.cal-day.empty { visibility: hidden; }
.cal-day.has { background: var(--soft); cursor: pointer; }
.cal-day.has:hover { background: var(--accent-soft); }
.cal-day .n { display: grid; place-items: center; width: 24px; height: 24px; font-size: 0.82rem; font-weight: 600; }
.cal-day.past .n { opacity: 0.4; }
.cal-day.today .n { border-radius: 999px; background: var(--navy); color: #fff !important; }
.cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.cal-dots i, .legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.cal-chip, .cal-more { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: var(--sub); font-size: 0.76rem; }
.legend i { margin-right: 4px; vertical-align: 0; }
/* 종류별 색: 시험 · 컨퍼런스 · CTF · 교육 · 세미나 */
.cal-dots .k0, .legend .k0 { background: #e5484d; } .cal-chip.k0, .events .kind.k0 { background: #fff1f1; color: #c0262d; }
.cal-dots .k1, .legend .k1 { background: #2f5bff; } .cal-chip.k1, .events .kind.k1 { background: #eef2ff; color: #3341b8; }
.cal-dots .k2, .legend .k2 { background: #7c3aed; } .cal-chip.k2, .events .kind.k2 { background: #f3eefe; color: #6d28d9; }
.cal-dots .k3, .legend .k3 { background: #10b981; } .cal-chip.k3, .events .kind.k3 { background: #ecfdf5; color: #047857; }
.cal-dots .k4, .legend .k4 { background: #f59e0b; } .cal-chip.k4, .events .kind.k4 { background: #fff7e6; color: #b45309; }
.events li.flash { animation: flash 1.8s ease; border-radius: 10px; }
@keyframes flash { 0%, 45% { background: var(--accent-soft); } 100% { background: transparent; } }
@media (min-width: 960px) {
  .cal { padding: 16px 18px; }
  .cal-day { align-items: stretch; min-height: 96px; padding: 6px; text-align: left; }
  .cal-day .n { align-self: flex-start; }
  .cal-dots { display: none; }
  .cal-chip { display: block; padding: 2px 6px; border-radius: 5px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal-more { display: block; color: var(--sub); font-size: 0.7rem; }
}

/* ───── 홈 섹션 큰 제목: 이모지 타일 + 굵은 제목 + 한 줄 설명 ───── */
.sec.big .sec-head { align-items: center; margin-bottom: 14px; }
.sec-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sec-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; font-size: 1.45rem; line-height: 1; }
.sec-ico.red { background: #fff1ec; }
.sec-ico.blue { background: #eaf1ff; }
.sec-ico.purple { background: #f3eefe; }
.sec-ico.green { background: #e9f9f1; }
.sec.big h2 { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; }
.sec-sub { margin: 2px 0 0; color: var(--sub); font-size: 0.82rem; font-weight: 500; }
.sec.big .more { flex: none; align-self: center; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--sub); font-size: 0.8rem; font-weight: 600; }
.sec.big .more:hover { background: var(--accent-soft); color: var(--text); }
@media (min-width: 960px) {
  .sec-ico { width: 48px; height: 48px; font-size: 1.55rem; }
  .sec.big h2 { font-size: 1.4rem; }
  .sec-sub { font-size: 0.86rem; }
}
.sec.big h2 { word-break: keep-all; }
.top-pill { display: inline-block; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: #ff5a36; color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: 0.18em; }

/* ───── 홈 화면에 추가 안내 (install.js) ───── */
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(72px + var(--sab)); z-index: 40; max-width: 480px; margin: 0 auto; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(20, 33, 61, 0.22); transform: translateY(16px); opacity: 0; transition: opacity 0.22s, transform 0.22s; }
.a2hs.on { transform: none; opacity: 1; }
.a2-head { display: flex; align-items: flex-start; gap: 12px; }
.a2-head img { flex: none; border-radius: 13px; }
.a2-head b { display: block; margin-top: 2px; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.a2-head p { margin: 3px 0 0; color: var(--sub); font-size: 0.84rem; line-height: 1.45; }
.a2-x { flex: none; width: 30px; height: 30px; margin: -4px -4px 0 auto; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 1.4rem; line-height: 1; }
.a2-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 14px; }
.a2-btns.one { grid-template-columns: 1fr; }
.a2-btns .btn { justify-content: center; padding: 12px; font-size: 0.95rem; }
.a2-steps { margin: 14px 0 0; padding: 12px 12px 12px 30px; border-radius: 12px; background: var(--soft); font-size: 0.9rem; line-height: 1.9; }
.a2-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line2); border-radius: 7px; background: #fff; font-weight: 700; white-space: nowrap; }
.a2-ico { width: 16px; height: 16px; fill: none; stroke: #2f5bff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a2-note { margin: 12px 0 0; padding: 11px 12px; border-radius: 12px; background: var(--soft); color: var(--sub); font-size: 0.86rem; line-height: 1.5; }
@media (min-width: 960px) { .a2hs { bottom: 24px; } }

/* ───────── 관리자: 회원 현황 ───────── */
.admin-entry { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin: 10px 0 4px; padding: 14px 16px; border: 1px solid var(--accent-soft); border-radius: var(--radius); background: var(--accent-soft); color: var(--text); }
.admin-entry > span { grid-row: 1 / 3; font-size: 1.4rem; }
.admin-entry small { color: var(--sub); font-size: 0.82rem; }
.admin-entry i { grid-row: 1 / 3; grid-column: 3; color: var(--accent); font-style: normal; font-size: 1.4rem; }
.page-head .sub { margin: 4px 0 0; color: var(--sub); font-size: 0.86rem; }
.page-head:has(.sub) { display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 6px; }
.stat { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line2); border-radius: var(--radius); }
.stat small { color: var(--sub); font-size: 0.8rem; font-weight: 600; }
.stat strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--faint); font-size: 0.78rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(84px, 9em) 1fr auto 3.2em; align-items: center; gap: 10px; font-size: 0.88rem; }
.hb-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bar { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.hb-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.hbars b { font-variant-numeric: tabular-nums; }
.hbars small { color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.vbars-wrap { padding: 4px 0 2px; }
.vbars { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line2); }
.vbars span { position: relative; display: flex; align-items: end; height: 100%; }
.vbars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--accent); }
.vbars b { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, -2px); font-size: 0.66rem; line-height: 1; color: var(--sub); font-weight: 700; pointer-events: none; }
.vbars-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--faint); font-size: 0.74rem; }
.dist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; border-top: 8px solid var(--soft); margin: 0 -16px; padding: 0 16px; }
.dist-grid .sec + .sec { border-top: 0; margin: 0; padding: 18px 0 6px; }
.table-wrap { overflow-x: auto; margin: 6px 0 10px; border: 1px solid var(--line2); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th { position: sticky; top: 0; padding: 10px; background: var(--soft); color: var(--sub); font-size: 0.78rem; font-weight: 700; text-align: left; white-space: nowrap; }
.admin-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table th:nth-child(1), .admin-table th:nth-child(5), .admin-table th:nth-child(6) { text-align: right; }
.muted { color: var(--faint); }
.nowrap { white-space: nowrap; }
.dot-on { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #2bb673; vertical-align: middle; }
.prov-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.prov-tag.kakao { background: #fee500; color: #191600; }
.prov-tag.naver { background: #03c75a; color: #fff; }
.prov-tag.google { background: #e8f0fe; color: #1a56c4; }
.prov-tag.dev { background: var(--soft); color: var(--sub); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dist-grid { grid-template-columns: 1fr; }
  .dist-grid .sec + .sec { border-top: 1px solid var(--line); }
  .vbars { gap: 2px; }
  .vbars b { display: none; }
}
.admin-entry.relogin { border-color: #f3e3b5; background: #fff9e8; }
.admin-entry.relogin i { color: #b7791f; }
