/* 영업 — 버튼·창·빈 상자는 ../legal/legal.css 를 그대로 쓰고 여기엔 영업 것만 둔다 */

.sl-shell { max-width: 1280px; }

/* 한눈에 */
.sl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sl-kpis .stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.sl-kpis .stat span { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.sl-kpis .stat b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sl-kpis .stat b small { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-left: 2px; }
.sl-kpis .stat em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.sl-kpis .stat.total { background: var(--text); border-color: var(--text); }
.sl-kpis .stat.total span, .sl-kpis .stat.total b, .sl-kpis .stat.total em, .sl-kpis .stat.total b small { color: #fff; }
.sl-kpis .stat.total em, .sl-kpis .stat.total b small { opacity: .7; }

/* 링크 카드 */
.sl-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 12px; }
.sl-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.sl-card.off { opacity: .62; }
.sl-card-head { display: flex; gap: 14px; min-width: 0; }
.sl-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sl-card-title h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.sl-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); }
.sl-url { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.sl-url a { color: var(--accent); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-url a:hover { text-decoration: underline; }
.sl-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sl-metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-metric span { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.sl-metric b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-metric b small { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.sl-card .lg-card-actions { margin-top: 0; }

/* 만들기 창 — 주소 입력 */
.sl-slug { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm, 10px); overflow: hidden; background: var(--surface); }
.sl-slug:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sl-slug-base { display: flex; align-items: center; padding: 0 4px 0 12px; font-weight: 500; font-size: 13px; color: var(--text-dim); background: var(--surface-2); white-space: nowrap; }
.lg-fields .sl-slug input { border: 0; border-radius: 0; box-shadow: none; padding-left: 6px; }
.sl-hint { font-size: 11.5px; font-weight: 500; color: var(--text-dim); }
.sl-hint.bad { color: #e03131; }
.sl-hint.ok { color: var(--positive, #2f9e44); }

/* 열람자 표 */
.sl-visits { max-width: 1100px; }
.sl-table-wrap { max-height: 62vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm, 10px); }
.sl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sl-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--text-sub);
  background: var(--surface-2); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
}
.sl-table th.sorted::after { content: " ↓"; color: var(--accent); }
.sl-table th.sorted.asc::after { content: " ↑"; }
.sl-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sl-table td.num { font-variant-numeric: tabular-nums; }
.sl-table td a { color: inherit; text-decoration: none; }
.sl-table td a:hover { color: var(--accent); text-decoration: underline; }
.sl-table tbody tr:hover { background: var(--surface-2); }
.sl-none { text-align: center; color: var(--text-dim); padding: 36px 12px !important; }
.sl-yes { color: var(--positive, #2f9e44); font-weight: 600; }
.sl-bounce { color: var(--warn, #f08c00); font-weight: 600; }
.sl-table .dim { color: var(--text-dim); }

@media (max-width: 720px) {
  .sl-links { grid-template-columns: 1fr; }
  .sl-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
