/* FarmLink hub, cards and chat (website). Brand: slate #213341, lime #A0C213; colors come from the --fsg-* tokens in style.css. */
/* Banner: the app home screen's looping field video over its poster frame (hub.php starts it). */
.farmlink-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 260px; display: flex; align-items: flex-end; padding: 1.75rem;
  background: url('../images/farmlink-hero-poster.jpg') center/cover no-repeat, var(--fsg-surface);
  border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius);
}
.farmlink-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.farmlink-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,17,23,.05) 20%, rgba(7,17,23,.85)); }
.farmlink-hero-text { max-width: 640px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.farmlink-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; color: var(--fsg-text-strong); margin-bottom: .35rem; }
.farmlink-hero p { font-size: 1.1rem; color: #eef3f5; }
.farmlink-hero .fsg-kicker { color: #d3ec6a; }
@media (max-width: 575.98px) { .farmlink-hero { min-height: 220px; padding: 1.25rem; } }
.farmlink-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  min-height: 140px; height: 100%; padding: 1rem; text-align: center; text-decoration: none;
  color: #fff; background: var(--fsg-surface); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius);
  transition: border-color .15s, background .15s;
}
.farmlink-tile:hover, .farmlink-tile:focus-visible { color: #fff; border-color: var(--fsg-accent-border); background: #1f303b; }
.farmlink-tile i { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--fsg-radius); background: var(--fsg-accent-subtle); color: var(--fsg-accent-soft); font-size: 1.4rem; }
.farmlink-tile-title { font-weight: 700; font-size: 1.1rem; }
.farmlink-tile-text { color: var(--fsg-text-muted); font-size: .9rem; }
/* FarmLink tabs on every FarmLink page; scrolls sideways on phones instead of wrapping. */
.farmlink-nav { display: flex; gap: .25rem; overflow-x: auto; padding: .35rem; background: var(--fsg-surface); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); scrollbar-width: thin; }
.farmlink-nav a { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; padding: .45rem .8rem; border-radius: .7rem; color: var(--fsg-text-muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.farmlink-nav a:hover, .farmlink-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.06); }
.farmlink-nav a.active { color: var(--fsg-on-accent); background: var(--fsg-accent); }
.farmlink-nav-gap { flex: 1 0 .75rem; }
.farmlink-jump .nav-link { color: var(--fsg-text-muted); padding: .3rem .7rem; }
.farmlink-jump .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.farmlink-step { display: flex; align-items: center; gap: .9rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.farmlink-step:last-child { border-bottom: 0; padding-bottom: 0; }
.farmlink-step-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--fsg-accent); color: var(--fsg-accent); font-weight: 700; }
.farmlink-step.done .farmlink-step-num { background: var(--fsg-accent); color: var(--fsg-on-accent); }
.farmlink-step.done .fw-bold { color: var(--fsg-text-muted); text-decoration: line-through; }
.farmlink-card { background: var(--fsg-surface); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); padding: 1rem; height: 100%; }
.farmlink-looking { color: var(--fsg-accent); font-weight: 700; }
/* Bootstrap 5 has no min-width utility; without it long names push the avatar narrower instead of truncating. */
.min-w-0 { min-width: 0; }

