/* =========================================================================
   ASROMA.GE — modules-community.css
   Shared community / content modules (discussion, composer, chat, news cards …).
   Loaded on every page by @shell:head. Owned by the COMMUNITY module agent.
   Use semantic tokens only (var(--…)); mobile-first; breakpoints 600 / 900 / 1200.

   Contents
     0  shared text pieces      .flair · .prose · .quote · .mention · .spoiler · .attach-fig
     1  reactions               .reactions .reaction .reaction-picker
     2  discussion              .post-list .post (+ --op --top --mine --hidden --removed) .branch-toggle
     3  composer                .composer .mention-picker .composer-row · report dialog bits
     4  thread row / category   .thread-list .thread-row .forum-cat
     5  chat                    .chat .chat-msg .chat-system .bubble-group .bubble .typing .chat-input
     6  conversation row        .convo-list .convo-row
     7  news                    .news-card .article-body .pullquote .article-figure .tag-chips
     8  rumor                   .rumor .rumor-status .rumor-legend
     9  activity / achievement  .activity-list .activity-row .achv
    10  lock panel              .lock-panel .lock-stage
   ========================================================================= */

/* ===================================================================== 0. SHARED TEXT PIECES */

/* flair chip: user-chosen / city text, never uppercased */
.flair {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 20px; padding: 0 6px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-xs);
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-medium);
  line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap;
  color: var(--text-muted);
}
.flair .icon { width: 12px; height: 12px; }

/* rich text (posts, preview, replies). Article long-form builds on it (.article-body). */
.prose { min-width: 0; font-size: var(--fs-base); line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.prose > * + * { margin-top: .7em; }
.prose p { max-width: var(--reading-max); }
.prose strong { font-weight: var(--fw-semibold); color: var(--text-strong); }
.prose a:not(.mention) { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.mention):hover { color: var(--red-text); }
.prose code {
  padding: 1px 5px; border: var(--bw) solid var(--border-subtle); border-radius: var(--r-xs);
  background: var(--surface-2); color: var(--text-strong);
  font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere;
}
.prose pre { overflow-x: auto; padding: var(--sp-3); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-sm); background: var(--surface-2); }
.prose pre code { padding: 0; border: 0; background: none; font-size: var(--fs-sm); overflow-wrap: normal; white-space: pre; }
.prose ul, .prose ol { display: grid; gap: .3em; padding-left: 1.25em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1em; top: .72em; width: 5px; height: 5px; border-radius: 1px; background: var(--text-faint); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.prose del { color: var(--text-muted); }

/* quote block with optional attribution: <blockquote class="quote"><p class="quote__by">…</p><p>…</p></blockquote> */
.quote, .prose blockquote {
  margin: 0; padding: 8px 12px 8px 14px;
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  font-size: var(--fs-sm); line-height: 1.55; color: var(--text);
}
.quote > p + p, .prose blockquote > p + p { margin-top: .5em; }
.quote__by { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.quote__by .icon { width: 14px; height: 14px; }
.prose .quote__by a, .quote__by a, .quote__by b { color: var(--text-strong); font-weight: var(--fw-semibold); text-decoration: none; }

/* @mention: neutral chip-ish; .is-me = the signed-in user (yellow = yours) */
.mention {
  padding: 0 4px; border-radius: 3px;
  background: var(--surface-3); color: var(--text-strong); font-weight: var(--fw-semibold); text-decoration: none;
  transition: background-color var(--dur-fast);
}
.mention:hover { background: var(--border); }
.mention.is-me { background: var(--yellow-soft); box-shadow: inset 0 -2px 0 var(--yellow); }

/* spoiler: dark bar until revealed (click / Enter / Space) */
.spoiler {
  display: inline; padding: 1px 5px; border-radius: 3px;
  background: var(--island-raised); color: transparent; cursor: pointer; box-shadow: inset 0 0 0 1px var(--border-strong);
  -webkit-user-select: none; user-select: none; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.spoiler * { color: inherit; }
.spoiler:hover { background: var(--island-surface); box-shadow: inset 0 0 0 1px var(--text-strong); }
.spoiler:focus-visible { box-shadow: inset 0 0 0 1px var(--text-strong); }
.spoiler.is-revealed { box-shadow: none; background: var(--surface-3); color: var(--text-strong); cursor: text; -webkit-user-select: text; user-select: text; }
.spoiler.is-revealed:hover { background: var(--surface-3); box-shadow: none; }

/* image attachment placeholder inside a post / message */
.attach-fig { margin: 0; max-width: 420px; }
.attach-fig .ph { border: var(--bw) solid var(--border-subtle); }
.attach-fig figcaption { margin-top: 4px; font-size: var(--fs-xs); color: var(--text-muted); }

/* ===================================================================== 1. REACTIONS */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.reaction {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 10px;
  border: var(--bw) solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-1); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1; font-variant-numeric: tabular-nums;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.reaction:hover { border-color: var(--border-strong); color: var(--text-strong); }
.reaction__emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 16px; line-height: 1; transform-origin: 50% 70%; }
.reaction__count { min-width: 1ch; }
.reaction[aria-pressed="true"] { background: var(--yellow-soft); border-color: var(--yellow); color: var(--text-strong); }
.reaction[aria-pressed="true"] .reaction__count { font-weight: var(--fw-bold); }
.reaction--add { padding: 0; width: 36px; color: var(--text-muted); border-style: dashed; }
.reaction--add .icon { width: 18px; height: 18px; }
.reaction--add:hover, .dropdown.is-open > .reaction--add { border-style: solid; }
.reaction.is-bump .reaction__emoji { animation: cm-pop var(--dur-slow) var(--ease-out); }
.reaction.is-bump .reaction__count { animation: cm-bump var(--dur-slow) var(--ease-out); }
.reactions--lg .reaction { min-height: 44px; padding: 0 14px; gap: 8px; font-size: var(--fs-md); }
.reactions--lg .reaction__emoji { font-size: 20px; }
.reactions--lg .reaction--add { width: 44px; }
.reactions--mini { gap: 4px; }
.reactions--mini .reaction { min-height: 28px; padding: 0 7px; gap: 4px; font-size: var(--fs-xs); }
.reactions--mini .reaction__emoji { font-size: 14px; }
.reactions--mini .reaction--add { width: 28px; }
.reactions__total { margin-left: var(--sp-1); font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .reaction { min-height: 32px; }
  .reaction--add { width: 32px; }
  .reactions--lg .reaction { min-height: 40px; }
}
@keyframes cm-bump { 0% { transform: translateY(0); } 35% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes cm-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-6deg); } 100% { transform: scale(1); } }

