/* 백팩 — 관리자 화면 (admin.css) v28
 * admin-view.js(틀·하위 화면) · admin-charts.js(차트). 따알깍 '대시보드 · SaaS UI' 참고: 어두운 카드, 얇은 선, 큰 숫자 + 스파크라인,
 * 세그먼트 기간 선택, 크로스헤어 툴팁, 열지도. 색은 사이트 토큰(style.css :root) + 차트 8색(--c1~--c8). 움직임은 '움직임 줄이기'면 끈다. */
:root {
  --c1: #4FE3FF; --c2: #8B7CFF; --c3: #3DDC97; --c4: #FF7AB6; --c5: #FFC857; --c6: #FF8A5B; --c7: #6FA8FF; --c8: #B4E36A;
}

/* ===== 틀: 왼쪽 하위 메뉴 + 본문 ===== */
#adminView:has(.adm) { padding: 0; max-width: none; }   /* .cfg 의 1040px 제한을 풀어 넓은 화면을 다 쓴다 */
.adm { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100%; }
.adm-nav { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 2px; height: calc(100vh - var(--toph) - var(--stath));
  padding: 18px 10px; border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--bg1), var(--bg0)); overflow-y: auto; }
.adm-nh { margin: 14px 10px 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); }
.adm-nh:first-child { margin-top: 2px; }
.adm-ni { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--tx2);
  text-decoration: none; font-weight: 600; font-size: 13px; transition: background .15s, color .15s; }
.adm-ni svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-ni:hover { background: var(--bg3); color: var(--tx); }
.adm-ni.on { background: var(--acc-d); color: var(--tx); box-shadow: inset 2px 0 0 var(--acc); }
.adm-ni.on svg { color: var(--acc); }
.adm-nb { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font: 700 11px/18px var(--mono); text-align: center; font-style: normal;
  color: #1A0A07; background: var(--hot); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring); }
.adm-nb.on { opacity: 1; transform: none; }
.adm-priv { margin: auto 8px 0; padding-top: 16px; font-size: 11px; line-height: 1.5; color: var(--tx3); }

.adm-main { min-width: 0; padding: 22px 28px 48px; }
.adm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-crumb { margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.adm-crumb span { margin: 0 4px; opacity: .6; } .adm-crumb b { color: var(--acc); font-weight: 600; }
.adm-tt h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.adm-sub { margin: 6px 0 0; max-width: 680px; font-size: 13px; color: var(--tx2); }
.adm-tools { display: flex; align-items: center; gap: 10px; }
.adm-range { position: relative; display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.adm-range[hidden] { display: none; }
.adm-range button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border: 0; background: none; color: var(--tx2); font: 600 12.5px var(--sans); cursor: pointer; border-radius: 6px; transition: color .2s; }
.adm-range button[aria-checked="true"] { color: var(--tx); }
.adm-rpill { position: absolute; top: 3px; left: 0; height: 28px; border-radius: 6px; background: var(--bg4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 8px rgba(0, 0, 0, .35);
  transition: transform .45s var(--spring), width .3s var(--ease); }
.adm-rf { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--tx2); cursor: pointer; }
.adm-rf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.adm-rf:hover { color: var(--tx); border-color: var(--line2); }
.adm-rf:active svg { transform: rotate(-200deg); transition: transform .5s var(--ease); }
.adm-rf[hidden] { display: none; }
.adm-upd { font: 11.5px var(--mono); color: var(--tx3); white-space: nowrap; }

/* ===== 카드 · 격자 ===== */
.adm-body { display: flex; flex-direction: column; gap: 16px; }
.adm-grid2, .adm-grid3 { display: grid; gap: 16px; }
.adm-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-card { position: relative; min-width: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 40%), var(--bg1); }
.adm-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.adm-ch h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.adm-more { font-size: 12px; color: var(--tx2); text-decoration: none; white-space: nowrap; }
.adm-more:hover { color: var(--acc); }
.adm-more::after { content: ' →'; }
.adm-hint { margin: -6px 0 12px; font-size: 12px; color: var(--tx3); }
.adm-sec { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 -4px; font-size: 15px; font-weight: 700; }
.adm-sec span { font-size: 12px; font-weight: 500; color: var(--tx3); }
.adm-empty { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--tx2); font-size: 13px; }
.adm-empty b { color: var(--tx); }

/* ===== KPI 카드 ===== */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.adm-kpi { position: relative; overflow: hidden; min-height: 104px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg1); }
.adm-kpi::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
.adm-kl { margin: 0; font-size: 12px; font-weight: 600; color: var(--tx2); }
.adm-kv { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.adm-kv b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--tx); }
.adm-kv small { font-size: 12px; color: var(--tx2); }
.adm-kh { position: relative; z-index: 1; margin: 0; max-width: 60%; font-size: 11.5px; color: var(--tx3); }
.adm-ks { position: absolute; right: 10px; bottom: 10px; opacity: .95; }
.adm-kpi.warn .adm-kv b { color: var(--warn); }
.ac-dl { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px; border-radius: 10px; font: 700 11px/20px var(--mono); white-space: nowrap; }
.ac-dl.up { color: var(--ok); background: var(--ok-d); }
.ac-dl.down { color: var(--hot); background: var(--hot-d); }
.ac-dl.flat { color: var(--tx2); background: var(--bg3); }

/* ===== 차트 공용 ===== */
.ac-chart { position: relative; min-height: 120px; }
.ac-plot { position: relative; outline: none; touch-action: pan-y; }
.ac-plot:focus-visible { box-shadow: 0 0 0 2px var(--acc); border-radius: 6px; }
.ac-plot svg { display: block; overflow: visible; }
/* style.css 의 아이콘용 전역 규칙(svg 16px·fill none·stroke currentColor)을 차트에서는 끈다 — 크기는 인라인 style, 색은 각 요소 속성·클래스 */
.ac-plot svg, .ac-donut svg, svg.ac-spark { fill: none; stroke: none; stroke-width: 0; flex: none; }
.ac-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ac-yl, .ac-xl { font: 10.5px var(--mono); fill: var(--tx3); }
.ac-yl { text-anchor: end; } .ac-xl { text-anchor: middle; }
.ac-cross { stroke: var(--line3); stroke-width: 1; stroke-dasharray: 3 3; }
.ac-dot { stroke: var(--bg1); stroke-width: 2; }
.ac-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 10px; }
.ac-lg { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg2);
  color: var(--tx2); font: 600 12px var(--sans); cursor: pointer; transition: opacity .2s, border-color .2s; }
