/* 놀아애드 화면 공통 스타일 — 디자인 시스템은 nola-ad.css(Claude Design 시안 v1.0, 원본 그대로)
   이 파일은 ① 실제 앱 동작에 필요한 보완(고정 레이아웃·모바일 드로어·모달 열기) ② 예전 부품 이름(btn, card, tbl …)을
   시안 토큰으로 다시 그린 호환층입니다. 새 화면은 n- 부품을 쓰고, 예전 이름은 화면을 옮기는 동안만 씁니다. */

/* 예전 변수 이름 → 시안 토큰(화면별 css·js 가 아직 쓰는 이름) */
:root {
  --navy: var(--c-gray-900); --navy-2: var(--c-gray-800); --navy-soft: var(--c-gray-100);
  --pri: var(--c-primary-600); --pri-hover: var(--c-primary-700); --pri-soft: var(--c-primary-50);
  --ok: var(--c-success-600); --ok-soft: var(--c-success-50); --warn: var(--c-warning-600); --warn-soft: var(--c-warning-50);
  --bad: var(--c-danger-600); --bad-soft: var(--c-danger-50); --info: var(--c-info-600); --info-soft: var(--c-info-50);
  --text: var(--c-text-1); --text-2: var(--c-text-2); --muted: var(--c-text-3); --line: var(--c-border); --line-2: var(--c-border-strong);
  --bg: var(--c-bg); --surface: #fff; --surface-2: var(--c-gray-25);
  --r: var(--r-lg); --sh: var(--sh-sm); --font: var(--font-sans); --mono: var(--font-mono);
}

