/* 바즈 콘솔 디자인 시스템 — 다크 사이드바 + 그린 */
:root {
  --bg:#f4f5f7; --card:#fff; --line:#e6e8ec; --ink:#191b1f; --dim:#6b7280;
  --accent:#0e7a43; --accent-soft:#e9f5ee; --green:#16803c; --green-soft:#eef6ee;
  --side:#151f19; --side-dim:#8fa398; --side-hover:#1c2a22; --side-on:#24352b;
}
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo",sans-serif;
  background:var(--bg); color:var(--ink); font-size:14px; line-height:1.55; letter-spacing:-0.01em; }

/* 셸 */
.shell { display:flex; min-height:100vh; }
aside { width:216px; background:var(--side); padding:20px 14px; flex:none; display:flex; flex-direction:column; }
.side-logo { font-weight:800; font-size:16px; color:#fff; padding:4px 10px 22px; text-decoration:none; display:block; }
.side-logo small { font-weight:500; color:var(--side-dim); margin-left:6px; font-size:12px; }
aside nav a { display:flex; align-items:center; gap:8px; padding:9px 10px; border-radius:8px; color:var(--side-dim);
  text-decoration:none; font-weight:600; font-size:13.5px; margin-bottom:2px; cursor:pointer; }
aside nav a.on { background:var(--side-on); color:#fff; }
aside nav a:hover { background:var(--side-hover); }
aside nav .nav-sub { font-size:11px; color:var(--side-dim); font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  padding:14px 10px 6px; }
.side-foot { margin-top:auto; padding:12px 10px 4px; font-size:12.5px; color:var(--side-dim); border-top:1px solid #2a3c31; }
.side-foot a { color:var(--side-dim); text-decoration:none; }
.side-foot a:hover { color:#fff; }
main { flex:1; padding:22px 28px 60px; min-width:0; }
@media (max-width:800px) {
  .shell { flex-direction:column; }
  aside { width:100%; flex-direction:row; align-items:center; padding:10px 14px; gap:4px; overflow-x:auto; }
  .side-logo { padding:0 10px 0 0; white-space:nowrap; }
  aside nav { display:flex; gap:2px; }
  aside nav a { white-space:nowrap; }
  aside nav .nav-sub { display:none; }
  .side-foot { display:none; }
  main { padding:16px; }
}

/* 상단바 */
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:10px; flex-wrap:wrap; }
.topbar h1 { font-size:19px; font-weight:800; }
.topbar h1 span { color:var(--dim); font-weight:500; font-size:13px; margin-left:8px; }
.controls { display:flex; gap:8px; align-items:center; }
.chip { background:var(--green-soft); color:var(--green); font-weight:700; font-size:13px; padding:7px 12px; border-radius:8px; }
.chip.warn { background:#fdf0e7; color:#b4530a; }

/* KPI */
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:14px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:15px 17px; }
.kpi .l { font-size:12px; color:var(--dim); font-weight:600; margin-bottom:5px; }
.kpi .v { font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-0.02em; }
.kpi .v.accent { color:var(--accent); }
.kpi .d { font-size:12px; margin-top:3px; font-weight:600; color:var(--dim); }

/* 카드/행 */
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:14px; }
.card h2 { font-size:13.5px; font-weight:800; margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.card h2 small { font-weight:500; color:var(--dim); }
.row2 { display:grid; grid-template-columns:2fr 1fr; gap:12px; }
@media (max-width:800px) { .row2 { grid-template-columns:1fr; } }

/* 차트 (CSS 바) */
.chart { display:flex; align-items:flex-end; gap:4px; height:110px; }
.chart i { flex:1; background:#d3eadd; border-radius:3px 3px 0 0; min-height:2px; }
.chart i.hi { background:var(--accent); }
.chart-x { display:flex; justify-content:space-between; font-size:11px; color:var(--dim); margin-top:6px; }

/* 테이블 */
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; font-size:11.5px; color:var(--dim); font-weight:700; letter-spacing:.02em;
  padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:10px; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; }
tr:last-child td { border:none; }
td.num, th.num { text-align:right; }
.tbl-wrap { overflow-x:auto; }

/* 배지/버튼/폼 */
.badge { font-size:11px; font-weight:700; padding:3px 9px; border-radius:12px; white-space:nowrap; }
.badge.live { background:var(--green-soft); color:var(--green); }
.badge.off { background:#f1f2f4; color:var(--dim); }
.badge.pending { background:#fdf0e7; color:#b4530a; }
.btn { display:inline-block; background:var(--accent); color:#fff; font-size:13.5px; font-weight:700;
  padding:9px 16px; border-radius:8px; border:none; cursor:pointer; font-family:inherit; text-decoration:none; }
.btn:hover { background:#0a6136; }
.btn.dark { background:var(--ink); }
.btn.ghost { background:#fff; color:var(--ink); border:1.5px solid var(--line); }
.btn.danger { background:#fff; color:#c2410c; border:1.5px solid #f3c7ad; }
.link { color:var(--accent); text-decoration:none; font-weight:600; cursor:pointer; }
.field { margin-bottom:13px; }
.field label { display:block; font-size:12.5px; font-weight:700; margin-bottom:5px; }
.field input, .field textarea { width:100%; font-size:14.5px; padding:10px 12px; border:1.5px solid var(--line);
  border-radius:8px; background:#fff; color:var(--ink); font-family:inherit; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--accent); }
.note { font-size:12.5px; color:var(--dim); word-break:keep-all; }
.warnbox { background:#fbf7ef; border:1px solid #eee3cd; border-radius:10px; padding:14px 16px; font-size:13px; color:#6b5d3f; word-break:keep-all; margin-bottom:14px; }
.code-chip { font-family:ui-monospace,Menlo,monospace; background:#eef0f3; border-radius:6px; padding:2px 8px; font-size:13px; }
pre.prompt { background:#151f19; color:#dfe4ee; font-size:12.5px; line-height:1.6;
  font-family:ui-monospace,"SF Mono",Menlo,monospace; padding:15px 17px; border-radius:10px;
  white-space:pre-wrap; word-break:break-all; margin-bottom:10px; }
.copy-ok { color:var(--green); font-size:13px; margin-left:8px; display:none; }

/* 로그인 (센터 카드) */
.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bg); padding:24px; }
.auth-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:36px 32px; max-width:400px; width:100%; }
.auth-card .logo { font-weight:800; font-size:18px; margin-bottom:18px; }
.auth-card .logo small { font-weight:500; color:var(--dim); margin-left:6px; font-size:13px; }
.auth-card h1 { font-size:22px; font-weight:800; margin-bottom:8px; }
.auth-card p { font-size:14px; color:var(--dim); margin-bottom:22px; word-break:keep-all; }
.google-btn { display:inline-flex; align-items:center; gap:10px; background:#fff; border:1.5px solid var(--line);
  border-radius:8px; padding:12px 20px; font-size:15px; font-weight:700; color:var(--ink);
  text-decoration:none; font-family:inherit; }
.google-btn:hover { border-color:var(--accent); }

/* 목록 아이템 */
.item { display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.item:last-child { border-bottom:none; }
.item .n { font-weight:700; }
.item .c { font-family:ui-monospace,Menlo,monospace; font-size:12.5px; color:var(--dim); }
.mini-bar { display:inline-block; width:56px; height:6px; background:#f1f2f4; border-radius:3px; overflow:hidden; vertical-align:middle; margin-right:6px; }
.mini-bar i { display:block; height:100%; background:var(--accent); border-radius:3px; }
