/* ─── FLESHBOOK and YOUTUBE keys + windows (1.11.9.170) ──────────────────────
   Keys share .fm-toolbtn with STORE and DISPATCH (casino-deck.css). Each tool on
   the bar carries its own label colour; Fleshbook takes the violet its unread
   badge has always used, YouTube the broadcast red. */

/* Keys */
.fms-fb .fm-toollb{color:#b9a4ff}
.fms-yt .fm-toollb{color:#ff6b5e}
.fms-fb .fm-toolic,.fms-yt .fm-toolic{position:relative;display:flex;align-items:center;justify-content:center;filter:none}
.fms-fbic{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;box-sizing:border-box;
  font-family:'Doto','Share Tech Mono',ui-monospace,monospace;font-weight:900;font-size:17px;line-height:1;color:#0b0716;
  background:linear-gradient(#c8b6ff,#8a6cf0);box-shadow:0 0 0 1px #2a1f4d,0 0 8px rgba(167,139,250,.45),inset 0 1px 0 rgba(255,255,255,.5)}
.fms-ytic{display:inline-flex;align-items:center;justify-content:center;width:26px;height:18px;border-radius:5px;
  background:linear-gradient(#ff5a4a,#c81e10);box-shadow:0 0 0 1px #4a0b05,0 0 8px rgba(255,70,50,.4),inset 0 1px 0 rgba(255,255,255,.35)}
.fms-ytic i{width:0;height:0;margin-left:2px;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #fff}
.fms-fb:hover,.fms-fb:focus-visible,.fms-fb.on{border-color:#3d2f6e}
.fms-yt:hover,.fms-yt:focus-visible,.fms-yt.on{border-color:#6e2219}
.fms-badge{position:absolute;top:-3px;right:-9px;min-width:15px;height:15px;line-height:15px;padding:0 3px;box-sizing:border-box;border-radius:8px;
  font-style:normal;font-size:10px;font-family:'Share Tech Mono',ui-monospace,monospace;text-align:center;color:#000;background:#a78bfa;box-shadow:0 0 6px #a78bfa}
.fms-badge:empty{display:none}
@keyframes fmsPing{0%,100%{box-shadow:0 0 0 0 rgba(167,139,250,0)}50%{box-shadow:0 0 0 4px rgba(167,139,250,.45)}}
#fleshbookBtn.ping{animation:fmsPing 1.4s ease-in-out infinite;border-color:#a78bfa}

/* Windows. The moved panes always show inside a window; the tab switchers'
   inline display:none is overridden here, as casino-deck.css does for Casino. */
.fms-sub{font-size:.62rem;letter-spacing:.2em;color:var(--muted);opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm-deckwin #fleshbookTab{display:flex!important;flex:1;min-height:0;border-radius:0!important}
.fm-deckwin #devlogsTab{display:block!important;flex:1;min-height:0;overflow:auto;padding:10px 12px}

@media (prefers-reduced-motion:reduce){#fleshbookBtn.ping{animation:none}}

/* ── Fitted tool row (1.11.9.172, was a fixed compact size in .171) ─────────
   The row fills the header on every monitor. social-deck.js (fitTools) finds
   the largest --tks scale at which the whole header still sits on one line with
   no fold, between .75 and 1.8, and the row spreads what is left evenly
   (space-between), so there is no dead band before the account controls at any
   width or OS zoom. Specificity (1,2,1) outranks each tool's own #xxxBtn rules.
   Past .75 the measured fold in casino-deck.js (fmh-0..3) takes over as before. */
body:not(.fm-mobile) #eod-timer-wrap{--tks:1;gap:calc(3px * var(--tks));justify-content:space-between;flex:1 1 auto;margin-right:24px}
body:not(.fm-mobile) #eod-timer-wrap > [id$="Btn"]:not(#casinoBtn):not(#assetCreditsBtn){padding:2px calc(3px * var(--tks));gap:0}
body:not(.fm-mobile) #eod-timer-wrap [id$="BtnLabel"],
body:not(.fm-mobile) #eod-timer-wrap .fm-toollb{font-size:calc(.52rem * var(--tks));letter-spacing:.06em;white-space:nowrap}
body:not(.fm-mobile) #eod-timer-wrap [id$="BtnIcon"],
body:not(.fm-mobile) #eod-timer-wrap .fm-toolic{font-size:calc(17px * var(--tks));line-height:calc(22px * var(--tks));height:calc(22px * var(--tks))}
body:not(.fm-mobile) #eod-timer-wrap #loreBtnIcon,
body:not(.fm-mobile) #eod-timer-wrap #calcBtnIcon{width:calc(22px * var(--tks))}
body:not(.fm-mobile) #eod-timer-wrap .fms-fbic{width:calc(19px * var(--tks));height:calc(19px * var(--tks));font-size:calc(14px * var(--tks));border-radius:4px}
body:not(.fm-mobile) #eod-timer-wrap .fms-ytic{width:calc(22px * var(--tks));height:calc(15px * var(--tks));border-radius:4px}
body:not(.fm-mobile) #eod-timer-wrap .fms-ytic i{border-width:calc(4px * var(--tks)) 0 calc(4px * var(--tks)) calc(7px * var(--tks))}
body:not(.fm-mobile) #eod-timer-wrap #casinoBtn{margin-right:3px}
body:not(.fm-mobile) .fms-fillrow{flex:1 1 auto}
body:not(.fm-mobile) #eod-timer-wrap > *{flex-shrink:0}
/* Edit Profile is always its pencil on desktop (1.11.9.173): the space goes to
   the tool keys. Same glyph and sizing the fmh-0 fold already used; the label
   stays in the DOM for the tooltip, accessible name and i18n. */
body:not(.fm-mobile) #fm-edit-profile-btn{font-size:0;padding:3px 9px}
body:not(.fm-mobile) #fm-edit-profile-btn::before{content:'\270E';font-size:.9rem}
