/* ViceDeck Messages > Community (Fluxer). Calm, Fluxer-like, skinned with the deck's colours. */
.fx-root { --fx-line: var(--border-subtle, rgba(255,255,255,.085)); flex: 1; display: flex; min-width: 0; min-height: 0; background: var(--bg-canvas, #18191e); color: var(--text-main, #f2f5fa); font: 14px/1.45 var(--font-ui, "Segoe UI", Arial, sans-serif); }

/* Rail */
.fx-rail { width: 232px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--bg-sidebar, #202229); border-right: 1px solid var(--fx-line); }
.fx-server { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--fx-line); }
.fx-gicon { position: relative; width: 38px; height: 38px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--vice-gradient); font: 900 17px var(--font-display); color: #fff; }
.fx-gicon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-gtext { min-width: 0; display: flex; flex-direction: column; }
.fx-gtext strong { font: 700 14.5px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-stats { font-size: 11.5px; color: var(--text-subtle); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.fx-on { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green, #38d96b); display: inline-block; }
.fx-chans { flex: 1; overflow-y: auto; padding: 6px 8px 10px; scrollbar-width: thin; }
.fx-cat { padding: 14px 8px 4px; font: 700 10.5px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.fx-chan { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; margin: 1px 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-subtle); font: 500 13.5px var(--font-ui); text-align: left; cursor: pointer; }
.fx-chan:hover { background: rgba(255,255,255,.045); color: var(--text-muted); }
.fx-chan.active { background: rgba(255,255,255,.08); color: var(--text-main); font-weight: 600; }
.fx-ci { width: 18px; flex: none; text-align: center; font-size: 14px; opacity: .85; }
.fx-ci.big { width: auto; font-size: 18px; }
.fx-cn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-join { margin: 10px; height: 36px; border: 0; border-radius: 8px; background: var(--vice-gradient); color: #fff; font: 700 13px var(--font-display); cursor: pointer; box-shadow: var(--vice-glow); }
.fx-join span { opacity: .8; }
.fx-join:hover { background: var(--vice-gradient-hover, var(--vice-gradient)); }

/* Main column */
.fx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--fx-line); }
.fx-head strong { font: 700 15px var(--font-display); white-space: nowrap; }
.fx-topic { min-width: 0; flex: 1; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--fx-line); color: var(--text-subtle); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-subtle); flex: none; }
.fx-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green, #38d96b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-green, #38d96b) 22%, transparent); }
.fx-live.off i { background: var(--accent-red, #cf4646); box-shadow: none; }

.fx-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 0 14px; scrollbar-width: thin; }
.fx-day { display: flex; align-items: center; gap: 10px; margin: 14px 18px 6px; color: var(--text-subtle); font-size: 11px; font-weight: 600; }
.fx-day::before, .fx-day::after { content: ""; flex: 1; height: 1px; background: var(--fx-line); }
.fx-filtered { margin: 4px 18px 6px; font-size: 11.5px; color: var(--text-subtle); }

.fx-msg { padding: 6px 18px 4px 18px; }
.fx-msg.compact { position: relative; padding: 1px 18px 1px 68px; }
.fx-msg:hover { background: rgba(255,255,255,.022); }
.fx-row { display: flex; gap: 14px; }
.fx-av { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-top: 2px; background: hsl(var(--fx-h, 300), 45%, 42%); color: #fff; font: 700 13px var(--font-display); }
.fx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-body { min-width: 0; flex: 1; }
.fx-meta { display: flex; align-items: baseline; gap: 8px; line-height: 1.3; }
.fx-name { font-weight: 650; font-size: 14px; color: hsl(var(--fx-h, 300), 60%, 78%); }
.fx-bot { padding: 1px 5px; border-radius: 4px; background: var(--vice-accent-2, #7b5cf6); color: #fff; font: 800 9.5px var(--font-ui); letter-spacing: .04em; align-self: center; }
.fx-time { font-size: 11px; color: var(--text-subtle); }
.fx-htime { position: absolute; left: 18px; top: 4px; width: 40px; font-size: 10px; color: var(--text-subtle); text-align: right; opacity: 0; }
.fx-msg.compact:hover .fx-htime { opacity: 1; }
.fx-text { color: color-mix(in srgb, var(--text-main) 92%, transparent); white-space: pre-wrap; word-wrap: break-word; }
.fx-text strong { color: var(--text-main); }
.fx-edited { margin-left: 4px; font-size: 10.5px; color: var(--text-subtle); }
.fx-mention { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--vice-accent-2, #7b5cf6) 26%, transparent); color: #d9cfff; font-weight: 600; }
.fx-link { color: #7cc4ff; text-decoration: none; }
.fx-link:hover { text-decoration: underline; }
.fx-code { margin: 4px 0; padding: 8px 10px; border-radius: 6px; background: var(--bg-input); font: 12.5px Consolas, monospace; white-space: pre-wrap; }
.fx-icode { padding: 1px 4px; border-radius: 4px; background: var(--bg-input); font: 12.5px Consolas, monospace; }
.fx-spoiler { border-radius: 4px; background: var(--bg-elev); color: transparent; cursor: pointer; }
.fx-spoiler.revealed { color: inherit; background: rgba(255,255,255,.06); }
.fx-quote { display: inline-block; padding-left: 8px; border-left: 3px solid var(--border-highlight); color: var(--text-muted); }

.fx-reply { display: flex; align-items: center; gap: 6px; margin: 0 0 2px 18px; padding-left: 32px; position: relative; font-size: 12.5px; color: var(--text-subtle); white-space: nowrap; overflow: hidden; }
.fx-reply i { position: absolute; left: 0; top: 8px; width: 26px; height: 10px; border: 2px solid var(--border-highlight); border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.fx-reply strong { font-weight: 600; color: var(--text-muted); }
.fx-reply span { overflow: hidden; text-overflow: ellipsis; }

.fx-media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fx-img { display: block; max-width: min(420px, 100%); border-radius: 8px; overflow: hidden; border: 1px solid var(--fx-line); }
.fx-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.fx-embed { max-width: 460px; margin-top: 6px; padding: 9px 12px; border-radius: 6px; border-left: 3px solid var(--fx-ec, var(--vice-accent-1, #e85d99)); background: var(--bg-sidebar); }
.fx-esite { font-size: 11px; color: var(--text-subtle); margin-bottom: 2px; }
.fx-etitle { display: block; font-weight: 650; color: var(--text-main); text-decoration: none; }
a.fx-etitle:hover { text-decoration: underline; }
.fx-edesc { margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.fx-file { margin-top: 4px; font-size: 12px; color: var(--text-subtle); }
.fx-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.fx-reacts span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--fx-line); font-size: 12px; }
.fx-reacts b { font-weight: 600; font-size: 11.5px; color: var(--text-muted); }

/* Locked composer: one quiet line instead of a promo card */
.fx-composer { display: flex; align-items: center; gap: 10px; margin: 0 18px 16px; height: 44px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--bg-input); color: var(--text-subtle); font: 13.5px var(--font-ui); text-align: left; cursor: pointer; flex: none; }
.fx-composer span:nth-child(2) { flex: 1; }
.fx-composer strong { font: 700 12.5px var(--font-display); background: var(--vice-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-composer:hover { border-color: color-mix(in srgb, var(--vice-accent-1, #e85d99) 45%, transparent); }
.fx-lock { font-size: 12px; opacity: .7; }

.fx-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--text-muted); padding: 24px; }
.fx-empty h3 { margin: 4px 0 0; font: 700 16px var(--font-display); color: var(--text-main); }
.fx-empty p { margin: 0 0 8px; font-size: 13px; }
.fx-empty-ico { font-size: 30px; opacity: .6; }
.fx-btn { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--vice-gradient); color: #fff; font: 700 13px var(--font-display); cursor: pointer; }
.fx-btn.ghost { background: var(--bg-elev); }
.fx-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--bg-elev); border-top-color: var(--vice-accent-1, #e85d99); animation: fx-spin .8s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) { .fx-rail { width: 64px; } .fx-gtext, .fx-cat, .fx-cn, .fx-join { display: none; } .fx-chan { justify-content: center; } .fx-server { justify-content: center; padding: 12px 0; } }
