:root {
    color-scheme: dark;
    --background: #101019;
    --surface: #1a1a27;
    --border: #353449;
    --text: #f6f3fb;
    --muted: #c3bdce;
    --accent: #d6c2ff;
    font-family: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(ellipse at 85% 0, #302047 0, transparent 58%) var(--background);
}
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid #e0ccff; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-200%); padding: .75rem; background: var(--surface); }
.skip:focus { transform: none; z-index: 2; }
.shell { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--border); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; min-height: 4rem; gap: .45rem 1rem; padding-block: .55rem; }
.top nav > a:nth-child(2) { margin-inline-start: auto; }
.brand { font-weight: 800; letter-spacing: .12em; color: var(--text); text-decoration: none; }
.intro { margin-block: clamp(2rem, 6vw, 4rem) 2rem; }
.intro h1 { font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1; margin: 0 0 .8rem; letter-spacing: -.06em; }
.intro p { max-width: 52ch; line-height: 1.6; }
p, .hint, small { color: var(--muted); }
.wall-layout { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.45rem); }
h2 { font-size: 1.2rem; margin: 0; }
h3 { margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.compose h2 { margin-bottom: .95rem; }
form { margin: 0; }
label { display: block; margin-block: .8rem .33rem; font-weight: 600; }
label small { font-weight: 400; }
input, textarea, button { font: inherit; }
input, textarea { display: block; width: 100%; border: 1px solid #5e5972; color: var(--text); background: #13131f; padding: .66rem .75rem; border-radius: .5rem; }
textarea { resize: vertical; line-height: 1.5; }
button { background: transparent; border: 1px solid #645b78; color: var(--accent); padding: .53rem .78rem; border-radius: .5rem; cursor: pointer; }
button:hover { border-color: var(--accent); }
.primary { margin-top: .75rem; font-weight: 650; background: var(--accent); color: #171023; border-color: transparent; }
.primary:hover { background: #eadfff; }
.hint { display: block; margin: .45rem 0; font-size: .84rem; }
.notice { padding: .8rem 1rem; border-radius: .65rem; background: #24283b; color: #e0e6ff; }
.notice.error { background: #41243e; color: #ffdaed; }
.threads-head, .topic-head { display: flex; justify-content: space-between; align-items: start; gap: .75rem; }
.threads-head { margin-bottom: .65rem; }
.threads-head span, .pin-label { color: var(--accent); font-size: .8rem; }
.topic { margin-bottom: .9rem; scroll-margin-top: 1rem; }
.topic.pinned { border-color: #8c70be; }
.pin-label { display: block; margin-bottom: .3rem; }
.topic { min-width: 0; }
.points { padding-left: 1.2rem; margin-block: .95rem; color: var(--text); line-height: 1.55; }
.points li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.points li::marker { color: var(--accent); }
.add-point { margin-top: .85rem; }
summary { cursor: pointer; color: var(--accent); }
.empty { margin: 0; }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.wall-footer { margin-block: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: .9rem; }
.moderation { max-width: 28rem; }
.moderation button { margin-top: .85rem; }
.danger { color: #ffbdcf; font-size: .85rem; }
.moderate-thread { margin-top: .95rem; }
.moderate-point { display: inline-block; margin-left: .5rem; }
@media (max-width: 720px) {
    .wall-layout { grid-template-columns: minmax(0, 1fr); }
}

