/*
 The page's colours, made of one: the theme's background (the user's,
 --base-light / --base-dark, set by theme.js). OKLCH: lightness as the
 eye sees it, so the same steps read the same at every hue. The
 background's lightness is held in a band (the text on it always
 readable whatever colour is picked), its chroma held low (never
 garish); the text is the background's hue at a fixed lightness; muted
 text a mix of the text and the block, not transparency.
*/
:root,
:root.light {
    color-scheme: light;
    --background: oklch(from var(--base-light, #cccccc) clamp(0.78, l, 0.96) min(c, 0.08) h);
    --blockBackground: oklch(from var(--background) calc(l + 0.05) c h);
    --color: oklch(from var(--background) 0.2 min(c, 0.03) h);
    --muted: color-mix(in oklch, var(--color) 54%, var(--blockBackground));
    --link: oklch(from var(--background) 0.45 0.15 250);
}

:root.dark {
    color-scheme: dark;
    --background: oklch(from var(--base-dark, #18191a) clamp(0.14, l, 0.32) min(c, 0.06) h);
    --blockBackground: oklch(from var(--background) calc(l + 0.06) c h);
    --color: oklch(from var(--background) 0.93 min(c, 0.02) h);
    --muted: color-mix(in oklch, var(--color) 62%, var(--blockBackground));
    --link: oklch(from var(--background) 0.78 0.12 250);
}

:root {
    --gap: 16px;
    --width: 960px;
    --radius: 6px;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--color);
    background-color: var(--background);
}

body {
    margin: 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.block {
    background-color: var(--blockBackground);
    border-radius: var(--radius);
}

.text-muted {
    color: var(--muted);
}

/* The top: the logo, the sections, the theme and the sign-in; on a
   phone two rows (the logo and the rest, then the sections' icons). */
.top {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding: 8px var(--gap);
    background-color: var(--blockBackground);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color);
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--muted);
}

.nav a:hover {
    text-decoration: none;
    color: var(--color);
    background-color: var(--background);
}

.nav a[aria-current] {
    color: var(--color);
    background-color: var(--background);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Icons (icons.mjs): the text's colour and size. */
.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* A button that's only its icon (its name its tooltip). */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: none;
    color: var(--muted);
}

.icon-button:hover {
    text-decoration: none;
    color: var(--color);
    background-color: var(--background);
}

/* The theme's and the language's switches: three buttons together, the
   one in use pressed. */
theme-switch,
lang-switch {
    display: inline-flex;
    justify-self: start;
    padding: 2px;
    gap: 2px;
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    background-color: var(--background);
}

theme-switch button,
lang-switch button {
    width: 30px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: none;
    color: var(--muted);
}

theme-switch button:hover,
lang-switch button:hover {
    color: var(--color);
}

theme-switch button[aria-pressed="true"],
lang-switch button[aria-pressed="true"] {
    color: var(--color);
    background-color: var(--blockBackground);
    box-shadow: 0 1px 2px oklch(0 0 0 / 0.25);
}

/* The tooltip (icons.mjs). */
.tip {
    position: fixed;
    z-index: 20;
    max-width: min(280px, calc(100vw - 8px));
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--background);
    background-color: var(--color);
    pointer-events: none;
}

button {
    font: inherit;
    color: inherit;
    background-color: var(--background);
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    padding: 4px 12px;
    cursor: pointer;
}

button:disabled {
    color: var(--muted);
    cursor: default;
}

#page {
    max-width: var(--width);
    margin: 0 auto;
    padding: var(--gap);
}

.games {
    display: grid;
    gap: 8px;
}

.game {
    padding: 10px var(--gap);
}

.theme-form {
    display: grid;
    gap: 8px;
    padding: var(--gap);
    max-width: 320px;
}

.theme-form fieldset {
    border: none;
    padding: 0;
    display: grid;
    gap: 4px;
}

.account {
    display: flex;
    align-items: center;
    gap: 4px;
}