/* add-reaction popover (a .dropdown whose menu holds six emoji) */
.reaction-picker { display: flex; gap: 2px; min-width: 0; padding: 4px; }
.reaction-picker__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; line-height: 1;
  transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.reaction-picker__btn:hover, .reaction-picker__btn:focus-visible { background: var(--surface-2); transform: scale(1.15); }
.reaction-picker__btn[aria-pressed="true"] { background: var(--yellow-soft); }
@media (min-width: 900px) { .reaction-picker__btn { width: 38px; height: 38px; } }

/* ===================================================================== 2. DISCUSSION */
/* container: one white card, hairlines between top-level posts */
.post-list { background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); min-width: 0; }
.post-list > .post + .post { border-top: var(--bw) solid var(--border-subtle); }
.post-list > .post:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.post-list > .post:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.post-list > .post:only-child { border-radius: var(--r-md); }

.post {
  --post-rail: 32px; --post-gap: 10px; --post-pad: 14px; 
  position: relative; display: grid; grid-template-columns: var(--post-rail) minmax(0, 1fr);
  column-gap: var(--post-gap);
  min-width: 0; padding: var(--post-pad) var(--sp-3);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.post__rail { position: relative; grid-column: 1; grid-row: 1; min-width: 0; }
.post__content { grid-column: 2; grid-row: 1; min-width: 0; }
.post__replies { grid-column: 2; grid-row: 2; min-width: 0; --px: calc(var(--post-rail) / 2 + var(--post-gap)); }

.post__rail .avatar { --av-size: var(--post-rail); font-size: var(--fs-xs); border-radius: var(--r-sm); }
.post__ghost {
  display: grid; place-items: center; width: var(--post-rail); height: var(--post-rail);
  border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-muted);
}
.post__ghost .icon { width: 18px; height: 18px; }

/* vertical thread line under the parent avatar (only while the branch is open) */
.post__rail::after {
  content: ""; display: none; position: absolute; left: calc(var(--post-rail) / 2 - 1px); top: calc(var(--post-rail) + 6px); bottom: 0;
  border-left: 2px solid var(--post-line, var(--border-strong));
}
.post:has(> .post__replies:not([hidden])) > .post__rail::after { display: block; }

/* nested level (max 2): smaller avatar, connector elbow + continuation */
.post__replies > .post { --post-rail: 24px; --post-gap: 8px; --post-pad: 0px; padding: 12px 0 0; }
.post__replies > .post::before {
  content: ""; position: absolute; left: calc(-1 * var(--px) - 1px); top: 0;
  width: calc(var(--px) - 5px); height: calc(12px + var(--post-rail) / 2 + 1px);
  border-left: 2px solid var(--post-line, var(--border-strong)); border-bottom: 2px solid var(--post-line, var(--border-strong)); border-bottom-left-radius: 10px;
}
.post__replies > .post:not(:last-child)::after {
  content: ""; position: absolute; left: calc(-1 * var(--px) - 1px); top: calc(12px + var(--post-rail) / 2); bottom: 0;
  border-left: 2px solid var(--post-line, var(--border-strong));
}

@media (min-width: 600px) {
  .post { --post-rail: 40px; --post-gap: 14px; --post-pad: 18px; padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .post__rail .avatar { font-size: var(--fs-md); border-radius: var(--r-md); }
  .post__replies > .post { --post-rail: 32px; --post-gap: 12px; }
  .post__replies > .post .avatar { font-size: var(--fs-xs); border-radius: var(--r-sm); }
}
.post--op { --post-pad: 18px; }
@media (min-width: 600px) { .post--op { --post-rail: 44px; --post-pad: 22px; } .post--op .post__body { line-height: 1.65; } }

/* author line */
.post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 24px; }
.post__author { font-size: var(--fs-md); line-height: 1.2; }
a.post__author:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__you { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--yellow-soft); box-shadow: inset 0 0 0 var(--bw) var(--yellow); color: var(--yellow-text); font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 1; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1 0 100%; min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.post__meta .flair + .flair { display: none; }
.post__meta > :not(.flair) + :not(.flair)::before { content: "·"; margin-right: 8px; color: var(--text-faint); }
.post__time { color: var(--text-muted); }
a.post__time:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.post__edited { font-style: italic; }
@media (min-width: 600px) {
  .post__meta { flex: 0 1 auto; }
  .post__meta .flair + .flair { display: inline-flex; }
}

.post__body { margin-top: 6px; }
.post__body .attach-fig { margin-top: .6em; }
.post__reactions { margin-top: 10px; }

/* action bar: vote · reply · quote · share · report · ⋯ — never wraps (labels drop first) */
.post__actions { display: flex; align-items: center; gap: 2px; margin: 6px 0 0 -8px; min-width: 0; }
.post__act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: var(--tap); min-width: var(--tap); padding: 0 10px; border-radius: var(--r-sm);
  color: var(--text-muted); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.post__act .icon { width: 18px; height: 18px; }
.post__act:hover, .post__act:focus-visible, .dropdown.is-open > .post__act { background: var(--surface-2); color: var(--text-strong); }
.post__act-label { display: none; }
.post__act--reply .post__act-label { display: inline; }
.post__act--wide, .post__menu-wide { display: none; }
.post__act.is-done { color: var(--text-faint); pointer-events: none; }
.post__actions .dropdown { margin-left: auto; }

.post__vote { margin-right: 4px; padding: 0 12px 0 10px; border: var(--bw) solid var(--border); color: var(--text); font-variant-numeric: tabular-nums; }
.post__vote:hover { border-color: var(--border-strong); }
.post__vote[aria-pressed="true"] { background: var(--yellow-soft); border-color: var(--yellow); color: var(--text-strong); }
.post__vote[aria-pressed="true"] .icon { fill: currentColor; }
.post__vote [data-count].is-bump { animation: cm-bump var(--dur-slow) var(--ease-out); }

@media (min-width: 600px) {
  .post__act { min-height: 36px; min-width: 36px; }
  .post__act-label { display: inline; }
  .post__act--wide { display: inline-flex; }
  .post__menu-narrow { display: none; }
  .post__menu-wide { display: flex; }
}

/* top reply — best-answer highlight: yellow rule + warm wash + flag */
.post--top { background-image: linear-gradient(90deg, var(--yellow-soft), transparent 72%); --post-line: var(--yellow-press); }
.post--top::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--bw-accent); background: var(--yellow); }
.post__flag {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; height: 22px; padding: 0 8px 0 6px;
  border-radius: var(--r-xs); background: var(--yellow); color: var(--on-yellow);
  font-family: var(--font-display); font-stretch: var(--stretch-c); font-weight: var(--fw-bold);
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.post__flag .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.post--top .post__rail::after { border-color: var(--yellow-press); }

/* moderation states */
.post__notice { display: grid; gap: 2px; justify-items: start; padding: 10px var(--sp-3); border: var(--bw) dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); }
.post__notice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.post__notice-text { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
.post__notice-text a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 3px; }
.post__notice-actions { margin-top: 6px; }
.post--removed .post__notice { border-style: solid; border-color: var(--border-subtle); }
.post--hidden .post__reveal { margin-top: 10px; padding-left: var(--sp-3); border-left: 2px dashed var(--border); opacity: .66; }
.post--hidden .post__reveal .post__body { margin-top: 4px; }

