/* =====================================================================
   JoyStats profile widgets: highlights (most hours, most achievements
   completed, favorites), lately, and the game page's sessions list.
   Needs: joystats-scrollbar.css, joystats-controls.css
   Tokens only: --ink-1..7, --cy, --mg, --cy-t, --mg-t, --on-accent, --well,
   --f-display (Nine By Five), --f-num (Press Start 2P). Square corners, no borders.
   ===================================================================== */

/* ---------- widget shell (most hours, most achievements completed, favorites, lately) ---------- */
.wdg{position:relative;--rows:5;--row-h:80px;--gap:8px;--sb:20px;container:wdg/inline-size;display:grid;grid-template-rows:auto 1fr;gap:16px;align-content:start;
  background:var(--ink-2);padding:24px;color:var(--ink-7);font-family:var(--f-display,'Nine By Five'),monospace}
.wdg__head{display:flex;align-items:center;gap:12px;min-height:44px}
.wdg__title{margin:0;font:400 var(--fs-heading)/1 var(--f-display,'Nine By Five')}
.wdg__tools{display:flex;gap:8px;align-items:center;margin-left:4px}      /* optional controls next to the title (favorites sort) */
.wdg__end{display:flex;gap:8px;align-items:center;margin-left:auto}       /* top right: the pin button (all widgets). The site's existing icon button, untouched. */

/* ---------- the list (scrolls, never pages) ---------- */
.wdg__list{list-style:none;margin:0;padding:0 8px 0 0;display:flex;flex-direction:column;gap:var(--gap);
  max-height:calc(var(--rows)*var(--row-h) + (var(--rows) - 1)*var(--gap));scrollbar-gutter:stable}
.wdg__empty{display:grid;place-items:center;min-height:calc(var(--rows)*var(--row-h));background:var(--ink-1);color:var(--ink-5);font:400 var(--fs-lead)/1.35 var(--f-display,'Nine By Five'),monospace;text-align:center;padding:16px}
/* The empty state is a plain <li> in the timeline list, so the legacy
   .tl>li grid (28px icon column, base.css) would otherwise claim it:
   its text would land in the 28px column, wrap one word per line and
   overflow left past the box edge. A single-column grid keeps the text
   centred and wrapped. */
.wdg__list.tl > li.wdg__empty{grid-template-columns:minmax(0,1fr)}

/* one entry: game icon (floats, no frame) | title + sub line | value */
.wrow{flex:none;display:grid;grid-template-columns:48px minmax(0,1fr) auto;column-gap:16px;align-items:center;min-height:var(--row-h);
  padding:12px 16px 12px 12px;background:var(--ink-1);cursor:pointer;color:inherit;text-decoration:none}
.wrow:hover,.wrow:focus-visible{background:var(--ink-3);outline:0}
/* Round 116 item 20: a hidden arcade cabinet the owner has not
   played yet is greyed out entirely, icon and text included. */
