/* 관리자 모듈 */
.adm-nav a { display: inline-flex; align-items: center; gap: 6px; }
.adm-nav svg.lucide { width: 16px; height: 16px; }
.adm-page .stat { display: flex; flex-direction: column; gap: 2px; }
.adm-stat:hover { border-color: var(--brand); }
.adm-small-b { font-size: 18px !important; }
.adm-alert { display: flex; align-items: center; gap: 10px; border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); margin-bottom: 16px; }
.adm-alert svg.lucide { color: var(--warn); }
.adm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.adm-charts .card { margin: 0; }
.adm-charts h3 { font-size: 14px; color: var(--text-2); }
.adm-bars { width: 100%; height: 150px; display: block; }
.adm-bar { fill: var(--brand); opacity: .85; }
.adm-bars g:hover .adm-bar { opacity: 1; }
.adm-axis { stroke: var(--border); stroke-width: 1; }
.adm-tick { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.adm-cols .card { margin: 0; min-width: 0; }
.adm-page > .card { margin-bottom: 14px; }
.adm-sub-h { margin: 20px 0 8px !important; font-size: 14px !important; color: var(--text-2); }
.adm-danger-h { color: var(--danger) !important; }
.adm-table { font-size: 13.5px; }
.adm-table td, .adm-table th { padding: 9px 10px; }
.adm-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-plus { color: var(--ok); font-weight: 600; }
.adm-table a { color: var(--text); }
.adm-table a:hover { color: var(--brand); }
.adm-table code { font-family: var(--mono); font-size: 12px; }
.adm-click { cursor: pointer; }
.adm-click:hover td { background: var(--surface-2); }
.adm-scroll { max-height: 380px; overflow: auto; }
.adm-filter input[type=search] { min-width: 200px; }
.adm-filter select { width: auto; min-width: 130px; }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.adm-actions { white-space: nowrap; }
.adm-actions form { display: inline; margin: 0; }

.adm-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-hbars li { display: grid; grid-template-columns: 130px 1fr 50px; align-items: center; gap: 10px; font-size: 13px; }
.adm-hbars li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-hbars li b { text-align: right; font-variant-numeric: tabular-nums; }
.adm-hbar { display: block; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.adm-hbar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.adm-kv { list-style: none; margin: 0; padding: 0; }
.adm-kv li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.adm-kv li:last-child { border-bottom: 0; }

.adm-user-head { display: flex; flex-direction: column; gap: 12px; }
.adm-user-head .btn { align-self: flex-start; }
.adm-user-title { display: flex; align-items: center; gap: 14px; }
.adm-user-title h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.adm-user-title p { margin: 2px 0 0; }
.adm-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; overflow: hidden; flex: none; }
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.adm-seg label { cursor: pointer; }
.adm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.adm-seg span { display: block; padding: 6px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.adm-seg input:checked + span { background: var(--brand); color: #fff; }
.adm-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.adm-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.adm-inline select, .adm-inline input[type=text] { width: auto; flex: 1; min-width: 140px; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.adm-check input { accent-color: var(--brand); }

.adm-tiers select { min-width: 220px; }
.adm-tiers input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; }
.adm-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.adm-modules { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-broken { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-broken li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.adm-broken code { font-family: var(--mono); font-size: 12px; color: var(--danger); word-break: break-all; }

.adm-logs { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.adm-log-files { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.adm-log-files input { margin-bottom: 6px; height: 36px; }
.adm-log-file { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.adm-log-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-log-file:hover { background: var(--surface-2); }
.adm-log-file.is-active { background: var(--brand-50); color: var(--brand-700); }
.adm-log-view { min-width: 0; }
.adm-log-view .toolbar input { width: 220px; height: 36px; }
.adm-log { margin: 0; background: #1b1916; color: #e9e4de; border-radius: var(--radius); padding: 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; max-height: 70vh; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.adm-log-line { display: block; }
.adm-log-line.is-error { color: #ff9b8f; }

@media (max-width: 860px) {
  .adm-cols, .adm-logs { grid-template-columns: 1fr; }
  .adm-hbars li { grid-template-columns: 100px 1fr 40px; }
  .adm-filter select { flex: 1; }
}