/* Happening now (hub.php, Models\LiveNow): the busiest public chats and servers this hour. Each row is one link. */
.farmlink-live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-bottom: .85rem; }
.farmlink-live-dot { display: inline-block; width: .6rem; height: .6rem; margin: 0 .55rem .15rem 0; border-radius: 50%; background: var(--fsg-success); box-shadow: 0 0 0 0 rgba(95,208,138,.6); animation: farmlink-live-pulse 2.2s infinite; vertical-align: middle; }
@keyframes farmlink-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,208,138,.6); } 70% { box-shadow: 0 0 0 .55rem rgba(95,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,208,138,0); } }
.farmlink-live-sub { color: var(--fsg-text-muted); font-size: .9rem; }
.farmlink-live-card { height: 100%; padding: .6rem; background: linear-gradient(165deg, #22343f, var(--fsg-surface) 60%); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); box-shadow: var(--fsg-shadow-sm); }
.farmlink-live-card-head { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem .7rem; font-weight: 700; color: var(--fsg-text-strong); }
.farmlink-live-card-head i { color: var(--fsg-accent-soft); font-size: 1.05rem; }
.farmlink-live-note { margin-left: auto; font-size: .76rem; font-weight: 500; color: var(--fsg-text-muted); text-align: right; }
.farmlink-live-row { --fl-accent: var(--fsg-accent); display: grid; grid-template-columns: 1.4rem auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .6rem .5rem .6rem .35rem; border-radius: var(--fsg-radius-sm); color: var(--fsg-text); text-decoration: none; transition: background var(--fsg-transition-fast), transform var(--fsg-transition-fast); }
.farmlink-live-row + .farmlink-live-row { border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 var(--fsg-radius-sm) var(--fsg-radius-sm); }
.farmlink-live-row:hover, .farmlink-live-row:focus-visible { background: var(--fsg-surface-hover); color: #fff; transform: translateX(3px); outline: none; }
.farmlink-live-row:focus-visible { box-shadow: 0 0 0 2px var(--fsg-accent-border); }
.farmlink-live-rank { text-align: center; font-weight: 800; font-size: .82rem; color: var(--fsg-text-muted); font-variant-numeric: tabular-nums; }
.farmlink-live-row.is-top .farmlink-live-rank { color: var(--fsg-premium-gold); }
.farmlink-live-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--fsg-surface-alt); border: 1px solid var(--fsg-border); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fl-accent) 30%, transparent); color: var(--fl-accent); font-weight: 800; font-size: 1.1rem; }
.farmlink-live-icon img { width: 100%; height: 100%; object-fit: cover; }
.farmlink-live-main { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.farmlink-live-title { font-weight: 700; color: var(--fsg-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.farmlink-live-hash { color: var(--fl-accent); margin-right: .05rem; }
.farmlink-live-emoji { margin-right: .3rem; }
.farmlink-live-owner { font-size: .8rem; color: var(--fsg-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.farmlink-live-owner .bi-discord { color: #8ea1ff; }
.farmlink-live-meter { height: 4px; margin-top: .25rem; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.farmlink-live-meter i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--fl-accent), #d3ec6a); }
.farmlink-live-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.farmlink-live-tag { font-size: .66rem; font-weight: 700; line-height: 1.5; padding: 0 .45rem; border-radius: var(--fsg-radius-pill); background: rgba(255,255,255,.08); color: var(--fsg-text); white-space: nowrap; }
.farmlink-live-tag.game { background: rgba(79,209,197,.15); color: #7fe3d9; }
.farmlink-live-tag.hot { background: var(--fsg-warning-subtle); color: #ffd27a; }
.farmlink-live-tag.looking { background: var(--fsg-accent-subtle); color: var(--fsg-accent-soft); }
.farmlink-live-stats { text-align: right; font-size: .76rem; line-height: 1.3; color: var(--fsg-text-muted); white-space: nowrap; }
.farmlink-live-stats b { display: block; font-size: 1.2rem; line-height: 1.15; color: var(--fsg-text-strong); font-variant-numeric: tabular-nums; }
.farmlink-live-stats b small { font-size: .72rem; font-weight: 600; color: var(--fsg-text-muted); }
.farmlink-live-here { color: var(--fsg-success); }
.farmlink-live-here .bi { font-size: .5rem; vertical-align: middle; }
.farmlink-live-go { color: var(--fsg-text-muted); transition: color var(--fsg-transition-fast), transform var(--fsg-transition-fast); }
.farmlink-live-row:hover .farmlink-live-go { color: var(--fsg-accent-soft); transform: translateX(2px); }
.farmlink-live-spark { display: block; width: 64px; height: 30px; overflow: visible; }
.farmlink-live-spark polygon { fill: var(--fl-accent); fill-opacity: .16; }
.farmlink-live-spark polyline { fill: none; stroke: var(--fl-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Phones: names wrap onto a second line instead of being cut short next to the numbers. */
@media (max-width: 575.98px) {
  .farmlink-live-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .farmlink-live-stats { font-size: .7rem; }
  .farmlink-live-stats b { font-size: 1.1rem; }
}
@media (max-width: 420px) { .farmlink-live-spark { width: 44px; } .farmlink-live-go { display: none; } .farmlink-live-row { grid-template-columns: 1.2rem auto minmax(0, 1fr) auto; gap: .5rem; } }
@media (prefers-reduced-motion: reduce) { .farmlink-live-dot { animation: none; } .farmlink-live-row, .farmlink-live-go { transition: none; } .farmlink-live-row:hover { transform: none; } }

/* Chat: Discord-style rows (like TFC chat), not bubbles. */
/* The chat page is an app-style screen: no site footer or social bar, and the page itself never
   scrolls (only the conversation list, messages and member list do). farmlink-chat.js adds the class. */
body.fl-chat-page { margin-bottom: 0; overflow: hidden; }
body.fl-chat-page .main-footer, body.fl-chat-page .icon-bar { display: none !important; }
/* Fills the window below the fixed navbar; farmlink-chat.js sets the exact height (TFC chat does the same). */
.fl-chat { display: flex; position: relative; height: calc(100dvh - 4rem); min-height: 420px; background: #16232c; border-top: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.fl-chat-list { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.12); background: #1b2a34; }
.fl-chat-list .fl-preview { flex: 1; min-width: 0; color: #ACBBC2; font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sidebar: title and tools, Direct / Communities switch, search, then the list (sections or community groups). */
.fl-list-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem .5rem; }
.fl-list-tools { display: flex; gap: .15rem; }
.fl-tool { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 0; border-radius: .5rem; background: none; color: #ACBBC2; font-size: 1rem; text-decoration: none; }
.fl-tool:hover, .fl-tool:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.fl-tool[aria-pressed="true"] { color: #A0C213; }
.fl-tool.off { color: #6f828b; }
.fl-mode { display: flex; gap: .25rem; margin: 0 .75rem .5rem; padding: .25rem; background: rgba(0,0,0,.22); border-radius: .65rem; }
.fl-mode-btn { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .4rem .5rem; border: 0; border-radius: .5rem; background: none; color: #ACBBC2; font-weight: 600; font-size: .9rem; }
.fl-mode-btn:hover { color: #fff; }
.fl-mode-btn.active { background: #A0C213; color: #16232c; }
.fl-mode-badge { min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #f23f43; color: #fff; font-size: .68rem; font-weight: 800; line-height: 1.3rem; }
.fl-mode-btn.active .fl-mode-badge { background: #16232c; color: #fff; }
.fl-list-search { position: relative; margin: 0 .75rem .5rem; }
.fl-list-search i { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #8C9FA8; font-size: .85rem; pointer-events: none; }
.fl-list-search input { width: 100%; padding: .4rem .6rem .4rem 2rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: .5rem; color: #EDF3F5; font-size: .88rem; }
.fl-list-search input:focus { outline: none; border-color: rgba(160,194,19,.6); }
.fl-inbox { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .5rem .75rem; scrollbar-width: thin; }
.fl-inbox-empty { padding: 1.5rem 1rem; text-align: center; color: #ACBBC2; font-size: .9rem; }
.fl-inbox-empty i { display: block; font-size: 1.8rem; margin-bottom: .4rem; color: #5f7480; }
.fl-inbox-empty p { margin: 0 0 .75rem; }
.fl-section { display: flex; align-items: center; gap: .4rem; width: 100%; margin-top: .35rem; padding: .45rem .5rem .3rem; border: 0; border-radius: .4rem; background: none; color: #8C9FA8; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.fl-section:hover { color: #EDF3F5; }
.fl-section-arrow { font-size: .65rem; transition: transform .15s; }
.fl-section.collapsed .fl-section-arrow { transform: rotate(-90deg); }
.fl-section-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-section-count { font-weight: 600; letter-spacing: 0; opacity: .75; }
/* Communities mode: the community rail (like Manage Community's) and the picked community's channels, laid out like its page's chat. */
.fl-inbox.fl-inbox--rooms { display: flex; padding: 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.fl-rail { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .65rem 0; overflow-y: auto; background: #14212a; scrollbar-width: none; }
.fl-rail::-webkit-scrollbar { width: 0; height: 0; }
.fl-rail-item { position: relative; flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #213341; color: #fff; display: grid; place-items: center; text-decoration: none; transition: border-radius .15s, box-shadow .15s; }
.fl-rail-item > img, .fl-rail-initials { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.fl-rail-initials { display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.fl-rail-item.is-team { border-radius: 14px; background: #2d2a40; }
.fl-rail-item:hover, .fl-rail-item.active { border-radius: 14px; }
.fl-rail-item.active { box-shadow: 0 0 0 2px #A0C213; }
.fl-rail-item::before { content: ''; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); width: 4px; height: 0; border-radius: 0 4px 4px 0; background: #A0C213; opacity: 0; transition: height .18s ease-out, opacity .18s ease-out; }
.fl-rail-item:hover::before { height: 18px; opacity: .7; }
.fl-rail-item.active::before { height: 32px; opacity: 1; }
.fl-rail-badge { position: absolute; right: -5px; bottom: -4px; min-width: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: #f23f43; color: #fff; font-size: .65rem; font-weight: 800; line-height: 1.15rem; text-align: center; box-shadow: 0 0 0 3px #14212a; }
.fl-rail-sep { flex: 0 0 auto; width: 32px; height: 2px; border-radius: 2px; background: #2a3d4a; }
.fl-rail-add { background: #1b2a34; color: #A0C213; font-size: 1.15rem; }
.fl-rail-add:hover { background: #A0C213; color: #16232c; }
.fl-rail-add::before { display: none; }
.fl-rail-channels { flex: 1; min-width: 0; overflow-y: auto; padding: 0 .5rem .75rem; scrollbar-width: thin; }
.fl-rail-head { display: flex; align-items: center; gap: .45rem; margin: 0 -.5rem .15rem; padding: .7rem 1rem .6rem; border-bottom: 1px solid rgba(255,255,255,.08); color: #EDF3F5; font-weight: 700; text-decoration: none; }
.fl-rail-head:hover { color: #fff; background: rgba(255,255,255,.04); }
.fl-rail-head i { font-size: .72rem; color: #8C9FA8; }
.fl-rail-head-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-chan-label { padding: .85rem .5rem .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8C9FA8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row { display: flex; gap: .65rem; align-items: center; padding: .55rem .6rem; border-radius: .6rem; color: #EDF3F5; text-decoration: none; }
.fl-row:hover, .fl-row:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.fl-row.active { background: #24394a; color: #fff; }
.fl-row-avatar { position: relative; flex-shrink: 0; }
.fl-row-avatar > img, .fl-row-avatar > span:first-child { display: block; }
.fl-row-kind { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #A0C213; color: #16232c; font-size: .6rem; border: 2px solid #1b2a34; }
.fl-row.active .fl-row-kind { border-color: #24394a; }
.fl-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.fl-row-top, .fl-row-bottom { display: flex; align-items: center; gap: .4rem; }
.fl-row-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row.unread .fl-row-name, .fl-row.unread .fl-preview, .fl-channel.unread .fl-channel-name { color: #fff; font-weight: 700; }
.fl-row-time { flex-shrink: 0; font-size: .72rem; color: #8C9FA8; }
.fl-row.unread .fl-row-time { color: #A0C213; }
.fl-row.request .fl-preview { color: #DCEB9A; }
.fl-row-muted { color: #8C9FA8; font-size: .75rem; }
.fl-unread { flex-shrink: 0; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #f23f43; color: #fff; font-size: .68rem; font-weight: 800; line-height: 1.3rem; text-align: center; }
.fl-channel { display: flex; align-items: center; gap: .45rem; padding: .4rem .5rem; border-radius: .5rem; color: #ACBBC2; text-decoration: none; font-size: .92rem; }
.fl-channel:hover, .fl-channel:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.fl-channel.active { background: #24394a; color: #fff; }
.fl-channel-glyph { flex-shrink: 0; width: 1.3rem; text-align: center; color: #8C9FA8; font-weight: 700; }
.fl-channel.active .fl-channel-glyph, .fl-channel.unread .fl-channel-glyph { color: #A0C213; }
.fl-channel-flag { font-size: .8rem; opacity: .7; }
.fl-channel-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fl-chat-header { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: .75rem; }
/* Soft fades at the scroll edges so messages and images slide out of view instead of being cut off.
   farmlink-chat.js toggles fl-more-above/below; right: 12px keeps the scrollbar clear of the fade. */
.fl-messages-wrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.fl-messages-wrap::before, .fl-messages-wrap::after { content: ''; position: absolute; left: 0; right: 12px; height: 2rem; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.fl-messages-wrap::before { top: 0; background: linear-gradient(#16232c, rgba(22,35,44,0)); }
.fl-messages-wrap::after { bottom: 0; background: linear-gradient(rgba(22,35,44,0), #16232c); }
.fl-messages-wrap.fl-more-above::before, .fl-messages-wrap.fl-more-below::after { opacity: 1; }
/* Bottom padding leaves room for the typing bubble so it never covers the newest message. */
.fl-messages { flex: 1; overflow-y: auto; padding: 1rem 0 2.5rem; }
.fl-msg { display: flex; gap: .75rem; padding: .15rem 1rem; position: relative; }
.fl-msg:hover { background: rgba(255,255,255,.03); }
.fl-msg.fl-grouped .fl-msg-avatar { visibility: hidden; height: 0; }
.fl-msg-avatar { width: 40px; flex-shrink: 0; }
.fl-msg-avatar img, .fl-msg-avatar span { width: 40px; height: 40px; border-radius: 50%; }
.fl-msg-head { display: flex; gap: .5rem; align-items: baseline; }
.fl-msg-name { font-weight: 700; color: #fff; }
.fl-supporter { display: inline-flex; align-items: center; gap: .25rem; margin-left: .35rem; padding: 0 .4rem; border: 1px solid; border-radius: 999px; font-size: .68rem; font-weight: 700; color: #fff; line-height: 1.5; vertical-align: middle; }
.fl-supporter-img { width: 1.1em; height: 1.1em; border-radius: 4px; object-fit: cover; }
.fl-msg-time, .fl-msg-edited { color: #8C9FA8; font-size: .75rem; }
.fl-msg-source { font-size: .65rem; padding: 0 .35rem; border-radius: .3rem; background: rgba(160,194,19,.2); color: #DCEB9A; }
.fl-msg-body { white-space: pre-wrap; word-break: break-word; color: #EDF3F5; }
.fl-msg-deleted { color: #8C9FA8; font-style: italic; }
/* Like Discord: keep the uploaded aspect ratio, scale down into a max box, never crop or enlarge.
   The width/height attributes reserve the right-shaped space before the image loads. */
.fl-msg-images { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin-top: .3rem; }
.fl-msg-images a { display: block; max-width: 100%; }
.fl-msg-images img { display: block; width: auto; height: auto; max-width: min(100%, 400px); max-height: 350px; border-radius: .5rem; background: rgba(255,255,255,.05); cursor: zoom-in; }
.fl-viewer { position: fixed; inset: 0; z-index: 2000; background: rgba(8,14,18,.9); overflow: hidden; touch-action: none; overscroll-behavior: contain; }
.fl-viewer-img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; border-radius: .35rem; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: grab; user-select: none; -webkit-user-drag: none; visibility: hidden; }
.fl-viewer-ready .fl-viewer-img { visibility: visible; }
.fl-viewer-img.fl-dragging { cursor: grabbing; }
.fl-viewer-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #21313D; border: 1px solid rgba(255,255,255,.15); color: #EDF3F5; font-size: 1.05rem; }
.fl-viewer-bar { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; align-items: center; gap: .2rem; padding: .3rem; background: #21313D; border: 1px solid rgba(255,255,255,.15); border-radius: .6rem; }
.fl-viewer-bar button { width: 2.25rem; height: 2.25rem; background: none; border: 0; border-radius: .4rem; color: #EDF3F5; font-size: 1.05rem; }
.fl-viewer-bar button:hover, .fl-viewer-bar button:focus-visible, .fl-viewer-close:hover, .fl-viewer-close:focus-visible { background: rgba(255,255,255,.12); }
.fl-viewer-level { min-width: 3.5rem; text-align: center; font-size: .85rem; color: #ACBBC2; font-variant-numeric: tabular-nums; }
.fl-reactions { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.fl-reaction { min-height: 1.75rem; padding: 0 .5rem; border-radius: .5rem; background: rgba(255,255,255,.07); border: 1px solid transparent; color: #EDF3F5; font-size: .85rem; }
.fl-reaction.mine { background: rgba(160,194,19,.18); border-color: #A0C213; }
.fl-msg-actions { position: absolute; right: 1rem; top: -.75rem; display: none; gap: .25rem; background: #21313D; border: 1px solid rgba(255,255,255,.15); border-radius: .5rem; padding: .15rem; }
.fl-msg:hover .fl-msg-actions, .fl-msg:focus-within .fl-msg-actions { display: flex; }
.fl-msg-actions button { background: none; border: 0; color: #EDF3F5; padding: .15rem .4rem; border-radius: .3rem; }
.fl-msg-actions button:hover { background: rgba(255,255,255,.1); }
.fl-day { display: flex; align-items: center; gap: .75rem; color: #8C9FA8; font-size: .75rem; margin: .75rem 1rem; }
.fl-day::before, .fl-day::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.fl-new { color: #f23f43; }
.fl-new::before, .fl-new::after { background: #f23f43; }
.fl-typing { position: absolute; left: 1rem; bottom: .4rem; z-index: 2; display: flex; align-items: center; gap: .5rem; max-width: calc(100% - 2rem - 12px); padding: .3rem .75rem; border-radius: 1rem; background: #21313D; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 4px 12px rgba(0,0,0,.3); color: #ACBBC2; font-size: .8rem; opacity: 0; transform: translateY(.4rem); pointer-events: none; transition: opacity .2s, transform .2s; }
.fl-typing.show { opacity: 1; transform: none; }
.fl-typing > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-typing-dots { display: flex; gap: 3px; flex-shrink: 0; }
.fl-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #A0C213; animation: fl-typing-dot 1.2s infinite ease-in-out; }
.fl-typing-dots i:nth-child(2) { animation-delay: .15s; }
.fl-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fl-typing-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .fl-typing-dots i { animation: none; opacity: .8; } .fl-typing, .fl-messages-wrap::before, .fl-messages-wrap::after { transition: none; } }
.fl-chat-members { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; background: #1b2a34; border-left: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.fl-chat-members[hidden] { display: none !important; }
.fl-members-search { padding: .6rem .5rem .2rem; }
.fl-members-search input { width: 100%; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: .3rem; color: #EDF3F5; font-size: .8rem; padding: .3rem .5rem; }
.fl-members-list { flex: 1; overflow-y: auto; padding: 0 .5rem .5rem; scrollbar-width: thin; }
.fl-members-section { padding: .75rem .4rem .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8C9FA8; }
.fl-member { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .3rem .4rem; border: 0; border-radius: .3rem; background: none; color: #EDF3F5; text-align: left; }
.fl-member:hover, .fl-member:focus-visible { background: rgba(255,255,255,.06); }
.fl-member.offline { opacity: .5; }
.fl-member.offline:hover { opacity: .85; }
.fl-member-avatar { position: relative; flex-shrink: 0; }
/* avatar() already sizes the picture to 28px; only the letter fallback needs a smaller font. */
.fl-member-avatar > img, .fl-member-avatar > span:not(.fl-presence) { display: block; font-size: .7rem; }
.fl-presence { position: absolute; right: -2px; bottom: -2px; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: #3ba55c; border: 2px solid #1b2a34; }
.fl-member.offline .fl-presence { background: #8C9FA8; }
.fl-member-name { flex: 1; min-width: 0; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-role { font-size: .62rem; font-weight: 800; padding: 0 .3rem; border-radius: .25rem; background: rgba(160,194,19,.2); color: #DCEB9A; text-transform: uppercase; }
.fl-member-menu { min-width: 190px; }
.fl-member-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #EDF3F5; padding: .35rem .6rem; border-radius: .3rem; font-size: .88rem; }
.fl-member-menu button:hover { background: rgba(255,255,255,.08); }
.fl-member-menu button.danger { color: #e05555; }
.fl-member-menu .fl-menu-sep { border-top: 1px solid rgba(255,255,255,.12); margin: .25rem 0; }
.fl-member-menu button.fl-role-item { display: flex; align-items: center; gap: .45rem; }
.fl-role-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.fl-online { color: #3ba55c; }
.fl-composer { padding: .75rem 1rem 1rem; }
.fl-composer-box { display: flex; align-items: flex-end; gap: .5rem; background: #21313D; border: 1px solid rgba(255,255,255,.15); border-radius: .9rem; padding: .4rem .5rem; }
.fl-composer textarea { flex: 1; background: transparent; border: 0; color: #fff; resize: none; max-height: 200px; outline: none; padding: .35rem; }
.fl-composer button.fl-icon { background: none; border: 0; color: #ACBBC2; font-size: 1.25rem; padding: .2rem .4rem; border-radius: .5rem; }
.fl-composer button.fl-icon:hover, .fl-composer button.fl-icon:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.fl-composer button.fl-send { color: #A0C213; }
.fl-composer-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* "N new messages" over the log, the drop zone, the reply bar, @mention list and the emoji picker. */
.fl-jump { position: absolute; left: 50%; top: .6rem; z-index: 3; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border: 0; border-radius: 999px; background: #A0C213; color: #16232c; font-size: .8rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.fl-jump:hover { background: #b8d93b; }
.fl-drop { position: absolute; inset: .5rem; z-index: 4; display: none; align-items: center; justify-content: center; gap: .5rem; border: 2px dashed #A0C213; border-radius: .75rem; background: rgba(22,35,44,.85); color: #DCEB9A; font-weight: 600; pointer-events: none; }
.fl-drop.show { display: flex; }
.fl-reply { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; padding: .35rem .6rem; border-left: 3px solid #A0C213; border-radius: .4rem; background: rgba(255,255,255,.05); color: #ACBBC2; font-size: .83rem; }
.fl-reply i { color: #A0C213; }
.fl-reply-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-reply-text strong { color: #EDF3F5; }
.fl-reply-close { border: 0; background: none; color: #ACBBC2; padding: 0 .25rem; }
.fl-reply-close:hover { color: #fff; }
.fl-mention-box { margin-bottom: .35rem; padding: .25rem; border: 1px solid rgba(255,255,255,.15); border-radius: .6rem; background: #21313D; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.fl-mention-item { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .5rem; border: 0; border-radius: .4rem; background: none; color: #EDF3F5; text-align: left; font-size: .88rem; }
.fl-mention-item:hover, .fl-mention-item.active { background: rgba(160,194,19,.18); }
.fl-mention-item > img, .fl-mention-item > span:first-child { font-size: .65rem; }
.fl-mention-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55c; }
.fl-emoji-box { margin-bottom: .35rem; padding: .5rem; border: 1px solid rgba(255,255,255,.15); border-radius: .6rem; background: #21313D; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.fl-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.1rem, 1fr)); gap: .15rem; max-height: 180px; overflow-y: auto; margin-top: .4rem; scrollbar-width: thin; }
.fl-emoji-grid button { height: 2.1rem; border: 0; border-radius: .35rem; background: none; font-size: 1.25rem; line-height: 1; }
.fl-emoji-grid button:hover, .fl-emoji-grid button:focus-visible { background: rgba(255,255,255,.1); }
/* Message text: a small Discord-style markup set, drawn by farmlink-chat.js as elements. */
.fl-msg-body .fl-code { margin: .25rem 0; padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.1); border-radius: .4rem; background: #121d24; color: #EDF3F5; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-inline-code { padding: .05rem .3rem; border-radius: .25rem; background: #121d24; color: #EDF3F5; font-size: .88em; }
.fl-quote { margin: .15rem 0; padding: .1rem .6rem; border-left: 3px solid #5f7480; color: #ACBBC2; white-space: pre-wrap; }
.fl-spoiler { padding: 0 .25rem; border: 0; border-radius: .25rem; background: #0d151a; color: transparent; font: inherit; cursor: pointer; }
.fl-spoiler.open { background: rgba(255,255,255,.08); color: inherit; cursor: text; }
.fl-link { color: #7fc8ff; overflow-wrap: anywhere; }
.fl-mention { padding: 0 .2rem; border-radius: .25rem; background: rgba(88,101,242,.3); color: #c9d0ff; font-weight: 600; }
.fl-mention-me { background: rgba(240,178,50,.3); color: #ffd27a; }
.fl-msg-body.fl-msg-mentioned { box-shadow: inset 3px 0 0 #f0b232; padding-left: .5rem; margin-left: -.5rem; background: rgba(240,178,50,.07); border-radius: .25rem; }
.fl-pending { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.fl-pending div { position: relative; }
.fl-pending img { width: 64px; height: 64px; object-fit: cover; border-radius: .4rem; }
.fl-pending .fl-upload-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fl-pending .fl-upload-done { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; background: #3ba55c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.fl-pending button { position: absolute; top: -6px; right: -6px; border-radius: 50%; border: 0; width: 20px; height: 20px; line-height: 18px; padding: 0; background: #A33131; color: #fff; }
.fl-emoji-picker { display: flex; gap: .25rem; flex-wrap: wrap; max-width: 260px; }
.fl-emoji-picker button { background: none; border: 0; font-size: 1.3rem; border-radius: .3rem; }
.fl-emoji-picker button:hover { background: rgba(255,255,255,.1); }
/* Pinned messages (community chats): marked in the log, listed from the header's pin button. */
.fl-msg-pin { color: #A0C213; font-size: .75rem; }
.fl-msg.fl-pinned { box-shadow: inset 2px 0 0 rgba(160,194,19,.6); }
.fl-msg.fl-flash { background: rgba(160,194,19,.16); }
.fl-pins { width: min(360px, calc(100vw - 16px)); max-height: 60vh; overflow-y: auto; background: #21313D; color: #EDF3F5; border: 1px solid rgba(255,255,255,.15); }
.fl-pins-head { position: sticky; top: 0; padding: .6rem .75rem; font-weight: 700; background: inherit; border-bottom: 1px solid rgba(255,255,255,.12); }
.fl-pin { padding: .6rem .75rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.fl-pin .fl-msg-body { max-height: 6.5em; overflow: hidden; font-size: .9rem; }
/* A modder page's channel in the chat header, and the note in channels only the team posts in. */
.fl-channel-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 1.15rem; }
.fl-readonly { padding: .25rem .25rem .5rem; }
/* Narrow screens: the member list opens over the chat from the header's members button. */
@media (max-width: 991px) {
  .fl-chat-members { display: none; }
  .fl-chat.fl-members-open .fl-chat-members { display: flex; position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; box-shadow: -8px 0 24px rgba(0,0,0,.45); }
}
@media (max-width: 700px) {
  .fl-chat-list { width: 100%; }
  .fl-chat.fl-open .fl-chat-list { display: none; }
  .fl-chat:not(.fl-open) .fl-chat-main { display: none; }
}
/* My Farm (FarmLink/MyFarm, farmlink-myfarm.js): tiles, bars, rows, sortable tables, money chart. */
.fl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.fl-tile { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; text-align: left; color: var(--fsg-text); background: var(--fsg-surface); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); }
button.fl-tile:hover, button.fl-tile:focus-visible { border-color: var(--fsg-accent-border); background: #1f303b; }
.fl-tile-value { font-size: 1.25rem; font-weight: 800; color: var(--fsg-text-strong); line-height: 1.2; }
.fl-tile-label { font-size: .85rem; color: var(--fsg-text-muted); }
.fl-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; min-width: 60px; }
.fl-bar span { display: block; height: 100%; background: var(--fsg-accent); }
.fl-bar span.bad { background: var(--fsg-danger); }
.fl-bar-cell { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.fl-bar-cell .fl-bar { flex: 1 1 60px; max-width: 120px; }
.fl-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--fsg-border); }
.fl-row:last-of-type { border-bottom: 0; }
.fl-row-main { flex: 1; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.fl-row-main:hover .fw-bold { color: var(--fsg-accent-soft); }
.fl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fsg-danger); flex-shrink: 0; align-self: flex-start; margin-top: .45rem; }
.fl-insight { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; margin-bottom: .5rem; border-radius: var(--fsg-radius); color: var(--fsg-text); text-decoration: none; }
a.fl-insight:hover { color: var(--fsg-text-strong); filter: brightness(1.15); }
.fl-insight-warn { background: var(--fsg-danger-subtle); } .fl-insight-warn i { color: var(--fsg-danger); }
.fl-insight-good { background: var(--fsg-success-subtle); } .fl-insight-good i { color: var(--fsg-success); }
.fl-insight-info { background: var(--fsg-surface-alt); } .fl-insight-info i { color: var(--fsg-text-muted); }
.fl-weather { min-width: 76px; }
.fl-table th.fl-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.fl-table th.fl-sortable:hover { color: var(--fsg-accent-soft); }
.fl-table tr.fl-clickable { cursor: pointer; }
.fl-details dt, .fl-details dd { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .25rem; }
.fl-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-note { display: block; width: 100%; height: 100%; text-align: left; padding: 1rem; color: var(--fsg-text); background: var(--fsg-surface-alt); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); }
.fl-note:hover { border-color: var(--fsg-accent-border); }
.fl-note .fl-pre { max-height: 9rem; overflow: hidden; }
.fl-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fsg-surface-alt); font-weight: 700; }
.fl-farm-color { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--fsg-border-strong); }
.fl-key.in { background: var(--fsg-accent); }
.fl-key.out { background: var(--fsg-danger); }
.fl-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.fl-price-box { padding: .85rem 1rem; background: var(--fsg-surface-alt); border: 1px solid var(--fsg-border); border-radius: var(--fsg-radius); }
/* Cards side by side in a row share the row's height (the row's own margin spaces it from the next). */
#fl-myfarm .row > [class*="col"] > .shadow { height: 100%; margin-bottom: 0 !important; }
.fl-money-chart { width: 100%; height: auto; max-height: 300px; display: block; }
.fl-money-chart .axis { stroke: var(--fsg-border-strong); }
.fl-money-chart .in { fill: var(--fsg-accent); }
.fl-money-chart .out { fill: var(--fsg-danger); }
.fl-money-chart .balance { fill: none; stroke: #6cc4ff; stroke-width: 3; stroke-linejoin: round; }
.fl-money-chart .tick { fill: var(--fsg-text-muted); font-size: 13px; }
.fl-key.balance { background: #6cc4ff; }
/* My Farm › Placeables: one page per kind, and every placeable as its own boxed card with a coloured edge for its kind. */
.fl-subnav { display: flex; flex-wrap: wrap; gap: .5rem; }
.fl-subnav-item { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--fsg-border-strong); background: var(--fsg-surface); color: var(--fsg-text); font-weight: 600; }
.fl-subnav-item:hover, .fl-subnav-item:focus-visible { border-color: var(--fsg-accent-border); color: var(--fsg-text-strong); }
.fl-subnav-item.active { background: var(--fsg-accent); border-color: var(--fsg-accent); color: var(--fsg-on-accent); }
.fl-count { display: inline-block; min-width: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .8rem; text-align: center; margin-left: .35rem; }
.fl-subnav-item.active .fl-count { background: rgba(0,0,0,.18); }
.fl-group-title { display: flex; align-items: center; padding-bottom: .4rem; margin-bottom: .75rem; border-bottom: 1px solid var(--fsg-border); color: var(--fsg-text-strong); }
.fl-item { --fl-edge: var(--fsg-accent); display: block; width: 100%; padding: 1rem 1rem 1rem 1.15rem; text-align: left; color: var(--fsg-text); background: var(--fsg-surface);
  border: 1px solid var(--fsg-border-strong); border-left: 5px solid var(--fl-edge); border-radius: var(--fsg-radius); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.fl-item-button { height: 100%; transition: transform .1s, border-color .15s, background .15s; }
.fl-item-button:hover, .fl-item-button:focus-visible { background: #22323d; border-color: var(--fl-edge); transform: translateY(-1px); }
.fl-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--fsg-border); }
.fl-item-head > i { color: var(--fl-edge); font-size: 1.1rem; }
.fl-item-name { flex: 1 1 auto; font-weight: 700; color: var(--fsg-text-strong); overflow-wrap: anywhere; }
.fl-item-note { color: #ACBBC2; margin-top: .25rem; overflow-wrap: anywhere; }
.fl-item-head .badge { margin: 0 !important; }
.fl-item-list { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .9rem; }
.fl-item-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .2rem 0; border-top: 1px dashed rgba(255,255,255,.08); }
.fl-item-list li:first-child { border-top: 0; }
.fl-accent-productions { --fl-edge: var(--fsg-accent); }
.fl-accent-storage { --fl-edge: #6cc4ff; }
.fl-accent-goods { --fl-edge: var(--fsg-warning); }
.fl-accent-pens { --fl-edge: #f28fb3; }
.fl-accent-income { --fl-edge: #ffd84d; }
.fl-accent-buildings { --fl-edge: #9aa9b2; }

/* Game server feed messages (community page feed channels): the server is the author (its icon, or the server glyph),
   the bot's card is the body, laid out like a Discord embed in the site's look: colour bar, title, lines, fields, map picture, link. */
.fl-msg-bot { font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 0 .35rem; border-radius: .3rem; background: rgba(160,194,19,.22); color: #DCEB9A; border: 1px solid rgba(160,194,19,.45); }
.fl-msg-bot-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.fl-avatar-server { background: rgba(160,194,19,.16); color: #DCEB9A; font-size: 1.15rem; }
.fl-feed { display: flex; flex-direction: column; gap: .15rem; width: fit-content; min-width: min(18rem, 100%); max-width: min(34rem, 100%); margin-top: .25rem; padding: .6rem .85rem .65rem; border: 1px solid rgba(255,255,255,.07); border-left: 4px solid var(--feed, #8d99a6); border-radius: .5rem; background: #1C2B36; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.fl-feed-title { font-weight: 700; color: #fff; }
.fl-feed-line { font-size: .88rem; color: #C9D6DC; overflow-wrap: anywhere; }
.fl-feed-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, max-content)); gap: .45rem 1.25rem; margin-top: .4rem; }
.fl-feed-field { display: flex; flex-direction: column; min-width: 0; grid-column: 1 / -1; }
.fl-feed-field-inline { grid-column: auto; }
.fl-feed-field-name { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8C9FA8; }
.fl-feed-field-value { font-size: .9rem; color: #EDF3F5; overflow-wrap: anywhere; }
.fl-feed-img { display: block; margin-top: .55rem; max-width: 26rem; }
.fl-feed-img img { display: block; width: 100%; height: auto; border-radius: .45rem; border: 1px solid rgba(255,255,255,.08); cursor: zoom-in; }
.fl-feed-link { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin-top: .55rem; padding: .25rem .7rem; border-radius: .4rem; background: rgba(160,194,19,.16); color: #DCEB9A; font-size: .8rem; font-weight: 600; text-decoration: none; }
.fl-feed-link:hover { background: rgba(160,194,19,.32); color: #fff; }
.fl-feed-note { font-size: .8rem; color: #8C9FA8; margin-top: .4rem; }
/* GIF and sticker picker (KLIPY), opened from the composer's GIF button. */
.fl-gif-picker { position: fixed; z-index: 1060; width: min(340px, calc(100vw - 16px)); height: min(400px, calc(100vh - 16px)); display: flex; flex-direction: column; background: #21313D; color: #EDF3F5; border: 1px solid rgba(255,255,255,.15); border-radius: .75rem; box-shadow: 0 12px 32px rgba(0,0,0,.5); overflow: hidden; }
.fl-gif-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.12); }
.fl-gif-tab { flex: 1; padding: .5rem; background: none; border: 0; border-bottom: 2px solid transparent; color: #ACBBC2; font-weight: 600; font-size: .9rem; }
.fl-gif-tab.active { color: #EDF3F5; border-bottom-color: #A0C213; }
.fl-gif-search { padding: .5rem .5rem .25rem; }
.fl-gif-body { flex: 1; min-height: 0; overflow-y: auto; padding: .25rem .5rem .5rem; scrollbar-width: thin; }
.fl-gif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.fl-gif-item { display: block; padding: 0; aspect-ratio: 1.4; background: rgba(255,255,255,.05); border: 2px solid transparent; border-radius: .4rem; overflow: hidden; }
.fl-gif-item:hover, .fl-gif-item:focus-visible { border-color: #A0C213; }
.fl-gif-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-gif-status { margin: 1rem 0; text-align: center; color: #ACBBC2; font-size: .9rem; }
.fl-gif-consent { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .75rem .25rem; font-size: .9rem; }
.fl-gif-consent p { margin: 0; }
.fl-gif-attribution { padding: .3rem .6rem; border-top: 1px solid rgba(255,255,255,.12); color: #8C9FA8; font-size: .68rem; text-align: right; }