/* branch collapse */
.branch-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin: 2px 0 -6px -4px; padding: 0 6px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.branch-toggle:hover { color: var(--text-strong); background: var(--surface-2); }
.branch-toggle .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.branch-toggle[aria-expanded="false"] .icon { transform: rotate(180deg); }
.branch-toggle .avatar-stack { display: none; }
.branch-toggle[aria-expanded="false"] .avatar-stack { display: inline-flex; }
.branch-toggle__closed, .branch-toggle[aria-expanded="false"] .branch-toggle__open { display: none; }
.branch-toggle[aria-expanded="false"] .branch-toggle__closed { display: inline; }
.branch-toggle[aria-expanded="false"] { color: var(--text-strong); }
@media (min-width: 600px) { .branch-toggle { min-height: 32px; } }

/* fresh post just appended by JS */
.post.is-fresh { animation: cm-flash 2.4s var(--ease-out); }
@keyframes cm-flash { 0% { background-color: var(--yellow-soft); } 100% { background-color: transparent; } }

/* ===================================================================== 3. COMPOSER */
.composer-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.composer-row > .avatar { display: none; }
@media (min-width: 600px) { .composer-row > .avatar { display: inline-grid; margin-top: 2px; } }

.composer {
  position: relative; min-width: 0;
  border: var(--bw) solid var(--border); border-radius: var(--r-md); background: var(--surface-1);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.composer:hover { border-color: var(--border-strong); }
.composer:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.composer.is-flash { animation: cm-halo 1.4s var(--ease-out); }
@keyframes cm-halo { 0% { box-shadow: 0 0 0 5px var(--focus-halo); } 100% { box-shadow: 0 0 0 0 transparent; } }

.composer__context { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 6px 6px var(--sp-3); border-bottom: var(--bw) solid var(--border-subtle); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--yellow-soft); font-size: var(--fs-sm); color: var(--text-strong); }
.composer__context .icon { width: 16px; height: 16px; flex: none; }
.composer__context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__context .icon-btn { margin-left: auto; }

/* title + category (new-thread variant) */
.composer__meta { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-bottom: var(--bw) solid var(--border-subtle); }
.composer__title { width: 100%; min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: var(--text-strong); font-family: var(--font-body); font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.3; letter-spacing: -.005em; }
.composer__title::placeholder { color: var(--text-faint); font-weight: var(--fw-medium); }
.composer__title:focus, .composer__title:focus-visible { outline: none; box-shadow: none; }
@media (min-width: 600px) { .composer__meta { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; } }

/* toolbar */
.composer__bar { display: flex; align-items: center; gap: var(--sp-2); padding: 4px 6px; border-bottom: var(--bw) solid var(--border-subtle); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--surface-2); }
.composer__meta + .composer__bar, .composer__context + .composer__bar { border-radius: 0; }
.composer__tools { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.composer__tools::-webkit-scrollbar { display: none; }
.composer__tool {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  color: var(--text-muted); -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.composer__tool .icon { width: 18px; height: 18px; }
.composer__tool:hover, .composer__tool:focus-visible { background: var(--surface-3); color: var(--text-strong); }
.composer__tool[aria-pressed="true"] { background: var(--surface-3); color: var(--text-strong); }
.composer__tool[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.composer__sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: var(--border); }
.composer__modes { flex: none; }
@media (max-width: 599.98px) {
  .composer__bar { flex-wrap: wrap; gap: 2px; padding: 4px; }
  .composer__tools { display: contents; }
  .composer__sep { display: none; }
  .composer__modes { margin-left: auto; }
}
@media (min-width: 600px) { .composer__tool { width: 32px; height: 32px; } }

.composer__pane { position: relative; min-width: 0; }
.composer__text {
  display: block; width: 100%; min-height: 112px; padding: var(--sp-3); border: 0; border-radius: 0; background: transparent; resize: none; overflow: hidden;
  color: var(--text-strong); font-family: var(--font-body); font-size: 16px; line-height: var(--lh-normal);
}
.composer__text::placeholder { color: var(--text-faint); }
.composer__text:focus, .composer__text:focus-visible { outline: none; box-shadow: none; }
@media (min-width: 900px) { .composer__text { font-size: var(--fs-base); } }
.composer__preview { min-height: 112px; padding: var(--sp-3); }
.composer__preview.is-empty { color: var(--text-faint); font-style: italic; }

.composer__files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--sp-3) var(--sp-2); }
.composer__files:empty { display: none; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 4px 0 4px;
  border: var(--bw) solid var(--border); border-radius: var(--r-sm); background: var(--surface-2);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text);
}
.attach-chip__thumb { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-xs); background: linear-gradient(155deg, var(--ph-a), var(--ph-b)); color: var(--ph-fg); }
.attach-chip__thumb .icon { width: 14px; height: 14px; }
.attach-chip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip__remove { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-xs); color: var(--text-muted); }
.attach-chip__remove:hover { background: var(--surface-3); color: var(--text-strong); }
.attach-chip__remove .icon { width: 14px; height: 14px; }

