:root{
  --bg:#0b1220;
  --panel:#111a2e;
  --muted:#8ea0c6;
  --text:#e8efff;
  --border: rgba(255,255,255,.08);
  --chip: rgba(255,255,255,.08);
  --good: rgba(0,255,170,.15);
  --warn: rgba(255,170,0,.15);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: linear-gradient(180deg, var(--bg), #070b14);
  color: var(--text);
}

.topbar{
  display:flex;
  gap:16px;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  position:sticky; top:0;
  background: rgba(11,18,32,.9);
  backdrop-filter: blur(8px);
  z-index:10;
}

.brand-title{font-weight:700; font-size:16px}
.brand-subtitle{color:var(--muted); font-size:12px; margin-top:2px}

.search{
  margin-left:auto;
  width:min(560px, 55vw);
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}

.layout{
  display:grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 56px);
}

.sidebar{
  border-right:1px solid var(--border);
  padding:12px;
}

.sidebar-header{padding:8px 8px 12px 8px}
.sidebar-title{font-weight:700}
.sidebar-hint{color:var(--muted); font-size:12px; margin-top:4px}

.dataset-list{display:flex; flex-direction:column; gap:8px}
.dataset-item{
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.dataset-item:hover{background: rgba(255,255,255,.06)}
.dataset-name{font-weight:650}
.dataset-desc{color:var(--muted); font-size:12px; margin-top:4px}

.content{padding:16px}
.panel{
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  padding:16px;
}

.h1{font-size:22px; font-weight:800; margin:0 0 6px}
.meta{color:var(--muted); font-size:12px; margin-bottom:12px}

.chips{display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 14px}
.chip{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--chip);
}

.section{margin-top:18px}
.section h3{margin:0 0 10px; font-size:14px}
.kv{display:grid; grid-template-columns: 160px 1fr; gap:8px; font-size:13px}
.k{color:var(--muted)}
hr{border:0; border-top:1px solid var(--border); margin:16px 0}

.table{
  width:100%;
  border-collapse: collapse;
  font-size:13px;
  overflow:hidden;
  border-radius:12px;
}
.table th, .table td{
  border-bottom:1px solid var(--border);
  padding:10px 10px;
  vertical-align:top;
}
.table th{color:var(--muted); font-weight:650; text-align:left}

.small{color:var(--muted); font-size:12px}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono";
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 12px;
  overflow:auto;
  white-space: pre-wrap;
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:12px;
}
.badge.good{background: var(--good)}
.badge.warn{background: var(--warn)}

.empty-state{padding:28px}
