/* 이지오딘 공통 스타일
   색은 아래 변수로만 쓴다. 예전 이름(--panel, --line, --gold …)은 다른 화면 CSS가 쓰고 있어 새 이름에 연결해 둔다. */
:root {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f2f1ed; --surface-3: #e9e7e2;
  --border: #e6e4de; --border-strong: #d4d1c9;
  --text: #1b1a17; --muted: #5d5a53; --faint: #8c887f;
  --accent: #9b6a1b; --accent-strong: #7c5311; --accent-soft: rgba(176, 125, 40, .11); --on-accent: #ffffff;
  --blue: #2a64d0; --green: #16824a; --red: #c93b32; --violet: #6a4ecb;
  --radius: 10px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 26, 23, .05), 0 10px 28px rgba(27, 26, 23, .09);
  --shadow-sm: 0 1px 2px rgba(27, 26, 23, .04);
  --focus: 0 0 0 3px rgba(155, 106, 27, .2);
  --header-h: 60px; --sidebar-w: 248px;
  --scroll: #d3d0c8;
  --panel: var(--surface); --panel2: var(--surface-2); --bg2: var(--surface); --line: var(--border); --line2: var(--border-strong);
  --gold: var(--accent); --gold2: var(--accent-strong); --glass: var(--surface);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121211; --surface: #1a1a18; --surface-2: #22221f; --surface-3: #2b2a27;
  --border: #2c2b28; --border-strong: #3b3a36;
  --text: #ecebe6; --muted: #a9a69e; --faint: #78756e;
  --accent: #d8a74f; --accent-strong: #ebc06f; --accent-soft: rgba(216, 167, 79, .13); --on-accent: #1c1405;
  --blue: #6ea1f2; --green: #4cc282; --red: #ef7a6f; --violet: #a891f2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --focus: 0 0 0 3px rgba(216, 167, 79, .28);
  --scroll: #3b3a36;
  color-scheme: dark;
}
/* 위쪽 막대 높이 (다른 화면 CSS가 sticky 위치·스크롤 여백에 쓴다). 1024px 아래는 조금 낮다 */
@media (max-width: 1023.98px) { :root { --header-h: 56px; } }

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 "SUIT Variable", SUIT, Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
::placeholder { color: var(--faint); opacity: 1; }
/* 스크롤바 모양은 마우스 화면에서만: 휴대폰에서 꾸미면 글 위에 겹치던 스크롤바가 자리를 차지해 오른쪽 여백만 좁아진다 */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 8px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-track { background: transparent; }
}
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.35; }
hr { border: 0; border-top: 1px solid var(--border); }
code { font: 13px/1.5 ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }
.container { width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.gold, .accent { color: var(--accent); } .green { color: var(--green); } .red { color: var(--red); }
.nowrap { white-space: nowrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 650; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* 아이콘 (Lucide) */
svg.lucide { width: 16px; height: 16px; stroke-width: 1.8; flex-shrink: 0; vertical-align: -3px; }
.ico-lg svg.lucide, svg.lucide.lg { width: 20px; height: 20px; }
i[data-lucide] { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- 틀: 왼쪽 메뉴 + 본문 ---------- */
.app-main { margin-left: var(--sidebar-w); min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main.site-main { flex: 1; padding: 32px 0 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; font-size: 17px; letter-spacing: -.03em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; border-radius: 8px; }

.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: var(--sidebar-w); display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); }
.sb-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--header-h); padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--border); }
.sb-head .sb-close { display: none; }
.sb-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 18px; scrollbar-width: thin; }
.sb-nav::-webkit-scrollbar-thumb { border-color: var(--surface); }
.sb-label { padding: 18px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--faint); }
.sb-item { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14.5px; font-weight: 600; transition: background .12s, color .12s; }
.sb-item svg.lucide { width: 18px; height: 18px; color: var(--faint); transition: color .12s; }
.sb-item:hover { background: var(--surface-2); color: var(--text); }
.sb-item:hover svg.lucide { color: var(--muted); }
.sb-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.sb-item[aria-current="page"] svg.lucide { color: var(--accent); }
/* 잠김 표시가 붙은 메뉴는 이름 대신 표시가 줄어든다 */
.sb-t { flex: 1 0 auto; white-space: nowrap; }
.sb-t:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.np-lock { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 10.5px; font-weight: 700;
  line-height: 18px; padding: 0 7px; border-radius: 99px; color: var(--faint); background: var(--surface-2); border: 1px solid var(--border); }