.ac-lg.static { cursor: default; border-color: transparent; background: none; padding: 0; }
.ac-lg i { width: 8px; height: 8px; border-radius: 50%; }
.ac-lg b { font-weight: 600; color: var(--tx); }
.ac-lg[aria-pressed="false"] { opacity: .45; }
.ac-lg[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--tx3); }
.ac-tip { position: absolute; top: 0; left: 0; z-index: 5; display: flex; flex-direction: column; gap: 3px; min-width: 150px; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 8px;
  background: rgba(13, 16, 21, .94); backdrop-filter: blur(8px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); font-size: 12px; pointer-events: none; opacity: 0;
  transition: opacity .12s, transform .14s var(--ease); }
.ac-tip.on { opacity: 1; }
.ac-tip > b { margin-bottom: 2px; font-size: 11.5px; color: var(--tx2); font-weight: 600; }
.ac-tip span { display: flex; align-items: center; gap: 7px; color: var(--tx2); }
.ac-tip span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ac-tip span b { margin-left: auto; padding-left: 14px; color: var(--tx); }
.ac-bar { transition: opacity .15s; transform-box: fill-box; transform-origin: bottom; }
.ac-bar.dim { opacity: .35; }
.ac-none { margin: 0; font-size: 12.5px; color: var(--tx3); }

/* 스파크라인 */
.ac-spark { display: block; overflow: visible; }

/* 순위 막대 목록 */
.ac-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-rank li { position: relative; display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px;
  border-radius: 6px; overflow: hidden; }
.ac-rank li[role="button"] { cursor: pointer; }
.ac-rank li:hover { background: var(--bg2); }
.ac-ri { font-size: 11px; color: var(--tx3); text-align: right; }
.ac-rimg { width: 54px; height: 25px; object-fit: cover; border-radius: 3px; background: var(--bg3); }
.ac-rank li:not(:has(.ac-rimg)) { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; }
.ac-rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ac-rs { display: flex; opacity: .9; }
.ac-rv { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; font-weight: 700; }
.ac-rv small { font: 500 10.5px var(--sans); color: var(--tx3); }
.ac-rd { min-width: 0; }
.ac-rb { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: var(--c); opacity: .45; border-radius: 1px; }

/* 도넛 */
.adm-donut { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 18px; }
.ac-donut { position: relative; width: 128px; height: 128px; }
.ac-donut svg { display: block; }
.ac-seg { transition: opacity .2s, stroke-width .2s; }
.ac-seg.dim { opacity: .25; }
.ac-dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ac-dc b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.ac-dc span { max-width: 74px; font-size: 10.5px; color: var(--tx3); }
.ac-dlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-dlist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; height: 26px; padding: 0 6px; border-radius: 5px; font-size: 12.5px; outline: none; }
.ac-dlist li.on, .ac-dlist li:focus-visible { background: var(--bg3); }
.ac-dlist li i { width: 10px; height: 10px; border-radius: 3px; }
.ac-dlist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx2); }
.ac-dlist em { font-style: normal; font-size: 11px; color: var(--tx3); text-align: right; }

/* 요일 × 시간 열지도 */
.ac-heat { position: relative; }
.ac-hgrid { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.ac-hx { font: 9.5px var(--mono); color: var(--tx3); text-align: left; }
.ac-hy { font-size: 11px; color: var(--tx3); align-self: center; }
.ac-hc { aspect-ratio: 1; min-height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--acc) calc(var(--v) * 100%), var(--bg3)); transition: box-shadow .15s, filter .15s; }
.ac-hc.band { filter: brightness(1.25); }
.ac-hc.hot { box-shadow: 0 0 0 1.5px #fff; }
.ac-hleg { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 10.5px var(--mono); color: var(--tx3); }
.ac-hleg i { position: relative; flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bg3), var(--acc)); }
.ac-hmark { position: absolute; top: -5px; width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-top-color: #fff; opacity: 0; transition: left .25s var(--ease), opacity .2s; }
.ac-hmark.on { opacity: 1; }

/* 코호트 */
.ac-coh-top { display: flex; justify-content: flex-end; margin: -42px 0 14px; }
.ac-seg2 { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line); }
.ac-seg2 button { height: 24px; padding: 0 10px; border: 0; border-radius: 5px; background: none; color: var(--tx2); font: 600 12px var(--sans); cursor: pointer; }
.ac-seg2 button[aria-checked="true"] { background: var(--bg4); color: var(--tx); }
.ac-coh { display: grid; grid-template-columns: 52px 40px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; font-size: 11px; }
.ac-ch { color: var(--tx3); text-align: center; font-size: 10.5px; padding-bottom: 2px; }
.ac-cw { color: var(--tx2); align-self: center; font-family: var(--mono); }
.ac-cs { color: var(--tx2); align-self: center; text-align: right; padding-right: 4px; }
.ac-cc { display: grid; place-items: center; height: 28px; border-radius: 4px; background: color-mix(in srgb, var(--c3) calc(var(--v) * 100%), var(--bg3)); }
.ac-cc b { font-size: 10.5px; color: var(--tx); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ac-cc.none { background: transparent; }

/* 활동 띠(가동률 막대) */
.ac-strip { display: grid; grid-template-columns: repeat(56, minmax(0, 1fr)); gap: 2px; height: 26px; }
.ac-strip i { border-radius: 2px; background: var(--bg3); }
.ac-strip i.on { background: var(--c3); }

/* ===== 운영 상태 카드 ===== */
.adm-health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-health li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--tx2); }
.adm-health li.col { flex-direction: column; align-items: stretch; gap: 6px; }
.adm-health b { font-weight: 700; }
.adm-health b.ok { color: var(--ok); } .adm-health b.bad { color: var(--hot); } .adm-health b.warn { color: var(--warn); }
.adm-seg { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg3); }
.adm-seg i { min-width: 4px; }
.adm-seg i.ok, .adm-seglg .ok i { background: var(--ok); }
.adm-seg i.degraded, .adm-seglg .degraded i { background: var(--warn); }
.adm-seg i.failing, .adm-seglg .failing i { background: var(--hot); }
.adm-seg i.idle, .adm-seglg .idle i { background: var(--tx3); }
.adm-seglg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 11.5px; }
.adm-seglg span { display: inline-flex; align-items: center; gap: 5px; }
.adm-seglg i { width: 8px; height: 8px; border-radius: 2px; }
.adm-seglg b { color: var(--tx); }

