:root{
  --bg0:#0b0f14;
  --bg1:#101824;
  --card:#0f1724;
  --text:#e8eef7;
  --muted:#a6b3c7;
  --accent:#5aa9ff;
  --danger:#ff5a7a;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 900px at 20% 0%, rgba(90,169,255,.18), transparent 60%),
              radial-gradient(900px 700px at 80% 10%, rgba(255,90,122,.12), transparent 55%),
              var(--bg0);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.app{max-width:1200px; margin:0 auto; padding:16px}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(90,169,255,.18);
  border:1px solid rgba(90,169,255,.35);
  font-weight:800;
}
.titles .h1{font-weight:800; font-size:18px}
.titles .h2{font-size:12px; color:var(--muted); margin-top:2px}

.actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.search{
  width:min(360px, 70vw);
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.search:focus{border-color: rgba(90,169,255,.55); box-shadow: 0 0 0 4px rgba(90,169,255,.12)}

.btn{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.btn:hover{background: rgba(255,255,255,.09)}
.btn:active{transform: translateY(1px)}
.btn.ghost{background: transparent}
.btn.small{padding:8px 10px; border-radius: 12px; font-size:12px}

.grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap:12px;
  margin-top:12px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.panel{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 520px;
}
.panelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.panelTitle{font-weight:800}
.rightTools{display:flex; align-items:center; gap:8px}
.badge{
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(90,169,255,.12);
  font-size:12px;
  color: var(--text);
}

.list{padding:10px; display:flex; flex-direction:column; gap:8px}

.item{
  border:1px solid var(--border);
  border-radius: 14px;
  padding:10px 12px;
  background: rgba(0,0,0,.18);
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:flex-start;
}
.item:hover{border-color: rgba(255,255,255,.14)}
.itemTitle{font-weight:700}
.itemMeta{font-size:12px; color:var(--muted); margin-top:4px}

.itemBtns{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-size:12px;
  cursor:pointer;
}
.pill:hover{background: rgba(255,255,255,.08)}
.pill.primary{border-color: rgba(90,169,255,.45); background: rgba(90,169,255,.12)}

.selected{outline: 2px solid rgba(90,169,255,.55); box-shadow: 0 0 0 4px rgba(90,169,255,.12)}
.skeleton{color:var(--muted); padding:12px}

.toast{
  position:fixed;
  left:16px;
  bottom:16px;
  background: rgba(0,0,0,.7);
  border:1px solid var(--border);
  color: var(--text);
  padding:10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.footer{margin-top:12px; color:var(--muted); font-size:12px; text-align:center}
.muted{color:var(--muted)}