.composer__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.composer__hint { display: none; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.composer__hint .icon { width: 14px; height: 14px; flex: none; }
.composer__hint code { padding: 0 4px; border-radius: var(--r-xs); background: var(--surface-2); font-family: var(--font-mono); font-size: .95em; color: var(--text-strong); }
.composer__count { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.composer__hint ~ .composer__count { margin-left: 0; }
.composer__count.is-near { color: var(--warning); }
.composer__count.is-over { color: var(--danger); font-weight: var(--fw-bold); }
.composer__actions { display: flex; gap: var(--sp-2); align-items: center; }
.composer.is-invalid { border-color: var(--danger); }
.composer__error { display: none; width: 100%; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--danger); }
.composer__error .icon { width: 14px; height: 14px; }
.composer.is-invalid .composer__error { display: flex; }
@media (min-width: 600px) { .composer__hint { display: flex; } }

/* compact (inline reply): toolbar + footer appear once focused */
.composer--compact .composer__text { min-height: 72px; padding: 10px var(--sp-3); }
.composer--compact .composer__preview { min-height: 72px; }
.composer--compact:not(:focus-within):not(.is-open) .composer__bar,
.composer--compact:not(:focus-within):not(.is-open) .composer__hint { display: none; }
.composer--compact:not(:focus-within):not(.is-open) .composer__foot { padding-top: 0; }
.composer--compact:not(:focus-within):not(.is-open) .composer__count { display: none; }
.composer--compact:not(:focus-within):not(.is-open) .composer__actions { margin-left: auto; }
.composer--compact .composer__foot { padding-bottom: var(--sp-2); }

/* mention picker (positioned at the caret by JS through --mp-x / --mp-y) */
.mention-picker {
  position: absolute; z-index: var(--z-dropdown); left: var(--mp-x, 8px); top: var(--mp-y, 40px);
  width: min(300px, calc(100% - 16px)); max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px; border: var(--bw) solid var(--border); border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--shadow-pop);
  animation: asr-pop var(--dur) var(--ease-out); transform-origin: top left;
}
.mention-picker__label { padding: 6px 8px 4px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.mention-picker__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); width: 100%; min-height: 44px; padding: 4px 8px; border-radius: var(--r-sm); text-align: left;
  color: var(--text-strong);
}
.mention-picker__item:hover, .mention-picker__item.is-active { background: var(--surface-2); }
.mention-picker__item.is-active { box-shadow: inset 3px 0 0 var(--yellow); }
.mention-picker__handle { display: block; font-size: var(--fs-md); font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-picker__sub { display: block; font-size: var(--fs-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-picker__empty { padding: 10px 8px; font-size: var(--fs-sm); color: var(--text-muted); }

/* report dialog bits */
.report-target { padding: 8px 12px; border-left: 3px solid var(--border-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-muted); overflow-wrap: anywhere; }
.report-target b { color: var(--text-strong); }
.report-reasons { display: grid; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.report-reasons legend { padding: 0; margin-bottom: var(--sp-2); }
.report-reasons .check { width: 100%; min-height: 48px; padding: 14px 12px; border: var(--bw) solid var(--border); border-radius: var(--r-sm); background: var(--surface-1); }
.report-reasons .check > input { left: 12px; top: 14px; }
.report-reasons .check__box { margin-left: 0; }
.report-reasons .check:hover { border-color: var(--border-strong); }
.report-reasons .check:has(input:checked) { border-color: var(--text-strong); background: var(--yellow-soft); }
.report-reasons .check:has(input:focus-visible) { outline: var(--bw-2) solid var(--focus); outline-offset: 2px; }
.report-reasons + .field__error { display: none; }
.field.is-invalid .report-reasons ~ .field__error { display: flex; }
.field.is-invalid .report-reasons .check { border-color: var(--danger); }

/* ===================================================================== 4. THREAD ROW · FORUM CATEGORY */
.thread-list { display: block; min-width: 0; background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); overflow: hidden; }
.thread-list > * + * { border-top: var(--bw) solid var(--border-subtle); }
.thread-row {
  position: relative; display: grid; gap: 10px var(--sp-4); align-items: center; min-width: 0;
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "main main" "stats last";
  padding: 14px var(--sp-4) 12px 20px; color: var(--text); text-decoration: none;
  transition: background-color var(--dur-fast);
}
a.thread-row:hover { background: var(--surface-2); }
a.thread-row:hover .thread-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.thread-row:focus-visible { outline-offset: -2px; }
.thread-row.is-unread::before { content: ""; position: absolute; left: 7px; top: 19px; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--red); }
.thread-row.is-unread .thread-row__title { font-weight: var(--fw-bold); }
.thread-row.is-pinned { background: var(--surface-2); }
html[data-match="live"] .thread-row.is-live { box-shadow: inset 3px 0 0 var(--live); }
html[data-match="live"] .thread-row.is-live.is-unread::before { display: none; }
.thread-row__main { grid-area: main; display: grid; gap: 6px; min-width: 0; }
.thread-row__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.thread-row__flags:empty { display: none; }
.thread-row__flag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.thread-row__flag .icon { width: 14px; height: 14px; }
.thread-row__flag--hot { color: var(--yellow-text); }
.thread-row__flag--hot .icon { fill: var(--yellow); stroke: var(--yellow-text); }
.thread-row__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: 1.35; letter-spacing: -.005em; color: var(--text-strong); overflow-wrap: anywhere;
}
.thread-row__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.thread-row__by .username { font-size: var(--fs-sm); }
.thread-row__stats { grid-area: stats; display: flex; align-items: center; gap: var(--sp-4); }
.thread-row__stat { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.thread-row__stat .icon { width: 16px; height: 16px; }
.thread-row__stat b { font-weight: var(--fw-semibold); color: var(--text-strong); }
.thread-row__last { grid-area: last; display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.thread-row__last-text { display: grid; min-width: 0; text-align: right; }
.thread-row__last .username { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row__last .avatar { display: none; }
@media (min-width: 900px) {
  .thread-row { grid-template-columns: minmax(0, 1fr) 216px 176px; grid-template-areas: "main stats last"; padding: 14px var(--sp-5) 14px 24px; }
  .thread-row.is-unread::before { left: 9px; }
  .thread-row__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .thread-row__stat { justify-content: flex-start; }
  .thread-row__last { justify-content: flex-start; }
  .thread-row__last .avatar { display: inline-grid; }
  .thread-row__last-text { text-align: left; }
}
/* compact (Home / sidebar): title + one meta line */
.thread-row--compact { grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--sp-3); padding: 10px var(--sp-4) 10px 20px; }
.thread-row--compact .thread-row__by .avatar, .thread-row--compact .thread-row__by .level { display: none; }
.thread-row--compact .thread-row__title { font-size: var(--fs-md); }
.thread-row--compact .thread-row__stats { gap: var(--sp-3); }
.thread-row--compact .thread-row__stat--views, .thread-row--compact .thread-row__stat--ups { display: none; }
.thread-row--compact .thread-row__last .avatar { display: none; }
.thread-row--compact .thread-row__last-text { display: flex; gap: 6px; text-align: right; }
@media (min-width: 900px) { .thread-row--compact { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "main main" "stats last"; padding: 10px var(--sp-4) 10px 20px; } .thread-row--compact .thread-row__stats { display: flex; gap: var(--sp-3); } .thread-row--compact .thread-row__last { justify-content: flex-end; } .thread-row--compact .thread-row__last-text { text-align: right; } }

/* category card */
.forum-cat {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-content: start; min-width: 0; padding: var(--sp-4);
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); color: var(--text); text-decoration: none;
  transition: border-color var(--dur-fast);
}
a.forum-cat:hover { border-color: var(--border-strong); }
a.forum-cat:focus-visible { outline-offset: 3px; }
.forum-cat__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--surface-inverse); color: var(--text-inverse);
}
html[data-theme="dark"] .forum-cat__icon { background: var(--surface-3); color: var(--yellow); }
.forum-cat__icon .icon { width: 22px; height: 22px; }
.forum-cat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.forum-cat__name { font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-xl); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; color: var(--text-strong); }
.forum-cat__body { display: grid; gap: 6px; min-width: 0; }
.forum-cat__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }
.forum-cat__counts { display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.forum-cat__counts b { color: var(--text-strong); font-weight: var(--fw-semibold); }
.forum-cat__latest { grid-column: 1 / -1; display: grid; gap: 2px; min-width: 0; padding-top: var(--sp-3); border-top: var(--bw) solid var(--border-subtle); font-size: var(--fs-xs); color: var(--text-muted); }
.forum-cat__latest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
a.forum-cat:hover .forum-cat__icon { background: var(--yellow); color: var(--on-yellow); }

/* ===================================================================== 5. CHAT */
.chat {
  --chat-h: 520px;
  position: relative; display: flex; flex-direction: column; min-width: 0; height: var(--chat-h); overflow: hidden;
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md);
  --bubble-mine-bg: var(--surface-inverse); --bubble-mine-fg: var(--text-inverse);
}
html[data-theme="dark"] .chat { --bubble-mine-bg: var(--surface-3); --bubble-mine-fg: var(--text-strong); }
.chat--auto { height: auto; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex: none; min-height: 48px; padding: var(--sp-2) var(--sp-3); border-bottom: var(--bw) solid var(--border-subtle); }
.chat__title { font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-lg); letter-spacing: .03em; text-transform: uppercase; color: var(--text-strong); }
.chat__log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-2) 0; scroll-behavior: smooth; }
.chat__new {
  position: absolute; left: 50%; bottom: 68px; z-index: var(--z-raised); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-sm);
  background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--shadow-pop);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; animation: asr-fade-up var(--dur) var(--ease-out);
}
.chat__new .icon { width: 16px; height: 16px; }
.chat__new .count { margin-left: 2px; }

