/* bfai-workspace 공통 스타일 — 라이트 기본, [data-theme=dark] 로 다크. 순수 CSS, 프레임워크 없음. */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --text: #1d2330; --muted: #6b7280; --line: #e3e6eb;
  --brand: #4f46e5; --brand-weak: #eef0ff; --danger: #c62828; --side-bg: #1f2433; --side-text: #cfd5e3; --side-active: #ffffff;
  /* 상태 색 — 칩·배지·경고가 공통으로 쓴다. 다크에서 같은 값을 쓰면 배경에 묻혀 안 보인다(2026-09-17) */
  --pj-red: #c62828;   --pj-red-line: rgba(198,40,40,.35);   --pj-red-bg: rgba(198,40,40,.08);
  --pj-green: #2e7d32; --pj-green-line: rgba(46,125,50,.35); --pj-green-bg: rgba(46,125,50,.08);
  --pj-blue: #1e6fd9;  --pj-blue-line: rgba(30,111,217,.35); --pj-blue-bg: rgba(30,111,217,.08);
  --pj-amber: #c77700; --pj-amber-line: rgba(199,119,0,.35); --pj-amber-bg: rgba(199,119,0,.10);
  --pj-teal: #0d7f7f;  --pj-teal-bg: rgba(13,127,127,.10);
  --pj-slate: #5b6b8a; --pj-slate-bg: rgba(91,107,138,.12);
  --pj-leaf: #107c10;  --pj-leaf-bg: rgba(16,124,16,.12);
}
[data-theme="dark"] {
  --bg: #12151c; --panel: #1b202b; --text: #e6e9f0; --muted: #98a0b3; --line: #2b3242;
  --brand: #8b85ff; --brand-weak: #262a44; --side-bg: #0e1117; --side-text: #aeb6c8; --side-active: #ffffff;
  --danger: #ff9a9a;
  --pj-red: #ff9a9a;   --pj-red-line: rgba(255,154,154,.40);   --pj-red-bg: rgba(255,154,154,.13);
  --pj-green: #64d99a; --pj-green-line: rgba(100,217,154,.40); --pj-green-bg: rgba(100,217,154,.13);
  --pj-blue: #7fb3ff;  --pj-blue-line: rgba(127,179,255,.40);  --pj-blue-bg: rgba(127,179,255,.13);
  --pj-amber: #f2b45c; --pj-amber-line: rgba(242,180,92,.40);  --pj-amber-bg: rgba(242,180,92,.13);
  --pj-teal: #5ed3d3;  --pj-teal-bg: rgba(94,211,211,.14);
  --pj-slate: #a3b4d4; --pj-slate-bg: rgba(163,180,212,.14);
  --pj-leaf: #79d479;  --pj-leaf-bg: rgba(121,212,121,.14);
}
/* 테마 규칙: data-theme 이 있으면 그 값, 없으면 라이트. (편집기 등 JS 도 같은 기준 — OS 설정은 보지 않는다) */
* { box-sizing: border-box; }
/* display:grid/flex 를 준 요소도 hidden 속성이 항상 이기게 (팝업·카드·탭이 안 숨겨지던 결함) */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
/* 본문 글꼴: Pretendard(가변) 자체 호스팅 — 사내망에서 외부 폰트 CDN 이 막혀 있어 파일을 저장소에 둔다(static/vendor/pretendard).
   한글이 없는 환경으로 떨어져도 깨지지 않게 맑은 고딕·애플 고딕 순으로 대체한다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/static/vendor/pretendard/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;   /* 가변 축 — 한 파일로 가는 글씨~굵은 글씨 */
  font-style: normal;
  font-display: swap;    /* 폰트 받는 동안 대체 글꼴로 먼저 보인다(빈 화면 방지) */
}
body { font: 14px/1.6 "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; color: var(--text); background: var(--bg);
       word-break: keep-all; overflow-wrap: break-word; }   /* 한글은 단어 단위로 줄바꿈(낱글자 쪼개짐 방지), 긴 영문·URL 만 잘라 넘긴다 */
a { color: var(--brand); text-decoration: none; }

/* 아이콘 (스프라이트 _icons.html) */
.i { width: 16px; height: 16px; vertical-align: -3px; flex: none; }