html, body { margin: 0; padding: 0; }
body.n-root { min-height: 100vh; overflow-wrap: anywhere; }
img { max-width: 100%; }
/* n-root 가 제목·문단 여백을 0 으로 지우므로, 클래스 없는(예전) 제목·문단만 여백을 되살림 */
.n-root h1:not([class]) { font-size: 28px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.n-root h2:not([class]) { font-size: 18px; line-height: 28px; font-weight: 700; margin: 0 0 10px; }
.n-root h3:not([class]) { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 8px; }
.n-root h4:not([class]) { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.n-root p:not([class]) { margin: 0 0 10px; }
.n-root hr { border: 0; border-top: 1px solid var(--c-border); margin: 20px 0; }
.n-root code, .n-root .code { font-family: var(--font-mono); font-size: 12.5px; }
.n-root .prose ul, .n-root .prose ol { padding-left: 22px; list-style: disc; margin: 0 0 12px; }
.n-root .prose ol { list-style: decimal; }
.n-root .prose h2, .n-root .prose h3 { margin: 20px 0 8px; }
.n-root .prose p { margin: 0 0 10px; }
.n-root a.n-btn, .n-root a.btn, .n-root a.n-kpi, .n-root a.n-card { text-decoration: none; }

/* .n-root a(빨강 링크색)가 링크 모양 부품의 글자색을 덮지 않게 */
.n-root a.n-btn--primary, .n-root a.n-btn--earn, .n-root a.n-btn--danger, .n-root a.n-btn--naver, .n-root a.btn.pri, .n-root a.btn.earn, .n-root a.btn.danger, .n-root a.btn.nola { color: #fff; }
.n-root a.n-btn--outline, .n-root a.btn { color: var(--c-text-1); }
.n-root a.n-btn--secondary, .n-root a.n-btn--text, .n-root a.btn.ghost, .n-root a.btn.sec { color: var(--c-primary-700); }
.n-root a.n-btn--danger-outline, .n-root a.btn.danger-o { color: var(--c-danger-600); }
.n-root a.n-side__item { color: var(--c-text-2); }
.n-root a.n-side__item.is-active { color: var(--c-primary-700); }
.n-root .n-side__group--earn a.n-side__item.is-active { color: var(--c-secondary-700); }
.n-root .n-admin a.n-side__item, .n-root.is-admin a.n-side__item { color: var(--c-admin-text); }
.n-root.is-admin a.n-side__item.is-active { color: #fff; }
.n-root a.n-side__logo, .n-root a.n-logo, .n-root a.n-kpi, .n-root a.n-card, .n-root a.n-iconbtn, .n-root .n-user-menu__pop a { color: inherit; }
.n-root a.n-iconbtn { color: var(--c-text-2); }
.n-root a.m-tab { color: var(--c-text-3); }
.n-root a.m-tab.is-active { color: var(--c-primary-700); }
.n-root a.n-side__item:hover, .n-root a.n-iconbtn:hover, .n-root a.n-side__logo:hover, .n-root a.n-logo:hover, .n-root a.n-kpi:hover, .n-root a.n-card:hover, .n-root a.m-tab:hover, .n-root a.n-credit:hover, .n-root a.tab:hover, .n-root a.n-tab:hover, .n-root .pager a:hover, .n-root .seg > a:hover { text-decoration: none; }
.n-root a.tab, .n-root a.n-tab { color: var(--c-text-3); }
.n-root a.tab.on, .n-root a.n-tab.is-active, .n-root a.n-tab.on { color: var(--c-text-1); }
.n-root .pager a { color: var(--c-text-2); }
.n-root .seg > a { color: var(--c-text-3); }
.n-root .seg > a.on { color: var(--c-text-1); }

/* icon() 기본 크기 — 크기를 정하는 부품 규칙(.n-btn svg 등)이 항상 이기도록 우선순위 0 */
:where(.n-root) :where(svg[viewBox="0 0 24 24"]) { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ── 앱 틀 보완(시안 DS-5: 사이드 248 + 상단 바 64 + 본문 최대 1280) ── */
.n-app { flex-wrap: nowrap; min-height: 100vh; }
.n-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 248px; }
.n-admin .n-side { flex: 0 0 232px; }
.n-side__item .cnt, .n-side__cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-danger-600); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.n-side__item .lock { margin-left: auto; color: var(--c-text-4); }
.n-side__item .lock svg { width: 14px; height: 14px; }
.n-main { flex: 1 1 auto; }
.n-top { position: sticky; top: 0; z-index: 20; }
.n-top__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.n-top .menu-toggle, .n-top__logo { display: none; }
.n-root a.n-top__logo { color: var(--c-text-1); font-size: 17px; }
.n-content { margin: 0; }
.n-content > * { min-width: 0; }
.n-user-menu { position: relative; }
.n-user-menu__pop { position: absolute; right: 0; top: 44px; min-width: 200px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 6px; display: none; z-index: 40; }
.n-user-menu.open .n-user-menu__pop { display: block; }
.n-user-menu__pop a, .n-user-menu__pop button { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: var(--r-md); background: transparent; font-family: var(--font-sans); font-size: 14px; color: var(--c-text-1); cursor: pointer; text-align: left; }
.n-user-menu__pop a:hover, .n-user-menu__pop button:hover { background: var(--c-gray-50); text-decoration: none; }
.n-user-menu__pop svg { width: 16px; height: 16px; color: var(--c-text-3); }
.n-user-menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--c-gray-100); margin-bottom: 4px; font-size: 13px; color: var(--c-text-3); }
.n-user-menu__head b { display: block; color: var(--c-text-1); font-size: 14px; }
.n-credit { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--c-gray-50); border: 1px solid var(--c-border); font-size: 13px; font-weight: 700; color: var(--c-text-1); font-variant-numeric: tabular-nums; }
.n-root a.n-credit:hover { text-decoration: none; background: var(--c-gray-100); }
.n-credit svg { width: 16px; height: 16px; color: var(--c-secondary-600); }
.n-banner { margin: 16px 40px 0; }
.n-admin .n-banner { margin: 12px 28px 0; }
.m-tabbar { display: none; }
.n-side-scrim { display: none; }
.n-pagehead p { margin: 0; }
.n-pagehead__desc { font-size: 14px; color: var(--c-text-3); }

/* 공개 화면 */
.n-pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--c-bg); }
.n-pub__main { flex: 1 0 auto; }
.n-pub__page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
.n-gnb .n-gnb__menu a { padding: 4px 0; }
.n-gnb .n-gnb__menu a.is-active { color: var(--c-text-1); font-weight: 700; }
.n-authwrap { display: flex; justify-content: center; padding: 56px 24px 80px; flex: 1; }
.n-authcard .n-btn--lg { width: 100%; }
.auth-box { max-width: 440px; margin: 32px auto; }
.hero { text-align: center; padding: 40px 0 30px; }