/* (a) live chat rows */
.chat-msg { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 10px; padding: 6px var(--sp-3); transition: background-color var(--dur-fast); }
.chat-msg:hover { background: var(--hover-tint); }
.chat-msg .avatar { margin-top: 1px; }
.chat-msg__body { min-width: 0; }
.chat-msg__head { display: flex; align-items: center; gap: 6px; min-height: 20px; min-width: 0; }
.chat-msg__head .username { font-size: var(--fs-sm); line-height: 1.2; }
.chat-msg__time { padding-left: 2px; font-size: var(--fs-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat-msg__reply { display: flex; align-items: center; gap: 6px; margin: 2px 0; padding-left: 8px; border-left: 2px solid var(--border-strong); font-size: var(--fs-xs); color: var(--text-muted); min-width: 0; }
.chat-msg__reply .icon { width: 12px; height: 12px; flex: none; }
.chat-msg__reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-msg__text { max-width: none; font-size: var(--fs-md); line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.chat-msg__reacts { margin-top: 4px; }
.chat-msg--mine { box-shadow: inset 2px 0 0 var(--yellow); }
.chat-msg--mine .username { color: var(--text-strong); }
.chat-msg--goal .chat-msg__text { font-weight: var(--fw-semibold); color: var(--text-strong); }
@media (min-width: 600px) { .chat-msg { padding-left: var(--sp-4); padding-right: var(--sp-4); } }

.chat-system {
  display: flex; align-items: center; gap: var(--sp-2); margin: 6px var(--sp-3); padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border-left: 3px solid var(--border-strong); font-size: var(--fs-sm); color: var(--text-muted);
}
.chat-system .icon { width: 16px; height: 16px; flex: none; }
.chat-system b { color: var(--text-strong); font-weight: var(--fw-semibold); }
.chat-system__min { font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-md); color: var(--accent-num); font-variant-numeric: tabular-nums; flex: none; }
.chat-system--goal { border-left-color: var(--live); background: var(--red-soft); color: var(--text-strong); font-weight: var(--fw-semibold); }
.chat-system--goal .icon { color: var(--red-text); }
.chat-system--var { border-left-color: var(--yellow); }
.chat-system--var .icon { color: var(--yellow-text); }

/* day separator / unread divider */
.chat-day, .chat-unread { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-3) var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.chat-day::before, .chat-day::after, .chat-unread::before, .chat-unread::after { content: ""; flex: 1 1 0; border-top: var(--bw) solid var(--border-subtle); }
.chat-unread { color: var(--red-text); }
.chat-unread::before, .chat-unread::after { border-top-color: var(--red); opacity: .5; }

/* (b) DM bubbles */
.chat--dm .chat__log { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3); background: var(--surface-2); }
.bubble-group { display: flex; align-items: flex-end; gap: var(--sp-2); min-width: 0; margin-top: var(--sp-2); }
.bubble-group--mine { justify-content: flex-end; }
.bubble-group__stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: min(82%, 460px); }
.bubble-group--mine .bubble-group__stack { align-items: flex-end; }
.bubble-group--theirs .bubble-group__stack { align-items: flex-start; }
.bubble-group > .avatar { align-self: flex-start; margin-top: 0; }
.bubble-group__meta { display: flex; align-items: center; gap: 6px; margin: 1px 2px 0; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bubble {
  max-width: 100%; padding: 8px 12px; border: var(--bw) solid var(--border-subtle); border-radius: var(--r-lg);
  background: var(--surface-1); color: var(--text-strong); font-size: var(--fs-base); line-height: 1.45; overflow-wrap: anywhere;
}
.bubble p { max-width: none; }
.bubble-group--theirs .bubble:last-of-type { border-bottom-left-radius: 2px; }
.bubble-group--mine .bubble { background: var(--bubble-mine-bg); border-color: var(--bubble-mine-bg); color: var(--bubble-mine-fg); }
.bubble-group--mine .bubble:last-of-type { border-bottom-right-radius: 2px; }
.bubble--image { padding: 4px; width: min(280px, 100%); }
.bubble--image .ph { border-radius: var(--r-md); }
.bubble--image p { padding: 6px 8px 4px; font-size: var(--fs-sm); }
.receipt { display: inline-flex; align-items: center; color: var(--text-faint); }
.receipt .icon { width: 16px; height: 16px; }
.receipt.is-read { color: var(--highlight); }
html[data-theme="dark"] .receipt.is-read { color: var(--yellow); }
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border: var(--bw) solid var(--border-subtle); border-radius: var(--r-lg); border-bottom-left-radius: 2px; background: var(--surface-1); }
.typing i { display: block; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--text-muted); animation: cm-typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cm-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } .typing i:nth-child(2) { opacity: .8; } .typing i:nth-child(3) { opacity: 1; } .chat__log { scroll-behavior: auto; } }
.typing-row { display: flex; align-items: flex-end; gap: var(--sp-2); margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }

