/* Flow live chat over the charts: an overlay by default, a docked column on request. */
:root{--chat-w:340px}
body.chat-dock #app{width:calc(100vw - var(--chat-w))}
body.chat-dock .flow-objects-toggle{right:calc(var(--chat-w) + 14px)}
body.chat-dock .flow-objects-layout{right:calc(var(--chat-w) + 8px)}
#flowChatButton .fc-live{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ef4444;margin-right:6px;vertical-align:1px;box-shadow:0 0 0 0 rgba(239,68,68,.6)}
#flowChatButton .fc-count{margin-left:6px;color:#94a3b8;font-weight:600}
.fc{position:fixed;top:49px;right:0;bottom:0;width:var(--chat-w);z-index:10005;display:flex;flex-direction:column;background:#0b1626;border-left:1px solid #22385a;color:#e6edf6;font:13.5px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
/* ---------- overlay: floats on the chart, lets the mouse through, clears by itself ---------- */
.fc-overlay{top:106px;background:none;border-left:0;pointer-events:none;padding-bottom:8px}
.fc-overlay>*{pointer-events:auto}
/* everything gathers at the bottom right: the top of the chart, where the price is, stays clear */
.fc-overlay .fc-list{order:1}
.fc-overlay .fc-pin{order:2;margin:0 8px 6px;background:rgba(19,36,59,.86);backdrop-filter:blur(7px);align-self:flex-end;max-width:280px}
.fc-overlay .fc-foot{order:3}
.fc-overlay .fc-head{order:4;border-bottom:0;padding:5px 8px;margin:6px 8px 0;border-radius:9px;background:rgba(9,18,32,.72);backdrop-filter:blur(7px);border:1px solid rgba(43,68,102,.6);align-self:flex-end;gap:10px}
.fc-overlay .fc-head b{font-size:12px;color:#cbd5e1}
.fc-overlay .fc-head .fc-online{font-size:11px}
.fc-overlay .fc-list{pointer-events:none;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:6px 0;-webkit-mask-image:linear-gradient(180deg,transparent,#000 40px);mask-image:linear-gradient(180deg,transparent,#000 40px)}
.fc-overlay .fc-line{flex:none;text-shadow:0 1px 3px rgba(2,7,14,.95),0 0 10px rgba(2,7,14,.8);transition:opacity .7s ease}
.fc-overlay .fc-line:hover{background:none}
.fc-overlay .fc-line.fc-old{opacity:0}
.fc-overlay .fc-name,.fc-overlay .fc-tools button,.fc-overlay .fc-shot,.fc-overlay .fc-react button{pointer-events:auto}
.fc-overlay .fc-me,.fc-overlay .fc-mention{border-radius:7px;margin:0 8px;padding-left:4px}
.fc-overlay .fc-notice{text-shadow:0 1px 3px rgba(2,7,14,.95)}
.fc-overlay .fc-foot{border-top:0;padding:0 8px;gap:6px}
.fc-overlay .fc-input textarea,.fc-overlay .fc-emotes{background:rgba(6,16,29,.82);backdrop-filter:blur(7px)}
.fc-overlay .fc-row{padding:0 2px}
.fc-overlay .fc-err:empty{min-height:0}
.fc-overlay.fc-hold .fc-list{pointer-events:auto;overflow-y:auto;background:linear-gradient(90deg,rgba(7,15,27,.5),rgba(7,15,27,.9));-webkit-mask-image:none;mask-image:none;margin:0 8px;border-radius:10px}
.fc-overlay.fc-hold .fc-line{text-shadow:none}
.fc-overlay.fc-hold .fc-line:hover{background:rgba(16,31,51,.9)}
.fc[hidden]{display:none}
.fc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #22385a}
.fc-head b{font-size:13px;letter-spacing:.02em}
.fc-head .fc-online{color:#94a3b8;font-size:12px}
.fc-head .fc-online i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ef4444;margin-right:5px}
.fc-x{all:unset;cursor:pointer;color:#94a3b8;padding:2px 6px;border-radius:5px}
.fc-x:hover{background:#13243b;color:#fff}
.fc-pin{margin:8px 10px 0;padding:8px 10px;border-radius:8px;background:#13243b;border:1px solid #2b4466;font-size:13px}
.fc-pin small{display:block;color:#94a3b8;font-size:11px;margin-bottom:2px}
.fc-list{flex:1;overflow-y:auto;padding:6px 0 8px;overscroll-behavior:contain}
.fc-line{position:relative;padding:3px 12px;word-wrap:break-word}
.fc-line:hover{background:#101f33}
.fc-line .fc-time{display:none;color:#64748b;font-size:11px;margin-right:4px}
.fc-list.with-time .fc-time{display:inline}
.fc-badge{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:3px;margin-right:3px;font-size:10px;font-weight:800;vertical-align:-3px;color:#0b1626}
.fc-badge.admin{background:#e2b54a}
.fc-badge.mod{background:#22c55e}
.fc-badge.premium{background:#c084fc}
.fc-badge.flow{background:#38bdf8}
.fc-name{font-weight:700;cursor:pointer}
.fc-name:hover{text-decoration:underline}
.fc-me{background:rgba(226,181,74,.07)}
.fc-mention{background:rgba(226,181,74,.16);border-left:2px solid #e2b54a}
.fc-notice{padding:4px 12px;color:#94a3b8;font-style:italic}
.fc-tools{position:absolute;right:8px;top:2px;display:none;gap:2px}
.fc-line:hover .fc-tools{display:flex}
.fc-tools button{all:unset;cursor:pointer;font-size:11px;padding:1px 5px;border-radius:4px;background:#1c3352;color:#cbd5e1}
.fc-tools button:hover{background:#2b4466;color:#fff}
.fc-more{position:absolute;left:50%;transform:translateX(-50%);bottom:96px;border:0;border-radius:999px;padding:6px 12px;background:#e2b54a;color:#1b1404;font-weight:700;cursor:pointer;font-size:12px}
.fc-foot{border-top:1px solid #22385a;padding:10px;display:grid;gap:8px}
.fc-input{display:flex;gap:6px;align-items:flex-end}
.fc-input textarea{flex:1;resize:none;min-height:38px;max-height:96px;border-radius:8px;border:1px solid #2b4466;background:#06101d;color:#e6edf6;padding:9px 10px;font:inherit}
.fc-input textarea:focus{outline:2px solid #38bdf8;border-color:transparent}
.fc-row{display:flex;justify-content:space-between;align-items:center;gap:6px}
.fc-row .fc-hint{color:#94a3b8;font-size:12px}
.fc-btn{all:unset;cursor:pointer;padding:7px 12px;border-radius:7px;background:#e2b54a;color:#1b1404;font-weight:700;font-size:13px}
.fc-btn:disabled{opacity:.5;cursor:default}
.fc-icon{all:unset;cursor:pointer;padding:6px 8px;border-radius:7px;color:#cbd5e1;font-size:15px}
.fc-icon:hover{background:#13243b}
.fc-emotes[hidden]{display:none}
.fc-emotes{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-radius:8px;background:#13243b}
.fc-emotes button{all:unset;cursor:pointer;font-size:18px;padding:2px 5px;border-radius:5px}
.fc-emotes button:hover{background:#1c3352}
.fc-err{color:#f87171;font-size:12px;min-height:16px}
.fc-card{position:absolute;left:10px;right:10px;bottom:110px;z-index:3;background:#13243b;border:1px solid #2b4466;border-radius:10px;padding:12px;display:grid;gap:8px;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.fc-card .fc-actions{display:flex;flex-wrap:wrap;gap:6px}
.fc-card .fc-actions button{all:unset;cursor:pointer;padding:5px 9px;border-radius:6px;background:#1c3352;font-size:12px}
.fc-card .fc-actions button.danger{background:#3b1520;color:#fca5a5}
.fc-modal{position:absolute;inset:0;z-index:4;background:rgba(6,16,29,.92);display:grid;place-items:center;padding:16px}
.fc-modal form{width:100%;display:grid;gap:10px;background:#13243b;border:1px solid #2b4466;border-radius:12px;padding:16px}
.fc-modal h3{margin:0;font-size:16px}
.fc-modal ul{margin:0;padding-left:18px;display:grid;gap:5px;color:#cbd5e1}
.fc-modal input{border-radius:8px;border:1px solid #2b4466;background:#06101d;color:#e6edf6;padding:9px 10px;font:inherit}
/* ---------- touch devices ---------- */
/* Under 16px Safari on iPhone zooms the page in when a field is tapped, and does not zoom back out. */
@media (pointer:coarse),(hover:none){
  input:not([type=button]):not([type=submit]),textarea,select{font-size:16px}
  .fc-input textarea,.fc-modal input,.fs-field input,.fs-modal input,.rp input{font-size:16px}
  .fc-x,.fc-icon,.fc-btn,.fc-tools button,.fc-card .fc-actions button{min-height:38px;min-width:38px}
  .fc-emotes button{font-size:22px;padding:6px 9px}
}
@media (max-width:760px){
  :root{--chat-w:100vw}
  body.chat-dock #app{width:100vw}
  .fc{top:49px}
  /* the chat is a sheet at the bottom: the chart keeps the top half */
  .fc-overlay{top:auto;left:0;right:0;bottom:0;width:100vw;height:min(58vh,440px);padding-bottom:max(8px,env(safe-area-inset-bottom));
    background:#0a1526;border-top:1px solid #22385a;pointer-events:auto;box-shadow:0 -14px 40px rgba(0,0,0,.55)}
  .fc-overlay .fc-line{text-shadow:none}
  .fc-overlay .fc-line.fc-old{opacity:1}
  .fc-overlay .fc-input textarea,.fc-overlay .fc-emotes{background:#06101d}
  .fc-overlay .fc-head{align-self:stretch;order:1;margin:0;padding:8px 12px;border-radius:0;border-left:0;border-right:0;border-top:0;background:#0d1b2f;justify-content:space-between}
  .fc-overlay .fc-head{flex-wrap:nowrap;gap:6px}
  .fc-overlay .fc-head>div:first-child{display:flex;align-items:baseline;gap:8px;min-width:0;overflow:hidden}
  .fc-overlay .fc-head b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
  .fc-overlay .fc-head .fc-online{white-space:nowrap;flex:none}
  .fc-overlay .fc-head>div:last-child{display:flex;align-items:center;gap:2px;flex:none}
  .fc-overlay .fc-list{order:2;pointer-events:auto;overflow-y:auto;-webkit-mask-image:none;mask-image:none;background:none}
  .fc-overlay .fc-pin{order:3;align-self:stretch;max-width:none;margin:0 8px 6px}
  .fc-overlay .fc-foot{order:4}
  .fc-overlay.fc-hold .fc-list{margin:0;border-radius:0}
  /* menus and dialogs cover the screen instead of a narrow strip */
  .fc-card{position:fixed;left:12px;right:12px;bottom:auto;top:50%;transform:translateY(-50%);z-index:10050;max-height:70vh;overflow:auto}
  .fc-modal{position:fixed;inset:0;z-index:10050;align-items:end}
  .fc-modal form{max-width:520px;margin-bottom:max(12px,env(safe-area-inset-bottom))}
  .fc-people{top:auto;bottom:auto}
  .fs-bar{left:8px;right:8px;transform:none;width:auto;justify-content:flex-start;overflow-x:auto;bottom:max(10px,env(safe-area-inset-bottom))}
  body.chat-open .fs-bar{bottom:calc(min(58vh,440px) + 10px)}
  .rp{left:8px;right:8px;width:auto;transform:none;bottom:max(10px,env(safe-area-inset-bottom))}
  body.chat-open .rp{bottom:calc(min(58vh,440px) + 10px)}
  body.chat-dock .rp,body.chat-dock .fs-bar{left:8px;width:auto}
  .fs-toasts{left:8px;right:8px;max-width:none}
  body.in-session .fs-toasts,body.in-replay .fs-toasts{bottom:auto;top:56px}
}

/* ---- following ---- */
.fc-x .fc-live-count{display:inline-grid;place-items:center;min-width:14px;height:14px;padding:0 3px;margin-left:2px;border-radius:7px;background:#ef4444;color:#fff;font-size:9px;font-weight:800;vertical-align:5px}
.fc-x .fc-live-count[hidden]{display:none}
.fc-card{top:auto}
.fc-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fc-muted{color:#94a3b8;font-size:12px}
.fc-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#475569;margin-right:5px;vertical-align:0}
.fc-dot.on{background:#22c55e}
.fc-card .fc-actions button.primary{background:#e2b54a;color:#1b1404;font-weight:700}
.fc-live-card{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.35);font-size:12.5px}
.fc-live-card button{all:unset;cursor:pointer;margin-left:auto;padding:3px 9px;border-radius:5px;background:#ef4444;color:#fff;font-weight:700;font-size:12px}
.fc-people{max-height:60%;overflow:auto;bottom:auto;top:56px}
.fc-follow-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.fc-follow-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}
.fc-link{all:unset;cursor:pointer;font-weight:700}
.fc-link:hover span{text-decoration:underline}
.fc-join{all:unset;cursor:pointer;padding:3px 8px;border-radius:5px;background:rgba(239,68,68,.15);color:#fecaca;font-size:12px;font-weight:600}
.fs-live{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ef4444;margin-right:6px;vertical-align:1px;animation:fsPulse 1.6s ease-out infinite}
@keyframes fsPulse{0%{box-shadow:0 0 0 0 rgba(239,68,68,.55)}100%{box-shadow:0 0 0 7px rgba(239,68,68,0)}}
@media (prefers-reduced-motion:reduce){.fs-live{animation:none}}

/* ---- shared sessions ---- */
body.in-session #flowSessionButton{border-color:#ef4444;color:#fecaca}
.fs-bar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:10004;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 32px);
  padding:6px 8px 6px 12px;border-radius:999px;background:rgba(11,22,38,.94);border:1px solid #7f1d1d;box-shadow:0 10px 30px rgba(0,0,0,.45);
  color:#e6edf6;font:13px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;white-space:nowrap}
body.chat-dock .fs-bar{left:calc((100vw - var(--chat-w)) / 2)}
body.in-session .fs-toasts{bottom:68px}
.fs-bar b{overflow:hidden;text-overflow:ellipsis;max-width:220px}
.fs-dot{width:8px;height:8px;border-radius:50%;background:#ef4444;flex:none;animation:fsPulse 1.6s ease-out infinite}
.fs-dot.off{background:#64748b;animation:none}
.fs-muted{color:#94a3b8}
.fs-people{display:flex;margin-left:2px}
.fs-av{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#0b1626;font-size:11px;font-weight:800;border:2px solid #0b1626;margin-left:-5px}
.fs-people .fs-av:first-child{margin-left:0}
.fs-bar button{all:unset;cursor:pointer;padding:4px 10px;border-radius:999px;background:#1c3352;font-weight:600;font-size:12.5px}
.fs-bar button:hover,.fs-bar button:focus-visible{background:#284670;outline:none}
.fs-bar button[data-b="invite"]{background:#e2b54a;color:#1b1404}
.fs-modal{position:fixed;inset:0;z-index:10010;background:rgba(3,9,18,.6);display:grid;place-items:center;padding:16px}
.fs-modal form{width:min(440px,100%);max-height:calc(100vh - 32px);overflow:auto;display:grid;gap:12px;background:#0f1d31;border:1px solid #2b4466;border-radius:14px;padding:20px;
  color:#e6edf6;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;box-shadow:0 30px 80px rgba(0,0,0,.55)}
.fs-modal h3{margin:0;font-size:18px}
.fs-modal h4{margin:4px 0 0;font-size:12px;color:#94a3b8;font-weight:600}
.fs-modal p{margin:0;color:#cbd5e1}
.fs-modal fieldset{border:0;margin:0;padding:0;display:grid;gap:6px}
.fs-modal legend{color:#94a3b8;font-size:12.5px;margin-bottom:4px;padding:0}
.fs-modal label{cursor:pointer}
.fs-field{display:grid;gap:5px;color:#94a3b8;font-size:12.5px}
.fs-field input{border-radius:8px;border:1px solid #2b4466;background:#06101d;color:#e6edf6;padding:9px 10px;font:inherit;font-size:14px}
.fs-field input:focus{outline:2px solid #38bdf8;outline-offset:1px}
.fs-check{display:flex;gap:8px;align-items:flex-start;color:#cbd5e1}
.fs-row{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.fs-row.wrap{flex-wrap:wrap}
.fs-row button{all:unset;cursor:pointer;padding:8px 14px;border-radius:8px;background:#1c3352;font-weight:600;font-size:13.5px}
.fs-row button:focus-visible{outline:2px solid #38bdf8}
.fs-row .fs-primary{background:#e2b54a;color:#1b1404}
.fs-row .fs-danger{background:#3b1520;color:#fca5a5}
.fs-err{color:#fca5a5!important;min-height:0}
.fs-err:empty{display:none}
.fs-chips{display:flex;flex-wrap:wrap;gap:6px}
.fs-chips button{all:unset;cursor:pointer;padding:4px 9px;border-radius:999px;background:#1c3352;font-size:12.5px}
.fs-chips i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;vertical-align:1px}
.small{font-size:12.5px}
.fs-people-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fs-people-list li{display:flex;align-items:center;gap:8px}
.fs-people-list .fs-av{margin:0}
.fs-link{all:unset;cursor:pointer;margin-left:auto;color:#fca5a5;font-size:12.5px}
.fs-toasts{position:fixed;left:16px;bottom:16px;z-index:10009;display:grid;gap:8px;max-width:min(380px,calc(100vw - 32px))}
.fs-toast{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;background:#0f1d31;border:1px solid #2b4466;color:#e6edf6;
  font:13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.fs-toast i{width:8px;height:8px;border-radius:50%;flex:none}
.fs-toast button{all:unset;cursor:pointer;padding:4px 10px;border-radius:6px;background:#e2b54a;color:#1b1404;font-weight:700;font-size:12.5px}
.fs-toast button[data-no]{background:transparent;color:#94a3b8;padding:4px 6px}

.fc-card .fc-actions .fc-profile-link{padding:5px 9px;border-radius:6px;background:#1c3352;font-size:12px;color:#e6edf6;text-decoration:none}
.fc-card .fc-actions .fc-profile-link:hover{background:#284670}

/* ---- session replay player ---- */
.rp{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:10006;width:min(920px,calc(100vw - 32px));display:grid;gap:8px;padding:12px 14px;
  border-radius:14px;background:rgba(11,22,38,.96);border:1px solid #2b4466;box-shadow:0 18px 50px rgba(0,0,0,.55);color:#e6edf6;
  font:13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body.chat-dock .rp{left:calc((100vw - var(--chat-w)) / 2);width:min(920px,calc(100vw - var(--chat-w) - 32px))}
body.in-replay .fs-toasts{bottom:150px}
.rp-top{display:flex;align-items:center;gap:10px;min-width:0}
.rp-top b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-badge{padding:2px 8px;border-radius:999px;background:#e2b54a;color:#1b1404;font-weight:800;font-size:11px;letter-spacing:.04em}
.rp-muted{color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-muted a{color:inherit}
.rp-sp{flex:1}
.rp button{all:unset;cursor:pointer;padding:5px 10px;border-radius:7px;background:#1c3352;font-weight:600;white-space:nowrap}
.rp button:hover,.rp button:focus-visible{background:#284670;outline:none}
.rp-feed{display:grid;gap:2px;padding:6px 10px;border-radius:8px;background:#0b1626;max-height:96px;overflow:hidden}
.rp-feed[hidden]{display:none}
.rp-msg{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-ctrl{display:flex;align-items:center;gap:8px}
.rp .rp-play{width:30px;text-align:center;background:#e2b54a;color:#1b1404}
.rp .rp-play:hover{background:#ecc565}
.rp-time{font-variant-numeric:tabular-nums;color:#94a3b8;min-width:38px;text-align:center}
.rp-track{position:relative;flex:1;height:26px;display:flex;align-items:center}
.rp-ticks{position:absolute;left:8px;right:8px;top:2px;bottom:2px;pointer-events:none}
.rp-ticks i{position:absolute;top:0;width:2px;height:9px;border-radius:1px;transform:translateX(-1px)}
.rp-ticks i.c{top:auto;bottom:0;height:6px;background:#38bdf8;opacity:.7}
.rp-track input{width:100%;margin:0;accent-color:#e2b54a;position:relative}
.rp-speed{display:flex;gap:2px;padding:2px;border-radius:8px;background:#0b1626}
.rp-speed button{padding:4px 8px;background:transparent;color:#94a3b8}
.rp-speed button[aria-pressed="true"]{background:#1c3352;color:#e6edf6}
@media (max-width:640px){.rp-top .rp-muted,.rp-speed{display:none}}
body.in-replay #flowSessionButton{display:none}


/* ---------- sharing what you see: pictures, votes and comments ---------- */

/* the picture waiting to go out with the next message */
.fc-attach{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid #2b4466;border-radius:9px;background:rgba(10,21,38,.9)}
.fc-attach[hidden]{display:none}
.fc-attach img{width:52px;height:34px;object-fit:cover;border-radius:5px;flex:none}
.fc-attach span{flex:1;min-width:0;color:#94a3b8;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-attach button{all:unset;cursor:pointer;padding:3px 7px;border-radius:6px;color:#94a3b8}
.fc-attach button:hover,.fc-attach button:focus-visible{background:#1c3352;color:#e6edf6;outline:none}
.fc-dropping{outline:2px dashed #38bdf8;outline-offset:-6px}

/* a picture in the stream: small enough that the chart stays readable behind it */
.fc-line.fc-has-shot{display:block}
.fc-shot{all:unset;cursor:zoom-in;display:block;position:relative;margin:4px 0 2px;max-width:270px;border-radius:9px;overflow:hidden;
  border:1px solid #2b4466;background:#0b1626;line-height:0}
.fc-shot:hover,.fc-shot:focus-visible{border-color:#38bdf8;outline:none}
.fc-shot img{display:block;width:100%;max-height:150px;object-fit:cover}
.fc-overlay .fc-shot{max-width:230px}
.fc-overlay .fc-shot img{max-height:116px}
.fc-shot-small{max-width:150px;margin:3px 0 0}
.fc-shot-small img{max-height:84px}
.fc-shot-meta{position:absolute;left:0;right:0;bottom:0;padding:9px 7px 4px;font:11px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:#cbd5e1;background:linear-gradient(transparent,rgba(4,10,20,.92));text-align:left}

/* agree, disagree, discuss */
.fc-react{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;margin-left:6px}
.fc-line.fc-has-shot .fc-react{margin:2px 0 0;display:flex}
.fc-react button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:999px;
  font:11.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#7d8da3;text-shadow:none}
.fc-react button i{font-style:normal;font-size:10.5px}
.fc-react button b{font-weight:700;font-variant-numeric:tabular-nums}
.fc-react button:hover,.fc-react button:focus-visible{background:#1c3352;color:#e6edf6;outline:none}
.fc-react button.on{background:rgba(34,197,94,.18);color:#86efac}
.fc-react button.down{background:rgba(239,68,68,.18);color:#fca5a5}

/* a message opened on its own, with the picture at full size */
.fc-post{position:fixed;inset:0;z-index:10060;display:grid;place-items:center;padding:16px;background:rgba(3,8,16,.72);backdrop-filter:blur(3px)}
.fc-post-box{position:relative;width:min(720px,100%);max-height:88vh;overflow:auto;display:grid;gap:10px;padding:16px;
  border-radius:14px;background:#0b1626;border:1px solid #2b4466;box-shadow:0 24px 70px rgba(0,0,0,.6);color:#e6edf6;
  font:13.5px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.fc-post-x{all:unset;cursor:pointer;position:absolute;top:10px;right:12px;padding:4px 8px;border-radius:7px;color:#94a3b8}
.fc-post-x:hover,.fc-post-x:focus-visible{background:#1c3352;color:#e6edf6;outline:none}
.fc-post-head{display:flex;align-items:baseline;gap:9px;padding-right:34px}
.fc-post-figure{margin:0;position:relative;border-radius:11px;overflow:hidden;border:1px solid #22385a;background:#060f1c;line-height:0}
.fc-post-figure img{display:block;width:100%;max-height:62vh;object-fit:contain}
.fc-post-figure .fc-shot-meta{font-size:12px;padding:14px 10px 7px}
.fc-post-body{margin:0;white-space:pre-wrap;word-break:break-word}
.fc-post-bar{display:flex;align-items:center;gap:6px;padding-top:2px;border-top:1px solid #1b2f4d}
.fc-post-bar .fc-react button{font-size:13px;padding:5px 10px}
.fc-post-comments{display:grid;gap:8px;max-height:34vh;overflow:auto}
.fc-comment{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;align-items:baseline;padding:7px 9px;border-radius:9px;background:#0e1c30}
.fc-comment .fc-shot,.fc-comment .fc-react{grid-column:2}
.fc-post-form{display:grid;grid-template-columns:1fr auto;gap:8px}
.fc-post-form input{grid-column:1;padding:9px 11px;border-radius:9px;border:1px solid #2b4466;background:#0e1c30;color:#e6edf6;font:inherit}
.fc-post-form input:focus{outline:none;border-color:#38bdf8}
.fc-post-form .fc-err{grid-column:1/-1}

@media (max-width:760px){
  .fc-shot{max-width:100%}
  .fc-shot img{max-height:34vh}
  .fc-post{padding:0;place-items:end stretch}
  .fc-post-box{width:100%;max-height:92vh;border-radius:14px 14px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .fc-post-comments{max-height:30vh}
}
