:root{
  /* Twitter-ish palette */
  --bg:#000000;
  --surface:#000000;
  --card:#000000;
  --text:#e7e9ea;
  --muted:#71767b;
  --accent:#1d9bf0;
  --danger:#f4212e;
  --ok:#00ba7c;
  --border:rgba(255,255,255,.12);
  --border-strong:rgba(255,255,255,.18);
  color-scheme: dark;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.app{min-height:100vh}
.shell{
  display:grid;
  grid-template-columns: 1fr;
  max-width: 1265px;
  margin: 0 auto;
}
@media (min-width: 1080px){
  .shell{grid-template-columns: 275px 1fr 350px}
}
.col{padding:0 12px}
.col.left, .col.right{display:none}
@media (min-width: 1080px){
  .col.left, .col.right{display:block}
}
.col.left{
  position:sticky; top:0; align-self:start;
  height:100vh; padding-top:12px;
}
.col.right{
  position:sticky; top:0; align-self:start;
  height:100vh; padding-top:12px;
}
.col.main{
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
  min-height:100vh;
  padding:0;
}
.brand{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--text);
}
.brand-big{display:block;padding:10px 12px;border-radius:999px;width:max-content}
.brand-big:hover{background:rgba(255,255,255,.06);text-decoration:none}

.m-topbar{
  position:sticky;top:0;z-index:10;
  backdrop-filter: blur(10px);
  background:rgba(0,0,0,.7);
  border-bottom:1px solid var(--border);
}
.m-topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  max-width: 1265px;
  margin:0 auto;
  padding:10px 12px;
}
.m-topbar-actions{display:flex;gap:10px;align-items:center}
.iconbtn{
  width:38px;height:38px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text);
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  text-decoration:none;
}
.iconbtn:hover{background:rgba(255,255,255,.08)}
.pillbtn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 12px;border-radius:999px;
  background:var(--accent);
  color:#001018;
  font-weight:800;
  text-decoration:none;
}
.pillbtn:hover{text-decoration:none;filter:brightness(1.05)}
@media (min-width: 1080px){
  .m-topbar{display:none}
}

.sidenav{display:flex;flex-direction:column;gap:4px;padding:8px 0}
.navitem{
  display:flex;
  align-items:center;
  padding:10px 12px;
  border-radius:999px;
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  width:max-content;
}
.navitem:hover{background:rgba(255,255,255,.06);text-decoration:none}
.navbtn{
  background:transparent;border:none;cursor:pointer;
  font:inherit;
}
.cta{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 90%;
  padding:14px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#001018;
  font-weight:900;
  text-decoration:none;
}
.cta:hover{text-decoration:none;filter:brightness(1.05)}

.pagehead{
  position:sticky;
  top:0;
  z-index:5;
  backdrop-filter: blur(10px);
  background:rgba(0,0,0,.7);
  border-bottom:1px solid var(--border);
  padding:12px 16px;
}
.pagehead h1{
  font-size:20px;
  margin:0;
  font-weight:900;
}

.card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.03);
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.chip:hover{background:rgba(255,255,255,.06);text-decoration:none}

.flash{
  border-radius:12px;
  padding:12px 14px;
  margin:12px 16px;
  border:1px solid var(--border);
}
.flash.error{border-color:rgba(244,33,46,.35); background:rgba(244,33,46,.08)}
.flash.success{border-color:rgba(0,186,124,.35); background:rgba(0,186,124,.08)}
.muted{color:var(--muted)}
.small{font-size:13px}

input, textarea, select, button{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
textarea{min-height:110px;resize:vertical}
label{display:block;margin:10px 0 6px;color:var(--muted);font-size:14px}
.grid{display:grid;grid-template-columns:1fr;gap:14px;padding:16px}
@media (min-width:880px){.grid{grid-template-columns: 1.15fr .85fr}}
.btn{
  cursor:pointer;
  background:var(--accent);
  border:1px solid rgba(29,155,240,.65);
  font-weight:900;
  color:#001018;
  border-radius:999px;
}
.btn.secondary{
  background:transparent;
  border:1px solid var(--border-strong);
  font-weight:800;
  color:var(--text);
}
.btn.danger{
  background:rgba(244,33,46,.2);
  border:1px solid rgba(244,33,46,.45);
  color:var(--text);
}
.inline{display:inline}
form.inline{margin:0}
button.link{
  width:auto;
  padding:0;
  border:none;
  background:transparent;
  color:var(--accent);
  cursor:pointer;
  font: inherit;
}

/* Tweet */
.tweet{
  display:flex;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
}
.tweet:hover{background:rgba(255,255,255,.03)}
.tweet-avatar{
  width:40px;height:40px;border-radius:999px;
  background:linear-gradient(180deg, rgba(29,155,240,.45), rgba(255,255,255,.06));
  border:1px solid var(--border);
}
.tweet-main{flex:1;min-width:0}
.tweet-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tweet-who{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0}
.tweet-name{font-weight:900;color:var(--text)}
.tweet-handle{color:var(--muted);text-decoration:none}
.tweet-handle:hover{text-decoration:underline}
.tweet-time{color:var(--muted);font-size:13px;white-space:nowrap}
.tweet-body{margin-top:4px;white-space:pre-wrap;line-height:1.35}
.tweet-actions{
  margin-top:10px;
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  margin-left:4px;
  border-radius:999px;
  background:var(--accent);
  color:#001018;
  font-size:12px;
  line-height:16px;
  font-weight:900;
  vertical-align:middle;
}
.tweet-media{
  display:block;
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  background:rgba(255,255,255,.02);
}
.tweet-media img{
  display:block;
  width:100%;
  max-height:520px; /* clamp overly tall images */
  object-fit:cover; /* crop to look nice in-feed */
  object-position:center;
}
.tweet-media:hover{filter:brightness(1.02)}
.metric{color:var(--muted)}
.action{
  color:var(--muted);
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  font:inherit;
  text-decoration:none;
}
.action:hover{color:var(--accent);text-decoration:underline}
.action.on{color:#ff6b9b}

.split{display:flex;gap:10px;flex-wrap:wrap}
.split > *{flex:1}

/* Feed + composer */
.feed{padding:0}
.empty{
  padding:14px 16px;
}
.composer{
  display:flex;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
}
.composer-avatar{
  width:40px;height:40px;border-radius:999px;
  background:linear-gradient(180deg, rgba(29,155,240,.45), rgba(255,255,255,.06));
  border:1px solid var(--border);
}
.composer-form{flex:1}
.composer-text{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  padding:10px 0 6px 0;
  font-size:18px;
  line-height:1.35;
  color:var(--text);
  resize:none;
  min-height:56px;
}
.composer-text::placeholder{color:var(--muted)}
.composer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:8px;
}
.composer-visibility{
  width:auto;
  border-radius:999px;
  padding:8px 10px;
  font-weight:800;
  color:var(--text);
}