/* 사용량 미터(동기화 성공률 — 75·90% 눈금) */
.adm-meters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.adm-meters li { display: grid; grid-template-columns: 82px minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; font-size: 12.5px; color: var(--tx2); }
.adm-meters small { grid-column: 2 / 4; font-size: 11px; color: var(--tx3); }
.adm-meters b { text-align: right; color: var(--tx); }
.adm-meter { position: relative; height: 8px; border-radius: 4px; background: var(--bg3); overflow: visible; }
.adm-meter i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ok); transition: background .2s; }
.adm-meter.warn i { background: var(--warn); } .adm-meter.bad i { background: var(--hot); }
.adm-meter em { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--line3); }

/* 칩 */
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line2); background: var(--bg2); font-size: 12.5px; color: var(--tx); }
.adm-chip b { font-size: 11px; color: var(--tx3); }
.adm-chip.warn { border-color: rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .08); }

/* ===== 회원 관리 ===== */
.adm-ptools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.adm-q { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 380px; height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg1); }
.adm-q svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--tx3); stroke-width: 1.8; }
.adm-q input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--tx); font: 13px var(--sans); }
.adm-q:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-d); }
.adm-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-fc { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg1); color: var(--tx2); font: 600 12px var(--sans); cursor: pointer; transition: all .15s; }
.adm-fc:hover { color: var(--tx); border-color: var(--line2); }
.adm-fc[aria-pressed="true"] { color: var(--tx); border-color: var(--acc); background: var(--acc-d); }
.adm-tablecard { padding: 6px 6px 10px; }
.adm-tbl { --tcols: minmax(220px, 2.2fr) 96px 104px 120px 70px 70px 64px 112px 60px; overflow-x: auto; transition: opacity .2s; }
.adm-tbl.loading { opacity: .55; }
.adm-tr { display: grid; grid-template-columns: var(--tcols); align-items: center; gap: 10px; min-width: 980px; min-height: 52px; padding: 6px 12px; border-radius: 7px; font-size: 12.5px; color: var(--tx2); cursor: pointer; outline: none; }
.adm-tr.hd { min-height: 36px; cursor: default; font-size: 11.5px; font-weight: 600; color: var(--tx3); border-bottom: 1px solid var(--line); border-radius: 0; }
.adm-tr.hd button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.adm-tr.hd button.on { color: var(--tx); }
.adm-tr.hd button.on::after { content: ' ↓'; } .adm-tr.hd button.on.asc::after { content: ' ↑'; }
.adm-tr:not(.hd):hover, .adm-tr:focus-visible { background: var(--bg2); }
.adm-tr.sel { background: var(--acc-d); box-shadow: inset 2px 0 0 var(--acc); }
.adm-tr.none { cursor: default; color: var(--tx3); }
.adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-who img, .adm-av0 { width: 32px; height: 32px; border-radius: 6px; flex: none; background: var(--bg3); }
.adm-av0.big { width: 64px; height: 64px; border-radius: 10px; }
.adm-who > span { display: flex; flex-direction: column; min-width: 0; }
.adm-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); font-weight: 600; font-size: 13px; }
.adm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--tx3); }
.adm-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font: 700 10px/16px var(--sans); font-style: normal; color: #04141A; background: var(--acc); vertical-align: 1px; }
.adm-act30 { display: block; height: 4px; width: 100%; margin-bottom: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c3) var(--w), var(--bg3) var(--w)); }
.adm-pill { display: inline-block; height: 20px; padding: 0 8px; border-radius: 10px; font: 600 11px/20px var(--sans); font-style: normal; color: var(--tx2); background: var(--bg3); }
.adm-pill.ok { color: var(--ok); background: var(--ok-d); } .adm-pill.bad { color: var(--hot); background: var(--hot-d); } .adm-pill.warn { color: var(--warn); background: rgba(255, 200, 87, .1); }
.adm-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 10px 0; font-size: 12px; color: var(--tx3); }
.adm-pager span { margin-right: auto; }

/* 회원 상세 서랍 */
.adm-mpanel { position: fixed; z-index: 70; top: var(--toph); right: 0; bottom: var(--stath); width: min(460px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--line2);
  background: var(--bg1); box-shadow: -24px 0 60px rgba(0, 0, 0, .45); }
.adm-mpanel[hidden] { display: none; }
.adm-mh { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.adm-mh h2 { margin: 0; font-size: 13px; color: var(--tx2); font-weight: 600; }
.adm-mb { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.adm-mb h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 0; font-size: 12.5px; color: var(--tx2); font-weight: 600; }
.adm-mb h4 span { font-size: 11.5px; color: var(--tx3); }
.adm-mid { display: flex; align-items: center; gap: 14px; }
.adm-mid img { border-radius: 10px; }
.adm-mid h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.adm-mid p { margin: 4px 0 0; font-size: 12px; color: var(--tx3); }
.adm-copy { padding: 0; border: 0; background: none; color: var(--tx2); font: inherit; cursor: copy; border-bottom: 1px dashed var(--line3); }
.adm-mlinks a { color: var(--acc); text-decoration: none; font-size: 12px; }
.adm-mdl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.adm-mdl div { padding: 8px 10px; border-radius: 8px; background: var(--bg2); }
.adm-mdl dt { font-size: 10.5px; color: var(--tx3); }
.adm-mdl dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.adm-tl li { position: relative; display: grid; grid-template-columns: 84px 74px minmax(0, 1fr); gap: 8px; font-size: 12px; color: var(--tx2); }
.adm-tl li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--bg1); }
.adm-tl li.bad::before { background: var(--hot); }
.adm-tl time { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.adm-tl b { color: var(--tx); font-weight: 600; }
.adm-tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl small { grid-column: 3; font-size: 10.5px; color: var(--tx3); }
.adm-macts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-dlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg1); color: var(--tx); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.adm-dlg::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.adm-dlg form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.adm-dlg h2 { margin: 0; font-size: 17px; color: var(--hot); }
.adm-dlg p { margin: 0; font-size: 13px; color: var(--tx2); line-height: 1.55; }
.adm-dlg label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--tx3); }
.adm-dlg input { height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px; background: var(--bg0); color: var(--tx); font: 14px var(--mono); }
.adm-dlg input:focus { outline: none; border-color: var(--hot); }
.adm-dacts { display: flex; justify-content: flex-end; gap: 8px; }
.ad-started { margin: 0 0 4px; }