/* 레이아웃 · 사이드바 (data-sidebar="closed" 면 아이콘만 남기고 접힘 — 크롬식) */
.layout { display: flex; min-height: 100vh; }
.sidebar { --sw: 224px; width: var(--sw); flex: 0 0 var(--sw); background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: 14px 12px; transition: width .18s ease, flex-basis .18s ease;
  position: sticky; top: 0; height: 100vh; box-sizing: border-box; overflow-y: auto;      /* 본문이 길어져도 사이드바는 화면에 고정(2026-09-09 사용자 지적) */
  will-change: transform; backface-visibility: hidden;
  z-index: 30; }   /* will-change 가 사이드바를 한 층으로 묶으므로 순서를 명시 — 본문의 sticky 패널(문서 트리)보다 위, 팝업(50)·서랍(60)보다 아래. 접힘 플라이아웃이 문서 트리에 가려지던 결함 */
  /* will-change: sticky 사이드바가 스크롤마다 다시 그려져 얇은 선 아이콘(업무일지·현황판)이 떨리던 것을 별도 합성 레이어로 해결(2026-09-09 사용자 확인). 빼면 재발 */
.content { flex: 1; min-width: 0; padding: 28px 32px; max-width: 1720px; overflow-x: hidden; }   /* 넓은 화면은 채우고, 초광폭만 제한. 본문이 넓어도 페이지가 가로로 밀리지 않게 */
/* 본문(문서·카드·일지)에 붙인 이미지는 컨테이너 폭에 맞춘다 — 캡처 원본(1800px)이 화면을 밀어내던 것(2026-09-09). 누르면 원본을 새 탭에 */
.md-view img, .toastui-editor-contents img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.md-view img { cursor: zoom-in; }
.md-view, .md-view p { overflow-wrap: anywhere; }
.brand-row { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; padding: 2px 4px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.brand-text { min-width: 0; }
.brand-title { font-weight: 700; color: var(--side-active); white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--side-text); }
.me-avatar { position: relative; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; }   /* 사이드바 내 사진, 없으면 사람 아이콘 */
.me-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ver-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 9px 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: var(--side-text); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ver-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(139,133,255,.22); }
.ver-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.ver-btn:hover::before { background: #fff; box-shadow: none; }
.side-toggle { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--side-text); cursor: pointer; display: grid; place-items: center; }
.side-toggle:hover { background: rgba(255,255,255,.08); color: var(--side-active); }
.side-toggle .i { width: 18px; height: 18px; }
.side-toggle .ic-open { display: none; }
nav { display: flex; flex-direction: column; gap: 2px; }
.menu { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--side-text); white-space: nowrap; }
.menu .i { width: 18px; height: 18px; }
.menu:hover { background: rgba(255,255,255,.06); color: var(--side-active); }
.menu.active { background: var(--brand); color: #fff; font-weight: 600; }
/* 사이드바 알림 배지(피드백 처리 대기) — 어느 화면에서 보든 같은 모양이어야 해서 전역에 둔다(2026-09-10) */
.menu .fb-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff;
                  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.menu.active .fb-badge { box-shadow: 0 0 0 1px rgba(255,255,255,.5); }   /* 선택된 메뉴에서도 같은 빨간 배지(2026-09-10 사용자 선택) */
[data-sidebar="closed"] .menu .fb-badge { display: none; }     /* 접힌 사이드바에서는 아이콘만 */
/* 2단계 하위 메뉴(현황판 판들). 대메뉴가 활성일 때만 펼침. 접힌 사이드바에서는 대메뉴 아이콘에 올리면 옆으로 뜬다 */
.menu-group { position: relative; }
.menu-group .menu .chev { margin-left: auto; width: 14px; height: 14px; opacity: .6; transition: transform .15s; }
.menu-group.open .menu .chev { transform: rotate(180deg); }
.menu-group .sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 4px 22px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); }
.menu-group.open .sub { display: flex; }
.submenu { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--side-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.submenu:hover { background: rgba(255,255,255,.06); color: var(--side-active); }
.submenu.active { color: var(--side-active); font-weight: 600; background: rgba(255,255,255,.08); }
[data-sidebar="closed"] .menu-group .menu .chev { display: none; }
[data-sidebar="closed"] .sidebar { overflow: visible; }                 /* 접힘 상태는 내용이 짧으니 스크롤 대신 플라이아웃이 잘리지 않게 */
[data-sidebar="closed"] .menu-group .menu::after { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: .55; }   /* 하위 메뉴 있음 표시 */
[data-sidebar="closed"] .menu-group .menu { position: relative; }
[data-sidebar="closed"] .menu-group .sub { display: none; position: absolute; left: calc(100% + 4px); top: 0; margin: 0; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: var(--side-bg); box-shadow: 0 8px 24px rgba(0,0,0,.35); min-width: 180px; z-index: 40; }
[data-sidebar="closed"] .menu-group .sub::before { content: attr(aria-label); display: block; padding: 4px 10px 6px; font-size: 11.5px; color: var(--side-text); opacity: .7; }
[data-sidebar="closed"] .menu-group::after { content: ""; position: absolute; left: 100%; top: 0; width: 8px; height: 100%; }   /* 아이콘과 플라이아웃 사이 틈에서 hover 가 끊기지 않게 */
[data-sidebar="closed"] .menu-group:hover .sub, [data-sidebar="closed"] .menu-group:focus-within .sub { display: flex; }
[data-sidebar="closed"] .menu-group .sub .label { display: inline; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--side-text); white-space: nowrap; }
.me:hover { background: rgba(255,255,255,.06); }
.me .i { width: 18px; height: 18px; }
.me-name { font-weight: 700; color: var(--side-active); }
.me-change { margin-left: auto; font-size: 12px; text-decoration: underline; }
.foot-form { display: block; }   /* 사이드바 하단 토글(보기 방식) — 버튼은 .theme-switch 그대로 */
.foot-form .theme-switch { width: 100%; }
.theme-switch { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--side-text); cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.theme-switch:hover { background: rgba(255,255,255,.06); color: var(--side-active); }
.theme-switch .i { width: 18px; height: 18px; }
.theme-switch .ic-sun { display: none; }
[data-theme="dark"] .theme-switch .ic-sun { display: inline; }
[data-theme="dark"] .theme-switch .ic-moon { display: none; }