/* ── 토스트(플래시 메시지) — 시안 n-toast ── */
.flash-wrap { position: fixed; top: 76px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.flash-wrap .notice { margin: 0; box-shadow: var(--sh-md); background: var(--c-gray-900); color: #fff; border: 0; border-radius: var(--r-lg); min-height: 48px; padding: 12px 18px; font-weight: 500; }
.flash-wrap .notice.bad { background: #3A0F1A; }
.flash-wrap .notice::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: #6EE7A8; vertical-align: middle; }
.flash-wrap .notice.bad::before { background: #FF9C9C; }
.flash-wrap .notice.warn::before { background: var(--c-warning-500); }
.flash-wrap .notice.info::before { background: #9EC0FF; }

/* ── 모달: 앱은 고정 위치로 띄움(시안 n-scrim/n-modal 모양) ── */
.modal-bg { position: fixed; inset: 0; background: rgba(17, 22, 33, .5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
.modal.lg { max-width: 720px; }
.modal.xl { max-width: 960px; }
.modal.sm { max-width: 420px; }
.modal .mh, .modal .n-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; font-size: 18px; line-height: 28px; font-weight: 700; }
.modal .mh [data-close] { cursor: pointer; color: var(--c-text-2); background: transparent; border: 0; width: 40px; height: 40px; border-radius: var(--r-md); font-size: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.modal .mh [data-close]::before { content: "\2715"; font-size: 16px; }
.modal .mh [data-close]:hover { background: var(--c-gray-100); }
.modal .mh [data-close] svg { width: 20px; height: 20px; }
.modal .mh [data-close]:has(svg)::before { content: none; }
.modal .mb, .modal .n-modal__body { padding: 4px 24px 20px; font-size: 14px; line-height: 22px; color: var(--c-text-2); margin: 0; }
.modal .mf, .modal .n-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--c-gray-100); background: var(--c-gray-25); margin-top: auto; }
.n-scrim.is-fixed { position: fixed; z-index: 200; display: none; }
.n-scrim.is-fixed.open { display: flex; }

/* ================= 예전 부품 이름 → 시안 모양(호환층) ================= */
/* 페이지 머리 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { color: var(--c-text-3); margin: 0; font-size: 14px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-3); margin-bottom: 6px; }
.crumb a { color: var(--c-text-3); }

/* 정렬 도우미 */
.row { flex-wrap: wrap; }
.row.nowrap, .n-side .row, .n-top .row { flex-wrap: nowrap; }
.row.sb { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.end { justify-content: flex-end; }
.g2, .g3, .g5 { display: grid; gap: 16px; }
/* .g4 는 시안에서 '간격 4px' 이라 예전 4열 격자로 쓰지 않음(4열은 .grid-4) */
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mut { color: var(--c-text-3); } .sm { font-size: 13px; } .xs { font-size: 12px; } .bold { font-weight: 700; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hide { display: none !important; }

/* 카드 */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card.link { cursor: pointer; transition: border-color .15s; }
.card.link:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-sm); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.box { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 16px; background: var(--c-gray-25); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-text-1); font-family: var(--font-sans); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--c-gray-50); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.pri { background: var(--c-primary-600); border-color: transparent; color: #fff; }
.btn.pri:hover { background: var(--c-primary-700); }
.btn.earn { background: var(--c-secondary-600); border-color: transparent; color: #fff; }
.btn.earn:hover { background: var(--c-secondary-700); }
.btn.sec { background: var(--c-primary-50); border-color: transparent; color: var(--c-primary-700); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--c-primary-700); padding: 0 8px; }
.btn.ghost:hover { background: var(--c-primary-50); }
.btn.danger { background: var(--c-danger-600); border-color: transparent; color: #fff; }
.btn.danger-o { background: #fff; border-color: #F3B8C5; color: var(--c-danger-600); }
.btn.nola { background: #131418; border-color: #131418; color: #fff; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: var(--r-lg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn.block { display: flex; width: 100%; }
.btn.dis, .btn:disabled { background: var(--c-gray-100); border-color: transparent; color: var(--c-text-4); cursor: not-allowed; pointer-events: none; }

/* 폼 — 클래스 없는 입력창도 시안 n-input 모양 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.lbl, .field > label { display: block; font-weight: 600; font-size: 13px; line-height: 20px; color: var(--c-text-2); }
.lbl .req, .field .req { color: var(--c-danger-600); margin-left: 2px; }
/* :where() 로 우선순위 0 — n-input·n-input--sm·is-error 같은 시안 클래스가 항상 이김 */
:where(.n-root) :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=time], input[type=month], input[type=search], input[type=tel], select, textarea) {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background-color: #fff; font-family: var(--font-sans); font-size: 15px; color: var(--c-text-1); outline: none; }
:where(.n-root) :where(select) { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5D62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
:where(.n-root) :where(select[multiple]) { height: auto; background-image: none; padding: 8px 14px; }
:where(.n-root) :where(textarea) { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
:where(.n-root) :where(input, textarea)::placeholder { color: var(--c-text-4); }
:where(.n-root) :where(input, select, textarea):focus { border-color: var(--c-primary-600); box-shadow: var(--focus-ring); outline: none; }
:where(.n-root) :where(input[readonly], textarea[readonly]) { background-color: var(--c-gray-50); border-color: var(--c-gray-200); color: var(--c-text-2); }
:where(.n-root) :where(input:disabled, select:disabled, textarea:disabled) { background-color: var(--c-gray-50); color: var(--c-text-4); border-color: var(--c-gray-200); }
:where(.n-root) :where(input[type=checkbox], input[type=radio]) { accent-color: var(--c-primary-600); }
.n-root select.n-select { background-image: none; }
.n-root .is-error { border-color: var(--c-danger-600); }
.help { font-size: 12px; line-height: 18px; color: var(--c-text-3); margin-top: 0; }
.err { font-size: 12px; line-height: 18px; color: var(--c-danger-600); margin: 0; font-weight: 500; }
.chk, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin-right: 16px; font-size: 14px; min-height: 28px; }
.chk input, .radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-primary-600); flex: none; }
.toggle { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--c-gray-300); border-radius: 999px; transition: background .15s; cursor: pointer; }
.toggle span:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: var(--sh-xs); transition: transform .15s; }
.toggle input:checked + span { background: var(--c-primary-600); }
.toggle input:checked + span:before { transform: translateX(16px); }
.toggle input:disabled + span { opacity: .45; cursor: not-allowed; }
.toggle.earn input:checked + span { background: var(--c-secondary-600); }
.counter { float: right; font-weight: 400; color: var(--c-text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 배지·칩·구간 선택 */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--c-wait-50); color: var(--c-wait-600); border: 1px solid transparent; }
.badge.navy, .badge.dark { background: var(--c-dark-600); color: #fff; }
.badge.ok { background: var(--c-success-50); color: var(--c-success-600); }
.badge.bad { background: var(--c-danger-50); color: var(--c-danger-600); }
.badge.warn { background: var(--c-warning-50); color: var(--c-warning-600); }
.badge.info { background: var(--c-info-50); color: var(--c-info-600); }
.badge.teal { background: var(--c-secondary-50); color: var(--c-secondary-700); }
.badge.violet { background: var(--c-violet-50); color: var(--c-violet-600); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-border-strong); background: #fff; font-size: 13px; font-weight: 500; color: var(--c-text-2); cursor: pointer; font-family: var(--font-sans); }
.chip.on { background: var(--c-primary-50); border-color: var(--c-primary-300); color: var(--c-primary-700); font-weight: 600; }
.chip input { accent-color: var(--c-primary-600); }
.seg { display: inline-flex; background: var(--c-gray-100); border-radius: var(--r-md); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg > * { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--c-text-3); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none !important; }
.seg > .on { background: #fff; color: var(--c-text-1); font-weight: 600; box-shadow: var(--sh-xs); }

/* 탭 */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--c-border); margin-bottom: 20px; overflow-x: auto; }
.tab { height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--c-text-3); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.tab.on, .n-tab.on { color: var(--c-text-1); border-bottom-color: var(--c-text-1); }
.tab .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-danger-600); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
[data-pane].off { display: none; }

/* 표 */
.tblwrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tbl th { height: 44px; padding: 0 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--c-text-3); background: var(--c-gray-25); border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.tbl td { height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--c-gray-100); vertical-align: middle; color: var(--c-text-1); }
.tbl tbody tr:hover td { background: var(--c-gray-25); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link { cursor: pointer; }
.tbl .num, .tbl td.right, .tbl th.right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 700; background: var(--c-gray-50); border-top: 1px solid var(--c-border); }
.n-admin .tbl { font-size: 13px; }
.n-admin .tbl th { height: 36px; padding: 0 12px; font-size: 12px; }
.n-admin .tbl td { height: 40px; padding: 4px 12px; }
.n-table tr:last-child td { border-bottom: 0; }
.n-table td .n-switch, .n-table td .n-switch span, .n-table td .n-badge, .n-table td .n-btn, .n-table th { white-space: nowrap; }
.n-table td:first-child { min-width: 120px; }
.n-table tr.link { cursor: pointer; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterbar select, .filterbar input:not([type=checkbox]):not([type=radio]) { width: auto; min-width: 140px; height: 36px; font-size: 14px; }
.n-filterbar select, .n-filterbar input:not([type=checkbox]):not([type=radio]) { width: auto; min-width: 140px; height: 36px; font-size: 14px; }
.n-tablebox > .n-table:last-child tr:last-child td { border-bottom: 0; }

/* 쪽 나누기(시안 n-pager) */
.pager { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 16px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); font-size: 14px; color: var(--c-text-2); padding: 0 8px; font-variant-numeric: tabular-nums; text-decoration: none !important; }
.pager a:hover { background: var(--c-gray-100); }
.pager .on { background: var(--c-text-1); color: #fff; font-weight: 700; }

/* 빈 화면 */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 24px; color: var(--c-text-3); font-size: 14px; }
.empty h3 { color: var(--c-text-1); font-size: 16px; font-weight: 700; margin: 0; }

/* 안내 띠(시안 n-alert) */
.notice { display: block; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--c-border); margin-bottom: 16px; font-size: 14px; line-height: 22px; background: var(--c-gray-50); color: var(--c-text-2); }
.notice.info { background: var(--c-info-50); border-color: #D6E6FF; color: #003E99; }
.notice.ok { background: var(--c-success-50); border-color: #B5EBC6; color: #0A5C27; }
.notice.warn { background: var(--c-warning-50); border-color: #FBE2A6; color: #7A4600; }
.notice.bad { background: var(--c-danger-50); border-color: #F7C1CD; color: #9E1430; }
.n-alert { margin: 0; }
.n-alert form { margin: 0; }

/* 지표·차트 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 0; }
.kpi { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.n-admin .kpi { padding: 16px; }
.kpi .l { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--c-text-3); margin: 0; }
.kpi .v { font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.n-admin .kpi .v { font-size: 24px; line-height: 32px; }
.kpi .d { font-size: 13px; line-height: 20px; color: var(--c-text-3); margin: 0; }
.kpi .d.up { color: var(--c-success-600); } .kpi .d.down { color: var(--c-danger-600); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 0 4px; border-bottom: 1px solid var(--c-border); }
.bars > i { flex: 1; max-width: 44px; background: var(--c-primary-200); border-radius: 6px 6px 0 0; min-height: 2px; }
.bars > i:last-child { background: var(--c-primary-600); }
.bars.earn > i { background: var(--c-secondary-100); }
.bars.earn > i:last-child { background: var(--c-secondary-600); }
.chart { width: 100%; height: 240px; }
.progress { height: 8px; background: var(--c-gray-100); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--c-gray-700); border-radius: 999px; }
.gauge { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 단계·목록·키값 */
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; counter-reset: st; }
.steps > span { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 2px solid var(--c-gray-200); color: var(--c-text-3); font-size: 13px; font-weight: 600; }
.steps > span.on { border-bottom-color: var(--c-primary-600); color: var(--c-text-1); font-weight: 700; }
.steps > span.done { border-bottom-color: var(--c-primary-600); color: var(--c-primary-700); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--c-gray-100); }
.list > li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--c-text-3); }
.kv dd { margin: 0; color: var(--c-text-1); font-weight: 500; }
pre.code, .codebox { background: #131418; color: #D8DEEA; border-radius: var(--r-lg); padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; white-space: pre; margin: 0; }

/* 광고 미리보기 틀 */
.preview-frame { border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); background: repeating-linear-gradient(45deg, #FAFAFA, #FAFAFA 8px, #F1F1F5 8px, #F1F1F5 16px); display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* ── 반응형(시안: PC ≥1200 · 태블릿 768~1199 · 모바일 ≤767) ── */
@media (max-width: 1199px) {
  .g5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .n-content { padding: 24px 24px 48px; }
  .n-top { padding: 0 24px; }
  .n-banner { margin: 16px 24px 0; }
  .n-split__panel { max-width: none; position: static; }
}
@media (max-width: 767px) {
  .n-app { display: block; }
  .n-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 300px; max-width: 86vw; transform: translateX(-100%); transition: transform .2s; box-shadow: none; }
  .n-side.open { transform: none; box-shadow: var(--sh-lg); }
  .n-side-scrim.open { display: block; position: fixed; inset: 0; background: rgba(17, 22, 33, .5); z-index: 55; }
  .n-top { height: 56px; padding: 0 8px 0 4px; flex-wrap: nowrap; }
  .n-top .menu-toggle, .n-top__logo { display: inline-flex; }
  .n-top__ctx { display: none; }
  .n-top .hide-m, .hide-m { display: none !important; }
  .n-content { padding: 20px 16px 96px; gap: 16px; }
  .n-admin .n-content { padding: 20px 16px 48px; }
  .n-banner, .n-admin .n-banner { margin: 12px 16px 0; }
  .m-tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
  .g2, .g3, .g5, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kv, .n-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd, .n-kv dd { margin-bottom: 8px; }
  .card { padding: 18px; }
  .n-card { padding: 18px; }
  .n-gnb { height: auto; min-height: 56px; padding: 8px 16px; gap: 12px; }
  .n-gnb__menu { display: none; }
  .n-gnb__cta .n-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .n-authwrap { padding: 24px 16px 48px; }
  .n-authcard { padding: 28px 20px; }
  .n-pub__page { padding: 28px 16px 56px; }
  .t-display { font-size: 32px !important; line-height: 42px !important; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal-bg .modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; }
  .flash-wrap { left: 16px; right: 16px; top: 64px; max-width: none; }
  .n-pagehead { align-items: flex-start; }
  .n-split__panel { flex-basis: 100%; }
}
@media print {
  .n-side, .n-top, .m-tabbar { display: none !important; }
}
.n-root .n-admin .n-side__logo .n-logo { color: #fff; }
@media (max-width: 767px) { .n-tablescroll .n-table td, .tblwrap .tbl td { white-space: nowrap; } }
/* 줄 전체가 링크인 목록(대시보드 지면·알림, 모바일 카드 등)은 빨강 링크색 대신 본문색 */
.n-root a.row, .n-root a.col, .n-root a.m-rowcard { color: var(--c-text-1); text-decoration: none; }
.n-root a.row:hover, .n-root a.col:hover, .n-root a.m-rowcard:hover { text-decoration: none; background: var(--c-gray-25); }
/* 표 칸에서는 글자 단위로 끊지 않음(좁은 칸이 세로로 한 글자씩 쌓이던 문제) — 넘치면 표가 가로 스크롤 */
.n-root .n-table td, .n-root .n-table th, .n-root .tbl td, .n-root .tbl th { overflow-wrap: normal; word-break: keep-all; }
/* 표 안 이름 링크는 시안처럼 본문색 굵게(행동 링크·버튼은 그대로) */
.n-root .n-table td a:not([class]) { color: var(--c-text-1); font-weight: 600; }
.n-root .n-table td a:not([class]):hover { color: var(--c-primary-700); }
/* 시안의 표는 한 줄 행(52px/40px). 날짜·숫자가 "2026-11-\n24" 처럼 끊기지 않게 기본은 한 줄, 긴 설명(.t-cap·p·.wrap)만 줄바꿈 */
.n-root .n-table td { white-space: nowrap; }
.n-root .n-table td.wrap, .n-root .n-table td .t-cap, .n-root .n-table td p, .n-root .n-table td .n-help, .n-root .n-table td.t-cap { white-space: normal; min-width: 160px; }
/* 모바일 상단 바: 시안처럼 메뉴·로고·알림·사용자만(크레딧은 하단 탭에) */
.n-top__logo span, .n-credit { white-space: nowrap; }
@media (max-width: 767px) { .n-top .n-credit { display: none; } .n-top__logo { margin-left: 4px; } }