.account .name {
    margin: 0 4px;
}

.account .me {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

/* The bell: its count over it, its list under it. */
.bell-box {
    position: relative;
}

.bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: oklch(0.6 0.2 25);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.bell .badge[hidden] {
    display: none;
}

.notifications {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: min(360px, calc(100vw - 16px));
    max-height: 70vh;
    overflow: auto;
    padding: 6px;
    box-shadow: 0 8px 24px oklch(0 0 0 / 0.35);
}

.notifications[hidden] {
    display: none;
}

.notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
    padding: 2px 4px 8px 6px;
}

.read-all {
    font-size: 0.85em;
    font-weight: normal;
    padding: 2px 8px;
}

.notifications p {
    margin: 6px;
}

.notification {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px;
    border-radius: var(--radius);
    color: inherit;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.notification:hover {
    background: oklch(from var(--link) l c h / 0.1);
}

.notification.unread {
    background: oklch(from var(--link) l c h / 0.15);
}

/* A user's page. */
.profile {
    display: flex;
    gap: var(--gap);
    align-items: center;
    padding: var(--gap);
    margin-bottom: var(--gap);
}

.profile h1 {
    margin: 0;
}

.profile p {
    margin: 4px 0 10px;
}

.profile-avatar {
    border-radius: 50%;
    flex: none;
}

.byline {
    color: inherit;
}

a.mention:hover {
    text-decoration: underline;
}

/* A map's version beside its title. */
.card-head,
.post-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.version {
    font-size: 0.8em;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--link);
    background: oklch(from var(--link) l c h / 0.15);
    font-variant-numeric: tabular-nums;
}

.avatar {
    border-radius: 50%;
}

.button {
    color: inherit;
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    padding: 4px 12px;
}