/* (c) input bar */
.chat-input { display: flex; align-items: center; gap: var(--sp-2); flex: none; padding: var(--sp-2); border-top: var(--bw) solid var(--border-subtle); background: var(--surface-1); }
.chat-input__field {
  flex: 1 1 auto; min-width: 0; min-height: var(--tap); padding: 0 var(--sp-3); border: var(--bw) solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-1); color: var(--text-strong); font-family: var(--font-body); font-size: 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.chat-input__field::placeholder { color: var(--text-faint); }
.chat-input__field:hover { border-color: var(--border-strong); }
.chat-input__field:focus, .chat-input__field:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
@media (min-width: 900px) { .chat-input__field { font-size: var(--fs-base); } }

/* ===================================================================== 6. CONVERSATION ROW */
.convo-list { display: block; min-width: 0; background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); overflow: hidden; }
.convo-list > * + * { border-top: var(--bw) solid var(--border-subtle); }
.convo-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3);
  width: 100%; min-height: 68px; padding: var(--sp-3) var(--sp-4); text-align: left; color: var(--text); text-decoration: none;
  transition: background-color var(--dur-fast);
}
.convo-row:hover { background: var(--surface-2); }
.convo-row:focus-visible { outline-offset: -2px; }
.convo-row .avatar-wrap { --ring-color: var(--surface-1); }
.convo-row:hover .avatar-wrap { --ring-color: var(--surface-2); }
.convo-row.is-active .avatar-wrap { --ring-color: var(--surface-2); }
.convo-row__main { display: grid; gap: 2px; min-width: 0; }
.convo-row__name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.convo-row__name .username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); }
.convo-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--text-muted); }
.convo-row__preview b { font-weight: var(--fw-medium); color: var(--text); }
.convo-row__trail { display: grid; justify-items: end; align-content: center; gap: 4px; min-width: 32px; }
.convo-row__time { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.convo-row.is-unread .convo-row__name .username { font-weight: var(--fw-bold); }
.convo-row.is-unread .convo-row__preview { color: var(--text-strong); font-weight: var(--fw-medium); }
.convo-row.is-unread .convo-row__time { color: var(--text-strong); font-weight: var(--fw-semibold); }
.convo-row.is-active, .convo-row[aria-current="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--yellow); }

/* ===================================================================== 7. NEWS */
.news-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md);
  color: var(--text); text-decoration: none; transition: border-color var(--dur-fast);
}
a.news-card:hover { border-color: var(--border-strong); }
a.news-card:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.news-card:focus-visible { outline-offset: 3px; }
.news-card__media { flex: none; border-radius: 0; }
.news-card__body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; padding: var(--sp-4); }
.news-card__cat { display: flex; align-items: center; gap: var(--sp-2); }
.news-card__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-family: var(--font-body); font-stretch: var(--stretch-n); text-transform: none;
  font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.28; letter-spacing: -.01em; color: var(--text-strong); text-wrap: pretty;
}
.news-card__dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: none; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
.news-card__meta { margin-top: auto; padding-top: var(--sp-1); }
.news-card__meta .username { font-size: inherit; font-weight: var(--fw-medium); color: var(--text); }

/* featured: media + body split ≥ 900, stacked on mobile */
.news-card--featured .news-card__title { -webkit-line-clamp: 4; line-clamp: 4; font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.2; }
.news-card--featured .news-card__dek { -webkit-line-clamp: 3; line-clamp: 3; font-size: var(--fs-md); }
.news-card--featured .news-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); gap: var(--sp-3); }
@media (min-width: 900px) {
  .news-card--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .news-card--featured .news-card__media { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .news-card--featured .news-card__body { justify-content: center; padding: var(--sp-8) var(--sp-6); }
  .news-card--featured .news-card__title { font-size: var(--fs-2xl); }
  .news-card--featured .news-card__meta { margin-top: var(--sp-2); }
}
/* overlay: headline on the media (always an ink island) — add class .on-dark next to .news-card--overlay so tokens remap */
.news-card--overlay { display: block; min-height: 280px; border-color: var(--island-bg); background: var(--island-surface); }
.news-card--overlay .news-card__media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.news-card--overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--island-bg) 6%, transparent 78%); opacity: .92; pointer-events: none; }
.news-card--overlay .news-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--z-raised); padding: var(--sp-5) var(--sp-4) var(--sp-4); }
.news-card--overlay .news-card__title { font-size: var(--fs-xl); font-weight: var(--fw-bold); -webkit-line-clamp: 3; line-clamp: 3; }
@media (min-width: 900px) { .news-card--overlay { min-height: 380px; } .news-card--overlay .news-card__body { padding: var(--sp-8) var(--sp-6) var(--sp-6); max-width: 760px; } .news-card--overlay .news-card__title { font-size: var(--fs-2xl); } }
/* horizontal row: thumb left */
.news-card--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
.news-card--row .news-card__media { height: 100%; aspect-ratio: auto; min-height: 96px; }
.news-card--row .ph__glyph, .news-card--row .ph__icon { display: none; }
.news-card--row .news-card__body { padding: var(--sp-3); gap: 6px; }
.news-card--row .news-card__title { font-size: var(--fs-base); -webkit-line-clamp: 3; line-clamp: 3; }
.news-card--row .news-card__dek { display: none; }
@media (min-width: 600px) { .news-card--row { grid-template-columns: 200px minmax(0, 1fr); } .news-card--row .news-card__body { padding: var(--sp-4); } .news-card--row .news-card__title { font-size: var(--fs-lg); -webkit-line-clamp: 2; line-clamp: 2; } .news-card--row .news-card__dek { display: -webkit-box; } .news-card--row .ph__glyph { display: block; } }
/* compact: text only, for lists (related, sidebar) */
.news-card--compact { border-radius: 0; border-width: 0 0 var(--bw) 0; background: transparent; }
.news-card--compact .news-card__body { padding: var(--sp-3) 0; gap: 6px; }
.news-card--compact .news-card__title { font-size: var(--fs-base); line-height: 1.35; -webkit-line-clamp: 2; line-clamp: 2; }
.news-card--compact:last-child { border-bottom: 0; }
.news-list { display: grid; min-width: 0; }
a.news-card--compact:hover { border-color: var(--border-subtle); }

