:root{
  --bg:#0b0b0c;
  --panel:#141417;
  --panel2:#101013;
  --text:#f2f2f4;
  --muted:#a6a6b0;
  --border:#24242a;
  --accent:#7aa2ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.4;
}
a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}
.container{max-width:720px; margin:0 auto; padding:18px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 14px; border:1px solid var(--border);
  border-radius:18px; background:linear-gradient(180deg,var(--panel),var(--panel2));
  position:sticky; top:12px; z-index:10;
}
.brand{font-weight:800; letter-spacing:0.08em; text-transform:lowercase;}
.nav{display:flex; gap:10px; align-items:center; font-size:14px;}
.pill{
  padding:7px 10px; border:1px solid var(--border);
  border-radius:999px; background:rgba(255,255,255,0.03);
}
.pill.active{border-color:rgba(122,162,255,0.5); color:var(--accent)}
.sub{margin-top:14px; color:var(--muted); font-size:14px;}
.feed{margin-top:14px; display:flex; flex-direction:column; gap:14px}
.card{
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.card .meta{padding:12px 14px; display:flex; justify-content:space-between; align-items:center; gap:10px}
.date{color:var(--muted); font-size:13px}
.caption{padding:0 14px 14px; color:var(--text); white-space:pre-wrap; font-size:15px}
.badge{
  font-size:12px; color:var(--muted);
  border:1px solid var(--border); border-radius:999px;
  padding:4px 8px;
}
.media{
  display:block;
  width:100%;
  background:#000;
  user-select:none;
  -webkit-user-drag:none;
}
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.tile{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:#000;
  aspect-ratio:1/1;
  position:relative;
}
.tile img{width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-drag:none}
.count{
  position:absolute; right:8px; top:8px;
  padding:4px 8px; border-radius:999px;
  background:rgba(0,0,0,0.55); border:1px solid rgba(255,255,255,0.15);
  font-size:12px;
}
.detail{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  overflow:hidden;
}
.carousel{
  display:flex;
  gap:8px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:10px;
  background:#000;
}
.carousel img{
  height: min(70vh, 520px);
  border-radius:16px;
  scroll-snap-align:center;
  user-select:none;
  -webkit-user-drag:none;
}
.footer{margin-top:20px; color:var(--muted); font-size:13px; text-align:center; opacity:0.9;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.btn:hover{border-color:rgba(122,162,255,0.5); color:var(--accent)}
.input, textarea{
  width:100%;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
textarea{min-height:110px; resize:vertical}
.row{display:flex; gap:10px; align-items:center; justify-content:space-between}
hr{border:0; border-top:1px solid var(--border); margin:14px 0}
.preview{display:grid; grid-template-columns: repeat(4, 1fr); gap:8px;}
.preview img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  user-select:none;
  -webkit-user-drag:none;
}
.progress{
  height:10px;
  border-radius:999px;
  border:1px solid var(--border);
  overflow:hidden;
  background:rgba(255,255,255,0.03);
}
.progress > div{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(122,162,255,0.2), rgba(122,162,255,0.9));
}
.small{color:var(--muted); font-size:13px}