.button:hover {
    text-decoration: none;
    background-color: var(--background);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.cards {
    display: grid;
    gap: 8px;
    margin-bottom: var(--gap);
}

.card,
.post {
    padding: 10px var(--gap);
}

.card-title {
    font-weight: 600;
    color: var(--color);
    overflow-wrap: anywhere;
}

/* Inline (not flex): its text wraps beside the avatar, not under it. */
.meta {
    font-size: 0.9em;
}

.meta .avatar {
    vertical-align: middle;
    margin-right: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

/* The author's line with the post's actions at its right, as icons. */
.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-row > .meta {
    flex: 1;
    min-width: 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.icon-button.small {
    width: 28px;
    height: 28px;
}

.icon-button.small .icon {
    width: 16px;
    height: 16px;
}

.post-form {
    display: grid;
    gap: 12px;
    padding: var(--gap);
}

/* A thread: answers of answers, each level a line to its left (a click
   on the fold hides a branch). */
/* Folding keeps the post in place itself (keepInPlace): the browser's
   own scroll anchoring off here, so the two don't fight. */
.thread {
    margin-top: var(--gap);
    overflow-anchor: none;
}

.thread > .reply {
    margin-bottom: 8px;
}

.reply {
    position: relative;
}

.reply-body {
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--blockBackground);
    overflow-wrap: anywhere;
}

.reply-body h4 {
    margin: 4px 0;
}

.replies {
    margin-left: 14px;
    padding-left: 12px;
    border-left: 2px solid color-mix(in oklch, var(--muted) 40%, transparent);
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

/* Folded (its own display would show it anyway). */
.replies[hidden] {
    display: none;
}

.replies:hover {
    border-left-color: var(--muted);
}

/* Folded: the chevron turned, how many beside it. */
.icon-button.small.reply-fold {
    width: auto;
    min-width: 28px;
    gap: 3px;
    padding: 0 6px;
    font-size: 0.85em;
}

.reply-fold[aria-expanded="false"] .icon {
    transform: rotate(-90deg);
}

.reply-more {
    display: inline-block;
    margin: 6px 0 0 14px;
}

.reply.just > .reply-body {
    outline: 2px solid var(--link);
}

.post-form.compact {
    margin-top: 8px;
    padding: 10px;
}

.post-form label {
    display: grid;
    gap: 4px;
}

input,
textarea {
    font: inherit;
    color: inherit;
    background-color: var(--background);
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    padding: 6px 8px;
}

button.tag {
    border: none;
    background: none;
    padding: 0;
    color: var(--link, inherit);
    cursor: pointer;
    font: inherit;
}

.narrow {
    margin-bottom: var(--gap);
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px var(--gap);
    margin-bottom: 8px;
}

.grow {
    flex: 1;
}

.tag-edit {
    display: grid;
    gap: 8px;
    padding: var(--gap);
    margin-bottom: 8px;
}

.tag-edit label {
    display: grid;
    grid-template-columns: 9em 1fr;
    align-items: center;
}

.meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.meter-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: var(--background);
    border: 1px solid var(--muted);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background-color: var(--link);
}

.thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
}

.images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.images img {
    max-width: 100%;
    max-height: 320px;
    border-radius: var(--radius);
}

.files {
    display: grid;
    gap: 8px;
    margin-bottom: var(--gap);
}

/* Markdown: a post's text (md-dom.mjs's render). */

.md {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: var(--gap) 0;
}

.md :is(h3, h4, h5) {
    margin: 0.4em 0 0.2em;
}

.md small {
    display: block;
    color: var(--muted);
}

.md blockquote {
    margin: 0.2em 0;
    padding-left: 12px;
    border-left: 4px solid var(--muted);
}

.md :is(ul, ol) {
    margin: 0.2em 0;
    padding-left: 1.5em;
}

.md pre,
.md code,
.md-editor :is(.md-code, .md-codeblock) {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background-color: var(--background);
    border-radius: 4px;
}

.md code {
    padding: 0 4px;
}

.md pre {
    margin: 0.3em 0;
    padding: 8px 10px;
    border: 1px solid var(--muted);
    overflow-x: auto;
}

.md pre code {
    padding: 0;
    background: none;
}

.spoiler {
    background-color: var(--color);
    color: transparent;
    border-radius: 4px;
    cursor: pointer;
}

.spoiler.shown {
    background-color: var(--background);
    color: inherit;
    cursor: auto;
}

.mention,
.md-editor .md-mention,
.md-editor .md-hashtag {
    color: var(--link);
    background-color: oklch(from var(--link) l c h / 0.15);
    border-radius: 4px;
    padding: 0 2px;
}

/* The editor: the text as typed, its marks dimmed, what they mark styled. */

.md-editor {
    min-height: 8em;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background-color: var(--background);
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    padding: 8px 10px;
    outline: none;
    cursor: text;
}

.md-editor:focus {
    border-color: var(--link);
}

.md-editor.empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
    position: absolute;
}

.md-editor .md-mark {
    color: var(--muted);
}

.md-editor .md-bold {
    font-weight: 700;
}

.md-editor .md-italic {
    font-style: italic;
}

.md-editor .md-underline {
    text-decoration: underline;
}

.md-editor .md-strike {
    text-decoration: line-through;
}

.md-editor .md-spoiler {
    background-color: oklch(from var(--color) l c h / 0.15);
    border-radius: 4px;
}

.md-editor :is(.md-link, .md-url) {
    color: var(--link);
}

.md-editor .md-heading {
    font-weight: 700;
}

.md-editor .md-h1 {
    font-size: 1.5em;
}

.md-editor .md-h2 {
    font-size: 1.25em;
}

.md-editor .md-h3 {
    font-size: 1.1em;
}

.md-editor .md-subtext {
    font-size: 0.85em;
    color: var(--muted);
}

.md-editor .md-quote {
    border-left: 4px solid var(--muted);
    padding-left: 8px;
}

.md-editor .md-code {
    padding: 0 2px;
}

.md-editor .md-codeblock {
    display: inline-block;
    min-width: 100%;
    box-sizing: border-box;
    padding: 2px 6px;
}

