/* DezzyCode Forum – plain, modern, dark. Zinc greys; colour only as small signals (logo red, green for solved). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-0.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-1.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-2.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-3.woff2) format('woff2'); }

:root {
  --bg: #0e0e10;
  --card: #161618;
  --hover: #1d1d20;
  --input: #121214;
  --line: #232326;
  --line2: #2e2e32;
  --text: #ededef;
  --muted: #a1a1a8;
  --faint: #6e6e76;
  --white: #ffffff;
  --red: #e5242f;
  --red-soft: #ff8a90;
  --green: #6fd3a0;
  --radius: 8px;
  --header: 60px;
  --side: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; }
h1, h2 { margin: 0; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { flex: none; }
.muted { color: var(--faint); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; z-index: 60; padding: 6px 12px; border-radius: var(--radius); background: var(--white); color: var(--bg); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid #8b8b94; outline-offset: 2px; }
.show-sm { display: none; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--radius); background: transparent; color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); border-color: #3a3a40; color: var(--white); }
.btn--primary { background: var(--text); border-color: transparent; color: var(--bg); }
.btn--primary:hover { background: var(--white); color: var(--bg); }
.btn--discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn--discord:hover { background: #6d78f5; color: #fff; }
.btn--ghost { border-color: transparent; color: var(--muted); }
.btn--danger { color: var(--red-soft); }
.btn--danger:hover { border-color: #e5242f66; background: #e5242f14; color: var(--red-soft); }
.btn--sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---- Header (the only top bar) ---- */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: var(--header); padding: 0 20px; border-bottom: 1px solid var(--line); background: #0e0e10e6; backdrop-filter: blur(10px); }
.hd__burger { display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; width: calc(var(--side) - 20px); font-size: 16px; font-weight: 700; color: var(--white); flex: none; }
.brand img { filter: brightness(0) invert(1); }
.brand b { color: var(--muted); font-weight: 500; }
.search { flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--input); color: var(--faint); }
.search:focus-within { border-color: #4a4a52; }
.search input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: none; background: none; color: var(--white); font-size: 13.5px; }
.search input::placeholder { color: var(--faint); }
.search kbd { padding: 0 6px; border: 1px solid var(--line2); border-radius: 4px; color: var(--faint); font: 11px/18px Inter, sans-serif; }
.search:focus-within kbd { display: none; }
.hd__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.usermenu { position: relative; }
.usermenu__btn { display: grid; place-items: center; padding: 2px; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.usermenu__btn:hover { border-color: var(--line2); }
.usermenu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 210px; padding: 6px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); box-shadow: 0 16px 40px #000a; }
.usermenu__name { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.usermenu__name small { display: block; color: var(--faint); font-weight: 400; }
.usermenu__list a, .usermenu__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); text-align: left; cursor: pointer; }
.usermenu__list a:hover, .usermenu__list button:hover { background: var(--hover); color: var(--white); }
.usermenu__list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }

/* ---- Shell: sidebar + content ---- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side { position: sticky; top: var(--header); align-self: start; height: calc(100vh - var(--header)); overflow-y: auto; padding: 18px 12px 24px 20px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.side__title { display: flex; align-items: center; gap: 7px; margin: 20px 10px 6px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--white); }
.nav a.on { background: #1f1f22; color: var(--white); }
.nav__n { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav__n--hot { padding: 0 7px; border-radius: 99px; background: #e5242f1f; color: var(--red-soft); font-weight: 600; }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--faint)); opacity: .85; flex: none; display: inline-block; }
.side__online p { padding: 0 10px; color: var(--faint); font-size: 12.5px; }
.side__online a { color: var(--muted); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #6fd3a022; }
.side__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 10px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.side__foot a { display: inline-flex; align-items: center; gap: 4px; }
.lang { display: inline-flex; gap: 2px; }
.lang a { padding: 1px 6px; border-radius: 4px; color: var(--faint); font-weight: 600; font-size: 12px; }
.lang a.on { background: #1f1f22; color: var(--white); }
.side-backdrop { display: none; }

.main { justify-self: center; width: 100%; max-width: 1220px; min-width: 0; padding: 24px 32px 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--faint); font-size: 13px; }
.crumbs a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.crumbs a:hover { color: var(--white); }
.flash { margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--card); }
.flash--ok { border-color: #2c5a43; color: #bfeed6; }
.flash--error { border-color: #6b2a30; color: #ffc4c8; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 48px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.foot span { margin-right: auto; }

/* ---- Page heads ---- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pagehead h1 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--white); }
.pagehead h1 .cdot { width: 10px; height: 10px; }
.pagehead p { margin-top: 4px; color: var(--muted); }
.pagehead p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.pagehead__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pagehead__sub a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none !important; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.welcome { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.welcome p { flex: 1; color: var(--muted); }
.welcome b { color: var(--white); font-weight: 600; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--muted); }
.notice--login { justify-content: space-between; margin-top: 18px; }
.empty { padding: 36px 16px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--muted); text-align: center; }
.empty--big h1 { margin-bottom: 6px; font-size: 48px; color: var(--white); }
.empty--big .btn { margin-top: 16px; }
.sectiontitle { margin: 28px 0 10px; font-size: 16px; color: var(--white); }

/* ---- Filters ---- */
.listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pills a { padding: 6px 12px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 13px; }
.pills a:hover { color: var(--white); }
.pills a.on { background: #1f1f22; color: var(--white); }
.select select, .field select, .field input:not([type="radio"]):not([type="checkbox"]), .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--input); color: var(--text); }
.select select { width: auto; height: 34px; padding: 0 10px; }
select { color-scheme: dark; }
.field select:focus, .field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: #4a4a52; }
.chips { display: none; }