/* 뼈대 */
.adm-skel { display: flex; flex-direction: column; gap: 16px; }
.sk-k { display: flex; flex-direction: column; gap: 10px; } .sk-k .sk:first-child { height: 12px; width: 50%; } .sk-k .sk:last-child { height: 28px; width: 70%; }
.sk-chart { height: 240px; } .sk-list { height: 220px; }
.adm-skel .sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--bg2) 0 38%, var(--bg3) 50%, var(--bg2) 62% 100%); background-size: 300% 100%; }

/* ===== 움직임(줄이기 설정이면 없음) ===== */
@media (prefers-reduced-motion: no-preference) {
  .adm-kpi { animation: adm-up .5s var(--ease) backwards; }
  .adm-kpi:nth-child(2) { animation-delay: 90ms; } .adm-kpi:nth-child(3) { animation-delay: 180ms; } .adm-kpi:nth-child(4) { animation-delay: 270ms; }
  .adm-kpi:nth-child(5) { animation-delay: 360ms; } .adm-kpi:nth-child(6) { animation-delay: 450ms; }
  .adm-kpi .ac-dl { animation: adm-pop .45s var(--spring) 1.15s backwards; }
  .adm-card { animation: adm-up .55s var(--ease) .12s backwards; }
  .ac-ln.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ac-draw 1.2s var(--ease) forwards; }
  .ac-sl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ac-draw 1.2s var(--ease) .1s forwards; }
  .ac-sd { animation: ac-pulse 2s ease-in-out 1.3s infinite; transform-box: fill-box; transform-origin: center; }
  .ac-area, .ac-sa { animation: adm-fade .9s ease .25s backwards; }
  .ac-bar.grow { animation: ac-grow .6s var(--ease) var(--d) backwards; }
  .ac-rb { animation: ac-bar .9s var(--ease) var(--dl) backwards; transform-origin: left; }
  .ac-donut.spin svg { animation: ac-spin .9s var(--ease); }
  .ac-hc { animation: adm-pop .4s var(--ease) var(--dl) backwards; }
  .ac-cc { animation: adm-pop .4s var(--ease) var(--dl) backwards; }
  .ac-strip i { animation: adm-fade .3s ease var(--dl) backwards; }
  .adm-tr[data-adm-member] { animation: adm-up .35s var(--ease) var(--dl) backwards; }
  .adm-mpanel:not([hidden]) { animation: adm-slide .38s var(--ease); }
  .adm-skel .sk { animation: sk-shim 1.4s linear infinite; }
  .adm-meter i { animation: ac-bar .9s var(--ease) backwards; transform-origin: left; }
}
@keyframes adm-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes adm-fade { from { opacity: 0; } }
@keyframes adm-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes adm-slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes ac-draw { to { stroke-dashoffset: 0; } }
@keyframes ac-pulse { 50% { transform: scale(1.7); opacity: .55; } }
@keyframes ac-grow { from { transform: scaleY(0); } }
@keyframes ac-bar { from { transform: scaleX(0); } }
@keyframes ac-spin { from { transform: rotate(-90deg); opacity: 0; } }

/* ===== 좁은 화면 ===== */
@media (max-width: 1180px) { .adm-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-nav { position: sticky; top: 0; z-index: 3; flex-direction: row; align-items: center; height: auto; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg1); }
  .adm-nh, .adm-priv { display: none; }
  .adm-ni { flex: none; height: 32px; }
  .adm-main { padding: 18px 16px 40px; }
  .adm-grid2, .adm-grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .adm-tt h1 { font-size: 22px; }
  .adm-kv b { font-size: 23px; }
  .adm-ks { display: none; }
  .adm-kh { max-width: none; }
  .adm-donut { grid-template-columns: 1fr; justify-items: center; }
  .adm-mdl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-mpanel { width: 100vw; }
}

/* v40 나눔 신고 · 차단 목록 */
.adm-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-ch h3 { margin: 0; font-size: 15px; }
.adm-chn { font-size: 12px; color: var(--tx2); }
.adm-fseg { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
.adm-seg-b { height: 30px; padding: 0 12px; border: 0; border-left: 1px solid var(--line2); background: var(--bg1); color: var(--tx2); font: 600 12.5px var(--sans); cursor: pointer; }
.adm-seg-b:first-child { border-left: 0; }
.adm-seg-b[aria-pressed="true"] { background: var(--bg4); color: var(--tx); }
.adm-seg-b b { margin-left: 4px; padding: 0 5px; border-radius: 8px; background: var(--hot); color: #fff; font-size: 11px; }
.adm-reps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-rep { padding: 12px 14px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.adm-rep.st-open { border-color: color-mix(in srgb, var(--hot) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--hot); }
.adm-rep.st-approved { box-shadow: inset 3px 0 0 var(--ok); }
.adm-rh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-rh time { margin-left: auto; font-size: 12px; color: var(--tx3); }
.adm-rr { padding: 2px 8px; border-radius: 4px; background: var(--hot-d); color: var(--hot); font-size: 12px; font-weight: 700; }
.adm-rg { font-weight: 700; color: var(--tx); }
.adm-rd { margin: 8px 0 0; font-size: 13px; color: var(--tx2); white-space: pre-wrap; }
.adm-rp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.adm-rp small, .adm-rc2 small { display: block; font-size: 11px; color: var(--tx3); margin-bottom: 3px; }
.adm-who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-who img { width: 22px; height: 22px; border-radius: 50%; }
.adm-sid { font-size: 11px; color: var(--tx3); }
.adm-rc, .adm-bb { margin-left: 6px; padding: 1px 6px; border-radius: 3px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--bg4); color: var(--tx2); }
.adm-bb { background: var(--hot); color: #fff; }
.adm-ra { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.adm-ra input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font-size: 13px; }
.adm-btn { height: 32px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: 600 12.5px var(--sans); cursor: pointer; }
.adm-btn.bad { background: var(--hot); border-color: var(--hot); color: #fff; }
.adm-rs { margin: 10px 0 0; font-size: 12.5px; color: var(--tx2); }
.adm-rc2 { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.adm-rc2 a { color: var(--acc); word-break: break-all; }
.adm-hint { margin: 12px 0 0; font-size: 12px; color: var(--tx3); }

.adm-rk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--bg1); }
.adm-rk small { font-size: 11px; color: var(--tx3); }
.adm-key { padding: 4px 8px; border-radius: 4px; background: var(--bg3); font-size: 13px; letter-spacing: .05em; user-select: all; }
.adm-kn { font-size: 11.5px; color: var(--tx2); }

.adm-rply { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--bg1); font-size: 13px; white-space: pre-wrap; }
.adm-rply small { display: block; font-size: 11px; color: var(--tx3); margin-bottom: 2px; }
.adm-rply.none { color: var(--tx3); }

.adm-evs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-ev { display: flex; flex-direction: column; gap: 3px; width: 120px; text-decoration: none; }
.adm-ev img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--bg1); }
.adm-ev small { font-size: 11px; color: var(--tx3); }

