/* Scoped to the forum. Colours, spacing, radii and motion come from the active Flute theme through the
   Elysium tokens; topic kinds and statuses use the shared semantic colours */
.ef-page {
    --ef-gap: var(--elysium-space-lg, 1rem);
    --ef-pad: var(--elysium-space-xl, 1.5rem);
    --ef-text: var(--elysium-color-text, var(--text));
    --ef-muted: var(--elysium-color-muted, var(--text-muted));
    --ef-accent: var(--elysium-color-accent, var(--accent));
    --ef-on-accent: var(--elysium-color-on-accent, var(--background));
    --ef-panel: var(--elysium-color-surface, var(--secondary));
    --ef-raised: var(--elysium-color-surface-raised, var(--ef-panel));
    --ef-sunken: color-mix(in srgb, var(--elysium-color-background, var(--background)) 72%, transparent);
    --ef-line: var(--elysium-color-border, var(--transp-2));
    --ef-line-soft: color-mix(in srgb, var(--ef-line) 55%, transparent);
    --ef-hover: color-mix(in srgb, var(--ef-text) 4%, transparent);
    --ef-radius: var(--elysium-radius-md, .75rem);
    --ef-radius-lg: var(--elysium-radius-lg, 1rem);
    --ef-ease: var(--elysium-motion-ease-out, ease-out);
    --ef-mono: var(--elysium-type-mono, ui-monospace, monospace);
    --ef-small: var(--elysium-type-small, .8125rem);
    --ef-sticky-top: calc(var(--site-header-bottom, 4.5rem) + 5.5rem);
    color: var(--ef-text);
    line-height: 1.5;
}
.ef-page *, .ef-page *::before, .ef-page *::after { box-sizing: border-box; }
.ef-page [hidden] { display: none; }
/* The shared .elysium-ui sheet gives headings and paragraphs a bottom margin and can be linked after this one,
   so the reset outweighs it; spacing inside the forum comes from gaps */
.ef-page.elysium-ui :is(h1, h2, h3, p) { margin: 0; }
.ef-page :where(form, dl, dd, blockquote, figure) { margin: 0; }
/* The theme sets a tall line-height on bare text elements */
.ef-page :where(a, button, summary, p, small, li) { line-height: inherit; }
.ef-page :where(a, span, p, h1, h2, h3, dd, dt, small, strong) { overflow-wrap: anywhere; }
.ef-page a { color: inherit; text-decoration: none; }
.ef-page a:hover { color: var(--ef-accent); }
.ef-page :where(button, summary, a):focus-visible { outline: 2px solid var(--ef-accent); outline-offset: 3px; }
.ef-page svg { flex: none; }
/* Icons are Lucide strokes: the line keeps 1.75px on screen at every size (2px on the larger ones), and an
   icon is never drawn smaller than 16px, so it does not break up on an ordinary monitor */