.sb-item .count-badge { margin-left: 0; }
.sb-ext { width: 14px !important; height: 14px !important; }
.sb-back { margin-bottom: 2px; color: var(--faint); font-size: 13.5px; }
.sb-back svg.lucide { width: 16px; height: 16px; }
.sb-maint { color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--red) 28%, var(--border)); }
/* 오늘의 오딘: 메뉴 아래 */
.sb-pulse { flex: none; margin: 0 12px 10px; padding: 10px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.sb-pulse-h { padding: 0 8px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.sb-pulse-row { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--muted); }
a.sb-pulse-row:hover { background: var(--surface-2); color: var(--text); }
.sb-pulse-row svg.lucide { width: 15px; height: 15px; flex: none; color: var(--faint); }
.sb-pulse-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pulse-row b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-pulse-row em { font-style: normal; font-size: 11px; font-weight: 700; line-height: 17px; padding: 0 6px; border-radius: 99px; color: var(--accent-strong); background: var(--accent-soft); }
@media (max-height: 640px) and (min-width: 1024px) { .sb-pulse { display: none; } }
.sb-backdrop { display: none; }

/* ---------- 위쪽 막대: 지금 메뉴 · 언어 · 밝은/어두운 화면 · 알림 · 내 정보 (좁은 화면에서는 ≡·로고도) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 20px 0 32px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border); }
.topbar-menu, .topbar-logo { display: none !important; }
.topbar-crumb { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 15px; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.topbar-crumb svg.lucide { width: 18px; height: 18px; color: var(--accent); }
.topbar-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; height: 40px; padding: 0 9px;
  border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s; }
.tb-btn svg.lucide { width: 19px; height: 19px; }
.tb-btn:hover, .tb-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.tb-btn:focus-visible, .tb-userbtn:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-code { letter-spacing: .04em; }
.theme-toggle > span { align-items: center; }
.theme-toggle .when-light { display: inline-flex; }
.theme-toggle .when-dark { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: inline-flex; }
[data-theme="dark"] .theme-toggle .when-light { display: none; }
.tb-bell:hover svg.lucide, .tb-bell[aria-expanded="true"] svg.lucide { color: var(--accent); }
.tb-badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.tb-bell.ring svg.lucide { transform-origin: 50% 3px; animation: tb-ring .9s ease-in-out; }
@keyframes tb-ring { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 50% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 70% { transform: none; } }
.tb-userbtn { display: flex; align-items: center; gap: 9px; height: 44px; margin-left: 4px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.tb-userbtn:hover, .tb-userbtn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); }
.tb-userbtn .avatar { width: 34px; height: 34px; font-size: 14px; }
.tb-user-t { display: grid; min-width: 0; max-width: 140px; line-height: 1.3; }
.tb-user-t b, .tb-user-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-user-t b { font-size: 13.5px; font-weight: 750; }
.tb-user-t small { font-size: 11.5px; font-weight: 650; color: var(--accent); }
.tb-caret { color: var(--faint); transition: transform .15s; }
.tb-userbtn[aria-expanded="true"] .tb-caret { transform: rotate(180deg); }
.tb-login { margin-left: 4px; }
.tb-menu { min-width: 224px; }
.tb-menu .tb-flag { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 10.5px; font-weight: 800; color: var(--muted); }
.tb-menu button[aria-checked="true"] { font-weight: 750; }
.dropdown .tb-check { margin-left: auto; color: var(--accent); }
.tb-note { margin: 6px 4px 2px; padding: 8px 6px 2px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.5; color: var(--faint); }

.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg.lucide { width: 19px; height: 19px; }
.user-menu { position: relative; }
.avatar { position: relative; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 12px; font-weight: 700; line-height: 1; color: var(--on-accent); background: var(--accent); }
.avatar .count-badge { position: absolute; top: -5px; right: -7px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--surface); }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 214px; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); animation: ui-pop .14s ease-out; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; text-align: left; border: 0;
  border-radius: var(--radius-sm); background: none; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--text); }
.dropdown a svg, .dropdown button svg { width: 17px; height: 17px; color: var(--faint); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown hr { margin: 5px 4px; }
.dropdown form { margin: 0; }
.dropdown-head { display: grid; gap: 1px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.dropdown-head b { font-size: 14px; }
.dropdown-head small { font-size: 12px; color: var(--accent); font-weight: 600; }

/* 알림: 위쪽 막대의 종을 누르면 나오는 창과 알림 화면 */
.nt-panel { width: min(384px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); }
.nt-head b { font-size: 15px; }
.dropdown .nt-readall { width: auto; min-height: 32px; padding: 0 10px; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.dropdown .nt-readall svg { width: 15px; height: 15px; }
.dropdown .nt-readall:disabled { opacity: .45; cursor: default; background: none; }
.nt-scroll { max-height: min(440px, calc(100dvh - 190px)); overflow-y: auto; overscroll-behavior: contain; padding: 4px; scrollbar-width: thin; }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nt-item, .dropdown a.nt-item { display: flex; align-items: flex-start; gap: 11px; min-height: 0; padding: 10px; border-radius: var(--radius-sm); color: var(--text);
  font-size: 13.5px; font-weight: 500; white-space: normal; }
.nt-item:hover { background: var(--surface-2); color: var(--text); }
.nt-item.unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.nt-item.unread:hover { background: color-mix(in srgb, var(--accent) 11%, var(--surface-2)); }
.nt-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.nt-ico svg.lucide, .dropdown .nt-ico svg { width: 17px; height: 17px; color: inherit; }
.nt-ico.k-comment, .nt-ico.k-reply { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue); }
.nt-ico.k-like { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.nt-ico.k-inquiry, .nt-ico.k-inquiry_new { background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.nt-ico.k-trade_match, .nt-ico.k-trade_status { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); }
.nt-ico.k-trade_expire { background: var(--accent-soft); color: var(--accent); }
.nt-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nt-text { line-height: 1.5; overflow-wrap: anywhere; }
.nt-text b { font-weight: 750; }
.nt-snip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.nt-time { font-size: 11.5px; color: var(--faint); }
.nt-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nt-empty { margin: 0; padding: 30px 16px; text-align: center; font-size: 13px; line-height: 1.65; color: var(--faint); }
.nt-empty svg.lucide { display: block; width: 28px; height: 28px; margin: 0 auto 8px; color: var(--border-strong); }
.dropdown a.nt-all { justify-content: center; gap: 4px; min-height: 42px; border-radius: 0; border-top: 1px solid var(--border); font-size: 13px; font-weight: 650; color: var(--muted); }
.dropdown a.nt-all svg { width: 15px; height: 15px; }
.nt-filter { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface-2); }
.nt-filter a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; color: var(--muted); }
.nt-filter a:hover { color: var(--text); }
.nt-filter a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 0 0 1px var(--border); }
.nt-filter em { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--red); color: #fff;
  font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.nt-full { padding: 6px; }