.post-form .label {
    display: grid;
    gap: 4px;
}

/* What `#` and `@` offer in the editor (Discord's list). */

.md-complete {
    position: fixed;
    z-index: 10;
    width: min(300px, calc(100vw - 16px));
    max-height: 260px;
    overflow-y: auto;
    background-color: var(--blockBackground);
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: 0 4px 16px oklch(0 0 0 / 0.3);
}

.md-complete-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.md-complete-item.chosen,
.md-complete-item:hover {
    background-color: var(--background);
}

.md-complete-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.md-complete-item .hint {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.85em;
}

/* Phones and narrow windows. */

@media (max-width: 860px) {
    /* The top's right on one line: the switches and gaps narrower. */
    .top-right {
        gap: 2px;
    }

    theme-switch button,
    lang-switch button {
        width: 26px;
    }

    .profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .account .name,
    .top .label {
        display: none;
    }
}

@media (max-width: 600px) {
    :root {
        --gap: 12px;
    }

    .top {
        flex-wrap: wrap;
        row-gap: 4px;
        padding: 6px 8px;
    }

    .logo .label {
        display: inline;
    }

    /* The sections a row of their own, across. */
    .nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }

    .nav a {
        padding: 8px 14px;
    }

    #page {
        padding: var(--gap) 8px;
    }

    h1 {
        font-size: 1.5em;
    }

    .card,
    .post,
    .post-form {
        padding: 10px;
    }

    .replies {
        margin-left: 4px;
        padding-left: 8px;
    }

    .page-head {
        flex-wrap: wrap;
    }

    .row {
        flex-wrap: wrap;
    }

    .tag-edit label {
        grid-template-columns: 1fr;
    }

    .md-editor {
        max-height: 50vh;
    }

    /* Big enough to touch. */
    button,
    .button {
        min-height: 36px;
    }
}

/* A map's pictures: in its post the preview and the minimap side by
   side; in a list its preview (else minimap) beside the card. */

.map-pictures {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.map-picture {
    margin: 0;
    flex: 0 1 256px;
    min-width: 0;
}

.map-picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius);
    background-color: var(--background);
}

.map-picture figcaption {
    font-size: 0.85em;
    text-align: center;
    margin-top: 4px;
}

.card.with-thumb {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 12px;
    align-items: start;
}

.card.with-thumb > :not(.card-thumb) {
    grid-column: 2;
}

.card-thumb {
    grid-row: 1 / span 3;
}

.card-thumb img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .map-picture {
        flex-basis: calc(50% - 6px);
    }
}

/* A post's elements in the editor (<title>, <tags> …): their tags
   dimmed (.md-mark), what they say as it means. */

.md-editor .md-meta-title {
    font-weight: 700;
    font-size: 1.2em;
}

.md-editor .md-meta-tags {
    color: var(--link);
}

.md-editor :is(.md-meta-reply, .md-meta-files, .md-meta-preview, .md-meta-minimap) {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    color: var(--muted);
}

.post-help code {
    font-size: 0.9em;
    white-space: nowrap;
}

/* Files dragged over the editor. */
.md-editor.dropping {
    border-style: dashed;
    border-color: var(--link);
    background-color: oklch(from var(--link) l c h / 0.08);
}

lang-switch button {
    font-size: 12px;
    font-weight: 600;
}

/* The narrowest phones (360 px): the top's icons narrower too. */
@media (max-width: 380px) {
    .top-right .icon-button {
        width: 30px;
    }
}

/* A reply ends with its text: no margin under its last paragraph. */
.reply-body > :last-child,
.reply-body > :last-child > :last-child {
    margin-bottom: 0;
}

/* Asking before deleting (confirm.mjs): slides out under what's to go,
   in the "danger" colours, unlike any block whatever the page's colours:
   its hue fixed (red), its lightness the theme's. */
:root {
    --danger: oklch(from var(--background) clamp(0.5, calc(1.15 - l), 0.72) 0.19 25);
}

