@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --canvas: #11101a;
  --panel: #181724;
  --panel-alt: #1b1928;
  --heading: #211f31;
  --line: #2b2839;
  --text: #f1effa;
  --muted: #b1acc5;
  --accent: #c4b6ff;
  --ink: #221941;
  --lilac: #c7b7ff;
  --blue: #a6c4ff;
  --mint: #92e0c7;
  --peach: #fcc891;
  --pink: #f4add5;
  font: 100%/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 6px 10px; background: var(--accent); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }

.top { position: sticky; top: 0; z-index: 2; background: #151420; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; min-height: 62px; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 31px; height: 31px; flex-shrink: 0; }
.bar nav { display: flex; align-self: stretch; gap: 21px; margin-left: 19px; }
.bar nav a { display: flex; align-items: center; border-block: 1px solid transparent; color: var(--muted); font-size: .9rem; }
.bar nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.account { display: flex; gap: 6px; align-items: center; }
.account-name { display: flex; align-items: center; gap: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.account-name > span:last-child { max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .avatar { width: 24px; height: 24px; font-size: .7rem; flex-shrink: 0; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #514961; border-radius: 4px; background: #29253c; color: var(--text); font-size: .85rem; font-weight: 700; }
.avatar.staff { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; max-width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; font-size: .875rem; font-weight: 620; line-height: 1.25; text-align: center; }
.button:hover { text-decoration: none; }
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: #d8ceff; }
.quiet { background: var(--panel-alt); border-color: var(--line); color: var(--text); }
.account-link { background: transparent; color: var(--text); }
.account-link:hover { color: var(--accent); }
.quiet:hover, .button.text:hover { background: #2d283e; }
.button.text { min-height: 32px; color: var(--accent); background: transparent; }
.button.danger { color: #ffabad; }

main { padding-block: 25px 28px; }
main:focus { outline: none; }
.board-directory { margin-bottom: 27px; }
.feed-head h2 { font-size: 1.3rem; font-weight: 680; }
.feed { min-width: 0; scroll-margin-top: 74px; }
.feed:focus { outline: none; }
.forum-stats { display: flex; flex-wrap: wrap; gap: 5px 18px; padding-top: 11px; color: var(--muted); font-size: .82rem; }
.forum-stats div { display: flex; gap: 5px; }
.forum-stats dd { color: var(--text); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.feed-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.feed-head h1, .page-head h1, .topic-heading h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 690; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feed-head p { padding-top: 3px; color: var(--muted); font-size: .9rem; }
.feed-head .button, .page-head .button { flex-shrink: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; margin-bottom: 7px; }
.topic-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; min-width: 0; }
.sort { display: flex; flex-wrap: wrap; column-gap: 12px; }
.sort button { min-height: 32px; padding: 1px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .875rem; }
.sort button:hover { color: var(--text); }
.sort button[aria-pressed='true'] { border-bottom-color: var(--accent); color: var(--accent); }
.search-shell { position: relative; margin-left: auto; }
.search-toggle { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
.search-toggle:hover, .search-toggle[aria-expanded='true'] { background: var(--heading); color: var(--accent); }
.search { position: absolute; inset-block-start: calc(100% + 7px); inset-inline-end: 0; display: flex; gap: 6px; width: min(310px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 22px #08070e75; }
.search input { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--text); font-size: .875rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search .button { flex-shrink: 0; }
.search-icon { position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; margin: 0 3px 3px 0; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; top: 8px; left: 8px; border-radius: 1px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }

.topic-list { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.topic-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; }
.topic-table th { background: #1c1a2a; color: var(--muted); padding: 8px 13px; font-size: .81rem; font-weight: 570; }
.topic-table th:first-child { border-top-left-radius: 8px; }
.topic-table th:last-child { border-top-right-radius: 8px; }
.topic-table .row-section { width: 161px; }
.topic-table .reply-count { width: 79px; text-align: center; }
.topic-table .activity { width: 128px; text-align: right; }
.topic-row td { padding: 9px 13px; border-top: 1px solid var(--line); vertical-align: middle; }
.topic-row:is(:hover, :focus-within) { background: #211e31; }
.topic-row:last-child td:first-child { border-bottom-left-radius: 8px; }
.topic-row:last-child td:last-child { border-bottom-right-radius: 8px; }
.topic-title { font-weight: 650; font-size: 1rem; overflow-wrap: anywhere; }
.topic-title a:hover { color: var(--accent); }
.topic-title-line, .topic-labels { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; }
.topic-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--label-color) 45%, var(--panel));
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--label-color);
  background: color-mix(in srgb, var(--label-color) 13%, var(--panel));
  font-size: .8rem;
  font-weight: 640;
  line-height: 1.45;
}
.label-crack { --label-color: #f4a8b1; }
.label-dump { --label-color: #add0ff; }
.label-function { --label-color: #dbc4ff; }
.label-undetect { --label-color: #9de5c9; }
.label-detect { --label-color: #f8ca92; }
a.topic-label:hover, button.topic-label:hover { background: color-mix(in srgb, var(--label-color) 24%, var(--panel)); }
.tag-menu { position: relative; flex: 0 0 auto; margin-left: auto; }
.tag-menu summary { min-height: 32px; gap: 7px; padding: 4px 9px; cursor: pointer; list-style: none; }
.tag-menu summary::-webkit-details-marker { display: none; }
.tag-menu summary .topic-label { border: 0; background: transparent; padding: 0; font: inherit; }
.filter-chevron { width: 6px; height: 6px; margin: -3px 1px 0 0; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); color: var(--muted); }
.tag-options { position: absolute; inset: calc(100% + 5px) 0 auto auto; z-index: 1; display: grid; min-width: 146px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-alt); box-shadow: 0 8px 22px #08070e75; }
.tag-options button { min-height: 33px; padding: 4px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: .875rem; }
.tag-options button:is(:hover, [aria-pressed='true']) { background: #2b263e; }
.label-picker { min-width: 0; margin: 0; padding: 5px 7px 8px; border: 1px solid var(--line); border-radius: 4px; }
.label-picker legend { padding: 0 4px; font-size: .9rem; font-weight: 620; }
.label-picker .topic-label { min-height: 32px; cursor: pointer; }
.label-picker input { margin: 0; accent-color: var(--label-color); }
.row-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 3px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.row-status { color: var(--accent); font-size: .76rem; }
.tag { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: .875rem; }
.section-indicator { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 1px; background: var(--hue, var(--muted)); }
.lilac { --hue: var(--lilac); }
.blue { --hue: var(--blue); }
.mint { --hue: var(--mint); }
.peach { --hue: var(--peach); }
.pink { --hue: var(--pink); }
.reply-count, .activity { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.mobile-section, .mobile-activity { display: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 15px; color: var(--muted); font-size: .875rem; }
.empty { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 22px 13px; }
.empty h2 { font-size: 1.05rem; }
.empty .button, .empty p { margin-top: 10px; }
.error-page { margin: 0 auto; max-width: 680px; }
.loading { color: var(--muted); }

.topic-row .directory-cell { padding: 0; }
.directory-link { display: grid; grid-template-columns: 32px minmax(135px, 20%) minmax(0, 1fr); align-items: center; gap: 9px; min-height: 55px; padding: 6px 13px; border-radius: 5px; }
.directory-mark { display: grid; place-items: center; height: 28px; width: 28px; border-radius: 7px; color: var(--hue); background: color-mix(in srgb, var(--hue) 11%, var(--panel)); }
.directory-mark::after { content: ''; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.section-name { font-size: 1rem; font-weight: 620; }
.section-description { color: var(--muted); font-size: .875rem; }
.directory-link:hover { text-decoration: none; }
.directory-link:hover .section-name { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.directory-link:focus-visible { outline-offset: -3px; }

.topic-page { max-width: 960px; margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .875rem; }
.crumbs a, .footer a { color: var(--accent); }
.topic-heading { margin: 11px 0 16px; }
.meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.post { display: grid; grid-template-columns: 138px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 9px; background: var(--panel); margin-bottom: 10px; }
.post-info { display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 15px 12px; border-right: 1px solid var(--line); border-radius: 8px 0 0 8px; background: var(--panel-alt); overflow-wrap: anywhere; }
.post-info .avatar { flex-shrink: 0; }
.role { display: block; color: var(--accent); font-size: .8rem; }
.post-time { margin: 0 15px; padding: 9px 0 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.post-body { padding: 12px 15px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions, .moderation { display: flex; flex-wrap: wrap; gap: 5px; }
.post-actions { padding: 0 7px 6px; }
.moderation { margin-top: 8px; }
.replies { margin-top: 16px; }
.replies h2 { margin-bottom: 7px; font-size: 1.09rem; }
.replies h2 span { margin-left: 3px; color: var(--muted); font-size: .9rem; }
.locked, .compose { margin-top: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.locked { color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; gap: 5px 16px; padding: 12px 0 18px; border-top: 1px solid var(--line); font-size: .83rem; }
dialog { width: min(490px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 15px; border: 1px solid #514765; border-radius: 5px; color: var(--text); background: var(--panel); }
dialog::backdrop { background: #0a0810c9; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 1.23rem; }
.close { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--heading); font-size: 1.25rem; line-height: 1; }
.form { display: grid; gap: 10px; }
.field { display: grid; gap: 3px; font-size: .9rem; font-weight: 620; }
.field input, .field textarea, .field select, .section-picker { width: 100%; min-width: 0; min-height: 35px; padding: 5px 7px; border: 1px solid #443b56; border-radius: 4px; color: var(--text); background: var(--canvas); font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; }
.section-picker { width: auto; max-width: 100%; min-height: 32px; border-radius: 6px; font-size: .875rem; background-color: var(--panel-alt); }
.field select, .section-picker { appearance: none; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: right 12px center, right 7px center; background-size: 5px 5px; background-repeat: no-repeat; }
.form-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.form-error { color: #ffabad; font-size: .9rem; }
.form-error:empty { display: none; }
.hint { font-size: .84rem; }
.toast { position: fixed; bottom: 12px; right: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 8px 11px; border: 1px solid #655389; border-radius: 4px; background: #2c2440; }

@media (max-width: 875px) {
  .wrap { width: calc(100% - 32px); }
  .topic-table .row-section { width: 139px; }
  .topic-table .reply-count { width: 62px; }
  .topic-table .activity { width: 92px; }
  .topic-row td, .topic-table th { padding-inline: 7px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 24px); }
  main { padding-block: 14px 25px; }
  .bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 3px 6px; padding: 7px 0 0; }
  .brand { justify-self: start; }
  .bar nav { grid-area: 2 / 1 / 3 / -1; gap: 16px; margin-left: 0; }
  .bar nav a { min-height: 37px; font-size: .8125rem; }
  .account { grid-area: 1 / 3; justify-self: end; gap: 3px; }
  .account .button { padding-inline: 5px; font-size: .8rem; }
  .account-name .avatar { display: none; }
  .account-name > span:last-child { max-width: 11ch; }
  .search-shell { grid-area: 1 / 2; position: static; }
  .search { width: min(310px, 100%); }
  .search input { font-size: 1rem; }
  .feed { scroll-margin-top: 91px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-info { flex-direction: row; align-items: center; padding: 8px 10px; border-right: 0; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); }
  .post-info .avatar { width: 30px; height: 30px; }
  .topic-table .row-section, .topic-table .activity { display: none; }
  .topic-table .reply-count { width: 77px; }
  .topic-table th.reply-count { border-top-right-radius: 8px; }
  .topic-row:last-child td.reply-count { border-bottom-right-radius: 8px; }
  .directory-list .reply-count { width: 57px; }
  .directory-link { grid-template-columns: 25px minmax(0, 1fr); gap: 1px 6px; padding: 7px 8px; }
  .directory-mark { width: 23px; height: 23px; align-self: start; grid-row: span 2; }
  .section-description { font-size: .82rem; }
  .mobile-section { display: block; margin-top: 2px; }
  .mobile-section .tag { font-size: .8rem; }
  .mobile-activity { display: block; font-size: .72rem; margin-top: 3px; }
  .topic-title { font-size: .94rem; }

}