/* v48 관리자 메뉴 트리(번들 · 콘텐츠 → 매칭 검수 · 번들 직접 입력) */
.adm-ng { display: flex; align-items: center; gap: 10px; height: 32px; margin: 2px 0 0; padding: 0 10px; font-size: 13px; color: var(--tx2); }
.adm-ng svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-ng.on { color: var(--tx); }
.adm-ng.on svg { color: var(--acc); }
.adm-ni.sub { height: 32px; margin-left: 18px; padding-left: 12px; font-size: 13px; border-left: 1px solid var(--line2); border-radius: 0 6px 6px 0; }
.adm-ni.sub svg { width: 15px; height: 15px; }

/* v49 운영자 추천 노출 — 칸반 보드 */
.pk-add { margin-bottom: 14px; }
.pk-addrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pk-find { position: relative; flex: 1 1 280px; min-width: 240px; }
.pk-find input, .pk-f input { width: 100%; height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: inherit; font-size: 13px; }
.pk-res { position: absolute; z-index: 5; top: 40px; left: 0; right: 0; max-height: 320px; overflow: auto; padding: 4px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pk-ri { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 6px; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pk-ri:hover, .pk-ri:focus-visible { background: var(--bg3); outline: none; }
.pk-ri img, .pk-ri i { width: 92px; height: 34px; flex: none; object-fit: cover; border-radius: 4px; background: var(--bg3); }
.pk-ri span { display: flex; flex-direction: column; min-width: 0; }
.pk-ri b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-ri small { font-size: 11px; color: var(--tx3); }
.pk-chip { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 6px 4px 4px; border-radius: 6px; background: var(--acc-d); border: 1px solid var(--acc-dd); }
.pk-chip img { width: 72px; height: 27px; object-fit: cover; border-radius: 3px; }
.pk-chip b { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-x { width: 22px; height: 22px; border: 0; border-radius: 4px; background: none; color: var(--tx2); font-size: 16px; cursor: pointer; }
.pk-x:hover { background: var(--bg3); color: var(--tx); }
.pk-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tx2); }
.pk-f.w { flex: 1 1 200px; }
.pk-seg { display: inline-flex; height: 36px; padding: 2px; border-radius: 6px; background: var(--bg1); border: 1px solid var(--line2); }
.pk-seg button { padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--tx2); font: inherit; font-size: 12.5px; cursor: pointer; }
.pk-seg button[aria-checked="true"] { background: var(--acc-d); color: var(--acc); font-weight: 700; }
.pk-btns { display: flex; gap: 6px; }
.pk-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.pk-col { display: flex; flex-direction: column; min-height: 240px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.pk-col.over { border-color: var(--acc); background: var(--acc-d); }
.pk-col header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.pk-col header b { font-size: 13px; }
.pk-col header em { font-style: normal; font: 700 11px/18px var(--mono); min-width: 20px; padding: 0 6px; border-radius: 9px; text-align: center; background: var(--bg3); color: var(--tx2); }
.pk-col.col-live header em { background: var(--acc-d); color: var(--acc); }
.pk-col header small { flex-basis: 100%; font-size: 11px; color: var(--tx3); }
.pk-col.col-live header b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.pk-list { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.pk-empty { margin: auto; padding: 18px 0; font-size: 12px; color: var(--tx3); text-align: center; }
.pk-card { border-radius: 8px; background: var(--bg2); border: 1px solid var(--line2); overflow: hidden; cursor: grab; transition: transform .12s, box-shadow .12s, opacity .12s; }
.pk-card:hover { border-color: var(--line3); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pk-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.pk-card.drag { opacity: .45; transform: scale(.98); }
.pk-card.c-ended { opacity: .7; }
.pk-ct { position: relative; aspect-ratio: 231 / 87; background: var(--bg3); }
.pk-ct img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-dd { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 4px; font: 700 11px/16px var(--mono); background: rgba(0,0,0,.65); color: #fff; }
.pk-dd.soon { background: var(--hot); }
.pk-cb { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 8px; }
.pk-n { font-size: 13px; font-weight: 700; color: var(--tx); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-n:hover { color: var(--acc); }
.pk-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 11.5px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.pk-sale { padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; }
.pk-sale.on { background: var(--ok-d); color: var(--ok); }
.pk-sale.off { background: var(--bg3); color: var(--warn); }
.pk-bst { display: inline-flex; align-items: center; gap: 4px; }
.pk-bst small { margin-left: 4px; font-size: 11px; color: var(--tx3); }
.pk-dot { width: 14px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--bg4); cursor: pointer; }
i.pk-dot { cursor: default; display: inline-block; }
.pk-dot.on { background: var(--acc); }
button.pk-dot:hover { background: var(--acc-dd); }
.pk-note { margin: 0; padding: 5px 7px; border-radius: 5px; background: var(--bg1); font-size: 11.5px; color: var(--tx2); white-space: pre-wrap; }
.pk-edit { display: flex; gap: 6px; align-items: center; }
.pk-edit input { height: 28px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: inherit; font-size: 12px; }
.pk-acts { display: flex; align-items: center; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.pk-mv { height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line2); background: none; color: var(--tx2); font: inherit; font-size: 11px; cursor: pointer; }
.pk-mv:hover { border-color: var(--acc-dd); color: var(--acc); }
.pk-sp { flex: 1; }
.pk-ic { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--tx3); cursor: pointer; }
.pk-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pk-ic:hover { background: var(--bg3); color: var(--tx); }
.pk-ic.bad:hover { color: var(--hot); }
@media (max-width: 720px) { .pk-board { grid-template-columns: repeat(4, 260px); } }

/* ---------- v50 자체 광고(admin-hads.js) — 보드는 운영자 추천 노출(pk-*) 모양을 같이 쓴다 ---------- */
.ha-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ha-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg1); border: 1px solid var(--line2); margin-bottom: 14px; }
.ha-top .ha-tabs { margin-bottom: 0; }
.ha-tab { height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--tx2); font: 600 12.5px var(--sans); cursor: pointer; }
.ha-tab[aria-selected="true"] { background: var(--acc-d); color: var(--acc); }
.ha-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
.ha-card .pk-acts { flex-wrap: wrap; row-gap: 4px; }
.pk-mv { white-space: nowrap; }
@media (max-width: 720px) { .ha-board { grid-template-columns: repeat(5, 250px); } }
.ha-new { margin-bottom: 14px; }
.ha-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; }
.ha-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--tx2); }
.ha-f.w2 { grid-column: span 2; }
.ha-f.w3 { grid-column: 1 / -1; }
.ha-f input, .ha-f select, .ha-f textarea { height: 34px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: inherit; font-size: 13px; min-width: 0; }
.ha-f textarea { height: auto; padding: 8px 10px; resize: vertical; }
.ha-f input[type="file"] { padding: 5px 8px; }
.ha-f.ha-chk { flex-direction: row; align-items: center; gap: 8px; align-self: end; height: 34px; }
.ha-f.ha-chk input { height: auto; }
.ha-btns { justify-content: flex-end; margin-top: 12px; }
.ha-ch { display: flex; align-items: center; gap: 6px; }
.ha-cn { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--tx); font: 700 13px var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-cn:hover { color: var(--acc); }
.ha-dd { position: static; }
.ha-why { margin: 0; font-size: 11.5px; color: var(--tx3); }
.ha-why.warn { color: var(--warn); }
.ha-bud { height: 6px; border-radius: 3px; background: var(--bg4); overflow: hidden; }
.ha-bud i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--acc), var(--ok)); }
.ha-bud.big { height: 8px; margin: 12px 0 16px; }
.ha-bl, .ha-st { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 11.5px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.ha-st b { color: var(--tx); }
.ha-td { color: var(--tx3); }
.ha-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.ha-chip { padding: 0 6px; border-radius: 4px; background: var(--bg3); color: var(--tx2); font: 600 10.5px/18px var(--mono); }
.ha-chip.off { color: var(--warn); }
.ha-places { display: grid; gap: 10px; }
.ha-pl { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.ha-pl.off { opacity: .55; }
.ha-plim { width: 100%; max-height: 110px; border-radius: 5px; overflow: hidden; background: var(--bg3); }
.ha-plim img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ha-plb b { font-size: 13px; }
.ha-plb code { margin-left: 8px; font-size: 11px; color: var(--tx3); }
.ha-plb p { margin: 4px 0 0; font-size: 12px; color: var(--tx2); }
.ha-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); cursor: pointer; }
@media (max-width: 720px) { .ha-pl { grid-template-columns: 1fr; } }
.ha-dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.ha-dt { flex: 1; min-width: 200px; }
.ha-dt h2 { margin: 0; font-size: 18px; }
.ha-dt p { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0; font-size: 12px; color: var(--tx2); align-items: center; }
.ha-dmv { display: flex; gap: 4px; }
.ha-colb { padding: 1px 8px; border-radius: 4px; background: var(--bg3); color: var(--tx2); font-weight: 700; }
.ha-colb.c-live { background: var(--ok-d); color: var(--ok); }
.ha-colb.c-scheduled { background: var(--acc-d); color: var(--acc); }
.ha-colb.c-ended { color: var(--tx3); }
.ha-chart { min-height: 240px; }
.ha-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ha-tbl th { padding: 6px 8px; text-align: right; color: var(--tx3); font-weight: 600; border-bottom: 1px solid var(--line); }
.ha-tbl th:first-child, .ha-tbl td:first-child { text-align: left; }
.ha-tbl td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.ha-tbl code { font-size: 10.5px; color: var(--tx3); }
.ha-tcr { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--mono); color: var(--tx2); }
.ha-tcr img { width: 64px; height: 28px; object-fit: cover; border-radius: 3px; }
.ha-cradd { margin-bottom: 14px; }
.ha-spec { margin: 10px 0; font-size: 12px; color: var(--tx2); }
.ha-pls { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 12.5px; color: var(--tx2); }
.ha-pls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ha-crs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ha-cr { border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); overflow: hidden; }
.ha-cr.off { opacity: .6; }
.ha-smp { position: absolute; top: 6px; left: 6px; padding: 0 6px; border-radius: 3px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10.5px; line-height: 16px; }
.ha-crb { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.ha-crb p { margin: 0; font-size: 12.5px; }
.ha-crb small { color: var(--tx3); }

/* v50.1 자체 광고 요약 줄 · 카드 미리보기 · 내 사이트 배너 */
.ha-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ha-sum-i { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); overflow: hidden; }
.ha-sum-i::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .5; }
.ha-sum-i.live::before { background: linear-gradient(90deg, var(--ok), transparent); opacity: .8; }
.ha-sum-i span { font-size: 11.5px; color: var(--tx3); }
.ha-sum-i b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ha-sum-i small { font-size: 11px; color: var(--tx3); }
@media (max-width: 900px) { .ha-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ha-thumb { position: relative; display: block; width: 100%; aspect-ratio: 6 / 1; padding: 0; border: 0; background: var(--bg3); cursor: pointer; overflow: hidden; }
.ha-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-on { position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 151, .25); }
.ha-libset { margin-bottom: 14px; }
.ha-libgo { justify-content: flex-end; }
.ha-libgo .adm-btn { height: 34px; }
.ha-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
@media (max-width: 720px) { .ha-lib { grid-template-columns: 1fr; } }
.ha-ls { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--bg1); border: 1px solid var(--line2); transition: border-color .15s, transform .15s; }
.ha-ls:hover { border-color: var(--line3); transform: translateY(-1px); }
.ha-ls.inq { border-color: var(--acc-dd); }
.ha-lshero { aspect-ratio: 460 / 215; background: var(--bg3); }   /* v57 게임형 썸네일 */
.ha-lshero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-lsb { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.ha-lst { display: flex; align-items: center; gap: 8px; }
.ha-lst b { font-size: 15px; }
.ha-lsu { font-size: 12px; color: var(--tx3); text-decoration: none; word-break: break-all; }
.ha-lsu:hover { color: var(--acc); }

/* v51 광고 자리 설정 · 노출 비중 */
.ha-scr { margin-bottom: 14px; }
.ha-scrrow { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.ha-scrrow h3 { margin: 0; font-size: 14px; }
.ha-scrrow .adm-hint { margin: 4px 0 0; }
.ha-scrn { flex: 0 0 150px; }
.ha-kn { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.ha-kn label { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--tx3); }
.ha-kn input { width: 70px; height: 30px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: 13px var(--mono); }
.ha-kn input:disabled { opacity: .4; }
.ha-kn em { position: absolute; right: 8px; bottom: 7px; font-style: normal; font-size: 11px; color: var(--tx3); pointer-events: none; }
.ha-chg { position: absolute; top: 1px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ha-fillbar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--bg4); overflow: hidden; max-width: 420px; }
.ha-fillbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--ok)); }
.ha-wtw { overflow-x: auto; }
.ha-wt td { vertical-align: middle; }
.ha-wn { display: inline; max-width: 260px; vertical-align: middle; }
.ha-wtc { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ha-wtc input { width: 110px; accent-color: var(--acc); }
.ha-wtc b { width: 18px; text-align: right; }
.ha-fq { width: 64px; height: 28px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font: 12.5px var(--mono); text-align: right; }
.ha-sh { position: relative; display: inline-block; width: 64px; height: 18px; border-radius: 3px; background: var(--bg3); overflow: hidden; vertical-align: middle; }
.ha-sh i { position: absolute; inset: 0 auto 0 0; background: var(--acc-dd); }
.ha-sh em { position: relative; font-style: normal; font: 600 11px/18px var(--mono); color: var(--tx); }
.ha-dim { color: var(--tx3); }
.ha-lsw { display: flex; gap: 8px; align-items: flex-end; }
.ha-lsw .ha-lsz { flex: 1; min-width: 0; }

/* ---------- v51.3 광고 설정 탭: 묶음 카드 + 오른쪽 요약 + 저장 바 ---------- */
.hs { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; padding-bottom: 72px; }
@media (max-width: 1100px) { .hs { grid-template-columns: minmax(0, 1fr); } .hs-side { order: -1; } }
.hs-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hs-sec > header { margin-bottom: 14px; }
.hs-sec > header h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.hs-sec > header p { margin: 3px 0 0; font-size: 12px; color: var(--tx3); }
.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 14px; }
@media (max-width: 720px) { .hs-grid { grid-template-columns: minmax(0, 1fr); } .hs-f.w2, .hs-f.w3 { grid-column: auto !important; } }
.hs-f { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-f.w2 { grid-column: span 2; } .hs-f.w3 { grid-column: 1 / -1; }
.hs-l { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; color: var(--tx2); }
.hs-l em { font-style: normal; font-weight: 400; color: var(--tx3); font-size: 11.5px; }
.hs-f input:not([type=checkbox]):not([type=range]), .hs-note { width: 100%; height: 38px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line2); background: var(--bg0);
  color: var(--tx); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.hs-f input:focus, .hs-note:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-d); }