.nt-full .nt-item { padding: 12px; }

.banner { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border)); font-size: 14px; }
.banner .container { display: flex; gap: 9px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.banner svg { color: var(--accent); }
.banner a { font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
/* 점검 중: 운영진에게만 보이는 띠와, 다른 사람에게 보이는 점검 안내 화면 */
.maint-bar { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--red) 30%, var(--border)); font-size: 14px; color: var(--text); }
.maint-bar .container { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.maint-bar svg { color: var(--red); }
.maint-bar a { margin-left: auto; font-weight: 700; color: var(--red); }
.maint-body { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 70% at 50% 0%, var(--accent-soft) 0%, transparent 60%), var(--bg); }
.maint { width: 100%; max-width: 460px; padding: 40px 30px 32px; text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.maint-logo { display: block; margin: 0 auto 10px; width: 56px; height: 56px; }
.maint-site { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.maint h1 { margin: 6px 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.maint-msg { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); white-space: pre-line; }
.maint-until { margin: 16px 0 0; display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); }
.maint-until b { color: var(--text); }
.maint-staff { display: block; margin-top: 26px; font-size: 12.5px; color: var(--faint); }

.site-footer { border-top: 1px solid var(--border); padding: 22px 0 28px; color: var(--faint); font-size: 13px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- 머리말·카드·격자 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 6px 0 0; max-width: 760px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-title h2 { margin: 0; font-size: 17px; font-weight: 750; }
.section-title a { font-size: 13.5px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 15.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.card-head h2 svg, .card-head h3 svg { color: var(--accent); }
.card-head a { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.card-head a:hover { color: var(--accent); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; line-height: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary, .btn-blue { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-blue:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-danger { color: var(--red); }
.btn-danger:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, var(--border)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { background: var(--red); border-color: var(--red); color: #fff; filter: brightness(1.08); }
.btn-sm { padding: 5px 11px; font-size: 13px; gap: 5px; }
.btn-sm svg.lucide { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }

/* ---------- 입력 ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=date], input:not([type]), select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; line-height: 20px; font-size: 14.5px;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
input[type=file] { max-width: 100%; font-size: 14px; color: var(--muted); }
input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 650; font-size: 13.5px; margin-bottom: 7px; }
.field .help { font-size: 12.5px; color: var(--faint); margin-top: 6px; line-height: 1.55; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.field > label.check { display: flex; font-weight: 500; font-size: 14px; margin: 0; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--red); font-size: 13px; }
.form-error { background: color-mix(in srgb, var(--red) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border)); color: var(--red);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.form-narrow { max-width: 760px; }
.form-narrow.sm { max-width: 640px; }
.form-narrow.xs { max-width: 520px; }
.form-wide { max-width: 900px; }
.form-stack { display: grid; gap: 16px; }

/* ---------- 로그인·가입 ---------- */
.auth-wrap { max-width: 420px; margin: 28px auto; }
.auth-wrap .card { padding: 32px 30px 28px; }
.auth-mark { display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; }
.auth-wrap h1 { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.auth-wrap .sub { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; line-height: 1.65; }
.auth-wrap .btn-block { margin-top: 4px; padding-top: 10px; padding-bottom: 10px; }
.auth-foot { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--accent); font-weight: 650; }

/* ---------- 배지 ---------- */
.pill, .board-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; line-height: 20px; padding: 0 9px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.board-chip.notice { background: var(--accent-soft); color: var(--accent-strong); }
.pill.ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.pill.bad { background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--red); }
.pill.warn { background: var(--accent-soft); color: var(--accent-strong); }
.pill.info { background: color-mix(in srgb, var(--blue) 11%, transparent); color: var(--blue); }
.op-badge, .staff-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 99px;
  vertical-align: middle; letter-spacing: 0; }
.op-badge { background: var(--accent-soft); color: var(--accent-strong); }
.staff-badge { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.count-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; font-style: normal; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .board-chip.notice, [data-theme="dark"] .pill.warn, [data-theme="dark"] .op-badge { color: var(--accent); }

/* ---------- 홈·공통 조각 ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.market-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.market-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.market-card-head h1 { margin: 0; font-size: 19px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.market-card-head h1 svg { color: var(--accent); width: 20px; height: 20px; }
.market-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kpi { padding: 12px 14px; border-left: 1px solid var(--border); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .l, .stat .l { font-size: 12.5px; color: var(--muted); }
.kpi .v, .stat .v { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .s, .stat .s { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.chart-box { position: relative; height: 190px; }
.chart-box.sm { height: 150px; }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--faint); font-size: 13.5px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.locked { position: relative; }
.locked .lock-body { filter: blur(5px); opacity: .5; pointer-events: none; user-select: none; }
.locked .unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.locked .unlock p { margin: 0; font-weight: 600; }
.lock-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 14px 0; border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.lock-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lock-ico svg.lucide { width: 20px; height: 20px; }
.lock-txt { min-width: 0; }
.lock-txt b { font-size: 15px; }
.lock-txt p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.lock-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.tool-list { display: grid; gap: 12px; align-content: start; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; transition: border-color .12s, background .12s; }
.tool:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.tool .tool-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool .tool-ico svg.lucide { width: 20px; height: 20px; }
.tool b { display: block; font-size: 15px; }
.tool span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.list-compact { list-style: none; margin: 0; padding: 4px 0; }
.list-compact li a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 18px; }
.list-compact li a:hover { background: var(--surface-2); color: var(--text); }
.list-compact .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-compact .cmt { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.list-compact .meta { color: var(--faint); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .12s, background .12s; }
.tile:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.tile b { font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.tile b svg { color: var(--accent); }
.tile span { font-size: 12.5px; color: var(--faint); }
.empty-note { padding: 28px 18px; text-align: center; color: var(--faint); font-size: 14px; line-height: 1.6; }

/* ---------- 게시판: 게시판 고르기는 위쪽 탭 줄 (왼쪽 메뉴와 겹치지 않게) ---------- */
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.board-side { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.board-side::-webkit-scrollbar { display: none; }
.board-side a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; }
.board-side a:hover { color: var(--text); border-color: var(--border-strong); }
.board-side a.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.board-side .write { margin: 0 0 0 auto; gap: 6px; }
.board-side a.btn-primary, .board-side a.btn-primary:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 64px 52px 44px; gap: 12px; align-items: center; min-height: 48px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.post-row:last-child { border-bottom: 0; }
.post-row.head { min-height: 0; font-size: 12px; font-weight: 650; color: var(--faint); padding-top: 9px; padding-bottom: 9px; background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.post-row:not(.head):hover { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.post-row .title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.post-row .title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.post-row .cmt { color: var(--accent); font-size: 12.5px; font-weight: 700; flex: none; }
.post-row .img-ico { font-size: 12px; color: var(--faint); }
.post-row .author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.post-row .num { text-align: right; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.post-row.notice { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.post-row.notice .title a { color: var(--accent-strong); }
[data-theme="dark"] .post-row.notice .title a { color: var(--accent); }
.list-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.search-form { display: flex; gap: 8px; min-width: 0; }
.search-form select { width: auto; }
.search-form input { width: 220px; }
.pager { display: flex; gap: 4px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--surface-2); color: var(--text); }
.pager .on { background: var(--accent); color: var(--on-accent); font-weight: 750; }

.post-view .post-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--border); }
.post-view h1 { margin: 10px 0 12px; font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; word-break: break-word; }
.post-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.post-meta .who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-body { padding: 26px 28px; font-size: 15.5px; line-height: 1.85; word-break: break-word; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.post-images { display: grid; gap: 12px; padding: 0 28px 12px; }
.post-images img { border-radius: var(--radius); border: 1px solid var(--border); }
.post-actions { display: flex; justify-content: center; gap: 10px; padding: 18px 28px 28px; }
.like-btn { min-width: 116px; border-radius: 999px; }
.like-btn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--accent); }
.post-tools { display: flex; justify-content: space-between; gap: 8px; padding: 14px 0; flex-wrap: wrap; }
.inline-form { display: inline; }
.comments { margin-top: 16px; }
.comment { padding: 15px 20px; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment.reply { padding-left: 52px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.comment-head .who { font-weight: 700; }
.comment-head .when { color: var(--faint); }
.comment-head .tools { margin-left: auto; display: flex; gap: 2px; }
.comment-head .tools button { background: none; border: 0; border-radius: 6px; color: var(--faint); cursor: pointer; font-size: 13px; min-height: 30px; padding: 2px 8px; }
.comment-head .tools button:hover { color: var(--text); background: var(--surface-2); }
.comment-body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.comment-body.hidden { color: var(--faint); font-style: italic; }
.comment-form { padding: 16px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.comment-form .row { display: flex; justify-content: flex-end; }
.reply-form { margin-top: 10px; display: grid; gap: 8px; }
.editor .images-current { display: flex; gap: 10px; flex-wrap: wrap; }
.editor .images-current label { display: grid; gap: 4px; justify-items: center; font-size: 12.5px; color: var(--faint); }
.editor .images-current label span { display: inline-flex; align-items: center; gap: 5px; }
.editor .images-current img { width: 110px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ---------- 내 정보 ---------- */
.profile-card { margin-bottom: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; align-items: start; }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.profile-head h1 { margin: 0 0 2px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-head .profile-t { flex: 1; min-width: 200px; }

/* ---------- 알림 ---------- */
.toasts { position: fixed; right: 20px; top: calc(var(--header-h) + 16px); z-index: 60; display: grid; gap: 8px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--green); padding: 11px 15px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 14px; max-width: 380px; cursor: pointer; transition: opacity .3s, transform .3s; animation: toast-in .22s ease-out; }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
.toast.warn { border-left-color: var(--accent); }
.toast.hide { opacity: 0; transform: translateY(-6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
/* 확인·입력 창 (static/js/site.js 의 ui.dialog · ui.confirm · ui.prompt) */
.ui-dialog { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 18, 14, .42); animation: ui-fade .15s ease-out; }
.ui-dialog-box { width: min(400px, 100%); display: grid; gap: 12px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow); animation: ui-pop .18s ease-out; }
.ui-dialog-box h3 { margin: 0; font-size: 17px; }
.ui-dialog-box p { margin: 0; font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@keyframes ui-fade { from { opacity: 0; } }
@keyframes ui-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
/* 위쪽 진행 막대 (static/js/site.js 의 ui.progress) */
.top-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .25s; }
.top-progress.on { opacity: 1; }
.top-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); box-shadow: 0 0 8px var(--accent); transition: width .25s ease-out; }
/* 버튼 로딩 (ui.busy · 폼 제출) */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; animation: btn-spin .7s linear infinite; }
.btn-primary.is-loading::after, .btn-blue.is-loading::after, .btn-danger-solid.is-loading::after { border-color: var(--on-accent) transparent var(--on-accent) transparent; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- 안내 문서 ---------- */
.prose { max-width: 800px; }
.prose.card-pad { padding: 30px 34px 34px; }
.prose h1 { margin: 0 0 16px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.prose h2 { font-size: 17px; font-weight: 750; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li + li { margin-top: 4px; }

/* ---------- 운영 관리 (메뉴는 왼쪽 메뉴 자리에 sb-nav-admin 으로) ---------- */
.panel-main { min-width: 0; }
/* 표가 많아 사이트 화면보다 넓게 쓴다 */
.is-panel .container { max-width: 1680px; }
/* 하위 화면(회원 추가·게시판 수정·문의 답변 …)의 '← 목록' */
.page-back { display: inline-flex; align-items: center; gap: 5px; margin: -6px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.page-back:hover { color: var(--accent-strong); }
.page-back svg.lucide { width: 16px; height: 16px; }
.page-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 사이트 설정: 넓은 화면에서는 두 줄 */
.settings-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1240px; }
.settings-cols > .form-stack { min-width: 0; }
.settings-maint { max-width: 1240px; margin-bottom: 16px; }
.settings-maint .maint-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 16px; }
.settings-save { position: sticky; bottom: 0; z-index: 5; max-width: 1240px; margin-top: 16px; padding: 12px 0; display: flex; justify-content: flex-end;
  background: linear-gradient(transparent, var(--bg) 35%); }
@media (max-width: 1199.98px) {
  .settings-cols, .settings-maint .maint-fields { grid-template-columns: minmax(0, 1fr); }
}
.pending-card { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pending-card h2 svg { color: var(--accent); }
.pending-list { list-style: none; margin: 0; padding: 0 18px 10px; display: grid; }
.pending-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pending-list li:last-child { border-bottom: 0; }
.pending-list li .faint { margin-left: auto; font-size: 13px; }
.pending-list form { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 16px 18px; min-width: 0; }
.stat-card .l { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.stat-card .s { color: var(--faint); font-size: 12.5px; }
.settings-h { margin: 0 0 14px; font-size: 16px; font-weight: 750; }
.settings-help { margin: -6px 0 14px; font-size: 13px; line-height: 1.6; }
.access-list { display: grid; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.access-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--border); }
.access-row:first-child { border-top: 0; }
.access-name { display: grid; gap: 2px; }
.access-name small { color: var(--faint); font-size: 12px; line-height: 1.5; }
.access-row select { width: auto; max-width: 100%; }
.access-choices { display: grid; gap: 5px; }
.access-choices label { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s; }
.access-choices label:hover { border-color: var(--border-strong); }
.access-choices label.on, .access-choices label:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: var(--accent-soft); color: var(--text); }
.access-choices input { margin: 0; }
.memo-form { display: flex; gap: 6px; margin: 0; min-width: 220px; }
.memo-form input { flex: 1; min-width: 0; padding: 5px 8px; }
.level-pick { margin: 0; }
.level-pick select { width: auto; padding: 5px 8px; font-size: 13px; line-height: 18px; }
.dash-traffic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 13px 18px; margin-bottom: 12px; font-size: 14px; color: var(--muted); transition: border-color .12s; }
.dash-traffic:hover { border-color: var(--border-strong); color: var(--muted); }
.dash-traffic b { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.dash-traffic .live { display: inline-flex; align-items: center; gap: 7px; }
.dash-traffic .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.dash-traffic .go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 650; font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 16px 18px 8px; }
.bars .b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars .b i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 2px 2px; background: var(--border-strong); min-height: 2px; }
.bars .b.gold i { background: var(--accent); }
.bars .b span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bars .b em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ellipsis { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td .btn-sm, .table td input, .table td select { vertical-align: middle; }
.table td.empty-note { padding: 32px 18px; text-align: center; color: var(--faint); font-size: 14px; }
.table td .actions { flex-wrap: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card > .table-wrap:first-child { border-top-left-radius: calc(var(--radius) - 1px); border-top-right-radius: calc(var(--radius) - 1px); }
.card > .table-wrap:last-child { border-bottom-left-radius: calc(var(--radius) - 1px); border-bottom-right-radius: calc(var(--radius) - 1px); }
.card > .table-wrap:not(:last-child) { border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.filter-bar input[type=search] { width: 240px; }
.filter-bar select { width: auto; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* 메뉴 이용 범위 안내 화면 (레벨·로그인이 모자랄 때) */
.lockpage { max-width: 560px; margin: 32px auto; padding: 38px 32px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft) 0%, transparent 62%), var(--surface); }
.lockpage-ico { position: relative; width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); box-shadow: var(--shadow-sm); color: var(--accent); margin-bottom: 6px; }
.lockpage-ico > svg.lucide { width: 30px; height: 30px; }
.lockpage-key { position: absolute; right: -8px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--accent); border: 2px solid var(--surface); color: var(--on-accent); }
.lockpage-key svg.lucide { width: 14px; height: 14px; }
.lockpage h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.lockpage-lead { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.lockpage-need { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
[data-theme="dark"] .lockpage-need { color: var(--accent); }
.lockpage-need svg.lucide { width: 15px; height: 15px; }
.lockpage-points { list-style: none; margin: 8px 0 0; padding: 14px 18px; display: grid; gap: 9px; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.lockpage-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; }
.lockpage-points svg.lucide { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 2px; }
.lockpage-note { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.lockpage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* 1:1 문의 */
.iq-list .pill { flex: none; }
.iq-list .count-badge { flex: none; margin-left: 0; }
.iq-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 750; flex-wrap: wrap; }
.iq-h svg.lucide { width: 17px; height: 17px; color: var(--accent); }
.iq-h .faint { font-size: 12.5px; font-weight: 500; }
.iq-body { font-size: 14.5px; line-height: 1.8; word-break: break-word; }
.iq-stack { display: grid; gap: 14px; max-width: 840px; }
.iq-send { margin-top: 12px; }

/* 오류 화면 (404 · 500 · 403) */
.err-page { max-width: 520px; margin: 40px auto; padding: 48px 28px; text-align: center; }
.err-page .auth-mark { margin: 0 auto 16px; }
.err-page .err-code { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.err-page h1 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.err-page p { margin: 0 0 22px; color: var(--muted); }

/* ---------- 화면 폭별 ---------- */
@media (max-width: 1279.98px) {
  .container { padding: 0 24px; }
  .stat-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099.98px) {
  .grid-2, .home-top, .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023.98px) {
  .app-main { margin-left: 0; }
  main.site-main { padding: 24px 0 56px; }
  .topbar { gap: 2px; padding: 0 8px 0 6px; }
  .topbar-menu, .topbar-logo { display: inline-flex !important; }
  .topbar-crumb { display: none; }
  .topbar .icon-btn { width: 42px; height: 42px; }
  .topbar .logo { min-width: 0; font-size: 16px; gap: 9px; margin-left: 2px; }
  .topbar .logo-mark { width: 26px; height: 26px; border-radius: 7px; }
  .topbar-tools { gap: 2px; }
  .sidebar { width: min(300px, 86vw); z-index: 90; border-right: 0; transform: translateX(-100%); visibility: hidden;
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .sb-head { height: var(--header-h); padding: 0 8px 0 16px; border-bottom: 1px solid var(--border); }
  .sb-head .sb-close { display: inline-flex; }
  .sb-nav { padding-top: 6px; }
  .sb-item { min-height: 42px; }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(20, 18, 14, .42); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
  .nav-open .sb-backdrop { opacity: 1; visibility: visible; transition: opacity .2s; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .container { padding: 0 16px; }
  main.site-main { padding: 20px 0 48px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 22px; }
  .card-pad { padding: 16px; }
  .card-head { padding: 10px 16px; min-height: 46px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .post-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .post-row .hide-m { display: none; }
  .post-row.head { display: none; }
  .post-view .post-head { padding: 18px 16px 14px; }
  .post-view h1 { font-size: 20px; }
  .post-body { padding: 18px 16px; font-size: 15px; }
  .post-images { padding: 0 16px 10px; }
  .post-actions { padding: 14px 16px 20px; }
  .comment { padding: 13px 16px; }
  .comment.reply { padding-left: 30px; }
  .comment-form { padding: 14px 16px; }
  .list-tools { padding: 12px 16px; }
  .search-form { flex: 1; flex-wrap: wrap; }
  .search-form input { width: auto; flex: 1 1 140px; }
  .filter-bar { padding: 12px; }
  .filter-bar input[type=search] { width: auto; flex: 1 1 160px; }
  .list-compact li a { padding: 9px 16px; }
  .lock-card { flex-wrap: wrap; }
  .lock-actions { margin-left: 0; }
  .table th, .table td { padding: 9px 11px; }
  .access-row { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { margin: 8px auto; }
  .auth-wrap .card { padding: 26px 20px 22px; }
  .prose.card-pad { padding: 22px 18px 24px; }
  .prose h1 { font-size: 22px; }
  .lockpage { margin: 12px auto; padding: 30px 20px 24px; }
  .err-page { margin: 16px auto; padding: 40px 20px; }
  .toasts { left: 12px; right: 12px; top: calc(var(--header-h) + 10px); justify-items: stretch; }
  .toast { max-width: none; }
  .site-footer { padding: 18px 0 24px; }
  .btn-sm { padding-top: 7px; padding-bottom: 7px; }
  .pager a, .pager span { min-width: 38px; height: 38px; }
}
/* 휴대폰: 위쪽 막대는 아이콘만, 알림 창은 화면 폭에 맞춰 */
@media (max-width: 599.98px) {
  .tb-code, .tb-user-t, .tb-caret, .tb-signup { display: none; }
  .tb-btn { min-width: 40px; padding: 0 8px; }
  .tb-userbtn { height: 42px; margin-left: 2px; padding: 3px; border-color: transparent; background: none; }
  .tb-login { padding-left: 10px; padding-right: 10px; }
  .nt-panel { position: fixed; top: calc(var(--header-h) + 6px); left: 10px; right: 10px; width: auto; }
}
@media (max-width: 379.98px) {
  .topbar .logo span { display: none; }
}
@media (max-width: 479.98px) {
  .stat-grid { gap: 8px; }
  .stat-card { padding: 13px 14px; }
  .stat-card .v { font-size: 22px; }
  .dash-traffic { gap: 6px 16px; }
  .dash-traffic .go { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sb-backdrop, .toast, .dropdown, .ui-dialog, .ui-dialog-box { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .sb-backdrop, .topbar, .site-footer, .toasts, .top-progress, .skip-link { display: none !important; }
  .app-main { margin-left: 0; }
  body { background: #fff; }
}