.confirm {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}

.confirm.shown {
    grid-template-rows: 1fr;
    opacity: 1;
    margin: 6px 0 8px;
}

.confirm-inner {
    overflow: hidden;
    display: grid;
    gap: 6px;
    padding: 0 14px;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in oklch, var(--danger) 7%, transparent) 10px 20px),
        color-mix(in oklch, var(--danger) 16%, var(--blockBackground));
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--danger) 55%, transparent);
}

.confirm.shown .confirm-inner {
    padding: 10px 14px;
}

.confirm-question {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.confirm-details,
.confirm-error {
    margin: 0;
    font-size: 0.9em;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.confirm-error {
    color: var(--danger);
}

.confirm-buttons {
    display: flex;
    gap: 8px;
}

button.danger {
    border-color: var(--danger);
    background-color: var(--danger);
    color: oklch(0.99 0 0);
}

button.danger:hover {
    background-color: oklch(from var(--danger) calc(l - 0.06) c h);
}

/* What's asked about: outlined in the same colour meanwhile. */
.confirming {
    box-shadow: 0 0 0 1px var(--danger);
}

@media (prefers-reduced-motion: reduce) {
    .confirm {
        transition: none;
    }
}

/* A replaced version's badge: dimmed, the newest after its arrow. */
.version.old {
    opacity: 0.7;
    font-weight: 500;
}

/* The VS Code extension in the menu: set apart (its own blue), it's how
   maps are made and published. */
.nav a.vscode {
    color: oklch(0.62 0.15 245);
    box-shadow: inset 0 0 0 1px color-mix(in oklch, oklch(0.62 0.15 245) 55%, transparent);
}

.nav a.vscode:hover {
    color: var(--color);
    background-color: color-mix(in oklch, oklch(0.62 0.15 245) 22%, transparent);
}

/* The top's links and buttons on one line each. */
.nav a,
.top-right a,
.top-right button {
    white-space: nowrap;
}

/* Laptops: the top on one line, the sections' names off (their icons
   and tooltips stay, as on a phone), VS Code's kept. */
@media (min-width: 861px) and (max-width: 1299px) {
    .nav a:not(.vscode) .label,
    .top-right .label {
        display: none;
    }
}

/* Narrow laptops: the account's name off too (the avatar stays). */
@media (min-width: 861px) and (max-width: 979px) {
    .account .name {
        display: none;
    }
}

/* An author's page: their profiles a row of buttons. */
.author {
    padding: var(--gap);
}

.author h1 {
    margin-top: 0;
}

.author .profiles {
    flex-wrap: wrap;
    margin-left: 0;
    gap: 8px;
}

a.credit {
    color: inherit;
    font-weight: 600;
}

/* The authors' table's form: who a name is. */
.author-edit {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: var(--gap);
}

.author-edit label {
    display: grid;
    gap: 4px;
}

.author-edit h3 {
    margin: 0;
}

/* An answer's proposals to the post it answers, each with its state. */
.proposals {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    padding: 8px 10px;
    border-left: 3px solid var(--link);
    background: color-mix(in srgb, currentColor 5%, transparent);
    border-radius: 6px;
}

.proposal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proposal .what {
    flex: 1;
}

.proposal .votes {
    display: inline-flex;
    gap: 6px;
}

/* A vote: its icon and how many; the user's own marked. */
.proposal .vote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: .9em;
}

.proposal .vote.mine {
    border-color: var(--link);
    color: var(--link);
}

.proposal.rejected > span:first-child {
    text-decoration: line-through;
    opacity: .6;
}

/* A user's rights: their name, then a box for each right (wrapping). */
.rights-row {
    flex-wrap: wrap;
}

.rights-boxes {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.rights-boxes label {
    white-space: nowrap;
}

/* An edit's conflict: the post as it is now, and the choice. */
.conflict:not(:empty) {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
}

.conflict pre.current {
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
}