.hs-f input:disabled { opacity: .45; }
.hs-f.changed > .hs-l::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); align-self: center; }
.hs-f.bad input { border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-d); }
.hs-cnt { position: absolute; right: 10px; top: 33px; font: 11px var(--mono); color: var(--tx3); pointer-events: none; }
.hs-note { height: auto; padding: 10px 12px; resize: vertical; }
.hs-urlrow { display: flex; gap: 8px; }
.hs-urlrow input { flex: 1; }
.hs-urlrow .adm-btn { height: 38px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.hs-utm { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.hs-final { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 6px; background: var(--bg0); border: 1px dashed var(--line2); font: 11.5px var(--mono); color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx2); cursor: pointer; user-select: none; }
.hs-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.hs-sw i { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--bg4); transition: background .15s; flex: none; }
.hs-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--tx2); transition: transform .18s var(--ease), background .15s; }
.hs-sw input:checked + i { background: var(--acc-dd); }
.hs-sw input:checked + i::after { transform: translateX(14px); background: var(--acc); }
.hs-sw input:focus-visible + i { box-shadow: 0 0 0 3px var(--acc-d); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx2); font: 600 11.5px var(--sans); cursor: pointer; }
.hs-chip:hover { border-color: var(--acc-dd); color: var(--acc); }
.hs-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.hs-model { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx2); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.hs-model b { font: 800 14px var(--mono); color: var(--tx); letter-spacing: .02em; }
.hs-model span { font-size: 11.5px; line-height: 1.45; }
.hs-model[aria-checked="true"] { border-color: var(--acc); background: var(--acc-d); }
.hs-model[aria-checked="true"] b { color: var(--acc); }
@media (max-width: 720px) { .hs-models { grid-template-columns: minmax(0, 1fr); } }
.hs-num { position: relative; display: flex; align-items: center; }
.hs-num.pre input { padding-left: 28px; }
.hs-num i { position: absolute; left: 11px; font-style: normal; font-size: 13px; color: var(--tx3); pointer-events: none; }
.hs-num u { position: absolute; right: 10px; text-decoration: none; font-size: 11.5px; color: var(--tx3); pointer-events: none; }
.hs-num input { font-family: var(--mono) !important; text-align: left; }
.hs-range { display: flex; align-items: center; gap: 12px; height: 38px; }
.hs-range input { flex: 1; accent-color: var(--acc); }
.hs-range b { min-width: 64px; text-align: right; font-size: 13px; }
.hs-ticks { display: flex; justify-content: space-between; margin-top: -4px; font-size: 10.5px; color: var(--tx3); padding-right: 76px; }
.hs-side { position: sticky; top: 12px; }
.hs-sum { display: flex; flex-direction: column; gap: 2px; }
.hs-sum-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hs-sum-h b { font-size: 13px; }
.hs-sr { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hs-sr span { font-size: 12px; color: var(--tx3); }
.hs-sr b { font-size: 14px; text-align: right; }
.hs-sr b small { font-size: 11px; font-weight: 400; color: var(--tx3); }
.hs-sr > small { grid-column: 1 / -1; text-align: right; font-size: 11.5px; color: var(--tx2); }
.hs-sp { padding: 12px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.hs-sph { display: flex; justify-content: space-between; font-size: 12px; color: var(--tx3); }
.hs-sph b { color: var(--tx); font-size: 14px; }
.hs-sp small { font-size: 11px; color: var(--tx3); }
.hs-chk { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hs-chk li { position: relative; padding: 7px 10px 7px 28px; border-radius: 6px; font-size: 12px; line-height: 1.45; background: var(--bg2); color: var(--tx2); }
.hs-chk li::before { position: absolute; left: 10px; top: 7px; font-weight: 800; }
.hs-chk li.err { background: var(--hot-d); color: var(--hot); } .hs-chk li.err::before { content: '!'; }
.hs-chk li.warn { background: rgba(255, 200, 87, .1); color: var(--warn); } .hs-chk li.warn::before { content: '·'; }
.hs-chk li.ok { background: var(--ok-d); color: var(--ok); } .hs-chk li.ok::before { content: '✓'; }
.hs-bar { position: fixed; left: 50%; bottom: 36px; z-index: 30; display: flex; align-items: center; gap: 10px; width: min(760px, calc(100vw - 32px)); padding: 10px 12px 10px 18px;
  border-radius: 12px; background: rgba(22, 27, 36, .96); border: 1px solid var(--line3); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--tx2); transform: translate(-50%, 140%); opacity: 0; transition: transform .25s var(--ease), opacity .2s; pointer-events: none; }
.hs-bar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.hs-bar.on > span:first-child { color: var(--tx); font-weight: 600; }
.hs-bar kbd { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: rgba(0, 0, 0, .25); font: 10.5px var(--mono); opacity: .8; }
.hs-bar .adm-btn:disabled { opacity: .45; cursor: default; }
.hs .adm-card { animation: none; }   /* 되돌리기·저장 때 다시 그려도 깜빡이지 않게 */
.hs-f .hs-num.pre input { padding-left: 28px; }
.hs-f .hs-num input[data-hs="rate"] { padding-right: 104px; }

/* ---------- v53 소재 종류(배너형·게임형) · 게임형 입력·미리보기 ---------- */
.ha-nvf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.ha-nvf .w2 { grid-column: span 2; }
@media (max-width: 720px) { .ha-nvf { grid-template-columns: minmax(0, 1fr); } .ha-nvf .w2 { grid-column: auto; } }
.ha-nvlive { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--bg0); border: 1px dashed var(--line2); }
.ha-nvl { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; color: var(--tx3); letter-spacing: .04em; }
.ha-nvp { display: flex; flex-direction: column; gap: 10px; }
.ha-nvp-i > span { display: block; margin-bottom: 4px; font-size: 11px; color: var(--tx3); }
.ha-nvp-list { --thw: 120px; border-radius: 6px; overflow: hidden; background: var(--bg1); }
.ha-nvp-list .dv-row { grid-template-columns: var(--thw) minmax(120px, 1fr) 110px 150px 110px 70px 40px !important; border-top: 0; }
.ha-nvp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; }
.ha-nvp-card { display: block !important; }
.ha-nvp-card > * { width: 100%; }
.ha-cr.nat { grid-column: 1 / -1; }
.ha-crnv { padding: 10px; background: var(--bg0); }
.ha-nvp a { pointer-events: none; }