.ef-page svg[stroke] { fill: none; }
.ef-page svg[stroke] :is(path, circle, rect, line, polyline, polygon, ellipse) { vector-effect: non-scaling-stroke; stroke-width: var(--ef-stroke, 1.75px); }
.ef-page .ef-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Topic kinds and status tones: the word always names the state, colour only supports it */
.ef-page [data-ef-kind] { --ef-kind-color: var(--elysium-color-success); }
.ef-page [data-ef-kind="suggestion"] { --ef-kind-color: var(--elysium-color-gold); }
.ef-page [data-ef-kind="bug"] { --ef-kind-color: var(--elysium-color-error); }
.ef-tone--neutral { --ef-tone: var(--ef-muted); }
.ef-tone--info { --ef-tone: var(--elysium-color-info); }
.ef-tone--success { --ef-tone: var(--elysium-color-success); }
.ef-tone--warning { --ef-tone: var(--elysium-color-warning); }
.ef-tone--error { --ef-tone: var(--elysium-color-error); }
.ef-tone--muted { --ef-tone: color-mix(in srgb, var(--ef-muted) 70%, transparent); }
/* Statuses that need a hue of their own take it from the shared palette or a mix of two semantic colours */
.ef-tone--violet { --ef-tone: var(--elysium-color-restricted, #8847ff); }
.ef-tone--teal { --ef-tone: color-mix(in oklab, var(--elysium-color-success) 55%, var(--elysium-color-info)); }
.ef-tone--orange { --ef-tone: color-mix(in oklab, var(--elysium-color-warning) 50%, var(--elysium-color-error)); }
.ef-page {
    --ef-plus: var(--elysium-color-success);
    --ef-minus: var(--elysium-color-error);
    --ef-hot: color-mix(in oklab, var(--elysium-color-error) 55%, var(--elysium-color-warning));
    --ef-popular: color-mix(in oklab, var(--elysium-color-classified, #d32ce6) 70%, var(--ef-text));
    --ef-important: var(--elysium-color-gold, var(--elysium-color-warning));
}

/* Section header. It is the theme's page header: with the capsule navbar the theme turns the surface into a
   drawer or a second tier of the bar (its rules win over these); with other navbars it stays this panel */
.ef-header { padding-top: var(--elysium-space-2xl, 2rem); }
html[data-nav-style="capsule"]:is([data-page-header-style="drawer"], [data-page-header-style="capsule"]) .ef-header__frame {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}
.ef-header__surface {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .625rem var(--ef-gap);
    padding: .625rem .625rem .625rem 1.25rem;
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-panel);
}
.ef-header__brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ef-header__icon {
    display: grid;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--ef-accent) 24%, transparent);
    border-radius: .75rem;
    background: color-mix(in srgb, var(--ef-accent) 11%, transparent);
    color: var(--ef-accent);
}
.ef-header__icon[data-ef-kind] { border-color: color-mix(in srgb, var(--ef-kind-color) 26%, transparent); background: color-mix(in srgb, var(--ef-kind-color) 11%, transparent); color: var(--ef-kind-color); }
.ef-header__icon svg { width: 1.375rem; height: 1.375rem; }
.ef-page a.ef-header__title:hover { color: var(--ef-accent); }
.ef-header__copy { min-width: 0; }
.ef-page.elysium-ui .ef-header__title { display: block; margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.ef-crumbs ol { display: flex; flex-wrap: wrap; gap: .125rem .375rem; margin: .125rem 0 0; padding: 0; color: var(--ef-muted); font-size: var(--ef-small); list-style: none; }
.ef-crumbs li { display: inline-flex; gap: .375rem; min-width: 0; }
.ef-crumbs li + li::before { content: "/"; opacity: .5; }
.ef-page .ef-crumbs a:hover { color: var(--ef-text); }
.ef-crumbs [aria-current] { max-width: 34ch; overflow: hidden; color: var(--ef-text); text-overflow: ellipsis; white-space: nowrap; }
.ef-header__end { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: .5rem; min-width: 0; }
.ef-searchbar {
    position: relative;
    display: flex;
    flex: 0 1 22.5rem;
    align-items: center;
    min-width: 0;
    height: 3rem;
    border: 1px solid var(--ef-line-soft);
    border-radius: .9375rem;
    background: var(--ef-sunken);
    transition: flex-basis var(--elysium-motion-slow, .32s) var(--ef-ease), border-color .2s ease, box-shadow .2s ease;
}
.ef-searchbar:focus-within { outline: none; }
.ef-searchbar button { position: absolute; z-index: 1; inset-block: 0; left: 0; display: grid; width: 2.875rem; place-items: center; padding: 0; border: 0; background: none; color: var(--ef-muted); cursor: pointer; }
.ef-searchbar button:hover { color: var(--ef-text); }
.ef-searchbar svg { width: 1.25rem; height: 1.25rem; }
.ef-searchbar input { width: 100%; height: 100%; padding: 0 .875rem 0 2.875rem; border: 0; outline: 0; background: none; color: var(--ef-text); font: inherit; }
.ef-searchbar input::placeholder { color: color-mix(in srgb, var(--ef-muted) 80%, transparent); }
.ef-page .ef-searchbar input:focus-visible { outline: 0; }
.ef-page :is(.ef-header__create, .ef-header__action) { flex: none; min-height: 3rem; border-radius: .9375rem; }

/* Shared pieces. Separators between words are spacing, never a printed dot */
.ef-page { --ef-spring: cubic-bezier(.16, .84, .24, 1); --ef-row-gap: 1.125rem; }
.ef-main { display: grid; gap: var(--ef-pad); padding-block: var(--elysium-space-2xl, 2rem) var(--elysium-space-3xl, 3rem); }
.ef-main > * { min-width: 0; }
.ef-page.elysium-ui h1 { font-size: var(--elysium-type-title, clamp(1.75rem, 3vw, 2.75rem)); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.ef-page h2 { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.ef-page h3 { font-size: 1rem; line-height: 1.35; }
.ef-page .ef-panel { min-width: 0; border: 1px solid var(--ef-line); border-radius: var(--ef-radius-lg); background: var(--ef-panel); }
.ef-meta, .ef-muted, .ef-empty { color: var(--ef-muted); }
.ef-meta { font-size: var(--ef-small); line-height: 1.45; }
.ef-page .ef-label { color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-page .ef-panel > .ef-empty, .ef-page .ef-activity__panel > .ef-empty { padding: 1rem var(--ef-pad) 1.25rem; }
.ef-page .ef-user { color: var(--ef-role-ink, var(--ef-role, var(--ef-text))); font-weight: 700; }
.ef-page a.ef-user:hover { color: var(--ef-role-ink, var(--ef-role, var(--ef-accent))); text-decoration: underline; text-underline-offset: 3px; }
/* A name keeps its role's hue but never its darkness: a deep role colour is lifted on the dark theme and
   lowered on the light one, so the name stays readable on the panel */
@supports (color: oklch(from red max(l, .5) c h)) {
    .ef-page [style*="--ef-role"] { --ef-role-ink: oklch(from var(--ef-role) max(l, .74) c h); }
    :root[data-theme="light"] .ef-page [style*="--ef-role"] { --ef-role-ink: oklch(from var(--ef-role) min(l, .5) c h); }
}
.ef-by, .ef-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; }
.ef-by { gap: .375rem; }
.ef-avatar { display: inline-block; flex: none; width: 2rem; height: 2rem; object-fit: cover; border-radius: 50%; background: var(--ef-raised); }
.ef-avatar--xs { width: 1.25rem; height: 1.25rem; }
.ef-avatar--sm { width: 1.875rem; height: 1.875rem; }
.ef-avatar--lg { width: 2.75rem; height: 2.75rem; }
.ef-avatar--xl { width: 4rem; height: 4rem; border-radius: 1.1875rem; }
.ef-avatar--xxl { width: 7rem; height: 7rem; border-radius: 1.875rem; }
/* The kind of a section or a topic: its icon on a tile tinted with the kind's colour */
.ef-kind { display: grid; flex: none; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid color-mix(in srgb, var(--ef-kind-color) 28%, transparent); border-radius: .875rem; background: color-mix(in srgb, var(--ef-kind-color) 11%, transparent); color: var(--ef-kind-color); }
.ef-kind svg { width: 1.375rem; height: 1.375rem; }
.ef-kind--xs { width: 1.875rem; height: 1.875rem; border-radius: .5625rem; }
.ef-kind--xs svg, .ef-kind--sm svg { width: 1rem; height: 1rem; }
.ef-kind--sm { width: 2.25rem; height: 2.25rem; border-radius: .6875rem; }
.ef-kind--lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.ef-kind--lg svg { width: 1.625rem; height: 1.625rem; }

/* Badges: a status, a topic type, a placement or an earned mark. One outlined shape, the tone draws the
   border and the icon, the word always names the state */
.ef-status, .ef-type, .ef-flag-tag, .ef-mark {
    --ef-badge: var(--ef-tone, var(--ef-muted));
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 1.75rem;
    padding: 0 .5rem 0 .375rem;
    border: 1px solid color-mix(in srgb, var(--ef-badge) 45%, transparent);
    border-radius: .4375rem;
    background: color-mix(in srgb, var(--ef-badge) 8%, transparent);
    color: var(--ef-text);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.ef-status svg, .ef-type svg, .ef-flag-tag svg, .ef-mark svg { width: 1rem; height: 1rem; color: var(--ef-badge); }
.ef-type { --ef-badge: var(--ef-kind-color); }
.ef-type[data-ef-informational] { --ef-badge: var(--elysium-color-info); }
.ef-flag-tag { --ef-badge: var(--ef-muted); }
.ef-flag-tag--pinned { --ef-badge: var(--elysium-color-info); }
.ef-flag-tag--important { --ef-badge: var(--ef-important); }
.ef-mark { --ef-badge: var(--ef-hot); }
.ef-mark--popular { --ef-badge: var(--ef-popular); }
.ef-role { display: inline-flex; align-items: center; gap: .375rem; min-height: 1.5rem; padding: 0 .5rem 0 .4375rem; border: 1px solid color-mix(in srgb, var(--ef-role, var(--ef-muted)) 38%, transparent); border-radius: .4375rem; background: color-mix(in srgb, var(--ef-role, var(--ef-muted)) 10%, transparent); color: color-mix(in srgb, var(--ef-role, var(--ef-accent)) 45%, var(--ef-text)); font-size: .75rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.ef-role::before { content: ""; flex: none; width: .375rem; height: .375rem; border-radius: 50%; background: var(--ef-role, var(--ef-muted)); }

/* Controls */
.ef-button, .ef-chip, .ef-tool, .ef-react, .ef-tab { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.ef-button { position: relative; overflow: hidden; min-height: 2.75rem; padding: 0 1.125rem; border: 1px solid var(--ef-line); border-radius: .8125rem; background: var(--ef-raised); color: var(--ef-text); font-size: .875rem; font-weight: 800; white-space: nowrap; }
.ef-button:hover { border-color: color-mix(in srgb, var(--ef-text) 26%, transparent); }
.ef-button:active, .ef-chip:active, .ef-react:active, .ef-tool:active { transform: scale(.97); }
.ef-button svg { width: 1.25rem; height: 1.25rem; }
.ef-button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--ef-accent) 45%, transparent); color: var(--ef-accent); }
.ef-button--sm { min-height: 2.375rem; padding: 0 .875rem; border-radius: .6875rem; font-size: var(--ef-small); }
.ef-page .ef-primary { border-color: var(--ef-accent); background: var(--ef-accent); color: var(--ef-on-accent); }
.ef-page .ef-primary:hover { border-color: var(--ef-accent); background: color-mix(in srgb, var(--ef-accent) 86%, var(--ef-text)); color: var(--ef-on-accent); }
/* The theme's gold buttons catch a short sweep of light on hover */
.ef-page .ef-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--ef-text) 40%, transparent) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.ef-page .ef-primary:hover::after { transform: translateX(120%); }
.ef-icon-button { display: inline-grid; flex: none; width: 2.25rem; height: 2.25rem; place-items: center; padding: 0; border: 1px solid var(--ef-line); border-radius: .6875rem; background: var(--ef-raised); color: var(--ef-muted); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.ef-icon-button:hover { border-color: color-mix(in srgb, var(--ef-text) 26%, transparent); color: var(--ef-text); }
.ef-icon-button svg { width: 1.125rem; height: 1.125rem; transition: transform var(--elysium-motion-slow, .32s) var(--ef-spring); }
.ef-tool { min-width: 2.375rem; min-height: 2.375rem; padding: 0 .625rem; border: 0; border-radius: .625rem; background: none; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-tool:hover { background: var(--ef-hover); color: var(--ef-text); }
.ef-tool svg { width: 1.25rem; height: 1.25rem; }
.ef-tool[aria-pressed="true"] { background: var(--ef-hover); color: var(--ef-text); }
.ef-page :where(button[disabled], [aria-busy="true"]) { opacity: .65; }

/* A select with the chevron drawn by the forum, kept clear of the edge */
.ef-select { position: relative; display: inline-grid; align-items: center; min-width: 0; }
.ef-page .ef-select select { width: 100%; min-width: 0; height: 2.375rem; padding: 0 2.5rem 0 .875rem; border: 1px solid var(--ef-line); border-radius: .75rem; background: var(--ef-sunken); color: var(--ef-text); font: inherit; font-size: var(--ef-small); font-weight: 700; appearance: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.ef-page .ef-select select:hover { border-color: color-mix(in srgb, var(--ef-text) 26%, transparent); }
.ef-page .ef-select select:focus { outline: none; }
.ef-select > svg { position: absolute; right: .875rem; width: 1rem; height: 1rem; color: var(--ef-muted); pointer-events: none; }

/* Chips: the status filter, the topic type, the placement. The status colour draws the border and icon */
.ef-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.ef-chip { --ef-tone: var(--ef-accent); min-height: 2.25rem; padding: 0 .75rem 0 .625rem; border: 1px solid var(--ef-line); border-radius: .75rem; background: var(--ef-panel); color: var(--ef-text); font-size: var(--ef-small); font-weight: 700; white-space: nowrap; }
.ef-chip svg { width: 1rem; height: 1rem; color: var(--ef-tone); }
.ef-chip--all { padding-left: .875rem; }
.ef-chip--status { border-color: color-mix(in srgb, var(--ef-tone) 42%, transparent); }
.ef-page .ef-chip:hover { border-color: color-mix(in srgb, var(--ef-tone) 75%, transparent); color: var(--ef-text); }
.ef-page .ef-chip[aria-current], .ef-page .ef-chip[aria-pressed="true"], .ef-page .ef-chip--choice:has(input:checked) { border-color: var(--ef-tone); background: color-mix(in srgb, var(--ef-tone) 14%, var(--ef-panel)); color: var(--ef-text); }
.ef-chip__count { color: var(--ef-muted); font-variant-numeric: tabular-nums; }
.ef-chip--kind { --ef-tone: var(--ef-kind-color); }
.ef-chip--choice { position: relative; }
.ef-chip--choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ef-chip--choice:has(input:focus-visible) { outline: 2px solid var(--ef-accent); outline-offset: 2px; }
.ef-chip--pinned { --ef-tone: var(--elysium-color-info); }
.ef-chip--important { --ef-tone: var(--ef-important); }
.ef-chip--normal { --ef-tone: var(--ef-muted); }

.ef-notice { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem var(--ef-pad); border: 1px solid color-mix(in srgb, var(--elysium-color-warning) 35%, transparent); border-radius: var(--ef-radius-lg); background: color-mix(in srgb, var(--elysium-color-warning) 8%, var(--ef-panel)); overflow-wrap: anywhere; }
.ef-notice svg { width: 1.25rem; height: 1.25rem; color: var(--elysium-color-warning); }
.ef-notice > div { display: grid; gap: .25rem; }
.ef-blank { display: grid; justify-items: center; gap: .625rem; padding: 2.5rem var(--ef-pad) 2.75rem; text-align: center; }
.ef-blank p { max-width: 46ch; color: var(--ef-muted); }
.ef-blank .ef-button { margin-top: .5rem; }
.ef-blank--small { padding-block: 1.75rem; }
.ef-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem var(--ef-pad); border-top: 1px solid var(--ef-line-soft); }
.ef-pager .ef-button { min-height: 2.375rem; font-size: var(--ef-small); }
.ef-feedback { flex: 1 1 12rem; color: var(--elysium-color-error); }
.ef-feedback:empty { display: none; }

/* Motion: rows and panels rise into place once, one after another; the list keeps its place on later swaps */
@keyframes ef-rise { from { opacity: 0; transform: translateY(.75rem); } }
@keyframes ef-pop { 35% { transform: scale(1.3); } }
@keyframes ef-pulse { 50% { box-shadow: 0 0 0 .375rem color-mix(in srgb, var(--ef-tone) 0%, transparent); } }
.ef-main > :is(.ef-chat, .ef-index, .ef-visitors, .ef-rules, .ef-topics, .ef-topic-head, .ef-thread, .ef-reply, .ef-compose, .ef-search) { animation: ef-rise .5s var(--ef-spring) backwards; }
.ef-main > :nth-child(2) { animation-delay: 60ms; }
.ef-main > :nth-child(3) { animation-delay: 120ms; }
.ef-main > :nth-child(n + 4) { animation-delay: 180ms; }
.ef-board, .ef-topic-row { animation: ef-rise .45s var(--ef-spring) calc(120ms + var(--ef-i, 0) * 40ms) backwards; }
[data-ef-fresh] .ef-vote__score, [data-ef-fresh] .ef-react[aria-pressed="true"] b { animation: ef-pop .35s var(--ef-spring); }

/* Forum home: sections and activity side by side, who visited today along the whole width below */
.ef-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem); gap: var(--ef-gap); align-items: start; }
.ef-chat { min-width: 0; }
.ef-chat + .ef-index { margin-top: calc(var(--ef-gap) - var(--ef-pad)); }
html[data-nav-style="capsule"]:is([data-page-header-style="drawer"], [data-page-header-style="capsule"]) .ef-header:not([data-page-header-state]) + .ef-main > .ef-chat {
    animation: ef-chat-in .5s calc(var(--page-header-enter, .55s) * .6) var(--ef-ease) backwards;
}
@keyframes ef-chat-in {
    from { opacity: 0; transform: translateY(-.875rem); clip-path: inset(0 0 100% 0 round var(--ef-radius-lg)); }
}
.ef-boards { overflow: hidden; }
.ef-board { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 5.5rem 6.5rem minmax(0, 18rem); gap: var(--ef-row-gap); align-items: center; padding: 1.125rem var(--ef-pad); transition: background-color .2s ease; }
.ef-board + .ef-board { border-top: 1px solid var(--ef-line-soft); }
.ef-board:hover { background: var(--ef-hover); }
.ef-board__main { display: grid; gap: .125rem; min-width: 0; }
.ef-page .ef-board__name { font-size: 1.0625rem; font-weight: 800; }
.ef-board__name a { transition: color .2s ease; }
.ef-board__name a::after { content: ""; position: absolute; inset: 0; }
.ef-page .ef-board:hover .ef-board__name a { color: var(--ef-accent); }
.ef-board__desc { color: var(--ef-muted); font-size: .875rem; }
.ef-board__count { display: grid; justify-items: end; line-height: 1.25; }
.ef-board__count b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.ef-board__count span { color: var(--ef-muted); font-size: .75rem; }
.ef-board__last { position: relative; z-index: 1; display: grid; grid-template-columns: 1.875rem minmax(0, 1fr); gap: .625rem; align-items: center; min-width: 0; }
.ef-board__last--empty { display: block; }
.ef-board__last-copy { display: grid; gap: .125rem; min-width: 0; }
.ef-board__topic { overflow: hidden; font-size: .875rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ef-board__last-copy .ef-inline { flex-wrap: nowrap; min-width: 0; }

/* Activity: new topics and new replies in tabs. The panel keeps one height whichever tab is open */
.ef-activity { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.ef-activity__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem .75rem .75rem var(--ef-pad); border-bottom: 1px solid var(--ef-line-soft); }
.ef-page .ef-activity__head h2 { font-size: 1.0625rem; }
.ef-tabs { display: inline-flex; gap: .25rem; padding: .1875rem; border: 1px solid var(--ef-line-soft); border-radius: .75rem; background: var(--ef-sunken); }
.ef-tab { min-height: 2rem; padding: 0 .75rem; border: 0; border-radius: .5625rem; background: none; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-tab:hover { color: var(--ef-text); }
.ef-tab[aria-selected="true"] { background: var(--ef-raised); color: var(--ef-text); box-shadow: inset 0 0 0 1px var(--ef-line); }
.ef-activity__panel { height: 30rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ef-line) transparent; }
.ef-activity__panel[hidden] { display: none; }
.ef-activity__panel:focus-visible { outline: 2px solid var(--ef-accent); outline-offset: -2px; }
.ef-activity__panel.is-entering .ef-feed { animation: ef-rise .4s var(--ef-spring) backwards; }
.ef-activity__panel.is-entering .ef-feed:nth-child(2) { animation-delay: 40ms; }
.ef-activity__panel.is-entering .ef-feed:nth-child(3) { animation-delay: 80ms; }
.ef-activity__panel.is-entering .ef-feed:nth-child(n + 4) { animation-delay: 120ms; }
.ef-feed-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ef-feed { position: relative; display: grid; grid-template-columns: 1.875rem minmax(0, 1fr); gap: .75rem; padding: .875rem var(--ef-pad); transition: background-color .2s ease; }
.ef-feed + .ef-feed { border-top: 1px solid var(--ef-line-soft); }
.ef-feed:hover { background: var(--ef-hover); }
.ef-feed__copy { display: grid; gap: .375rem; min-width: 0; }
.ef-feed__title { display: -webkit-box; overflow: hidden; font-size: .875rem; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ef-feed__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; font-size: var(--ef-small); }
.ef-feed__snippet { overflow: hidden; color: var(--ef-muted); font-size: var(--ef-small); text-overflow: ellipsis; white-space: nowrap; }

/* Who visited today: the players first, the day's count pinned to the foot */
.ef-visitors { display: grid; overflow: hidden; }
.ef-people { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 1.125rem var(--ef-pad); list-style: none; }
.ef-person { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.375rem; padding: 0 .875rem 0 .25rem; border: 1px solid var(--ef-line-soft); border-radius: 999px; background: var(--ef-sunken); font-size: .875rem; transition: border-color .2s ease, transform .2s var(--ef-spring); }
.ef-person:hover { border-color: var(--ef-line); transform: translateY(-1px); }
.ef-visitors__empty { padding: 1.125rem var(--ef-pad); color: var(--ef-muted); }
.ef-visitors__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .875rem var(--ef-pad); border-top: 1px solid var(--ef-line-soft); background: var(--ef-sunken); }
.ef-page .ef-visitors__foot h2 { display: inline-flex; align-items: center; gap: .5rem; color: var(--ef-muted); font-size: .875rem; font-weight: 700; }
.ef-visitors__foot h2 svg { width: 1.125rem; height: 1.125rem; }
.ef-visitors__stats { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--ef-muted); font-size: .875rem; }
.ef-visitors__stats b { color: var(--ef-text); font-variant-numeric: tabular-nums; }

/* Section rules or information: under the header, folds away, edited in place by the section's moderators */
.ef-rules { position: relative; min-width: 0; border: 1px solid var(--ef-line); border-radius: var(--ef-radius-lg); background: var(--ef-panel); }
.ef-rules__head { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1rem; }
.ef-rules__icon { display: grid; flex: none; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid color-mix(in srgb, var(--ef-accent) 28%, transparent); border-radius: .6875rem; background: color-mix(in srgb, var(--ef-accent) 11%, transparent); color: var(--ef-accent); }
.ef-rules__icon svg { width: 1.125rem; height: 1.125rem; }
.ef-rules__title { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; min-width: 0; }
.ef-page .ef-rules__title h2 { font-size: 1rem; }
.ef-rules__meta { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ef-rules__updated { display: inline-flex; align-items: center; min-height: 1.375rem; padding: 0 .5rem; border: 1px solid color-mix(in srgb, var(--ef-accent) 45%, transparent); border-radius: .4375rem; background: color-mix(in srgb, var(--ef-accent) 10%, transparent); color: var(--ef-accent); font-size: .75rem; font-weight: 800; }
.ef-rules__tools { display: flex; flex: none; align-items: center; gap: .375rem; margin-left: auto; }
.ef-rules[data-open="true"] .ef-rules__toggle svg { transform: rotate(180deg); }
.ef-rules__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ef-spring); }
.ef-rules[data-open="true"] .ef-rules__body { grid-template-rows: 1fr; }
.ef-rules__inner { min-height: 0; overflow: hidden; }
.ef-rules__text { max-width: 78ch; padding: .25rem 1.375rem 1.125rem 4rem; color: var(--ef-muted); font-size: .9375rem; line-height: 1.65; }
.ef-page.elysium-ui .ef-rules__text > * + * { margin-top: .625rem; }
.ef-rules__text :is(ol, ul) { display: grid; gap: .375rem; margin-bottom: 0; padding-left: 1.25rem; }
.ef-rules__text li::marker { color: var(--ef-accent); font-weight: 800; }
.ef-rules__text :is(strong, em) { color: var(--ef-text); }
.ef-rules__text code { padding: .0625rem .375rem; border-radius: .375rem; background: var(--ef-sunken); color: var(--ef-text); font-family: var(--ef-mono); font-size: .875em; }
.ef-page .ef-rules__text a { color: var(--ef-accent); text-decoration: underline; text-underline-offset: 3px; }
.ef-rules--blank { border-style: dashed; background: none; }
.ef-rules__blank { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .875rem; padding: .75rem .75rem .75rem 1.125rem; color: var(--ef-muted); font-size: .875rem; }
.ef-rules__blank > svg { width: 1.125rem; height: 1.125rem; color: var(--ef-accent); }
.ef-rules__blank > span { flex: 1 1 14rem; }
.ef-rules[data-editing] :is(.ef-rules__body, .ef-rules__tools, .ef-rules__blank) { display: none; }
.ef-rules[data-editing] .ef-rules__editor[hidden] { display: grid; }
.ef-rules__editor { gap: .75rem; padding: 0 1.125rem 1.125rem 4rem; }
.ef-rules--blank .ef-rules__editor { padding-top: 1.125rem; padding-left: 1.125rem; }
.ef-rules__presets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ef-rules__presets .ef-label { margin-right: .25rem; }
.ef-rules__custom { display: none; }
.ef-rules__editor:has(input[name="preset"][value="custom"]:checked) .ef-rules__custom { display: grid; }
.ef-rules__write .ef-rules__toolbar { border-top: 0; border-bottom: 1px solid var(--ef-line-soft); }
.ef-rules__spacer { flex: 1; }
.ef-rules__write textarea { min-height: 10.5rem; }
.ef-rules__preview { min-height: 10.5rem; padding: .75rem 0; }
.ef-rules__preview .ef-rules__text { padding: 0 .875rem; }
.ef-rules__hint { flex: 1 1 16rem; }

