:root{
  --bg:#0e1116;
  --card:#131824;
  --card2:#0f1420;
  --text:#d8dee9;
  --muted:#9aa4b2;
  --line:#253044;
  --accent:#7aa2f7;
  --good:#2bd4a6;
  --warn:#ffd166;
  --bad:#ff5c7a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, #152034 0%, var(--bg) 55%) fixed;
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:28px 18px 40px}
.top{
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(145deg, rgba(122,162,247,.9), rgba(43,212,166,.85));
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.title{font-weight:700; font-size:18px}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}
.meta{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  font-size:12px; color:#cbd5e1;
  padding:6px 10px; border:1px solid var(--line);
  background: rgba(19,24,36,.6);
  border-radius:999px;
}

.card{
  background: linear-gradient(180deg, rgba(19,24,36,.95), rgba(15,20,32,.92));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.card-h{display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap}
h1{margin:0; font-size:18px}
h2{margin:0 0 10px; font-size:15px}
.hint{color:var(--muted); font-size:12px}

.controls{
  margin-top:14px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.input, .select{
  background: rgba(14,17,22,.6);
  border:1px solid var(--line);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}
.input{flex:1; min-width:220px}
.select{min-width:160px}
.input:focus,.select:focus{border-color: rgba(122,162,247,.6); box-shadow: 0 0 0 4px rgba(122,162,247,.12)}

.table-wrap{margin-top:14px; overflow:auto; border-radius:14px; border:1px solid rgba(37,48,68,.6)}
.tbl{width:100%; border-collapse:collapse; min-width:820px; background:rgba(10,13,18,.45)}
th,td{padding:12px 12px; border-bottom:1px solid rgba(37,48,68,.55); text-align:left; font-size:13px}
th{color:#cbd5e1; font-weight:600; background:rgba(19,24,36,.65)}
tr:hover td{background:rgba(19,24,36,.35)}
.loading{color:var(--muted); text-align:center}
.tag{
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(122,162,247,.35);
  background: rgba(122,162,247,.10);
}
.mono{font-family:var(--mono); font-size:12px}
.status{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(19,24,36,.6);
  font-size:12px;
}
.status.available{border-color: rgba(43,212,166,.35); background: rgba(43,212,166,.10)}
.status.mirrored{border-color: rgba(122,162,247,.35); background: rgba(122,162,247,.10)}
.status.restricted{border-color: rgba(255,209,102,.35); background: rgba(255,209,102,.10)}
.status.deprecated{border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.10)}

.grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.small{color:var(--muted); font-size:12.5px; line-height:1.55}
.list{margin:0; padding-left:16px; color:var(--muted); font-size:12.5px; line-height:1.55}
.code{
  margin:10px 0 0;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(37,48,68,.65);
  background: rgba(10,13,18,.55);
  overflow:auto;
  color:#e6edf3;
}
.foot{margin-top:12px; display:flex; justify-content:space-between; gap:12px}
.copy{margin-top:18px; color:rgba(154,164,178,.75); font-size:12px; text-align:center}

a.link{ text-decoration:none; }
.pill.link{ cursor:pointer; }
.pill.link:hover{ border-color: rgba(122,162,247,.55); }

.kpi{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
}
.kpi-item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(37,48,68,.65);
  background: rgba(10,13,18,.35);
}
.kpi-label{color:var(--muted); font-size:12px}
.kpi-val{margin-top:6px; font-size:14px; font-weight:600}
@media (max-width: 980px){ .kpi{grid-template-columns:1fr 1fr} }

.log{margin-top:14px; display:flex; flex-direction:column; gap:10px}
.log-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(37,48,68,.65);
  background: rgba(10,13,18,.35);
}
.log-date{color:#cbd5e1; font-size:12px}
.log-title{font-weight:700; margin-bottom:6px}
@media (max-width: 980px){ .log-item{grid-template-columns:1fr} }