/* ---- Topic list ---- */
.tlist__head, .trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 104px 64px 84px; align-items: center; column-gap: 14px; }
.tlist__head { padding: 0 8px 8px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.tlist__head span:nth-child(4) { text-align: center; }
.tlist__head span:last-child { text-align: right; }
.tlist ul { margin: 0 0 16px; padding: 0; list-style: none; }
.trow { padding: 13px 8px; border-bottom: 1px solid var(--line); }
.trow:hover { background: #141416; }
.trow.is-pinned .trow__title::after { content: ""; }
.trow__title { display: block; color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.udot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--red); vertical-align: middle; }
.trow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; color: var(--faint); font-size: 12.5px; }
.trow__mwhen { display: none; }
.catlink { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.stack { display: flex; }
.stack img { width: 24px; height: 24px; margin-left: -6px; border: 2px solid var(--bg); border-radius: 50%; background: var(--hover); object-fit: cover; }
.stack img:first-child { margin-left: 0; }
.trow__num { text-align: center; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.trow__num small { display: block; color: var(--faint); font-size: 11px; font-weight: 400; }
.trow__when { text-align: right; color: var(--faint); font-size: 12.5px; }
.av { border-radius: 50%; flex: none; background: var(--hover); object-fit: cover; }
.minipager { display: inline-flex; gap: 3px; }
.minipager a { padding: 0 6px; border: 1px solid var(--line2); border-radius: 4px; font-size: 11px; }

.tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 4px; background: #ffffff0d; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.tag--bug { color: var(--red-soft); }
.tag--solved, .tag--fixed { color: var(--green); }
.tag--open, .tag--confirmed { color: #e6c07a; }
.tag--progress { color: #9ec5ec; }
.rank { display: inline-block; padding: 0 6px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 17px; }
.rank--dev { border-color: #e5242f55; color: var(--red-soft); }
.rank--banned { border-color: #e5242f55; color: var(--red-soft); }
.ulink { color: var(--white); font-weight: 600; }

.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.pager a, .pager span { min-width: 32px; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.pager span { border-color: transparent; }
.pager .on { background: var(--text); color: var(--bg); font-weight: 700; }
.pager--simple { justify-content: space-between; align-items: center; }
.pager--simple .pager__at { color: var(--faint); }

/* ---- Downloads ---- */
.dlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dl { display: flex; align-items: center; gap: 20px; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.dl__main { flex: 1; min-width: 0; }
.dl__name { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-size: 16px; font-weight: 600; }
.dl__text { margin-top: 3px; color: var(--muted); }
.dl__meta { margin-top: 4px; color: var(--faint); font-size: 12.5px; }
.version { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dl__actions { display: flex; gap: 6px; flex: none; }

/* ---- Topic ---- */
.th { margin-bottom: 18px; }
.th h1 { font-size: 26px; font-weight: 700; color: var(--white); overflow-wrap: anywhere; }
.th__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--faint); font-size: 13px; }
.th__meta .ulink { color: var(--text); }
.th__solution { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 32px; align-items: start; }
.tgrid__side { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 12px; }
.card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.card__title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card .btn--block { margin-top: 10px; }
.facts { display: grid; gap: 7px; margin: 0; font-size: 13px; }
.facts div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--white); font-weight: 600; }
.facts .stack img { border-color: var(--card); }
.card--mod { border-style: dashed; border-color: #3a2a2d; }
.modgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modgrid .btn--block, .card--mod form .btn--block { margin-top: 0; }
.modstatus { display: grid; gap: 8px; margin: 10px 0; }
.modstatus label { display: grid; gap: 4px; color: var(--faint); font-size: 12px; }
.modstatus select, .modstatus input { height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--input); }
.card--mod > form:last-child { margin-top: 6px; }

.buginfo { margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.buginfo dl { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; }
.buginfo dt { color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.buginfo dd { margin: 3px 0 0; color: var(--white); font-weight: 600; }
.buginfo h2 { margin: 14px 0 4px; color: var(--muted); font-size: 13px; }
.buginfo__text { color: #d6d6da; }
.buginfo details { margin-top: 12px; }
.buginfo summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
pre.code { margin: 8px 0; padding: 10px 12px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input); font: 12.5px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; }

.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post:target .post__body { animation: flashpost 1.6s ease-out; }
@keyframes flashpost { from { background: #ffffff0f; } to { background: transparent; } }
.post__body { min-width: 0; border-radius: 8px; }
.post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--faint); font-size: 13px; }
.post__head .ulink { font-size: 14px; }
.post__num { margin-left: auto; color: var(--faint); }
.post__text { margin-top: 6px; color: #dcdce0; line-height: 1.7; overflow-wrap: anywhere; }
.post__text a { color: var(--white); text-decoration: underline; text-decoration-color: #55555c; text-underline-offset: 3px; }
.post__text code { padding: 1px 5px; border-radius: 4px; background: var(--hover); color: #e6e6ea; font: 12.5px ui-monospace, Consolas, monospace; }
.post__text pre.code code { padding: 0; background: none; }
.post__text blockquote { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--line2); border-radius: 0 6px 6px 0; background: #ffffff06; color: var(--muted); }
.post__text blockquote strong { color: var(--white); }
.solution { margin-top: 8px; padding: 12px 14px; border: 1px solid #2c5a43; border-radius: 10px; }
.solution__head { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; font-weight: 600; }
.solution .post__text { margin-top: 4px; }
.post__sig { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--faint); font-size: 12.5px; overflow-wrap: anywhere; }
.post__foot { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px 0 0 -8px; }
.post__foot form { margin: 0; }
.act { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--faint); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.act:hover { background: var(--hover); color: var(--white); }
.act.is-on { color: var(--red-soft); }
.act.is-solved { color: var(--green); }
.act--static { cursor: default; }
.act--static:hover { background: none; color: var(--faint); }
.act--danger:hover { color: var(--red-soft); }
.act--icon { margin-left: auto; }

.reply { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-top: 18px; }
.composer { border: 1px solid var(--line2); border-radius: 10px; background: var(--input); overflow: hidden; }
.composer:focus-within { border-color: #4a4a52; }
.composer textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; border: 0; outline: none; background: none; color: var(--text); line-height: 1.6; resize: vertical; }
.composer__bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); }
.composer__bar .btn { margin-left: auto; height: 32px; }
.toolbar { display: flex; gap: 2px; }
.toolbar button { display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--faint); font-size: 12.5px; cursor: pointer; }
.toolbar button:hover { background: var(--hover); color: var(--white); }

/* ---- Forms (new topic, edit, settings) ---- */
.form { display: grid; gap: 18px; padding: 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { padding: 0; color: var(--white); font-weight: 600; font-size: 13.5px; }
.field .toolbar { padding: 4px; border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--input); }
.field .toolbar + textarea { border-radius: 0 0 var(--radius) var(--radius); }
.field textarea { line-height: 1.6; resize: vertical; }
.field--type { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.field--type legend { float: left; width: 100%; margin-bottom: 6px; }
.field--type small { width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--input); font-weight: 600; font-size: 13px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--text); }
.radio input, .check input { accent-color: var(--text); margin: 0; }
.radio.is-disabled { opacity: .4; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.bugfields { display: grid; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff04; }
.bugfields[hidden] { display: none; }
.mono { font: 12.5px/1.55 ui-monospace, Consolas, monospace !important; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form__foot > span { display: flex; gap: 8px; }
.settings__who { display: flex; align-items: center; gap: 14px; }
.settings__who p { margin-top: 2px; font-size: 13px; }

/* ---- Search ---- */
.searchlayout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 32px; align-items: start; }
.results { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.result { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.result__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.result__title { color: var(--white); font-size: 15px; font-weight: 600; }
.result__snippet { margin: 4px 0 6px; color: #cfcfd4; overflow-wrap: anywhere; }
.result mark { padding: 0 2px; border-radius: 3px; background: #ffffff1f; color: var(--white); }
.trow__tags:empty { display: none; }
.filters { position: sticky; top: calc(var(--header) + 20px); }
.filters__body { display: grid; gap: 14px; }

/* ---- Profile ---- */
.profile { display: flex; align-items: flex-start; gap: 20px; padding: 20px; }
.profile__main { flex: 1; min-width: 0; }
.profile h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 22px; color: var(--white); }
.profile .muted { margin: 2px 0 12px; }
.profile__stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.profile__stats dt { color: var(--faint); font-size: 12px; }
.profile__stats dd { margin: 0; color: var(--white); font-weight: 600; }
.profile .post__sig { margin-top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .tgrid, .searchlayout { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
  .tlist__head, .trow { grid-template-columns: 40px minmax(0, 1fr) 64px 76px; }
  .tlist__head span:nth-child(3), .trow .stack { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 56px; }
  .hd { gap: 8px; padding: 0 10px; }
  .hd__burger { display: grid; }
  .brand { width: auto; }
  .brand span { display: none; }
  .search { flex: 1; max-width: none; height: 36px; }
  .search kbd { display: none; }
  .hd__new { width: 36px; padding: 0; }
  .hd__new span { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: var(--header); left: 0; bottom: 0; z-index: 35; width: min(300px, 84vw); height: auto; background: var(--bg); transform: translateX(-100%); transition: transform .2s ease; }
  .side.is-open { transform: none; box-shadow: 20px 0 40px #000a; }
  .side-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--header) 0 0; z-index: 30; background: #0008; }
  .main { padding: 16px 14px 0; }
  .chips { display: flex; gap: 6px; margin: -4px -14px 12px; padding: 0 14px 4px; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 99px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .pagehead { flex-direction: column; align-items: stretch; }
  .pagehead h1, .th h1 { font-size: 21px; }
  .tlist__head { display: none; }
  .trow { grid-template-columns: 34px minmax(0, 1fr) 34px; column-gap: 10px; padding: 12px 2px; }
  .trow__av { width: 34px; height: 34px; }
  .trow__title { font-size: 14.5px; }
  .trow__when { display: none; }
  .trow__mwhen { display: inline; }
  .trow__by, .trow .minipager { display: none; }
  .trow__num small { display: none; }
  .tgrid, .searchlayout { grid-template-columns: 1fr; }
  .tgrid__side, .filters { position: static; }
  .filters { order: -1; }
  .post, .reply { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .post__av { width: 32px; height: 32px; }
  .form { padding: 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .dl { flex-direction: column; align-items: stretch; gap: 10px; }
  .profile { flex-direction: column; }
  .notice--login { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .btn--discord .hide-sm { display: none; }
  .btn--discord .show-sm { display: inline; }
}
@media (max-width: 420px) {
  .post__foot .act span { display: none; }
}

/* ---- Bell, notifications ---- */
.bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); color: var(--muted); }
.bell:hover, .bell.on { background: var(--hover); color: var(--white); }
.bell__n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.nlist, .rlist { margin: 0; padding: 0; list-style: none; }
.nlist { border-top: 1px solid var(--line); }
.nitem a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.nitem a:hover { background: #141416; }
.nitem b { color: var(--white); font-weight: 600; }
.nitem.is-unread a { color: var(--text); }
.nitem__text { flex: 1; min-width: 0; }
.nitem__text small { display: block; color: var(--faint); font-size: 12px; }
.udot--side { margin: 0 0 0 2px; width: 6px; height: 6px; }

/* ---- Reports ---- */
.report { position: relative; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { background: var(--hover); color: var(--white); }
.report__form { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); display: grid; gap: 8px; width: 260px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); box-shadow: 0 16px 40px #000a; }
.report__title { color: var(--white); font-weight: 600; font-size: 13px; }
.report__form input[type="text"] { height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--input); }
.rlist { display: grid; gap: 12px; }
.rcard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); }
.rcard__head a { color: var(--text); }
.rcard__count { margin-left: auto; color: var(--red-soft); font-size: 12.5px; font-weight: 600; }
.rcard__reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rcard__notes { color: var(--muted); font-size: 13px; }
.rcard__body { max-height: 220px; overflow: auto; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--input); }
.rcard__actions { display: flex; gap: 8px; margin-top: 12px; }
.rcard__actions form { margin: 0; }

/* ---- Editor: image, preview ---- */
.toolbar { align-items: center; flex-wrap: wrap; }
.toolbar__sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line2); }
.toolbar button:disabled { opacity: .35; cursor: default; }
.toolbar__preview { gap: 5px; display: inline-flex !important; padding: 0 8px !important; }
.toolbar__preview span { font-size: 12.5px; font-weight: 600; }
.toolbar__preview.is-on { background: var(--hover); color: var(--white); }
.toolbar__status { color: var(--faint); font-size: 12px; margin-left: 4px; }
.preview { min-height: 96px; padding: 12px 14px; margin: 0; border-top: 0; }
.field .preview { border: 1px solid var(--line2); border-radius: 0 0 var(--radius) var(--radius); background: var(--input); }
textarea.is-drop { outline: 2px dashed #6a6a72; outline-offset: -4px; }

/* ---- Post content: images, lists, divider ---- */
.post__img { display: inline-block; margin: 6px 0; text-decoration: none !important; }
.post__img img { display: block; max-width: 100%; max-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); }
.post__text ul, .post__text ol { margin: 6px 0 8px; padding-left: 22px; }
.post__text li { margin: 2px 0; }
.post__text li::marker { color: var(--faint); }
.post__text hr { margin: 14px 0; border: 0; border-top: 1px solid var(--line2); }

/* ---- Empty states ---- */
.empty { display: grid; justify-items: center; gap: 12px; }
.empty__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--muted); }
.empty p { max-width: 460px; }

@media (max-width: 900px) {
  .report__form { left: auto; right: -60px; }
  .toolbar__preview span { display: none; }
}