/* Topic lists: chips and order on one line, then the topics under column labels */
.ef-topics, .ef-search { display: grid; gap: .875rem; min-width: 0; }
.ef-topics__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.ef-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.ef-sort__label { color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-topics__panel { overflow: hidden; }
.ef-topics__head, .ef-topic-row { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 4.5rem minmax(0, 13rem) 2.25rem; gap: var(--ef-row-gap); align-items: center; padding-inline: 1rem; }
.ef-topics__head { padding-block: .75rem .625rem; color: var(--ef-muted); font-size: .75rem; font-weight: 700; }
.ef-topics__head > :first-child { text-align: center; }
.ef-topics__head > :nth-child(3) { text-align: right; }
.ef-topics__group { display: flex; align-items: center; gap: .5rem; padding: .5625rem var(--ef-pad); border-top: 1px solid var(--ef-line-soft); background: var(--ef-sunken); color: var(--ef-muted); font-size: .75rem; font-weight: 800; }
.ef-topics__group svg { width: 1rem; height: 1rem; color: var(--ef-accent); }
.ef-topic-row { position: relative; padding-block: .875rem; border-top: 1px solid var(--ef-line-soft); transition: background-color .2s ease; }
.ef-topic-row:hover { background-color: var(--ef-hover); }
.ef-topic-row__main { min-width: 0; }
.ef-page .ef-topic-row__title { font-size: 1rem; font-weight: 800; }
.ef-topic-row__title a { transition: color .2s ease; }
.ef-topic-row:hover .ef-topic-row__title a { color: var(--ef-accent); }
.ef-topic-row__meta, .ef-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; margin-top: .4375rem; font-size: var(--ef-small); }
.ef-topic-row__replies { color: var(--ef-text); font-size: 1rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ef-topic-row__replies-inline { display: none; align-items: center; gap: .25rem; }
.ef-topic-row__replies-inline svg { width: 1rem; height: 1rem; }
.ef-topic-row__last { display: grid; grid-template-columns: 1.875rem minmax(0, 1fr); gap: .625rem; align-items: center; min-width: 0; }
.ef-topic-row__last--none { display: block; }
.ef-topic-row__last-copy { display: grid; min-width: 0; font-size: .875rem; line-height: 1.35; }
.ef-topic-row__last-copy .ef-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-page [data-ef-list][aria-busy="true"], .ef-page form[aria-busy="true"] { opacity: .7; transition: opacity .2s ease; }
/* The rating of a topic in a list: an arrow over the score on a tile tinted by the sign */
.ef-vote-tile { display: grid; justify-self: center; place-items: center; align-content: center; gap: .125rem; width: 3.25rem; height: 3.5rem; border: 1px solid var(--ef-line-soft); border-radius: .875rem; background: var(--ef-sunken); color: var(--ef-muted); }
.ef-vote-tile svg { --ef-stroke: 2px; width: 1.25rem; height: 1.25rem; }
.ef-vote-tile b { color: var(--ef-text); font-size: .875rem; font-variant-numeric: tabular-nums; line-height: 1; }
.ef-vote-tile.is-plus { border-color: color-mix(in srgb, var(--ef-plus) 32%, transparent); background: color-mix(in srgb, var(--ef-plus) 7%, transparent); color: var(--ef-plus); }
.ef-vote-tile.is-plus b { color: var(--ef-plus); }
.ef-vote-tile.is-minus { border-color: color-mix(in srgb, var(--ef-minus) 32%, transparent); background: color-mix(in srgb, var(--ef-minus) 7%, transparent); color: var(--ef-minus); }
.ef-vote-tile.is-minus b { color: var(--ef-minus); }

/* The moderator's menu on a topic row: where the topic stands in its section */
.ef-row-menu { justify-self: end; }
.ef-row-menu > summary { display: inline-grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid transparent; border-radius: .6875rem; color: var(--ef-muted); cursor: pointer; list-style: none; opacity: .65; transition: opacity .2s ease, background-color .2s ease; }
.ef-topic-row:hover .ef-row-menu > summary, .ef-row-menu > summary:focus-visible { opacity: 1; }
.ef-row-menu > summary::-webkit-details-marker { display: none; }
.ef-row-menu > summary svg { width: 1.125rem; height: 1.125rem; }
.ef-row-menu > summary:hover, .ef-row-menu[open] > summary { border-color: var(--ef-line); background: var(--ef-raised); color: var(--ef-text); opacity: 1; }
.ef-row-menu__list { position: absolute; z-index: 8; top: calc(100% - .5rem); right: .875rem; display: grid; width: min(16rem, calc(100% - 1.75rem)); padding: .375rem; border: 1px solid var(--ef-line); border-radius: .875rem; background: var(--ef-raised); box-shadow: var(--elysium-shadow-lg, 0 18px 48px #00000047); animation: ef-rise .25s var(--ef-spring); }
/* A closed menu keeps its list out of the layout: its own display would otherwise widen the page on a phone */
.ef-row-menu:not([open]) > .ef-row-menu__list { display: none; }
.ef-row-menu__title { padding: .375rem .625rem .25rem; color: var(--ef-muted); font-size: .75rem; font-weight: 700; }
.ef-row-menu__item { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr) 1rem; gap: .625rem; align-items: center; width: 100%; min-height: 2.5rem; padding: .375rem .625rem; border: 0; border-radius: .5625rem; background: none; color: var(--ef-text); font: inherit; text-align: left; cursor: pointer; }
.ef-row-menu__item:hover { background: var(--ef-hover); }
.ef-row-menu__item svg { width: 1.125rem; height: 1.125rem; color: var(--ef-muted); }
.ef-row-menu__item b { display: block; font-size: .84375rem; }
.ef-row-menu__item small { display: block; color: var(--ef-muted); font-size: .75rem; font-weight: 500; }
.ef-page .ef-row-menu__check { color: var(--ef-accent); }
.ef-row-menu__list > a { margin-top: .25rem; border-top: 1px solid var(--ef-line-soft); border-radius: 0 0 .5625rem .5625rem; }

/* Composer and editor: one toolbar, screenshots at the foot of the field, staff settings beside the form */
.ef-compose { display: grid; gap: 1.25rem; min-width: 0; scroll-margin-top: var(--ef-sticky-top); }
.ef-compose__head { display: grid; gap: .375rem; }
.ef-compose__head .ef-meta a { color: var(--ef-text); text-decoration: underline; text-decoration-color: var(--ef-line); text-underline-offset: 3px; }
.ef-editor { display: grid; gap: var(--ef-gap); }
.ef-editor--create { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: var(--ef-gap); align-items: start; }
.ef-editor--create > .ef-editor__main { padding: var(--ef-pad); border: 1px solid var(--ef-line); border-radius: var(--ef-radius-lg); background: var(--ef-panel); }
.ef-editor__main { display: grid; gap: 1.25rem; min-width: 0; }
.ef-editor__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.ef-editor__metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.ef-editor__metadata:empty { display: none; }
.ef-field { display: grid; gap: .5rem; min-width: 0; font-size: .875rem; font-weight: 800; }
.ef-field--wide { grid-column: 1 / -1; }
.ef-field small { color: var(--ef-muted); font-weight: 500; }
.ef-editor :where(input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea, select), .ef-filters :where(input, select) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: .75rem .875rem;
    border: 1px solid var(--ef-line);
    border-radius: .75rem;
    background: var(--ef-sunken);
    color: var(--ef-text);
    font: inherit;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ef-editor :where(input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea, select):focus, .ef-filters :where(input, select):focus {
    outline: none;
}
.ef-editor--create .ef-editor__fields > .ef-field:first-child input { min-height: 3.125rem; font-size: 1.0625rem; font-weight: 700; }
.ef-editor textarea { resize: vertical; }
.ef-editor [aria-invalid="true"] { border-color: var(--elysium-color-error); }
.ef-editor .ef-select select { height: 2.75rem; padding-right: 2.5rem; }
.ef-compose-box { overflow: hidden; border: 1px solid var(--ef-line); border-radius: .875rem; background: var(--ef-sunken); transition: border-color .2s ease; }
.ef-compose-box:focus-within { outline: none; }
.ef-editor__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .625rem; border-bottom: 1px solid var(--ef-line); }
.ef-editor__bar:not(:has(> :not([hidden]))) { display: none; }
.ef-editor__bar .ef-segment { flex: none; }
.ef-editor__bar .ef-rich-tools { flex: 1 1 auto; }
.ef-editor__expand { margin-left: auto; }
.ef-segment { display: inline-flex; flex-wrap: wrap; gap: .125rem; padding: .1875rem; border: 1px solid var(--ef-line-soft); border-radius: .75rem; background: var(--ef-panel); }
.ef-segment button { min-height: 2rem; padding: 0 .75rem; border: 0; border-radius: .5625rem; background: none; color: var(--ef-muted); font: inherit; font-size: var(--ef-small); font-weight: 700; cursor: pointer; transition: background-color .25s var(--ef-spring), color .2s ease; }
.ef-segment button:hover { color: var(--ef-text); }
.ef-segment button[aria-pressed="true"] { background: var(--ef-raised); color: var(--ef-text); box-shadow: inset 0 0 0 1px var(--ef-line); }
.ef-tools { display: flex; flex-wrap: wrap; gap: .125rem; padding: .375rem; border-top: 1px solid var(--ef-line-soft); }
.ef-rich-tools { padding: 0; border: 0; }
.ef-rich-tools .ef-tool { min-width: 2.25rem; padding: 0; }
.ef-rich-tools .ef-tool svg { width: 1.25rem; height: 1.25rem; }
.ef-rich-tools [aria-pressed="true"] { color: var(--ef-accent); background: var(--elysium-color-accent-soft); }
.ef-compose-box textarea { min-height: 16rem; padding: 1.125rem 1.25rem; border: 0; border-radius: 0; background: none; font-family: var(--ef-mono); line-height: 1.7; }
.ef-compose-box textarea:focus { outline: 0; }
.ef-compose-box textarea[aria-invalid="true"] { box-shadow: inset 3px 0 0 var(--elysium-color-error); }
.ef-rich-surface, .ef-rich-preview { min-height: 16rem; max-height: 70vh; overflow: auto; padding: 1.125rem 1.25rem; }
.ef-rich-surface .tiptap { min-height: 13rem; outline: none; }
.ef-page .ef-rich-surface .tiptap:is(:focus, :focus-visible) { outline: 0; }
.ef-rich-surface[aria-invalid="true"] { box-shadow: inset 3px 0 0 var(--elysium-color-error); }
/* A reply is a compact field of one steady height */
.ef-editor--reply :is(.ef-rich-surface, .ef-rich-preview), .ef-editor--reply .ef-compose-box textarea { min-height: 9rem; }
.ef-editor--reply .tiptap { min-height: 6.5rem; }
.ef-link-editor { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; padding: 1rem; border-bottom: 1px solid var(--ef-line); }
.ef-link-editor .ef-field { flex: 1 1 14rem; min-width: 0; }
.ef-link-editor .ef-feedback { flex-basis: 100%; }
/* Mentions and screenshots sit in one row under the field */
.ef-compose-extras { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; padding: .5625rem; border-top: 1px solid var(--ef-line-soft); }
.ef-compose-extras:not(:has(> :not([hidden]))) { display: none; }
.ef-mention-picker { display: grid; flex: 1 1 14rem; gap: .5rem; min-width: 0; }
.ef-mention-picker:not(:has(.ef-chips:not(:empty))) { gap: 0; }
.ef-mention-picker__field { display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--ef-line); border-radius: .6875rem; color: var(--ef-muted); font-weight: 400; transition: border-color .2s ease; }
.ef-mention-picker__field:hover { border-color: color-mix(in srgb, var(--ef-text) 26%, transparent); }
.ef-mention-picker__field svg { width: 1.125rem; height: 1.125rem; }
.ef-editor .ef-mention-picker__field input { padding: .25rem 0; border: 0; background: none; }
.ef-editor .ef-mention-picker__field input:focus { outline: 0; }
.ef-images-control { flex: 0 1 auto; min-width: 0; }
.ef-drop { position: relative; display: flex; align-items: center; gap: .625rem; min-height: 2.5rem; padding: .25rem .75rem .25rem .25rem; border: 1px solid var(--ef-line); border-radius: .75rem; color: var(--ef-muted); cursor: pointer; font-weight: 400; transition: border-color .2s ease, background-color .2s ease; }
.ef-drop:hover, .ef-drop:focus-within { border-color: color-mix(in srgb, var(--ef-accent) 50%, transparent); background: color-mix(in srgb, var(--ef-accent) 4%, transparent); }
.ef-drop:focus-within { outline: none; }
.ef-drop__icon { display: grid; flex: none; width: 2rem; height: 2rem; place-items: center; border-radius: .5rem; background: var(--ef-raised); color: var(--ef-text); }
.ef-drop__icon svg { width: 1.125rem; height: 1.125rem; }
.ef-drop__copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; min-width: 0; }
.ef-drop__copy .ef-field__label { color: var(--ef-text); font-size: var(--ef-small); font-weight: 700; }
.ef-drop__copy .ef-meta { font-size: .75rem; }
.ef-drop__input { position: absolute; top: 50%; left: 1rem; width: 1px; height: 1px; opacity: 0; }
.ef-images-control .ef-previews { margin-top: .625rem; }
.ef-editor__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; }
.ef-editor__foot .ef-feedback:not(:empty) { flex-basis: 100%; }
/* A new topic keeps its actions in reach while the message grows */
.ef-editor--create .ef-editor__foot, .ef-editor--edit .ef-editor__foot { position: sticky; z-index: 2; bottom: 0; margin: 0 calc(var(--ef-pad) * -1) calc(var(--ef-pad) * -1); padding: .875rem var(--ef-pad); border-top: 1px solid var(--ef-line-soft); border-radius: 0 0 var(--ef-radius-lg) var(--ef-radius-lg); background: var(--ef-panel); }
.ef-editor__settings { display: grid; align-items: start; gap: var(--ef-gap); min-width: 0; }
.ef-side { display: grid; align-content: start; gap: .875rem; padding: 1.125rem 1.25rem 1.25rem; }
.ef-page .ef-side h2 { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; }
.ef-side h2 svg { width: 1.125rem; height: 1.125rem; color: var(--ef-accent); }
.ef-side__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ef-page .ef-reminder-card a { color: var(--ef-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ef-settings { display: grid; gap: 1rem; min-width: 0; }
.ef-settings__group { display: grid; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.ef-settings__group legend { margin-bottom: .5rem; font-size: .8125rem; font-weight: 800; }
.ef-settings__note { display: inline-flex; align-items: center; gap: .375rem; }
.ef-settings__note svg { width: 1rem; height: 1rem; color: var(--ef-plus); }
.ef-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 700; cursor: pointer; }
.ef-switch > span { display: grid; gap: .125rem; }
.ef-switch small { color: var(--ef-muted); font-size: .75rem; font-weight: 500; }
.ef-switch input { flex: none; appearance: none; width: 2.75rem; height: 1.5rem; margin: 0; padding: .125rem; border: 1px solid var(--ef-line); border-radius: var(--elysium-radius-pill, 999px); background: var(--ef-raised); cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.ef-switch input::after { display: block; content: ''; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--ef-muted); transition: transform .3s var(--ef-spring), background-color .25s ease; }
.ef-switch input:checked { border-color: var(--ef-accent); background: var(--ef-accent); }
.ef-switch input:checked::after { background: var(--ef-on-accent); transform: translateX(1.25rem); }
.ef-switch input:focus-visible { outline: 2px solid var(--ef-accent); outline-offset: 2px; }
.ef-editor:fullscreen { display: grid; align-items: start; align-content: start; width: 100%; height: 100%; overflow: auto; padding: var(--elysium-space-xl, 1.5rem); background: var(--ef-panel); color: var(--ef-text); }
.ef-editor:fullscreen .ef-editor__foot { position: sticky; bottom: 0; margin: 0; padding: 1rem; background: var(--ef-panel); }
.ef-quoting { display: flex; align-items: center; gap: .625rem; padding: .5rem .5rem .5rem .75rem; border-radius: .625rem; background: var(--ef-sunken); color: var(--ef-muted); font-size: var(--ef-small); }
.ef-quoting svg { width: 1.125rem; height: 1.125rem; color: var(--ef-accent); }
.ef-quoting span { flex: 1; min-width: 0; }
.ef-quoting b { color: var(--ef-text); }
.ef-previews { display: flex; flex-wrap: wrap; gap: .625rem; }
.ef-previews :where(a, figure) { width: min(10.5rem, 100%); min-width: 0; margin: 0; }
.ef-previews img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--ef-line); border-radius: .75rem; background: var(--ef-sunken); transition: transform .25s var(--ef-spring); }
.ef-previews a:hover img { transform: scale(1.03); }
.ef-previews figure { animation: ef-rise .3s var(--ef-spring); }
.ef-previews figcaption { margin-top: .25rem; color: var(--ef-muted); font-size: .75rem; overflow-wrap: anywhere; }
.ef-previews figure button { margin-top: .375rem; }
.ef-edit-workspace { display: grid; gap: var(--ef-gap); min-width: 0; }
.ef-edit-workspace--staff { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: start; }
.ef-edit-workspace__main { min-width: 0; padding: var(--ef-pad); }
.ef-edit-workspace__aside .ef-modbar { display: grid; justify-items: stretch; padding: 1.125rem 1.25rem; border: 1px solid var(--ef-line); border-radius: var(--ef-radius-lg); background: var(--ef-panel); }
.ef-edit-workspace__aside .ef-modbar__form { display: grid; }

