:root { --bg:#eef1f5; --card:#fff; --ink:#1d2733; --muted:#6b7785; --line:#d5dbe3; --brand:#0b6e4f; --brand2:#e8f4ef; }
@media (prefers-color-scheme: dark) { :root { --bg:#12171d; --card:#1b222b; --ink:#e4e9ef; --muted:#8d99a6; --line:#2c3642; --brand:#3fbf8f; --brand2:#18302a; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 system-ui, "Noto Sans Bengali", sans-serif; }
a { color:var(--brand); }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; background:var(--brand); }
.top a { color:#fff; text-decoration:none; margin-left:12px; }
.logo { font-size:20px; margin:0 !important; }
.wrap { display:grid; grid-template-columns:1fr 280px; gap:16px; max-width:1100px; margin:16px auto; padding:0 16px; }
@media (max-width: 760px) { .wrap { grid-template-columns:1fr; } }
.box { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:12px 16px; margin-bottom:16px; }
.box h1, .box h2 { margin:0 0 8px; font-size:17px; }
.muted { color:var(--muted); }
.atlas { display:flex; gap:12px; background:var(--brand2); }
.avatar { flex:none; width:44px; height:44px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:700; font-size:20px; }
.badge { font-size:12px; background:var(--brand); color:#fff; border-radius:10px; padding:1px 8px; vertical-align:middle; }
.cats { width:100%; border-collapse:collapse; }
.cats th, .cats td { text-align:left; padding:8px; border-top:1px solid var(--line); }
.cats td + td, .cats th + th { text-align:right; width:70px; }
footer { text-align:center; color:var(--muted); padding:24px; }
.btn, button.btn { display:inline-block; background:#fff; color:var(--brand) !important; border:0; border-radius:4px; padding:6px 12px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
main .btn { background:var(--brand); color:#fff !important; }
form.inline { display:inline; }
button.link { background:none; border:0; color:#fff; font:inherit; cursor:pointer; margin-left:12px; padding:0; }
.form { max-width:420px; }
.form label { display:block; margin-top:12px; font-weight:600; }
.form input { display:block; width:100%; margin-top:4px; padding:8px; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:4px; }
.form button { margin-top:16px; }
.error { background:#fdecec; color:#9b1c1c; border-radius:4px; padding:8px 12px; }
.profile { display:flex; gap:12px; }
.badge.staff { background:#7a4fd6; }
aside a { display:inline-block; margin:0 6px 4px 0; }
/* forum */
.flush { padding:0; overflow:hidden; }
.bar { background:var(--brand2); margin:0 !important; padding:10px 16px; font-size:13px; text-transform:uppercase; letter-spacing:.05em; }
.bar.row { display:flex; justify-content:space-between; align-items:center; text-transform:none; letter-spacing:0; }
.bar.row h1 { margin:0; font-size:18px; }
.stats dl { margin:0; display:grid; gap:6px; }
.stats dl div { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:6px; }
.stats dt { font-weight:600; color:var(--brand); }
.stats dd { margin:0; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.totals { margin:8px 0 0; text-align:center; color:var(--muted); font-size:13px; }
.cats, .topics, .people { list-style:none; margin:0; padding:0; }
.cats li a { display:flex; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.cats li a:hover, .topics li:hover { background:var(--brand2); }
.cat-icon { font-size:22px; }
.cat-name { flex:1; display:flex; flex-direction:column; }
.cat-count { display:flex; flex-direction:column; align-items:flex-end; min-width:52px; }
.topics li { padding:10px 16px; border-top:1px solid var(--line); display:flex; flex-direction:column; }
.t-title { font-weight:600; }
.aud { font-size:12px; color:var(--muted); }
.empty { padding:16px; color:var(--muted); }
.crumbs { font-size:13px; color:var(--muted); margin-bottom:8px; }
.topic-head h1 { margin:0; font-size:22px; }
.topic-head p { margin:4px 0 12px; }
.post { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 16px; margin-bottom:10px; }
.post.depth1 { margin-left:16px; } .post.depth2 { margin-left:32px; } .post.depth3 { margin-left:48px; }
@media (max-width: 760px) { .post.depth1, .post.depth2, .post.depth3 { margin-left:8px; border-left:3px solid var(--brand2); } }
.author { display:flex; gap:10px; align-items:center; }
.author small { display:block; }
.avatar.small { width:32px; height:32px; font-size:15px; }
.tag { font-size:11px; background:var(--brand2); color:var(--brand); border-radius:8px; padding:1px 6px; }
.body { margin:10px 0; overflow-wrap:anywhere; }
.body blockquote { margin:8px 0; padding:6px 12px; border-left:3px solid var(--brand); background:var(--brand2); border-radius:4px; }
.body cite { display:block; font-style:normal; font-weight:600; font-size:13px; }
.body pre { background:var(--bg); padding:8px; border-radius:4px; overflow:auto; }
.body details { background:var(--bg); padding:6px 10px; border-radius:4px; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; font-size:14px; border-top:1px solid var(--line); padding-top:8px; }
button.link.dark { color:var(--brand); margin:0; }
.react { display:flex; align-items:center; gap:8px; }
.react form { display:flex; align-items:center; gap:2px; position:relative; }
.react-main { background:none; border:0; font:inherit; color:var(--muted); cursor:pointer; padding:4px 6px; border-radius:4px; text-decoration:none; }
.react-main:hover { background:var(--bg); }
.react-main.on { color:var(--brand); font-weight:600; }
.picker summary { list-style:none; cursor:pointer; padding:4px; border-radius:4px; }
.picker summary::-webkit-details-marker { display:none; }
.picker-row { position:absolute; bottom:100%; left:0; display:flex; gap:2px; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:4px 6px; box-shadow:0 4px 16px rgba(0,0,0,.18); z-index:5; }
.picker-row button { background:none; border:0; font-size:26px; cursor:pointer; transition:transform .12s; padding:0 2px; }
.picker-row button:hover, .picker-row button:focus { transform:scale(1.3) translateY(-4px); }
.react form:hover .picker:not([open]) .picker-row { display:flex; }
.picker:not([open]) .picker-row { display:none; }
@media (hover:hover) { .react form:hover .picker-row { display:flex; } }
.react-sum { font-size:14px; color:var(--muted); text-decoration:none; }
.pager { display:flex; justify-content:center; gap:16px; padding:12px; }
.form.wide { max-width:none; }
.form textarea, .form select { display:block; width:100%; margin-top:4px; padding:8px; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:4px; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.tabs a { padding:4px 10px; border-radius:14px; text-decoration:none; background:var(--bg); }
.tabs a.on { background:var(--brand); color:#fff; }
.people li { display:flex; align-items:center; gap:8px; padding:6px 0; border-top:1px solid var(--line); }
.people li span:last-child { margin-left:auto; }
.owner-bar { display:flex; gap:10px; align-items:center; font-size:14px; margin-bottom:10px; }
.pinned { background:var(--brand2); border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:8px; padding:10px 14px; margin-bottom:12px; }
/* keep phones from scrolling sideways */
.top { flex-wrap:wrap; }
.top nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; }
.wrap { grid-template-columns:minmax(0,1fr) 280px; }
@media (max-width: 760px) { .wrap { grid-template-columns:minmax(0,1fr); } .top a { margin-left:10px; } }
main, aside { min-width:0; }
/* shoutbox */
.shout-form { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.shout-form textarea, .search input { width:100%; padding:6px 8px; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:4px; }
.btn.small, main .btn.small { padding:4px 10px; font-size:13px; align-self:flex-end; }
.shouts { list-style:none; margin:0; padding:0; }
.shouts li { border-top:1px solid var(--line); padding:8px 0; font-size:14px; }
.shouts .body { margin:4px 0; }
.shouts.big li { font-size:15px; }
.actions.small { font-size:13px; gap:10px; border:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; }
.more { display:block; text-align:right; font-size:13px; margin-top:6px; }
.search { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.peek { margin-top:4px; background:none; border:1px solid var(--line); border-radius:4px; cursor:pointer; padding:2px 8px; }
/* notifications */
.bell { position:relative; }
.bell .count { position:absolute; top:-6px; right:-10px; background:#e0245e; color:#fff; border-radius:9px; font-size:11px; padding:0 5px; line-height:16px; }
.notes { list-style:none; margin:0; padding:0; }
.notes li a { display:block; padding:10px 16px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.notes li a small { display:block; }
.notes li.unread a { background:var(--brand2); }
.notes li a:hover { background:var(--bg); }
.keep { text-align:center; font-size:12px; padding:0 16px 12px; margin:0; }
/* moderation */
.queue-item { border-top:1px solid var(--line); padding:12px 16px; }
.queue-item p { margin:0 0 6px; }
.preview { margin:6px 0; padding:6px 10px; background:var(--bg); border-left:3px solid var(--line); white-space:pre-wrap; }
.reasons { margin:6px 0; padding-left:18px; font-size:14px; }
.act { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:6px; }
.act input { flex:1; min-width:180px; padding:6px; font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:4px; }
.act button { padding:5px 10px; border:1px solid var(--line); border-radius:4px; background:var(--card); color:var(--ink); cursor:pointer; font:inherit; }
.report-link { color:var(--muted); font-size:13px; }