/* 접힘 상태 */
[data-sidebar="closed"] .sidebar { --sw: 64px; padding: 14px 8px; }
[data-sidebar="closed"] .brand-row { flex-direction: column; gap: 8px; margin-bottom: 12px; }
[data-sidebar="closed"] .brand-text, [data-sidebar="closed"] .label { display: none; }
[data-sidebar="closed"] .side-toggle { margin-left: 0; }
[data-sidebar="closed"] .side-toggle .ic-close { display: none; }
[data-sidebar="closed"] .side-toggle .ic-open { display: inline; }
[data-sidebar="closed"] .menu, [data-sidebar="closed"] .me, [data-sidebar="closed"] .theme-switch { justify-content: center; padding: 10px 0; }

/* 공통 요소 */
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card.narrow { max-width: 560px; }
.hint { color: var(--muted); font-size: 13px; }
.hint.small { font-size: 12px; margin-top: 14px; }
.badge { font-size: 12px; background: var(--brand-weak); color: var(--brand); border-radius: 999px; padding: 2px 10px; }
.error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.wide { width: 100%; margin-top: 12px; }
.input { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; }

/* 대문 */
.center-page { display: grid; place-items: center; min-height: 100vh; }
/* ── 대문 (2026-09-16) ─────────────────────────────────────────────────────
   Codex 가 만든 시안 그림이 곧 대문 화면이다. 그림 안에 '입장' 버튼이 그려져 있어서,
   그 자리에 **진짜 입력칸을 겹쳐** 가짜 버튼을 덮는다(안 덮으면 그걸 누르려 한다).
   위치·크기·글자를 전부 그림 비율(%)과 컨테이너 단위(cqw)로 잡아 화면 폭이 변해도 같이 따라간다.
   바깥 여백은 **그림 가장자리와 같은 색**으로 칠해 테두리가 보이지 않게 한다(어두운 띠가 '짤린' 것처럼 보였다). */