/* Topic: the rating beside the title, badges, the author's line, the status track and the moderator's tray */
.ef-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ef-topic-head { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: hidden; }
.ef-topic-head__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "vote body side"; align-items: start; gap: 1.375rem; padding: 1.75rem var(--ef-pad) 1.625rem; }
.ef-topic-head .ef-rate { display: grid; grid-area: vote; justify-items: center; gap: .375rem; }
.ef-topic-head .ef-rate .ef-feedback { max-width: 8rem; font-size: .75rem; text-align: center; }
.ef-topic-head__body { display: grid; grid-area: body; grid-template-columns: minmax(0, 1fr); gap: .875rem; min-width: 0; }
.ef-page.elysium-ui .ef-topic-head h1 { max-width: 36ch; margin: 0; font-size: 1.875rem; line-height: 2.375rem; letter-spacing: -.015em; }
.ef-topic-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 0; color: var(--ef-muted); font-size: .875rem; line-height: 1.25rem; }
.ef-topic-head__author, .ef-topic-head__fact { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; min-width: 0; white-space: nowrap; }
.ef-topic-head__author .ef-user { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ef-topic-head__author .ef-user { font-weight: 800; }
.ef-topic-head__fact svg { width: 1.125rem; height: 1.125rem; }
.ef-stack { display: inline-flex; }
.ef-stack .ef-avatar { box-shadow: 0 0 0 2px var(--ef-panel); }
.ef-stack .ef-avatar + .ef-avatar { margin-left: -.375rem; }
.ef-topic-head__subscribe { display: flex; grid-area: side; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.ef-topic-head__subscribe .ef-feedback { flex-basis: 100%; font-size: var(--ef-small); text-align: right; }
.ef-button--md { min-height: 2.5rem; padding: 0 1rem; border-radius: .75rem; font-size: .875rem; }
/* The rating: a plus or a minus from each player, given only here; the author sees the score */
.ef-vote { display: grid; grid-template-rows: 2.625rem 1.875rem 2.625rem; width: 3.625rem; overflow: hidden; border: 1px solid var(--ef-line); border-radius: 1rem; background: var(--ef-sunken); }
.ef-vote__score { display: grid; place-items: center; color: var(--ef-text); font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ef-vote__score.is-plus { color: var(--ef-plus); }
.ef-vote__score.is-minus { color: var(--ef-minus); }
.ef-vote__button { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ef-muted); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ef-vote__button svg { --ef-stroke: 2px; width: 1.5rem; height: 1.5rem; }
.ef-vote__button:hover:not(:disabled) { background: var(--ef-hover); color: var(--ef-text); }
.ef-vote__button[data-ef-vote="up"][aria-pressed="true"] { background: color-mix(in srgb, var(--ef-plus) 14%, transparent); color: var(--ef-plus); }
.ef-vote__button[data-ef-vote="down"][aria-pressed="true"] { background: color-mix(in srgb, var(--ef-minus) 14%, transparent); color: var(--ef-minus); }
.ef-page .ef-vote__button:disabled { cursor: not-allowed; opacity: .4; }
/* Where a suggestion or a bug stands, in one row under its title */
.ef-topic-head__track { display: flex; align-items: center; gap: 1.25rem; padding: 1rem var(--ef-pad); border-top: 1px solid var(--ef-line-soft); background: color-mix(in srgb, var(--ef-sunken) 55%, transparent); }
.ef-page .ef-topic-head__label { display: inline-flex; flex: none; align-items: center; gap: .5rem; color: var(--ef-muted); font-size: .8125rem; font-weight: 800; }
.ef-topic-head__label svg { width: 1.125rem; height: 1.125rem; }
.ef-track { display: flex; flex: 1; align-items: center; gap: .75rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ef-track__step { display: flex; flex: 1 1 auto; align-items: center; gap: .625rem; min-width: 0; }
.ef-track__step:last-child { flex: none; }
.ef-track__step:not(:last-child)::after { content: ""; flex: 1 1 1.5rem; min-width: 1.5rem; height: 2px; margin-left: .375rem; border-radius: 2px; background: var(--ef-line); }
.ef-track__step--done:not(:last-child)::after { background: color-mix(in srgb, var(--elysium-color-success) 55%, transparent); }
.ef-track__node { display: grid; flex: none; width: 1.625rem; height: 1.625rem; place-items: center; border: 2px solid var(--ef-line); border-radius: 50%; background: var(--ef-panel); color: var(--elysium-color-background, var(--background)); }
.ef-track__node svg { --ef-stroke: 2.5px; width: 1rem; height: 1rem; }
.ef-track__step--done .ef-track__node { border-color: var(--elysium-color-success); background: var(--elysium-color-success); }
.ef-track__step--final .ef-track__node { border-color: var(--ef-tone); background: var(--ef-tone); }
.ef-track__step--current .ef-track__node { border-color: var(--ef-tone); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--ef-tone) 18%, transparent); animation: ef-pulse 2.4s ease-in-out infinite; }
.ef-track__step--current .ef-track__node::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ef-tone); }
.ef-track__copy { display: grid; min-width: 0; line-height: 1.25; }
.ef-track__label { font-size: .875rem; font-weight: 800; white-space: nowrap; }
.ef-track__copy .ef-meta { font-size: .75rem; white-space: nowrap; }
.ef-track__step--current .ef-track__label { color: color-mix(in srgb, var(--ef-tone) 60%, var(--ef-text)); }
.ef-track__step--next .ef-track__label { color: var(--ef-muted); font-weight: 700; }
/* The moderator's tray: quiet, labelled controls in one row, every change saves at once */
.ef-modbar { display: grid; gap: .875rem; min-width: 0; padding: 1rem var(--ef-pad) 1.25rem; border-top: 1px solid var(--ef-line-soft); background: var(--ef-sunken); }
.ef-modbar__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.ef-page .ef-modbar__title { display: inline-flex; align-items: center; gap: .5rem; color: var(--ef-text); font-size: .8125rem; font-weight: 800; }
.ef-modbar__title svg { width: 1.125rem; height: 1.125rem; color: var(--elysium-color-info); }
.ef-modbar__hint { display: inline-flex; align-items: center; gap: .375rem; color: var(--ef-muted); font-size: .8125rem; }
.ef-modbar__hint svg { width: 1.125rem; height: 1.125rem; color: var(--ef-plus); }
.ef-modbar__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin-left: auto; }
.ef-modbar__row, .ef-modbar__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; min-width: 0; }
.ef-modbar__field { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.ef-modbar__field legend { margin-bottom: .5rem; padding: 0; color: var(--ef-muted); font-size: .75rem; font-weight: 700; }
.ef-modbar__switch { min-height: 2.75rem; font-size: var(--ef-small); }
.ef-modbar .ef-feedback { flex-basis: 100%; font-size: var(--ef-small); text-align: left; }
.ef-page .ef-delete [data-el-open] { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: 0 1rem; border: 1px solid color-mix(in srgb, var(--elysium-color-error) 45%, transparent); border-radius: .75rem; background: color-mix(in srgb, var(--elysium-color-error) 10%, transparent); color: var(--elysium-color-error); font: inherit; font-size: .875rem; font-weight: 800; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.ef-page .ef-delete [data-el-open]:hover { border-color: var(--elysium-color-error); background: color-mix(in srgb, var(--elysium-color-error) 16%, transparent); }
.ef-page .ef-delete [data-el-open]:active { transform: scale(.97); }
.ef-report { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.ef-report__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.ef-kv { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; padding: .25rem .75rem; border: 1px solid var(--ef-line-soft); border-radius: .625rem; background: var(--ef-sunken); font-size: var(--ef-small); }
.ef-kv dt { color: var(--ef-muted); font-weight: 600; }
.ef-kv dd { margin: 0; font-weight: 700; }
.ef-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .625rem; margin: 0; }
.ef-fact { padding: .875rem 1rem; border-radius: .75rem; background: var(--ef-sunken); }
.ef-fact dt { margin-bottom: .25rem; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-fact dd { margin: 0; white-space: pre-wrap; }
.ef-fact[data-ef-field="steps"] { grid-column: 1 / -1; }
.ef-fact[data-ef-field="expected"] dt { color: var(--elysium-color-success); }
.ef-fact[data-ef-field="actual"] dt { color: var(--elysium-color-error); }
.ef-body { max-width: 78ch; white-space: normal; overflow-wrap: anywhere; }
.ef-page .ef-body a, .ef-page .ef-quote p a { color: var(--ef-accent); text-decoration: underline; }
.ef-mention { color: var(--ef-role, var(--ef-accent)); font-weight: 700; }
/* A choice of two or three saved the moment it changes: the moderator's tray uses it */
.ef-segment--choice label { position: relative; display: flex; cursor: pointer; }
.ef-segment--choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ef-segment--choice span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: 0 .75rem; border-radius: .5625rem; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; white-space: nowrap; transition: background-color .25s var(--ef-spring), color .2s ease; }
.ef-segment--choice span:hover { color: var(--ef-text); }
.ef-segment--choice svg { width: 1.125rem; height: 1.125rem; }
.ef-segment--choice input:checked + span { background: var(--ef-raised); color: var(--ef-text); box-shadow: inset 0 0 0 1px var(--ef-line); }
.ef-segment--choice input:checked + span svg { color: var(--ef-accent); }
.ef-segment--choice input:focus-visible + span { outline: 2px solid var(--ef-accent); outline-offset: 1px; }
/* On the edit page the tray is a narrow column beside the form */
.ef-edit-workspace__aside .ef-modbar__actions { margin-left: 0; }
.ef-edit-workspace__aside :is(.ef-modbar__row, .ef-modbar__form) { display: grid; }
.ef-edit-workspace__aside .ef-segment--choice { display: grid; }
/* The conversation: a band announces the replies */
/* clip, not hidden: a hidden overflow would make the thread the sticky cards' scroll box and push them down */
.ef-thread { overflow: clip; }
.ef-thread__band { display: flex; align-items: center; gap: .625rem; padding: .8125rem var(--ef-pad); border-block: 1px solid var(--ef-line-soft); background: var(--ef-sunken); font-size: .8125rem; font-weight: 800; }
.ef-thread__band:first-child { border-top: 0; border-radius: var(--ef-radius-lg) var(--ef-radius-lg) 0 0; }
.ef-thread__band svg { width: 1.25rem; height: 1.25rem; color: var(--ef-muted); }
.ef-count { display: inline-grid; min-width: 1.375rem; height: 1.375rem; place-items: center; padding: 0 .375rem; border-radius: .4375rem; background: color-mix(in srgb, var(--ef-text) 8%, transparent); font-size: .75rem; font-variant-numeric: tabular-nums; }
/* The answers of a template's form open the first message */
.ef-report { display: grid; gap: .75rem; margin: 0; }
/* A message: the author's column on the left, the text on the right. The column carries a large picture
   ringed in the role's colour, the presence, the name, the role and two or three figures; it stays in view
   along a long message */
.ef-post { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); scroll-margin-top: var(--ef-sticky-top); }
.ef-post + .ef-post { border-top: 1px solid var(--ef-line-soft); }
.ef-post:target { animation: ef-target 1.6s ease; }
@keyframes ef-target { 20% { background: color-mix(in srgb, var(--ef-accent) 8%, transparent); } }
.ef-post__author, .ef-reply__author { position: sticky; top: var(--ef-sticky-top); display: flex; flex-direction: column; align-self: start; align-items: center; gap: .75rem; min-width: 0; padding: 1.875rem 1rem 1.5rem; text-align: center; }
.ef-post__avatar { position: relative; display: grid; flex: none; }
.ef-post__avatar .ef-avatar { outline: 3px solid color-mix(in srgb, var(--ef-role, var(--ef-muted)) 72%, transparent); outline-offset: 4px; box-shadow: 0 1.25rem 1.875rem -.875rem color-mix(in srgb, var(--ef-role, var(--ef-muted)) 55%, transparent); }
/* Online is a mark on the picture only where the pill under it has no room: on a phone */
.ef-post__dot { position: absolute; right: -.25rem; bottom: -.25rem; display: none; width: 1rem; height: 1rem; border: 3px solid var(--ef-panel); border-radius: 50%; background: var(--ef-plus); }
.ef-post__presence { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .375rem; max-width: 100%; min-height: 1.5rem; margin-top: -1.375rem; padding: 0 .625rem; border: 1px solid var(--ef-line); border-radius: var(--elysium-radius-pill, 999px); background: var(--ef-panel); color: var(--ef-muted); font-size: .71875rem; font-weight: 700; line-height: 1.2; }
.ef-post__presence::before { content: ""; flex: none; width: .4375rem; height: .4375rem; border-radius: 50%; background: color-mix(in srgb, var(--ef-muted) 65%, transparent); }
.ef-post__presence > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ef-post__presence.is-online { color: var(--ef-text); }
.ef-post__presence.is-online::before { background: var(--ef-plus); }
.ef-post__id { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .5rem; width: 100%; min-width: 0; }
.ef-post__name { display: block; max-width: 100%; overflow: hidden; font-size: 1.125rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ef-post__name .ef-user { display: block; overflow: hidden; font-weight: 800; text-overflow: ellipsis; overflow-wrap: normal; }
.ef-post__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; min-width: 0; max-width: 100%; }
.ef-post__badges > * { max-width: 100%; }
/* A long role name ends with an ellipsis; the chip keeps its dot */
.ef-post__badges .ef-role { display: inline-block; overflow: hidden; line-height: 1.375rem; text-overflow: ellipsis; vertical-align: middle; }
.ef-post__badges .ef-role::before { display: inline-block; margin-right: .375rem; vertical-align: .0625rem; }
.ef-post__badges:empty { display: none; }
.ef-post__owner { display: inline-flex; align-items: center; gap: .375rem; min-height: 1.5rem; padding: 0 .5rem 0 .375rem; border: 1px solid color-mix(in srgb, var(--ef-accent) 38%, transparent); border-radius: .4375rem; background: color-mix(in srgb, var(--ef-accent) 10%, transparent); color: color-mix(in srgb, var(--ef-accent) 45%, var(--ef-text)); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.ef-post__owner svg { width: 1rem; height: 1rem; color: var(--ef-accent); }
/* The figures share the column's width equally. A cell never lets its text out: the column is wide enough
   for the longest label, and a figure or a label that still would not fit ends with an ellipsis */
.ef-post__stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; margin-top: .25rem; padding-top: .875rem; border-top: 1px solid var(--ef-line-soft); }
.ef-post__stat { display: grid; grid-template-columns: minmax(0, 1fr); gap: .125rem; min-width: 0; padding-inline: .25rem; }
.ef-post__stat + .ef-post__stat { border-left: 1px solid var(--ef-line-soft); }
.ef-post__stat b { display: block; overflow: hidden; color: var(--ef-text); font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ef-post__stat b.is-plus { color: var(--ef-plus); }
.ef-post__stat > span { display: block; overflow: hidden; color: var(--ef-muted); font-size: .6875rem; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ef-post__stat > span::first-letter { text-transform: uppercase; }
.ef-post__content { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; padding: 1.5rem var(--ef-pad) 1.25rem; border-left: 1px solid var(--ef-line-soft); }
.ef-post__head { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: .375rem 1.125rem; min-width: 0; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 600; }
.ef-post__when { display: inline-flex; align-items: center; gap: .4375rem; }
.ef-post__when svg { width: 1.125rem; height: 1.125rem; }
.ef-post__number { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.75rem; padding: 0 .5625rem; border: 1px solid var(--ef-line); border-radius: .5rem; color: var(--ef-muted); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ef-post__number svg { width: 1rem; height: 1rem; }
.ef-page a.ef-post__number:hover { border-color: color-mix(in srgb, var(--ef-accent) 45%, transparent); color: var(--ef-accent); }
.ef-quote { display: grid; gap: .375rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--ef-line-soft); border-radius: .8125rem; background: var(--ef-sunken); color: var(--ef-muted); font-size: .875rem; overflow-wrap: anywhere; }
.ef-quote__source { display: inline-flex; align-items: center; justify-self: start; gap: .4375rem; color: var(--ef-text); font-size: var(--ef-small); font-weight: 800; }
.ef-quote__source svg { width: 1.125rem; height: 1.125rem; color: var(--ef-accent); }
/* Reactions and the message's tools share one row under the text */
.ef-post__foot { display: grid; gap: .625rem; margin-top: .125rem; }
.ef-post__reacts { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.ef-post__reacts:not(:has(.ef-react, .ef-feedback:not(:empty))) { display: none; }
/* When the message was written and changed, and its number, sit with its tools at the foot */
.ef-post__bar { display: flex; align-items: center; gap: .5rem 1rem; min-width: 0; }
.ef-post__tools { display: flex; flex: none; gap: .125rem; margin-left: auto; }
.ef-react { min-height: 2.375rem; padding: 0 .75rem; border: 1px solid var(--ef-line); border-radius: .6875rem; background: none; color: var(--ef-muted); font-size: var(--ef-small); font-weight: 700; }
.ef-react svg { width: 1.25rem; height: 1.25rem; }
.ef-react b { display: inline-block; color: var(--ef-text); font-variant-numeric: tabular-nums; }
.ef-react:hover { border-color: color-mix(in srgb, var(--ef-text) 26%, transparent); color: var(--ef-text); }
.ef-react[aria-pressed="true"] { border-color: color-mix(in srgb, var(--ef-accent) 45%, transparent); background: color-mix(in srgb, var(--ef-accent) 9%, transparent); color: var(--ef-accent); }
.ef-react[aria-pressed="true"] b { color: var(--ef-accent); }
/* The player's own reaction is drawn solid; the smile keeps its face readable */
.ef-page .ef-react[aria-pressed="true"] svg { fill: currentColor; }
.ef-page .ef-react[aria-pressed="true"][data-ef-reaction="laugh"] svg { fill: color-mix(in srgb, currentColor 28%, transparent); }
.ef-react--static { cursor: default; }
.ef-react--static:hover { border-color: var(--ef-line); color: var(--ef-muted); }
/* The reply reads as the next message, written under the viewer's own card */
.ef-reply { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); scroll-margin-top: var(--ef-sticky-top); }
.ef-reply__main { display: grid; align-content: start; gap: .875rem; min-width: 0; padding: 1.375rem var(--ef-pad) var(--ef-pad); border-left: 1px solid var(--ef-line-soft); }
.ef-reply__main:only-child { grid-column: 1 / -1; border-left: 0; }
.ef-reply .ef-editor--reply .ef-editor__main > .ef-field > .ef-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ef-page .ef-note { display: flex; align-items: center; gap: .75rem; padding: 1rem var(--ef-pad); color: var(--ef-muted); }
.ef-note svg { width: 1.25rem; height: 1.25rem; }

/* Search */
.ef-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; padding: 1rem var(--ef-pad); }
.ef-filters label { display: grid; gap: .4375rem; min-width: 0; font-size: .875rem; font-weight: 700; }
.ef-result { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .875rem; padding: 1rem var(--ef-pad); transition: background-color .2s ease; }
.ef-result + .ef-result { border-top: 1px solid var(--ef-line-soft); }
.ef-result:hover { background: var(--ef-hover); }
.ef-result__main { display: grid; gap: .25rem; min-width: 0; }
.ef-page .ef-result__title { font-size: 1rem; font-weight: 800; }
.ef-result__snippet { color: var(--ef-muted); overflow-wrap: anywhere; }

/* Reading surface shared by messages, previews and the visual editor */
.ef-prose { font-size: 1rem; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.ef-prose :is(p, li) { font-size: inherit; }
.ef-page.elysium-ui .ef-prose :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, pre) { margin: 0 0 var(--elysium-space-lg, 1rem); }
.ef-page.elysium-ui .ef-prose :is(h1, h2, h3, h4, h5, h6) { margin-top: var(--elysium-space-xl, 1.5rem); font-weight: 800; line-height: 1.35; }
.ef-page.elysium-ui .ef-prose :is(h1, h2) { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.ef-page.elysium-ui .ef-prose :is(h3, h4, h5, h6) { font-size: 1.125rem; }
.ef-page.elysium-ui .ef-prose > :first-child, .ef-page.elysium-ui .ef-prose .tiptap > :first-child { margin-top: 0; }
.ef-page.elysium-ui .ef-prose > :last-child { margin-bottom: 0; }
.ef-prose ul, .ef-prose ol { padding-left: 1.5rem; }
.ef-prose ul { list-style: disc; }
.ef-prose ol { list-style: decimal; }
.ef-prose li + li { margin-top: var(--elysium-space-sm, .5rem); }
.ef-prose li::marker { color: var(--ef-muted); }
.ef-prose blockquote { padding: .75rem 1rem; border-radius: .75rem; background: var(--elysium-color-accent-soft); }
.ef-prose pre { max-width: 100%; overflow: auto; padding: 1rem; border-radius: var(--ef-radius); background: var(--ef-sunken); white-space: pre; }
.ef-prose code { font-family: var(--ef-mono); font-size: .9em; }
.ef-prose :not(pre) > code { padding: .0625rem .3125rem; border-radius: .3125rem; background: var(--ef-sunken); }
.ef-prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.ef-prose th, .ef-prose td { padding: .5rem; border: 1px solid var(--ef-line); }
.ef-page .ef-prose a { color: var(--ef-accent); text-decoration: underline; }

@media (max-width: 1100px) {
    .ef-index, .ef-editor--create, .ef-edit-workspace--staff { grid-template-columns: minmax(0, 1fr); }
    .ef-activity__panel { height: auto; max-height: 26rem; }
    /* A narrower column: a smaller picture, the figures as rows with the label on the left */
    .ef-post, .ef-reply { grid-template-columns: 12.5rem minmax(0, 1fr); }
    .ef-post__author, .ef-reply__author { padding: 1.5rem .875rem 1.25rem; }
    .ef-post__avatar .ef-avatar { width: 5.5rem; height: 5.5rem; border-radius: 1.5rem; }
    .ef-post__presence { margin-top: -1.25rem; }
    .ef-post__name { font-size: 1rem; }
    .ef-post__stats { grid-auto-flow: row; gap: .375rem; }
    .ef-post__stat { display: flex; flex-direction: row-reverse; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 0; text-align: left; }
    .ef-post__stat + .ef-post__stat { border-left: 0; }
    .ef-post__stat b { flex: none; max-width: 60%; font-size: .875rem; }
    .ef-post__stat > span { font-size: .75rem; }
    .ef-editor__settings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}

@media (max-width: 900px) {
    .ef-page.elysium-ui .ef-topic-head h1 { font-size: 1.5rem; line-height: 2rem; }
    /* The status track turns into a short vertical list */
    .ef-topic-head__track { display: grid; gap: .75rem; }
    .ef-track { flex-direction: column; align-items: stretch; gap: 0; }
    .ef-track__step { position: relative; align-items: flex-start; padding-bottom: .875rem; }
    .ef-track__step:last-child { padding-bottom: 0; }
    .ef-track__step:not(:last-child)::after { position: absolute; top: 1.875rem; bottom: .25rem; left: .75rem; width: 2px; height: auto; min-width: 0; margin: 0; }
    .ef-track__label, .ef-track__copy .ef-meta { white-space: normal; }
    .ef-board { grid-template-columns: 2.75rem minmax(0, 1fr) auto auto; gap: .75rem 1rem; }
    .ef-board__last { grid-column: 2 / -1; }
    .ef-topics__head { display: none; }
    .ef-topic-row { grid-template-columns: 3.25rem minmax(0, 1fr) 2.25rem; gap: .5rem .875rem; align-items: start; }
    .ef-topic-row__replies, .ef-topic-row__last { display: none; }
    .ef-topic-row__replies-inline { display: inline-flex; }
    .ef-row-menu { grid-column: 3; grid-row: 1; }
    .ef-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-filters__query { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .ef-page { --ef-pad: var(--elysium-space-lg, 1rem); --ef-row-gap: .75rem; }
    .ef-page .ef-main { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
    .ef-page :where(button, input, textarea, select) { scroll-margin-block: 5rem 6rem; }
    .ef-header { padding-top: 1.25rem; }
    .ef-header__surface { gap: .5rem; padding: .5rem .5rem .5rem .75rem; }
    .ef-header__brand { flex: 1 1 0; gap: .625rem; }
    .ef-crumbs li { max-width: 100%; }
    .ef-header__icon { width: 2.125rem; height: 2.125rem; border-radius: .625rem; }
    .ef-page .ef-header__title { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
    .ef-crumbs li:not(:last-child) { display: none; }
    .ef-crumbs li:last-child::before { display: none; }
    .ef-crumbs [aria-current] { max-width: 100%; }
    .ef-header__end { flex: 0 1 auto; }
    .ef-searchbar { flex: 0 0 2.875rem; height: 2.875rem; }
    .ef-searchbar input { opacity: 0; transition: opacity .2s ease; }
    /* Opens for the field itself: focusing the icon alone must not open it before its click */
    .ef-searchbar.is-open, .ef-searchbar:has(input:focus), .ef-searchbar:has(input:not(:placeholder-shown)) { flex: 1 1 auto; }
    .ef-searchbar.is-open input, .ef-searchbar input:focus, .ef-searchbar input:not(:placeholder-shown) { opacity: 1; }
    .ef-header__end:has(.ef-searchbar.is-open), .ef-header__end:has(.ef-searchbar input:focus), .ef-header__end:has(.ef-searchbar input:not(:placeholder-shown)) { flex: 1 1 100%; }
    .ef-page :is(.ef-header__create, .ef-header__action) { width: 2.875rem; min-height: 2.875rem; padding: 0; }
    :is(.ef-header__create, .ef-header__action) span { display: none; }
    .ef-board { grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 1rem; }
    .ef-board .ef-kind { width: 2.5rem; height: 2.5rem; }
    .ef-board__count { display: inline-flex; grid-column: 2; grid-row: 2; justify-self: start; gap: .25rem; }
    .ef-board__count + .ef-board__count { grid-column: 2; grid-row: 2; margin-left: 6.5rem; }
    .ef-board__last { grid-column: 1 / -1; padding-top: .75rem; border-top: 1px solid var(--ef-line-soft); }
    .ef-topics__bar { display: grid; }
    .ef-topics__bar .ef-chips { flex-wrap: nowrap; margin-inline: calc(var(--ef-pad) * -1); padding-inline: var(--ef-pad); overflow-x: auto; scrollbar-width: none; }
    .ef-topic-row { grid-template-columns: 2.875rem minmax(0, 1fr) 2.25rem; padding-inline: .875rem; }
    .ef-vote-tile { width: 2.875rem; height: 3.25rem; }
    .ef-row-menu__list { right: .5rem; width: calc(100% - 1rem); }
    .ef-rules__text, .ef-rules__editor { padding-left: 1.125rem; }
    .ef-rules__text { padding-right: 1.125rem; }
    .ef-rules__meta { display: none; }
    /* The topic's card: the title first, the rating and the subscription share the row under it */
    .ef-topic-head__main { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem .75rem; padding: 1.125rem 1rem 1rem; }
    .ef-topic-head__body { flex: 1 1 100%; order: -1; }
    .ef-topic-head__subscribe { margin-left: auto; }
    .ef-page.elysium-ui .ef-topic-head h1 { font-size: 1.375rem; line-height: 1.8125rem; }
    .ef-topic-head__meta { gap: .375rem .875rem; font-size: var(--ef-small); }
    .ef-topic-head .ef-rate { justify-items: start; }
    .ef-vote { grid-template-rows: none; grid-template-columns: 3rem auto 3rem; width: auto; height: 3rem; border-radius: .875rem; }
    .ef-vote__score { min-width: 2.75rem; padding: 0 .25rem; }
    .ef-button--md { min-height: 3rem; }
    .ef-topic-head__track { padding: .875rem 1rem; }
    .ef-modbar { padding: .875rem 1rem 1rem; }
    .ef-modbar__actions { margin-left: 0; }
    .ef-modbar__form, .ef-modbar__field { width: 100%; }
    .ef-segment--choice { display: flex; }
    .ef-segment--choice label { flex: 1 1 auto; }
    .ef-segment--choice span { justify-content: center; width: 100%; padding: 0 .5rem; }
    .ef-segment--choice svg { display: none; }
    .ef-modbar__switch { width: 100%; }
    .ef-editor__metadata, .ef-filters, .ef-facts { grid-template-columns: minmax(0, 1fr); }
    /* A message: the author's column becomes its head (picture, name, role), the figures go in one row
       under it, the actions keep their icons */
    .ef-post, .ef-reply { grid-template-columns: minmax(0, 1fr); }
    .ef-post__author { position: static; flex-flow: row wrap; align-items: center; gap: .625rem .875rem; padding: 1rem 1rem 0; text-align: left; }
    .ef-post__avatar .ef-avatar { width: 3.75rem; height: 3.75rem; border-radius: 1.125rem; outline-width: 2px; outline-offset: 3px; box-shadow: none; }
    .ef-post__dot { display: block; }
    .ef-post__presence { display: none; }
    .ef-post__id { flex: 1 1 0; justify-items: start; gap: .375rem; width: auto; }
    .ef-post__name { font-size: 1rem; }
    .ef-post__badges { justify-content: flex-start; }
    .ef-post__stats { flex: 1 1 100%; grid-auto-flow: column; gap: 0; margin-top: .25rem; padding-top: .75rem; text-align: center; }
    .ef-post__stat { display: grid; grid-template-columns: minmax(0, 1fr); align-items: normal; justify-content: normal; padding-inline: .25rem; text-align: center; }
    .ef-post__stat + .ef-post__stat { border-left: 1px solid var(--ef-line-soft); }
    .ef-post__stat b { max-width: none; font-size: .9375rem; }
    .ef-post__stat > span { font-size: .6875rem; }
    .ef-post__content { gap: .875rem; padding: .875rem 1rem 1rem; border-left: 0; }
    .ef-post__head { gap: .25rem .875rem; font-size: .75rem; }
    .ef-react span, .ef-post__tools .ef-tool span { display: none; }
    .ef-post__tools .ef-tool { width: 2.75rem; min-height: 2.75rem; padding: 0; }
    .ef-thread__band { padding-inline: 1rem; }
    .ef-reply__author { display: none; }
    .ef-reply__main { padding: 1rem; border-left: 0; }
    .ef-rich-surface, .ef-rich-preview, .ef-compose-box textarea { padding: 1rem; }
    .ef-editor__foot { gap: .5rem; }
    .ef-editor__foot .ef-button { flex: 1 1 auto; }
    .ef-editor:fullscreen { padding: var(--elysium-space-md, .75rem); }
    .ef-visitors__foot { display: grid; }
    .ef-drop { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .ef-page *, .ef-page *::before, .ef-page *::after { animation: none !important; transition: none !important; }
}
html[data-animations="false"] .ef-page *, html[data-animations="false"] .ef-page *::before, html[data-animations="false"] .ef-page *::after { animation: none !important; transition: none !important; }