/* article long-form */
.article-body { --ab-fs: var(--fs-base); max-width: var(--reading-max); font-size: var(--ab-fs); line-height: 1.7; color: var(--text); }
@media (min-width: 900px) { .article-body { --ab-fs: var(--fs-lg); line-height: 1.7; } }
.article-body > * + * { margin-top: 1.1em; }
.article-body p { max-width: none; }
.article-body > p:first-child, .article-body .article-lead { font-size: calc(var(--ab-fs) + 3px); line-height: 1.55; font-weight: var(--fw-medium); color: var(--text-strong); }
.article-body h2, .article-body h3 { max-width: none; margin-top: 1.8em; font-family: var(--font-body); font-stretch: var(--stretch-n); text-transform: none; letter-spacing: -.015em; line-height: 1.2; font-weight: var(--fw-bold); color: var(--text-strong); text-wrap: balance; }
.article-body h2 { font-size: var(--fs-xl); }
.article-body h3 { font-size: var(--fs-lg); }
.article-body h2 + *, .article-body h3 + * { margin-top: .6em; }
.article-body ul, .article-body ol { display: grid; gap: .4em; padding-left: 1.3em; }
.article-body ul { list-style: none; }
.article-body ul > li { position: relative; }
.article-body ul > li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: 6px; height: 6px; border-radius: 1px; background: var(--yellow); box-shadow: 0 0 0 1px var(--border-strong); }
.article-body ol { list-style: decimal; }
.article-body ol > li::marker { font-weight: var(--fw-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.article-body a:not(.mention):not(.tag-chip) { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 3px; }
.article-body a:not(.mention):not(.tag-chip):hover { color: var(--red-text); }
.article-body strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.article-body hr { border: 0; border-top: var(--bw) solid var(--border); margin: 2em 0; }
.article-body code { padding: 1px 5px; border-radius: var(--r-xs); background: var(--surface-2); font-family: var(--font-mono); font-size: .88em; }

.pullquote { position: relative; margin: 1.6em 0; padding: 4px 0 4px var(--sp-5); border-left: var(--bw-accent) solid var(--yellow); max-width: none; }
.pullquote p { max-width: none; font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 1.3; letter-spacing: -.012em; color: var(--text-strong); text-wrap: balance; }
.pullquote__by { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); }
.pullquote__by .username { font-size: var(--fs-sm); }
@media (min-width: 900px) { .pullquote p { font-size: var(--fs-2xl); } }

.article-figure { margin: 1.6em 0; max-width: none; }
.article-figure .ph { border-radius: var(--r-md); }
.article-figure figcaption { display: flex; align-items: flex-start; gap: 6px; margin-top: var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }
.article-figure figcaption .icon { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.article-stats { margin: 1.6em 0; padding: var(--sp-4); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1); }
.article-stats__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.article-stats__title { font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-md); letter-spacing: .04em; text-transform: uppercase; color: var(--text-strong); }
.article-stats__teams { display: flex; gap: var(--sp-4); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.article-stats__body { display: grid; gap: var(--sp-4); }
.article-stats figcaption, .article-stats__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }

/* tagged players / match */
.tag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.tag-chips__label { display: inline-flex; align-items: center; gap: 6px; margin-right: var(--sp-1); font-family: var(--font-display); font-stretch: var(--stretch-c); font-weight: var(--fw-bold); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.tag-chips__label .icon { width: 14px; height: 14px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; padding: 0 12px 0 4px;
  border: var(--bw) solid var(--border); border-radius: var(--r-sm); background: var(--surface-1);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1; color: var(--text-strong); text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.tag-chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.tag-chip__num { display: grid; place-items: center; flex: none; min-width: 28px; height: 28px; padding: 0 4px; border-radius: var(--r-xs); background: var(--surface-inverse); color: var(--text-inverse); font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tag-chip__num { background: var(--island-raised); color: var(--yellow); }
.tag-chip--match { padding-left: 8px; }
.tag-chip--match .club { flex: none; }
.tag-chip--match small { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-muted); }
@media (min-width: 900px) { .tag-chip { min-height: 32px; } .tag-chip__num { height: 24px; min-width: 24px; font-size: var(--fs-sm); } }

/* ===================================================================== 8. RUMOR */
.rumor {
  position: relative; display: grid; align-content: start; gap: var(--sp-3); min-width: 0; padding: var(--sp-4);
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md);
}
@media (min-width: 600px) { .rumor { padding: var(--sp-5); } }
.rumor__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); }
.rumor__tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, var(--ph-a), var(--ph-b)); color: var(--ph-fg);
  font-family: var(--font-display); font-stretch: var(--stretch-c); font-weight: var(--fw-bold); font-size: var(--fs-sm); letter-spacing: .06em;
}
.rumor__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, var(--ph-pattern) 0 6px, transparent 6px 12px); }
.rumor__name { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.2; letter-spacing: -.01em; color: var(--text-strong); text-transform: none; font-family: var(--font-body); font-stretch: var(--stretch-n); overflow-wrap: anywhere; }
.rumor__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-2); margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); }
.rumor__dir { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-semibold); color: var(--text); }
.rumor__dir .icon { width: 12px; height: 12px; }
.rumor-status { flex: none; gap: 5px; }
.rumor-status .icon { width: 14px; height: 14px; }
.rumor-status--rumor { color: var(--text-muted); border-style: dashed; }
.rumor-status--talks { color: var(--text-strong); border-color: var(--border-strong); }
.rumor-status--advanced { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }
.rumor-status--done { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.rumor-status--dead { color: var(--text-faint); text-decoration: line-through; text-decoration-thickness: 1px; border-color: var(--border-subtle); }
.rumor.is-dead .rumor__name, .rumor.is-dead .rumor__route { opacity: .62; }

.rumor__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-sm); background: var(--surface-2); }
.rumor__club { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.2; color: var(--text-strong); }
.rumor__club > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.rumor__club:last-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.rumor__arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-xs); background: var(--surface-inverse); color: var(--text-inverse); }
html[data-theme="dark"] .rumor__arrow { background: var(--yellow); color: var(--on-yellow); }
.rumor__arrow .icon { width: 16px; height: 16px; }
.rumor__fee { font-size: var(--fs-md); line-height: 1.45; color: var(--text); }
.rumor__facts { display: grid; gap: var(--sp-2); }
.rumor__fact { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-3); min-width: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.rumor__fact > .icon { width: 16px; height: 16px; flex: none; }
.rumor__fact b { font-weight: var(--fw-semibold); color: var(--text-strong); }
.rumor__fact .meter { margin-left: auto; }
.rumor__vote { display: grid; gap: var(--sp-3); padding-top: var(--sp-3); border-top: var(--bw) solid var(--border-subtle); }
.rumor__choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.rumor__choice {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 var(--sp-3);
  border: var(--bw) solid var(--border); border-radius: var(--r-sm); background: var(--surface-1); color: var(--text-strong);
  font-family: var(--font-display); font-stretch: var(--stretch-c); font-weight: var(--fw-bold); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.1;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.rumor__choice .icon { width: 18px; height: 18px; flex: none; }
.rumor__choice:hover { border-color: var(--border-strong); background: var(--surface-2); }
.rumor__choice[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 var(--bw) var(--yellow); background: var(--yellow-soft); }
.rumor__votes { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rumor__votes b { color: var(--text-strong); font-weight: var(--fw-semibold); }
.rumor__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.rumor .split__seg { transition: flex-grow var(--dur-slow) var(--ease-out); }

.rumor-legend { display: grid; gap: var(--sp-2); }
.rumor-legend__row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); }
.rumor-legend__row b { color: var(--text-strong); font-weight: var(--fw-semibold); }
@media (min-width: 600px) { .rumor-legend { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ===================================================================== 9. ACTIVITY ROW · ACHIEVEMENT TILE */
.activity-list { display: block; margin: 0; padding: 0; list-style: none; min-width: 0; }
.activity-list > * + * { border-top: var(--bw) solid var(--border-subtle); }
.activity-list--card { background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md); }
.activity-list--card > .activity-row { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.activity-row { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--sp-3); align-items: start; padding: var(--sp-3) 0; color: var(--text); text-decoration: none; }
a.activity-row:hover { background: var(--surface-2); }
.activity-row__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-muted); }
.activity-row__icon .icon { width: 16px; height: 16px; }
.activity-row__icon--points { background: var(--yellow-soft); color: var(--yellow-text); box-shadow: inset 0 0 0 var(--bw) var(--yellow); }
.activity-row__icon--level { background: var(--yellow); color: var(--on-yellow); }
.activity-row__icon--live { background: var(--red-soft); color: var(--red-text); }
.activity-row__body { display: grid; gap: 2px; min-width: 0; }
.activity-row__text { max-width: none; font-size: var(--fs-md); line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.activity-row__text a { color: var(--text-strong); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.activity-row__text a:hover { text-decoration-color: var(--red-text); }
.activity-row__text b { font-weight: var(--fw-semibold); color: var(--text-strong); }
.activity-row__pts { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--text-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-row__pts .icon { width: 12px; height: 12px; color: var(--yellow-text); fill: var(--yellow); }
.activity-row__time { font-size: var(--fs-xs); color: var(--text-muted); }
.activity-row.is-unread::before { content: ""; position: absolute; right: 0; top: 18px; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--red); }
.activity-list--card .activity-row.is-unread::before { right: var(--sp-4); }
.activity-row.is-unread { padding-right: var(--sp-5); }
.activity-list--card .activity-row.is-unread { padding-right: var(--sp-8); }
.activity-row.is-unread .activity-row__text { color: var(--text-strong); }
.activity-row--compact { padding: var(--sp-2) 0; gap: var(--sp-2); grid-template-columns: 24px minmax(0, 1fr); }
.activity-row--compact .activity-row__icon { width: 24px; height: 24px; }
.activity-row--compact .activity-row__icon .icon { width: 14px; height: 14px; }
.activity-row--compact .activity-row__text { font-size: var(--fs-sm); }

.achv {
  position: relative; display: grid; align-content: start; justify-items: start; gap: var(--sp-1); min-width: 0; padding: var(--sp-4);
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md);
}
.achv__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--sp-2); border-radius: var(--r-sm); background: var(--yellow); color: var(--on-yellow); box-shadow: inset 0 -3px 0 var(--yellow-press); }
.achv__icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.achv__name { font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-lg); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; color: var(--text-strong); }
.achv__desc { max-width: none; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-muted); }
.achv__state { display: inline-flex; align-items: center; gap: 5px; margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.achv__state .icon { width: 14px; height: 14px; color: var(--success); }
.achv__progress { width: 100%; margin-top: var(--sp-2); }
.achv__progress .progress-field__head { font-size: var(--fs-xs); }
.achv.is-earned { border-color: var(--border); }
.achv.is-locked { background: transparent; border-style: dashed; border-color: var(--border); }
.achv.is-locked .achv__icon { background: var(--surface-3); color: var(--text-faint); box-shadow: none; }
.achv.is-locked .achv__name { color: var(--text-muted); }

/* ===================================================================== 10. LOCK PANEL */
.lock-panel {
  display: grid; justify-items: center; gap: var(--sp-4); max-width: 520px; margin-inline: auto; padding: var(--sp-8) var(--sp-5); text-align: center;
  background: var(--surface-1); border: var(--bw) solid var(--border-subtle); border-radius: var(--r-md);
}
.lock-panel__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-md); background: var(--island-surface); color: var(--brand-yellow); box-shadow: inset 0 -3px 0 var(--brand-yellow); }
.lock-panel__icon .icon { width: 30px; height: 30px; stroke-width: 1.75; }
.lock-panel__title { max-width: 18ch; font-family: var(--font-display); font-stretch: var(--stretch-xc); font-weight: var(--fw-black); font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--text-strong); text-wrap: balance; }
.lock-panel__text { max-width: 42ch; font-size: var(--fs-md); line-height: 1.5; color: var(--text-muted); }
.lock-panel .level-progress { width: 100%; text-align: left; }
.lock-panel__earn { width: 100%; padding: 0; margin: 0; list-style: none; border-top: var(--bw) solid var(--border-subtle); text-align: left; }
.lock-panel__earn > li + li { border-top: var(--bw) solid var(--border-subtle); }
.lock-panel__earn a, .lock-panel__earn > li > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) 0; color: var(--text); text-decoration: none; font-size: var(--fs-md); }
.lock-panel__earn a:hover { color: var(--text-strong); }
.lock-panel__earn a:hover .lock-panel__pts { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.lock-panel__earn .icon { width: 18px; height: 18px; color: var(--text-muted); }
.lock-panel__pts { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: var(--bw) solid var(--border); border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.lock-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); width: 100%; }
@media (min-width: 600px) { .lock-panel { padding: var(--sp-10) var(--sp-8); } .lock-panel__actions .btn { min-width: 200px; } }

/* locked feature behind a veil: .lock-stage > .lock-stage__bg (blurred, inert) + .lock-panel */
.lock-stage { position: relative; display: grid; min-width: 0; padding: var(--sp-4) 0; }
.lock-stage__bg { grid-area: 1 / 1; min-width: 0; max-height: 520px; overflow: hidden; filter: blur(3px) grayscale(.4); opacity: .55; pointer-events: none; -webkit-user-select: none; user-select: none; }
.lock-stage > .lock-panel { grid-area: 1 / 1; align-self: center; position: relative; z-index: var(--z-raised); box-shadow: var(--shadow-pop); }

/* Georgian: long words — no character cap on the locked-panel title */
:lang(ka) .lock-panel__title { max-width: none; }