/* v55 게임 광고 만들기 — 게임 찾기·고른 게임 */
.ha-new .pk-find { min-width: 0; }
.ha-new .pk-find .pk-res { top: 100%; margin-top: 4px; }
.ha-gpick { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg1); }
.ha-gpick img, .ha-gpick i { width: 120px; height: 45px; flex: none; object-fit: cover; border-radius: 4px; background: var(--bg3); }
.ha-gpick span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ha-gpick b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-gpick small { font-size: 11.5px; color: var(--tx3); }

/* v56 과금 묶음(하루·CPM·CPC 체크박스) · 광고주 계정 */
.ha-nsec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ha-nsec h4 { margin: 0 0 2px; font-size: 13.5px; }
.ha-bill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ha-billr { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg1); cursor: pointer; transition: border-color .15s, background .15s; }
.ha-billr.on { border-color: color-mix(in srgb, var(--acc, #4FE3FF) 55%, transparent); background: color-mix(in srgb, var(--acc, #4FE3FF) 6%, var(--bg1)); }
.ha-billr > input { margin-top: 3px; }
.ha-billt { display: flex; flex-direction: column; min-width: 0; }
.ha-billt b { font-size: 13.5px; }
.ha-billt small { color: var(--tx3); font-size: 11.5px; }
.ha-billv { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg0, var(--bg1)); }
.ha-billv i { font-style: normal; color: var(--tx3); font-size: 13px; }
.ha-billv input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--tx); font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums; outline: none; }
.ha-billv input:disabled { color: var(--tx3); }
.ha-billv u { text-decoration: none; color: var(--tx3); font-size: 11.5px; white-space: nowrap; }
.ha-billr:not(.on) .ha-billv { opacity: .5; }
.ha-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ha-parts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 12.5px; color: var(--tx3); }
.ha-parts b { color: var(--tx); margin-left: 4px; }
.ha-advl { color: var(--acc, #4FE3FF); }
@media (max-width: 720px) { .ha-bill, .ha-acc { grid-template-columns: 1fr; } }
