/* Load after the desktop skin. Navigation and reading remain normal pages on
   phones; the movable-window controls continue to be available on desktop. */
html:not([data-color-mode="light"]){
 --fs-reading-muted:#b6b9af;
}
html[data-color-mode="light"]{--fs-reading-muted:#4e554e}

.screen :is(.dispatch p,.social-post-body,.social-comment-body,.editorial-reply p,.character-reply p),
.fs-window :is(.msg-body,.dispatch p,.social-post-body,.editorial-reply p,.character-reply p),
#fs-lobby :is(.fs-public-post,.fs-media-note-body,.fs-media-notes p){
 color:var(--ink)!important;
 font-size:15px!important;
 line-height:1.75!important;
}
.screen :is(.editorial-status,.character-reply-meta,.editorial-reply header),
.fs-window :is(.msg-meta,.msg-time,.chat-msg-muted,.fs-muted),
#fs-lobby :is(.fs-muted,.fs-media-credit){
 color:var(--fs-reading-muted,var(--ink-dim))!important;
}

.fs-messenger-launcher[hidden]{display:none!important}
@media(max-width:760px){
 html{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
 body{height:auto;min-height:100dvh;overflow:visible;padding-bottom:calc(var(--fs-dock-height,66px) + var(--fs-keyboard-bottom,0px) + 16px)}
 #main-content{height:auto!important;min-height:0;overflow:visible!important;position:static}
 #screen-home,#screen-home .hero,#screen-home .hero>.wrap{height:auto!important;min-height:0!important;overflow:visible!important}
 #screen-home[aria-hidden="true"]{display:none!important}
 #screen-home .desktop-launcher{position:static!important;inset:auto!important;height:auto;min-height:0;overflow:visible!important;display:block;padding:12px}
 #fs-lobby{padding:8px 0 18px;max-width:none}
 .fs-layout{display:block}
 .fs-content{margin-top:20px;min-width:0}

 /* A managed messenger destination replaces the page, rather than floating
    over another screen. Closing it restores the routed content. */
 html[data-fs-mobile-view="messenger"] #main-content{display:none!important}
 .fs-managed-window,
 .screen:not(#screen-home).fs-page-window,
 #message-window.fs-window{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  transform:none!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  resize:none!important;
 }
 .fs-managed-window .fs-window-title{position:relative;top:auto;min-height:54px;cursor:default;touch-action:auto;border-bottom:1px solid var(--line)}
 .fs-managed-window .fs-window-title :is(strong,span:not(.fs-window-actions)){white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.4}
 .fs-managed-window .fs-window-body,
 .fs-managed-window .message-window-body,
 .fs-page-window .fs-page-content,
 .fs-managed-window .fs-window-content{
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;overscroll-behavior:auto;flex:0 0 auto;
 }
 .fs-page-content>.wrap{padding:18px 14px!important;max-width:none}
 .fs-managed-window .fs-window-body{padding:16px 14px;font-size:16px;line-height:1.75}
 .fs-managed-window .fs-resize-handle,.fs-managed-window .fs-desktop-window-control{display:none!important}
 #fs-room-window .chat-main,.fs-page-window .chat-main{height:auto!important;min-height:0!important;max-height:none!important;display:block;overflow:visible!important;padding:12px}
 #fs-room-window .chat-log,#fs-room-window .community-preview-log,
 .fs-page-window .chat-log,.fs-page-window .community-preview-log,#message-window .thread-log{
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;overscroll-behavior:auto;flex:0 0 auto;
 }
 .fs-page-window .chat-shell{height:auto;max-height:none;overflow:visible}
 #fs-room-window .chat-input-row,#message-window .thread-form{margin-top:16px}
 .fs-managed-window :is(input,select,textarea){font-size:16px!important}
 .fs-managed-window :is(button,a,summary){touch-action:manipulation}

 /* The tray cannot retain a floating position on phones. Its measured height
    is reserved below the document, including the safe area/keyboard inset. */
 .fs-dock{
  position:fixed!important;
  left:auto!important;top:auto!important;right:8px!important;
  bottom:calc(var(--fs-keyboard-bottom,0px) + 8px + env(safe-area-inset-bottom))!important;
  width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;
  height:auto;max-height:none!important;min-height:0;
  padding:6px!important;overflow:hidden!important;box-shadow:none;
 }
 .fs-dock.fs-panel-collapsed{width:auto!important;max-width:calc(100% - 16px)!important;padding:0!important}
 .fs-dock.fs-panel-collapsed .fs-messenger-panel-title{display:none!important}
 .fs-dock .fs-messenger-launcher{display:block;min-height:44px!important;min-width:132px;padding:10px 14px!important;font:13px/1.3 var(--mono);border:0;white-space:nowrap}
 .fs-dock .fs-messenger-panel-title{min-height:44px;padding:0 0 5px;margin-bottom:5px;cursor:default;touch-action:auto}
 .fs-dock .fs-panel-reset{display:none!important}
 .fs-dock .fs-messenger-panel-title .fs-panel-minimize{height:44px!important;min-height:44px!important;width:44px!important;min-width:44px!important;font-size:20px}
 .fs-dock .fs-messenger-panel-items{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:1px 0 5px;scrollbar-width:thin;gap:6px}
 .fs-dock .fs-messenger-panel-items[hidden]{display:none!important}
 .fs-dock .fs-messenger-panel-items button{min-height:44px;font-size:13px}

 .screen :is(.dispatch p,.social-post-body,.social-comment-body,.editorial-reply p,.character-reply p),
 .fs-window :is(.msg-body,.dispatch p,.social-post-body,.editorial-reply p,.character-reply p),
 #fs-lobby :is(.fs-public-post,.fs-media-note-body,.fs-media-notes p){font-size:16px!important;line-height:1.75!important}
 .chat-msg{font-size:16px;line-height:1.75}
 .fs-window :is(.msg-meta,.msg-time,.chat-msg-muted,.fs-muted),
 .screen :is(.editorial-status,.character-reply-meta,.editorial-reply header){font-size:12px;line-height:1.65}
}
/* Concrete entry points and optional editorial archives share the site palette. */
.home-community-benefit{padding:16px 18px;margin:0 0 18px;border:1px solid var(--line,#245a18);background:var(--panel,#050805);color:var(--ink,#e6eee2);font:16px/1.65 var(--mono,monospace)}
.home-community-benefit p{margin:0 0 10px}.home-community-benefit nav{display:flex;gap:12px;flex-wrap:wrap}.home-community-benefit nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid currentColor;color:var(--gold,#48ff00);text-decoration:underline;text-underline-offset:3px}
.community-editorial-archive{margin:20px 0;border-top:1px solid var(--line,#245a18);padding:12px 0}.community-editorial-archive>summary{padding:8px 4px;cursor:pointer;color:var(--ink,#e6eee2);font:600 15px/1.65 var(--mono,monospace)}.community-editorial-archive>summary:focus-visible{outline:2px solid var(--gold,#48ff00);outline-offset:3px}.community-editorial-archive[hidden]{display:none!important}