.gate-page { margin: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
[data-concept="cute"]  .gate-page,
[data-concept="cute"]  body.gate-page { background: #fdf8f4; }
[data-concept="clean"] .gate-page,
[data-concept="clean"] body.gate-page { background: #f4f4f4; }
/* 화면을 꽉 채우되 **아무것도 잘리지 않게** 한다 — 비율을 화면에 맞춰 늘린다(background-size: 100% 100%).
   잘라 채우면(cover) 아래 '01 INNOVATION…' 줄이 날아가고, 넣어 맞추면(contain) 가장자리에 띠가 생긴다.
   보통 화면과 시안(약 16:9)의 차이는 몇 % 뿐이라 늘어난 것이 보이지 않는다. 겹쳐 둔 입력칸도 같은 비율로 따라간다.
   글자는 가로(cqw)·세로(cqh) 중 작은 쪽을 따라가 납작한 창에서 글씨가 칸을 넘지 않게 한다. */
.hero { position: relative; width: 100vw; height: 100vh;
        background: center / 100% 100% no-repeat; container-type: size; }
[data-concept="cute"]  .hero { background-image: url("/static/gate-cute.jpg"); }
[data-concept="clean"] .hero { background-image: url("/static/gate-clean.jpg"); }

/* 입력칸 — 시안마다 그 그림의 말투를 따른다. 통짜 검은 덩어리는 어색해서 입력칸과 버튼을 나눴다 */
.hero-login { position: absolute; display: flex; align-items: stretch; gap: 0.6cqw; font-size: min(1.1cqw, 2.0cqh); }
.hero-pw { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-family: inherit; }
.hero-go { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0 1.5em; white-space: nowrap; }

/* 팀 버전(팀 사진) — 둥근 알약, 연보라 */
[data-concept="cute"] .hero-login { left: 2.7%; top: 52.8%; width: 25%; height: 8.8%; }
[data-concept="cute"] .hero-pw { border-radius: 999px; padding: 0 1.4em; background: #fff;
    box-shadow: inset 0 0 0 0.16cqw #cbb6ee; color: #5b4a8a; }
[data-concept="cute"] .hero-pw::placeholder { color: #a493c4; }
[data-concept="cute"] .hero-go { border-radius: 999px; background: linear-gradient(180deg, #bda8ea, #a88fdc); color: #fff;
    box-shadow: 0 0.25cqw 0.7cqw rgba(140, 110, 200, .35); padding: 0 1.2em; }

/* 세련 버전 — 각진 모서리, 흰 입력칸 + 검정 버튼 */
[data-concept="clean"] .hero-login { left: 3.9%; top: 74.5%; width: 26%; height: 7.2%; }
[data-concept="clean"] .hero-pw { border-radius: 8px; padding: 0 1.2em; background: #fff;
    box-shadow: inset 0 0 0 1px #d9d8d4; color: #1b1b1d; }
[data-concept="clean"] .hero-pw::placeholder { color: #9a9a96; }
[data-concept="clean"] .hero-go { border-radius: 8px; background: #1b1b1d; color: #fff; }

.hero-err { position: absolute; left: 4%; margin: 0; font-size: min(1.05cqw, 1.9cqh); font-weight: 600; color: #d32f2f; }
[data-concept="cute"]  .hero-err { top: 64.5%; }
[data-concept="clean"] .hero-err { top: 82%; }

/* 판 바꾸기·버전 — 두 시안 모두 **위쪽 가운데**가 비어 있어 거기 둔다(머리말 띠 안).
   오른쪽 위는 시안의 가짜 메뉴와, 오른쪽 아래는 '03 GROWTH' 와 겹쳤다(2026-09-16 사용자 지적 2회). */
.hero-foot { position: absolute; left: 50%; top: 1.0%; transform: translateX(-50%); z-index: 2;
             display: flex; align-items: center; gap: 0.7cqw; font-size: min(0.8cqw, 1.5cqh); }
.hero-ver { color: rgba(90, 90, 100, .5); }
.hero-concept { font: inherit; border: 1px solid rgba(120, 120, 140, .28); background: rgba(255, 255, 255, .55);
                color: #555; border-radius: 999px; padding: 0.35em 0.95em; cursor: pointer; backdrop-filter: blur(4px); }
.hero-concept:hover { background: rgba(255, 255, 255, .9); color: #222; }
/* 지금 보는 그림이 이미 내 기본값이면 누를 것이 없다 - 눌린 모양으로 두고 비활성 */
.hero-concept.on, .hero-concept:disabled { background: rgba(0, 0, 0, .06); color: #888;
                                           border-color: rgba(120, 120, 140, .2); cursor: default; }

/* 좁은 화면 — 겹쳐 놓으면 글씨가 못 읽을 만큼 작아진다. 그림 아래에 보통 크기로 내린다 */
@media (max-width: 820px) {
  .gate-page { display: block; }
  .hero { width: 100vw; aspect-ratio: auto; height: 52vw; min-height: 190px; }
  .hero-login { position: static; width: auto; height: 46px; margin: 18px 16px 0; font-size: 15px; }
  .hero-pw, .hero-go { border-radius: 10px; }
  .hero-err { position: static; margin: 10px 16px; font-size: 13px; text-align: center; }
  .hero-foot { position: static; transform: none; justify-content: center; gap: 10px; margin: 12px 0 18px; font-size: 12px; }
  .hero-concept { font-size: 12px; }
}
.gate h1 { margin: 4px 0 6px; font-size: 20px; }
.gate .input { margin-top: 14px; }

/* 이름 선택 */
/* 이름 확인 화면 — 명단을 보여 주지 않고 직접 적게 한다(2026-09-10: 대문 비번만 아는 외부인이 아무 이름이나 고르는 것 방지) */
.whoami-form { display: flex; flex-direction: column; gap: 10px; }
.whoami-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.whoami-form .input { max-width: 260px; font-size: 15px; padding: 9px 12px; }
.whoami-form .row { margin-top: 4px; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.member-btn { padding: 16px 8px; font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 10px; cursor: pointer; }
.member-btn:hover, .member-btn.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); }

/* 업데이트 내역 팝업 */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; }
.modal-back[hidden] { display: none; }   /* display:grid 가 hidden 속성의 기본 display:none 을 덮어쓰므로 명시 */
.modal { width: min(760px, 92vw); max-height: 80vh; background: var(--panel); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.modal-x:hover { background: var(--bg); }
.modal-body { margin: 0; padding: 16px 18px; overflow: auto; font: 13px/1.6 "Malgun Gothic", system-ui, sans-serif; }

/* 구분 버튼(일간/주간/월간 · 사용자/개발자) — 공통 */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.seg button.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

/* 업데이트 내역 — 세로 타임라인: 왼쪽 레일(점·버전·날짜·최신) + 오른쪽 카드(소제목별 목록) */
.cl-body { padding: 18px 22px 8px; }
.cl-rel { display: grid; grid-template-columns: 96px 1fr; gap: 0 18px; position: relative; padding-bottom: 22px; }
.cl-rel::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.cl-rel:last-child::before { display: none; }
.cl-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-left: 24px; position: relative; font-size: 12px; color: var(--muted); }
.cl-dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--line); }
.cl-rel.latest .cl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-weak); }
.cl-ver { font-size: 15px; color: var(--text); line-height: 1.4; }
.cl-badge { margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.cl-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 14px 18px 8px; min-width: 0; }
.cl-card h3 { margin: 0; font-size: 15px; }
/* 제목 줄 = 펼침 버튼. 최신 판만 펼쳐 두고 나머지는 접는다 */
.cl-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 0 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cl-head .cl-n { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.cl-head .cl-chev { width: 14px; height: 14px; color: var(--muted); transition: transform .12s; flex: none; }
.cl-rel.collapsed .cl-head { padding-bottom: 0; }
.cl-rel.collapsed .cl-head .cl-chev { transform: rotate(-90deg); }
.cl-rel.collapsed .cl-groups { display: none; }
.cl-rel.collapsed .cl-card { padding-bottom: 14px; }
.cl-card h5 { margin: 8px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.cl-card h4 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-card ul { margin: 0 0 8px; padding-left: 18px; }
.cl-card li { margin: 3px 0; }
.cl-card li::marker { color: var(--brand); }
.cl-card code { font-size: 12px; padding: 0 4px; border-radius: 4px; background: var(--brand-weak); }

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; flex: none; position: static; height: auto; overflow: visible; }   /* 세로 배치(모바일)에서는 고정하지 않음 */
  .content { padding: 18px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 사이드바 메뉴 순서 편집 (2026-09-10) — "메뉴 순서" 를 누르면 끌어서 옮길 수 있다. 내 설정에만 저장 */
body.menu-ordering #menuOrderToggle { color: var(--side-active); font-weight: 600; background: rgba(255,255,255,.08); }
#menuOrderToggle #menuOrderReset { margin-left: auto; font-size: 11.5px; opacity: .7; }
#menuOrderToggle #menuOrderReset:hover { opacity: 1; }
body.menu-ordering nav .menu { cursor: grab; }
body.menu-ordering nav .menu-group > .menu { cursor: grab; }
body.menu-ordering nav .menu::before { content: "⋮⋮"; margin-right: 6px; opacity: .5; font-size: 11px; letter-spacing: -2px; }
body.menu-ordering nav .sub { display: none; }                 /* 편집 중엔 하위 메뉴를 접어 단순하게 */
nav .dragging { opacity: .45; }
nav .drop-before { box-shadow: inset 0 2px 0 0 var(--brand); }
nav .drop-after { box-shadow: inset 0 -2px 0 0 var(--brand); }


/* 내 설정의 접힌 카드(이 자리가 내가 아닌가요?) — 평소엔 한 줄, 펼치면 폼 */
.card.fold > summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; }
.card.fold > summary::-webkit-details-marker { display: none; }
.card.fold > summary::before { content: "▸ "; }
.card.fold[open] > summary::before { content: "▾ "; }
.card.fold[open] > summary { color: inherit; }
