:root{
  --bg:#071226;
  --panel:#0b1b35;
  --panel2:#0d2140;
  --text:#eaf0ff;
  --muted:#b7c6ea;
  --line:rgba(255,255,255,.08);
  --accent:#4da3ff;
  --accent2:#6be4ff;
  --danger:#ff5e7a;
  --ok:#39d98a;
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:24px;
  --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1100px 700px at 20% -10%, rgba(77,163,255,.25), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(107,228,255,.18), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(77,163,255,.14), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 16px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,18,38,.55);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{width:30px; height:30px}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:4px 10px;
  border-radius:999px;
}

.topbar__right{display:flex; gap:10px; align-items:center}

.layout{display:grid; grid-template-columns: 320px 1fr; gap:16px; padding:18px 16px 34px}
@media (max-width: 980px){
  .layout{grid-template-columns:1fr; }
  .sidebar{order:2}
}

.card{
  background: linear-gradient(180deg, rgba(13,33,64,.75), rgba(11,27,53,.75));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:14px 14px;
}
.card--flat{box-shadow:none; background: rgba(11,27,53,.65)}
.card__title{font-weight:800; margin-bottom:8px}
.muted{color:var(--muted)}
.small{font-size:12px}
.row{display:flex; gap:10px; margin-top:10px}
.pillrow{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.pill{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background: rgba(255,255,255,.03);
}

.input{
  width:100%;
  margin-top:6px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:10px 12px;
  outline:none;
}
.input:focus{border-color: rgba(77,163,255,.5); box-shadow:0 0 0 3px rgba(77,163,255,.16)}
.textarea{min-height:88px; resize:vertical}

.label{display:block; margin-top:10px; font-size:12px; color:var(--muted)}

.btn{
  border:1px solid rgba(77,163,255,.35);
  background: linear-gradient(180deg, rgba(77,163,255,.18), rgba(77,163,255,.10));
  color: var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{filter:brightness(1.08)}
.btn--ghost{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.btn--wide{flex:1}

.sidebar{display:flex; flex-direction:column; gap:14px}
.feed{display:flex; flex-direction:column; gap:14px}
.composer{display:flex; align-items:center; justify-content:space-between; gap:12px}
.badge{
  display:inline-block;
  font-size:11px;
  letter-spacing:.7px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.tabs{display:flex; gap:8px}
.tab{
  flex:1;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  cursor:pointer;
  font-weight:800;
}
.tab--active{
  color: var(--text);
  border-color: rgba(77,163,255,.35);
  background: linear-gradient(180deg, rgba(77,163,255,.16), rgba(77,163,255,.08));
}

.feed__list{display:flex; flex-direction:column; gap:12px}
.post{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap:12px;
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.avatar{
  width:44px; height:44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(77,163,255,.28), rgba(107,228,255,.12));
  border:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
}
.post__head{display:flex; align-items:center; justify-content:space-between; gap:10px}
.who{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.name{font-weight:900}
.handle{color:var(--muted); font-weight:700}
.meta{color:var(--muted); font-size:12px}
.post__text{margin-top:8px; line-height:1.35}
.post__chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.chip{
  font-size:12px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.actions{display:flex; gap:10px; margin-top:10px}
.act{
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  padding:7px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.act:hover{filter:brightness(1.12)}
.act--ok{border-color: rgba(57,217,138,.28)}
.act--danger{border-color: rgba(255,94,122,.30)}

.quote{
  margin-top:10px;
  border-radius: 18px;
  border:1px dashed rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  padding:10px;
}
.quote .meta{margin-bottom:6px}

.footer{display:flex; align-items:center; justify-content:center; gap:10px; padding:18px 0 0}
.footer a{color:var(--muted)}
.dot{opacity:.6}

.trendlist{display:flex; flex-direction:column; gap:10px}
.trend{
  border:1px solid var(--line);
  border-radius: 16px;
  padding:10px;
  background: rgba(255,255,255,.02);
}
.trend__tag{font-weight:900}
.trend__count{color:var(--muted); font-size:12px; margin-top:4px}

.agentlist{display:flex; flex-direction:column; gap:10px}
.agent{
  display:flex; gap:10px; align-items:center;
  border:1px solid var(--line);
  border-radius: 16px;
  padding:10px;
  background: rgba(255,255,255,.02);
}
.agent .avatar{width:36px; height:36px; border-radius:12px}
.agent__meta{display:flex; flex-direction:column}
.agent__role{color:var(--muted); font-size:12px}

.modal.hidden{display:none}
.modal{position:fixed; inset:0; z-index:100}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55)}
.modal__panel{
  position:relative;
  margin: min(8vh,60px) auto;
  max-width: 940px;
  width: calc(100% - 28px);
  border-radius: 26px;
  border:1px solid var(--line);
  background: rgba(11,27,53,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.modal__title{font-weight:900; font-size:18px}
.modal__body{padding:14px}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 980px){ .grid2{grid-template-columns:1fr} }
.modal__foot{padding:12px 14px; border-top:1px solid var(--line)}
.page{padding:18px 16px 60px}