.wrow--locked{opacity:.45;filter:grayscale(1)}
.wrow--locked:hover,.wrow--locked:focus-visible{background:var(--ink-1)}
.wrow__ico{width:48px;height:48px;display:grid;place-items:center}
.wrow__ico img,.wrow__ico svg{display:block;width:48px;height:48px;object-fit:contain}
.wrow__t{min-width:0;font:400 var(--fs-lead)/1.15 var(--f-display,'Nine By Five');overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Round 66 item 25: a highlight row title is a game name, so on a
   linked row it is cyan with the bold plus title glow, like feed
   and leaderboard game names. Arcade rows are spans, not links,
   so they keep the plain title. */
a.wrow .wrow__t{color:var(--cy-t,var(--cy));font-weight:700;text-shadow:0 0 12px color-mix(in srgb,var(--cy-t) 40%,transparent)}
/* Round 68 item 7: light-mode glow uses the brighter cyan. */
[data-mode="light"] a.wrow .wrow__t{text-shadow:0 0 12px color-mix(in srgb,var(--cy) 40%,transparent)}
@media (prefers-reduced-motion: reduce){a.wrow .wrow__t{text-shadow:none}}
.wrow:hover .wrow__t{color:var(--cy-t,var(--cy))}
.wrow__s{min-width:0;margin-top:3px;font:400 var(--fs-secondary)/1.15 var(--f-display,'Nine By Five');color:var(--ink-5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wrow__v{display:inline-flex;align-items:center;gap:6px}
.wrow__t-wrap{min-width:0}

/* number cells: same odometer cell as the hero stat */
.odo{display:inline-flex;align-items:center;gap:3px}
.odo i{display:grid;place-items:center;width:26px;height:38px;background:#151a26;box-shadow:inset 0 0 0 2px #232b3b;
  color:var(--cy);font:400 var(--fs-secondary)/1 var(--f-num,'Press Start 2P'),monospace;font-style:normal}
.odo i.d{width:12px;background:none;box-shadow:none;color:var(--mg);align-items:end;padding-bottom:8px}   /* decimal point */
.odo__u{margin-left:4px;color:var(--ink-5);font:400 var(--fs-body)/1 var(--f-display,'Nine By Five')}
.odo__star{width:24px;height:24px;margin-right:4px;image-rendering:pixelated}

/* ---------- lately: timeline ---------- */
/* The spine is drawn as ONE repeating background on the list, so it scrolls with the content and every block is the same size and spacing.
   Numbers are tuned together: row 80 + gap 8 = 88 (a multiple of the 8px block period), icon plate 44, halo 4, blocks 4 on / 4 off starting at y=2.
   Result: the first and last block always sit exactly 4px from each icon, top and bottom, and no block is ever cut. Change one number, change them all. */
.tl{--spine:color-mix(in srgb,var(--cy) 55%,var(--ink-2));
  background-image:linear-gradient(var(--spine) 0 4px,transparent 4px 8px);background-size:4px 8px;background-repeat:repeat-y;background-position:22px 2px;background-attachment:local}
.ev{flex:none;position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:16px;align-items:center;min-height:var(--row-h)}
.ev__ico{position:relative;z-index:1;width:44px;height:44px;margin-left:2px;display:grid;place-items:center;background:var(--ink-2);box-shadow:0 0 0 4px var(--ink-2)}   /* fixed 44px plate + 4px halo in the panel colour: the spine stops exactly 4px short of every icon */
.ev__ico img,.ev__ico svg{display:block;width:44px;height:44px;object-fit:contain}                                                 /* any size/aspect from Steam is fitted, never stretched */
.ev__box{display:grid;gap:3px;min-width:0;padding:12px 16px;background:var(--ink-1);min-height:var(--row-h);align-content:center}
.ev:hover .ev__box{background:var(--ink-3)}
.ev__t{font:400 var(--fs-lead)/1.2 var(--f-display,'Nine By Five');overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Round 17 item 198: Lately rows wrap instead of truncating, so the
   platform name ("Battle.net") shows in full instead of cutting off
   with an ellipsis. Scoped to Lately; session rows keep the clamp. */
.lately .ev__t{white-space:normal;overflow:visible;text-overflow:clip}
/* Round 98 item 10: an ellipsised headline expands on row hover (or
   keyboard focus within the row) to show the full text, so a long
   auto-sync headline is never cut off. Lately rows already wrap, so
   this only changes session rows, including the game feed. */
.ev:hover .ev__t,.ev:focus-within .ev__t{white-space:normal;overflow:visible;text-overflow:clip}
.ev__t .g{color:var(--cy-t,var(--cy))} .ev__t .a{color:var(--mg-t,var(--mg))}   /* text accents use the theme's readable -t tokens */ .ev__t .m{color:var(--ink-5)} .fev__t .g{color:var(--cy-t,var(--cy))} .fev__t .a{color:var(--mg-t,var(--mg))}
/* Round 66 item 18: game name links in feed and Lately text are
   bold plus the cyan title glow, so they read as clickable. Scoped
   to links (a.g): the game feed session headline reuses .g on a
   span for the platform name, and the platform keeps its plain
   cyan with no glow. Nine By Five ships one weight, so the bold
   is the browser's synthesized 700, like the profile username. */
.fev__t a.g,.ev__t a.g,.minihead__lasttext a.g{font-weight:700;text-shadow:0 0 12px color-mix(in srgb,var(--cy-t) 40%,transparent)}
/* Round 68 item 7: light-mode glow uses the brighter cyan. */
[data-mode="light"] .fev__t a.g,[data-mode="light"] .ev__t a.g,[data-mode="light"] .minihead__lasttext a.g{text-shadow:0 0 12px color-mix(in srgb,var(--cy) 40%,transparent)}
@media (prefers-reduced-motion: reduce){.fev__t a.g,.ev__t a.g,.minihead__lasttext a.g{text-shadow:none}}
.lately .ev__t .pname{color:var(--cy-t,var(--cy))}   /* Round 82 item 18: plain cyan, not the round 73 blend; the blend read as pink in stealth, the same as the achievement pink. Scoped to Lately so the game page header .pname keeps its plain colour */
/* Round 14 item 138: the platform highlight applies to every
   platform name in feed event text and in Lately and session
   headlines, in the same cyan the mini header uses. The core
   wraps the platform name in .pname and links it where the
   mini-header treatment does; the link keeps its case. Round 73
   item 4 made the platform color a cyan/magenta blend, distinct
   from the game name cyan and the username pink. Round 82 item 18
   reverts the blend to plain cyan: in stealth the blend read as
   pink, the same as the achievement pink, so platform and
   achievement were the same color in the feed. */
.fev__t .pname,.ev__t .pname{color:var(--cy-t,var(--cy));text-transform:none}
.fev__t a.pname,.ev__t a.pname{text-decoration:none}
.ev__s{font:400 var(--fs-secondary)/1.15 var(--f-display,'Nine By Five');color:var(--ink-5)}
/* Round 69 item 7: the moderation hide button (core JS, class
   js-mod-hide-btn, admin-only, hover-only) is inserted right after
   the date line, but .ev__box is a grid, so the button landed on
   its own grid row below the date. When the button is present the
   box gains a second column: the date takes the first, the button
   the second, on the same row, and every other child spans both
   columns, so nothing else moves. The :has rule only matches when
   the button exists, so non-admins see no change at all: no extra
   space, no layout shift. The !important margins clear the core
   inline styles (margin-top 2px, margin-left 0 in the date
   branch). The button centers on the date line with a 1px lift
   onto the cap center of the 18px date text (Nine By Five cap
   576, x-height 384 of 1024 units). */
.ev__box:has(> .ev__s + .js-mod-hide-btn){grid-template-columns:minmax(0,1fr) auto}
.ev__box:has(> .ev__s + .js-mod-hide-btn) > :not(.ev__s):not(.js-mod-hide-btn){grid-column:1 / -1}
.ev__box:has(> .ev__s + .js-mod-hide-btn) > .ev__s{grid-column:1;align-self:center}
.ev__box:has(> .ev__s + .js-mod-hide-btn) > .js-mod-hide-btn{grid-column:2;grid-row:auto;align-self:center;margin-top:0 !important;margin-left:8px !important;position:relative;top:-1px}
.ev__sess{font:400 var(--fs-body)/1.15 var(--f-display,'Nine By Five');color:var(--ink-5);text-transform:none}
/* Round 13 item 93: session notes show one line, expanding to full
   on row hover (or keyboard focus within the row). The clamp lives
   on .ev__sess itself, so it covers Lately and the feed alike. */
.ev__sess{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
/* Round 78: My Feed notes clamp to two lines, not one (Lately and
   the sessions view keep one line). Hover/focus still expands. */
.fev .ev__sess{-webkit-line-clamp:2}
.ev:hover .ev__sess,.ev:focus-within .ev__sess,.fev:hover .ev__sess,.fev:focus-within .ev__sess{display:block;-webkit-line-clamp:unset}

/* Round 11 item 45: likes and comments on feed events. The heart is
   greyed until liked, like the favorites heart and the highlight pin.
   Round 12 items 65/66: the like and comments controls sit to the
   right of the line item, not below it. Round 13 item 98: where the
   reactions box is a direct child of a feed row (.fev), it dissolves
   into the row grid (display: contents) and the like/comments pair
   floats over the row background (see .evreact__acts); the comment
   thread spans the body column on a second row, shown only when
   expanded. In any other context the box stays a flex row. Round 18
   items 215/216: the overlay is now the one placement for every li.ev
   row (feed, Lately, sessions); the round 15 item 166 inflow
   placement is retired. */
.evreact{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}
.evreact__acts{display:inline-flex;align-items:center;gap:12px}
/* Round 13 item 98: the like and comments controls overlay on top
   of the feed line item container, inside it, floating over the row
   background, instead of sitting in grid columns that cut the
   background short. The reactions box still dissolves into the row
   grid (display: contents); the .evreact__acts pair is absolutely
   positioned against the row, and the comment thread stays a grid
   item on the second row, spanning the body column.
   Round 78: on My Feed rows the pair sits in the foot row inside the
   body column, in flow, and the date moved to the header, so the
   foot row holds only the pair. The thread sits below the body
   column. The .evreact box keeps dissolving into the row grid for
   the unsplit surfaces (Lately, sessions, update posts). */
.fev > .evreact{display:contents;margin-top:0}
/* Round 78: the foot row at the bottom of the body column holds
   only the like/comment pair now; the date moved to the header. */
.fev__foot{display:flex;align-items:center;gap:12px;margin-top:auto}
.fev__foot .evreact__acts{position:static;flex:none}
/* Round 78: the thread sits below the body column as a plain block,
   not a grid item on the row.
   Round 80 item 9: a divider line sits above the comments, below
   the heart and comment icons in the foot row: a 1px --ink-4 line,
   the same divider treatment as the date group headers. Round 80
   item 8: the thread content aligns with the headline, note, card,
   and foot row, in the column right of the avatar: 40px of left
   padding (32px avatar plus its 8px margin).
   Round 81 item 7: the divider starts at the content column, the
   username's left edge, not the row's far left edge. The border
   cannot stay on the thread box: the box spans the full row width
   (the fallback hide button inside it keeps its 12px offset from
   the row edge), so the border would start at the avatar column.
   The divider lives on the list instead, which starts at the
   thread's 40px content edge; the thread keeps no top border and
   no top padding, and the list's 8px top padding keeps the old
   gap between the divider and the first comment. */
.fev .evreact__thread{display:block;min-width:0;margin-top:8px;padding:0 0 0 40px}
/* Round 18 items 215/216: the overlay is the single placement for
   every li.ev row: feed rows, Lately rows (round 17 item 199 moved
   Lately here), and session rows (round 18 item 216 moves sessions
   here, retiring the round 15 item 166 inflow placement and its rules,
   deleted with this change). The row keeps the base two-column 48px
   grid, so the line item extends to the edge of the box, and the
   heart/comment pair floats over the row background at the top right.
   The body box keeps right padding so text never slides under the
   icons, and the comment thread spans the body column on a second
   row. A session row with a playthrough badge keeps the badge clear
   of the overlaid acts: the badge row ends 96px from the box edge,
   where the acts begin (theme.css, round 55 item 2). Round 55
   item 2: the 116px box padding below does not apply to session
   rows with a badge; their headline reserve keeps text clear of
   the badge, and the padding stacked with it and squeezed the
   headline. theme.css restores their box padding to 16px. */
li.ev > .evreact{display:contents;margin-top:0}
li.ev .evreact__acts{position:absolute;top:12px;right:12px;z-index:2}
li.ev .evreact__thread{grid-column:2;grid-row:2;min-width:0}
li.ev:has(> .evreact) .ev__box{padding-right:116px}
li.ev:has(> .evreact) .sess__top{right:96px}
/* Round 116 item 17: time-bucket headers on the user feed and game
   feed. Same treatment as the My Feed date group headers
   (.fevgroup__h): secondary size, muted, divider below. The header
   row is not a feed row: no grid, no icon, no min-height. */
.wdg__list.tl > li.ev--group{display:block;min-height:0}
/* Round 117 item 5: the header carries a panel-colour background,
   the same treatment as the 44px icon plates, so the spine dots
   break behind the header instead of running through the text.
   The background matches the widget panel in light and dark mode. */
.ev__group-h{margin:18px 0 12px;font-size:var(--fs-secondary);color:var(--ink-5);font-weight:400;text-transform:none;border-bottom:1px solid var(--ink-4);padding-bottom:8px;background:var(--ink-2)}
li.ev--group:first-child .ev__group-h{margin-top:0}
/* Round 116 item 17: the aggregate plus sign sits where the
   like/comment pair would be (top right of the row), hidden until
   the row is hovered, and turns into a close mark when the
   aggregate is expanded. The aggregate row has no reactions
   overlay, so its headline keeps the same right reserve as a row
   with one. */
.evagg__plus{position:absolute;top:12px;right:12px;z-index:2;background:none;border:none;padding:0 8px;cursor:pointer;color:var(--ink-5);font-family:var(--f-display,'Nine By Five');font-size:28px;line-height:1;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
li.ev:hover .evagg__plus,.evagg__plus:focus-visible{opacity:1;pointer-events:auto}
.evagg__plus[aria-expanded="true"]{opacity:1;pointer-events:auto;transform:rotate(45deg)}
li.ev:has(> .evagg__plus) .ev__box{padding-right:116px}
/* Round 116 item 17: the aggregate's individual sessions, hidden
   until the plus sign is clicked. One line per session, same
   secondary size as the date line. */
.evagg__sessions{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}
.evagg__sess{display:flex;align-items:center;gap:8px;font-size:var(--fs-secondary);color:var(--ink-5)}
.evagg__sess-t{text-transform:none}
.evagg__sess--more a{color:var(--cy-t,var(--cy))}
/* Round 116 item 16: inside a note subline or an aggregate session
   line the controls span is inline, not absolute, and stays hidden
   until the row is hovered. */
.ev__sess .sess__controls,.evagg__sess .sess__controls{position:static}
.evreact__like,.evreact__comments{background:none;border:none;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:4px;color:var(--ink-5);font-family:var(--f-display,'Nine By Five');font-size:var(--fs-secondary);line-height:1.15}
.evreact__like img{width:16px;height:16px;display:block;filter:grayscale(1);opacity:.55}
.evreact__like.is-liked img{filter:none;opacity:1}
.evreact__like.is-liked{color:var(--mg-t,var(--mg))}
/* Round 12 item 67: speech-icon comments toggle, using Jessica's
   shared joystats-speech.svg. The icon carries its own colours, so
   no colour rule tints it. */
.evreact__comments img{width:20px;height:20px;display:block}
.evreact__comments[aria-expanded="true"]{color:var(--mg-t,var(--mg))}
/* Round 18 item 217: the unliked heart in dark mode. The heart PNG is
   red, so grayscale(1) turns it mid-grey, and at opacity .55 over a
   dark row it reads as nearly black. The grey heart is lightened
   (brightness) and raised to .85 so it reads against the dark row,
   faded, not full color. Light mode is unchanged. */
[data-mode="dark"] .evreact__like:not(.is-liked) img{filter:grayscale(1) brightness(1.9);opacity:.85}
[data-mode="dark"] .evreact__like:not(.is-liked):focus{opacity:1}
/* Round 73 item 3: the heart and comment icons are always visible
   in My Feed, user feed, and game feed, not only on hover. A liked
   heart and its count persist; the comment icon shows even with no
   comments; no slide-right of a lone heart. The hover-only rules
   (round 12 item 80) and the slide rules (round 32 item 362,
   round 66 items 19/28) are retired. */
.evreact__like,.evreact__comments{opacity:1}
/* Round 12 item 81: the likers list, shown when the heart is hovered.
 * Names keep their entered case. */
.evreact__like{position:relative}
.evreact__likers{display:none;position:absolute;top:100%;right:0;z-index:20;min-width:120px;max-width:220px;background:var(--ink-2);border:2px solid var(--ink-4);padding:6px 10px;font-size:var(--fs-secondary);line-height:1.4;color:var(--ink-6);text-transform:none;white-space:normal;text-align:left}
.evreact__like:hover .evreact__likers,.evreact__like:focus-within .evreact__likers{display:block}
/* Round 12 item 66: the thread is hidden by default. The global
   [hidden] rule already hides it; this states it on the thread
   itself so no display rule can show it until it is expanded. */
.evreact__thread{flex-basis:100%}
.evreact__thread[hidden]{display:none}
.evreact__thread:not([hidden]){display:block}
/* Round 81 items 1/3: the "N comments / hide" header is gone
   entirely (no markup renders it any more), so there is no
   header rule left. The comment icon is the toggle. */
/* Round 78: the comment form hides in the collapsed state and shows
   in the expanded state (JS sets hidden on it), so the input and post
   button appear only with the full comment list. The author
   display flex on .evreact__form below beats the UA [hidden]
   rule, so the hide is stated here, like the thread rule above. */
.evreact__form[hidden]{display:none}
.evreact__list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
/* Round 81 item 7: on My Feed the divider above the comments is
   the list's top border, so it starts at the username's left edge
   (the thread's 40px content edge), not the row edge. The 8px top
   padding is the gap between the divider and the first comment;
   the list has no top margin here, so the divider sits where the
   thread's old top border sat, 8px below the foot row. An empty
   list still draws the border, so the divider shows above the
   composer when there are no comments yet. */
.fev .evreact__list{margin-top:0;border-top:1px solid var(--ink-4);padding-top:8px}
.evreact__c{display:flex;gap:8px;align-items:flex-start;font-family:var(--f-display,'Nine By Five');font-size:var(--fs-secondary);line-height:1.3}
.evreact__c img{width:24px;height:24px;flex:none}
/* Round 75 item 2: the name and timestamp sit on a line above the
   comment, and the comment text is body size (the row stays
   secondary size for the name/timestamp line). The body div takes
   the remaining width so the text wraps under the header, not
   under the avatar. */
.evreact__cbody{flex:1;min-width:0}
.evreact__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.evreact__text{display:block;font-size:var(--fs-body);line-height:1.3;text-transform:none;margin-top:2px}
.evreact__who{text-decoration:none;color:var(--mg-t,var(--mg));text-transform:none;text-shadow:0 0 12px color-mix(in srgb,var(--mg-t) 40%,transparent)}
/* Round 68 item 7: light-mode glow uses the brighter magenta. */
[data-mode="light"] .evreact__who{text-shadow:0 0 12px color-mix(in srgb,var(--mg) 40%,transparent)}
@media (prefers-reduced-motion: reduce){.evreact__who{text-shadow:none}}
.evreact__when{color:var(--ink-5)}
/* Round 81 item 2: the composer starts at the comment text, not
   the avatar column. A comment row is a 24px avatar plus an 8px
   gap before the text, so a 32px left margin puts the composer's
   left edge on the text's left edge on every surface (the same
   24px avatar and 8px gap in the comment rows everywhere). The
   right edge is unchanged: the margin only moves the left edge. */
.evreact__form{display:flex;gap:8px;margin-top:8px;margin-left:32px}
.evreact__input{flex:1;min-width:0}
/* Round 80 item 6: the "write a comment" link under the comments
   (JS creates it when there is already a comment). A plain-text
   link in the cyan link colour, secondary size, no button box:
   it takes over the composer's old job from the comment icon.
   Round 80 item 5: the "enter to post" hint is gone (JS removes
   the node and no longer shows it); there is no hint rule left.
   Round 80 item 7: the "view all N" link is gone the same way. */
/* Round 81 item 4: "write a comment" starts at the comment text
   too, the same 32px as the composer (24px comment avatar plus
   its 8px gap). */
.evreact__write{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-size:var(--fs-secondary);color:var(--cy-t);text-align:left;text-transform:none;margin-top:8px;margin-left:32px}
/* Round 80 item 9: the composer is low profile, a plain input
   with a small green arrow button, not the boxed composer. The
   input is a flat --ink-2 field with a single bottom rule, no
   border box and no pixel clip; the send button is a 32px square
   in the green token (--gr, the site green), with no bevel and
   no heavy padding. The .btn[disabled] opacity rule still greys
   it until there is text, so typing still lights the arrow.
   Feed threads only: Lately and session composers keep the old
   treatment. */
.fev > .evreact__thread .evreact__form{align-items:flex-end;background:none;border:0;padding:0}
.fev > .evreact__thread .evreact__input{background:var(--ink-2);border:0;border-bottom:2px solid var(--ink-4);padding:6px 8px;min-height:36px;font-size:var(--fs-body);clip-path:none}
.fev > .evreact__thread .evreact__send{--bg:var(--gr);flex:none;width:32px;height:32px;min-height:0;padding:0;font-size:var(--fs-body);box-shadow:none}

/* Round 11 item 52: @mentions in session notes. The mention keeps the
   case as entered and links to the tagged user's profile. */
.mention{color:var(--mg-t,var(--mg));text-decoration:none;text-transform:none}

/* ---------- narrow ---------- */
@container wdg (max-width:420px){
  .wdg{padding:16px}
  .wdg__title{font-size:var(--fs-heading)}
  .wrow{grid-template-columns:48px minmax(0,1fr);row-gap:6px}
  .wrow__v{grid-column:2}
  .wrow{min-height:var(--row-h)}
}

/* Round 106 items 13/14/16/19: shared stat posts and the share
   customization popup. The stat image is the post (linked to that
   stat), never a game card; the view more link sits at the bottom
   right; the owner edit/delete controls sit by the date. */
.fevstat{display:block}
.fevstat img{display:block;width:100%;height:auto}
.fevstat__more{text-align:right;margin:8px 0 0}
.fev__own{display:inline-flex;gap:8px;margin-left:8px}
.fev__ownbtn{background:none;border:0;padding:0;font:inherit;font-size:var(--fs-body);color:var(--ink-6);cursor:pointer;text-decoration:underline}
.fev__ownbtn:hover{color:var(--ink-7)}
.wdg__list.tl > li.ev--stat{display:block}
.ev--stat .ev__box{width:auto}
.statshare{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:rgba(0,0,0,.6)}
.statshare__box{width:min(480px,calc(100vw - 32px));background:var(--ink-2);padding:16px;display:flex;flex-direction:column;gap:12px;clip-path:var(--c1);box-shadow:0 0 0 3px var(--ink-4)}
.statshare__box label{font-size:var(--fs-body);color:var(--ink-6)}
.statshare__box textarea{width:100%;min-height:84px;resize:vertical;background:var(--ink-1);color:var(--ink-7);border:2px solid var(--ink-4);padding:10px;font:inherit;font-size:var(--fs-body)}
.statshare__row{display:flex;gap:12px}
.statshare__msg{margin:0;color:var(--a2)}
