/* Reference palettes: navy/white Light and charcoal Dark. Layout stays unchanged. */
:root {
  --forum-blue:#273c75;
  --forum-blue-2:#292929;
  --forum-accent:#fcfcfc;
  --forum-page:#111111;
  --forum-panel:#1f1f1f;
  --forum-panel-soft:#303030;
  --forum-input:#1f1f1f;
  --forum-hover:#282828;
  --forum-bubble:#292929;
  --forum-line:#303030;
  --forum-row:#1f1f1f;
  --forum-row-alt:#1f1f1f;
  --forum-ink:#fcfcfc;
  --forum-soft:#767676;
  --forum-meta:#fcfcfc;
  --forum-link:#fcfcfc;
  --forum-heading:#414141;
  --forum-widget-heading:#303030;
  --forum-nav:#292929;
  --forum-nav-active:#303030;
  --forum-action:#273c75;
  --forum-header-ink:#fcfcfc;
  --font-body:'Open Sans',sans-serif;
}
body { background:var(--forum-page);color:var(--forum-ink);font-family:var(--font-body); }
button,input,textarea,select { font-family:var(--font-body); }
#chatScreen,#chatBody { background:var(--forum-page); }
.chat-header { background:var(--forum-nav);border-color:var(--forum-line); }
.chat-header .header-wordmark,.chat-header .header-name { color:var(--forum-header-ink); }
.chat-header .header-sub { color:#d0d0d0; }
.header-wordmark { background:none;-webkit-text-fill-color:initial; }
#desktopModeSwitch { background:var(--forum-nav); }
.mode-switch-btn.mode-active,.mode-switch-btn:hover { background:var(--forum-nav-active);color:var(--forum-header-ink); }
.signout-btn { background:transparent;border-color:rgba(255,255,255,.18);color:var(--forum-header-ink); }
.signout-btn:hover { background:var(--forum-nav-active);border-color:rgba(255,255,255,.4);color:var(--forum-header-ink); }
.forum-browse-wrap { background:var(--forum-widget-heading);border-color:var(--forum-line); }
.forum-browse-wrap button { color:var(--forum-link) !important; }
.forum-left-kicker,.forum-widget-head { background:var(--forum-widget-heading);color:var(--forum-header-ink);font-weight:600; }
.forum-category-head { background:var(--forum-heading);color:var(--forum-header-ink);font-weight:600; }
.forum-stage-title,.forum-stage-thread-title,.forum-tool-btn,.forum-online-user { color:var(--forum-link); }
.forum-stage-title,.forum-stage-thread-title,.forum-tool-btn,.forum-footer-btn,.forum-footer-link { font-family:var(--font-body); }
.forum-stage-title { letter-spacing:0; }
.forum-stage-thread-title { font-weight:700; }
.forum-item-title { color:var(--forum-link); }
.forum-item-meta { color:var(--forum-meta); }
.forum-item-meta [style*="opacity"] { opacity:1 !important; }
.forum-stage-meta,.forum-stage-latest { color:var(--forum-meta); }
.forum-stage-meta [style*="opacity"] { opacity:1 !important; }
.forum-stage-btn { background:var(--forum-panel);color:var(--forum-link);border-color:var(--forum-line); }
.forum-stage-btn.primary,#sendBtn { background:var(--forum-action);border-color:var(--forum-action);color:var(--forum-header-ink); }
#desktopForumFooter { background:var(--forum-widget-heading);border-color:var(--forum-line); }
.msg-bubble-me { background:var(--forum-action);border-color:var(--forum-action);color:var(--forum-header-ink); }
.msg-bubble:not(.msg-bubble-me) { background:var(--forum-bubble);border-color:var(--forum-line);color:var(--forum-ink); }
body.forum-light .msg-bubble:not(.msg-bubble-me) { background:var(--forum-bubble);border-color:var(--forum-line);color:var(--forum-ink); }
body.forum-light .msg-bubble:not(.msg-bubble-me) .msg-text { color:var(--forum-ink); }
body.forum-light .msg-bubble:not(.msg-bubble-me) .msg-name,
body.forum-light .msg-bubble:not(.msg-bubble-me) .reply-quote-name { color:var(--forum-link) !important; }
body.forum-light .msg-bubble:not(.msg-bubble-me) .msg-time,
body.forum-light .msg-bubble:not(.msg-bubble-me) .edited-label { color:var(--forum-meta) !important; }
body.forum-light .msg-bubble:not(.msg-bubble-me) .reply-quote { background:var(--forum-hover);border-left-color:var(--forum-link); }
body.forum-light .msg-bubble:not(.msg-bubble-me) .reply-quote:hover { background:var(--forum-line); }
body.forum-light .msg-bubble:not(.msg-bubble-me) .reply-quote-text { color:var(--forum-ink) !important; }
body.forum-light .mention { color:var(--forum-link); }
body.forum-light .mention-me { background:#e6eaf3;color:var(--forum-link); }
body.forum-light .reaction-pill { background:var(--forum-panel);border-color:var(--forum-line);color:var(--forum-ink); }
.lm-user-card-head,.lm-notif-head { background:var(--forum-widget-heading);border-color:var(--forum-line); }
.lm-flat-btn,.lm-notif-from { color:var(--forum-link); }
.lm-flat-btn,.lm-profile-tab,.lm-profile-field input { font-family:var(--font-body); }
.lm-flat-btn.primary,.lm-user-card-action.primary { background:var(--forum-action);border-color:var(--forum-action);color:var(--forum-header-ink); }
.lm-profile-tab.active { color:var(--forum-link);border-bottom-color:var(--forum-link); }
.lm-profile-option.active { border-color:var(--forum-link);box-shadow:inset 0 0 0 1px var(--forum-link); }
body.forum-light .lm-user-card,
body.forum-light .lm-profile-page,
body.forum-light .lm-notif-panel { background:var(--forum-panel);color:var(--forum-ink);border-color:var(--forum-line); }
body.forum-light .lm-user-card-body { background:var(--forum-panel); }
body.forum-light .lm-user-card-name,
body.forum-light .lm-user-card-stat-value,
body.forum-light .lm-profile-title h2,
body.forum-light .lm-profile-stat b,
body.forum-light .lm-profile-row-title { color:var(--forum-ink); }
body.forum-light .lm-user-card-stat,
body.forum-light .lm-user-card-status,
body.forum-light .lm-profile-row { background:var(--forum-panel-soft);border-color:var(--forum-line); }
body.forum-light .lm-user-card-action.secondary { background:var(--forum-panel);color:var(--forum-link);border-color:var(--forum-line); }
#authScreen { background:var(--forum-page); }
.auth-layout,.auth-card { background:var(--forum-panel);border-color:var(--forum-line); }
.auth-intro { background:var(--forum-widget-heading);border-color:var(--forum-line); }
.auth-intro h2 { color:var(--forum-header-ink); }
.auth-intro p { color:#d0d0d0; }
.auth-intro-points span { border-color:rgba(255,255,255,.35);color:var(--forum-header-ink); }
.auth-wordmark { color:var(--forum-link);background:none;-webkit-text-fill-color:initial; }
.auth-sub,.field label,#avatarWrap label,.remember-row label,.tab { color:var(--muted); }
.tabs,.field input { background:var(--forum-input);border-color:var(--forum-line);color:var(--forum-ink); }
.field input:focus { background:var(--forum-input);border-color:var(--forum-link);box-shadow:none; }
.tab-active,.auth-btn { background:var(--forum-action);color:var(--forum-header-ink); }
.theme-option.theme-active { border-color:var(--forum-link);box-shadow:inset 0 0 0 1px var(--forum-link); }
.theme-option.theme-active::after { color:var(--forum-link); }
@media(max-width:600px) {
  .mobile-forum-home,.mobile-forum-home button,.mobile-forum-nav { font-family:var(--font-body); }
  .mobile-forum-nav,.mf-action,.mf-go-chat { background:var(--forum-action);border-color:var(--forum-action); }
  .mobile-forum-nav[aria-pressed="true"] { border-bottom:1px solid var(--forum-action); }
  #sidebarForumBtn { background:var(--forum-action) !important;color:var(--forum-header-ink) !important; }
  #sidebarRecentThreadsHeading { background:var(--forum-widget-heading);color:var(--forum-header-ink);border-color:var(--forum-line); }
  .mf-section-head { background:var(--forum-widget-heading);color:var(--forum-header-ink); }
  summary.mf-section-head { background:var(--forum-heading); }
  summary.mf-section-head::after { border-top-color:#a0a0a0; }
  .mf-read-only { color:#d0d0d0; }
  .mf-category-title,.mf-category-latest,.mf-thread-title,.mf-back,.mf-member { color:var(--forum-link); }
  .mf-category-title { font-weight:700; }
  .mf-category-icon { color:var(--forum-link); }
  .mf-category-row:nth-child(even) { background:var(--forum-row); }
  .mf-thread-meta,.mf-category-age,.mf-category-counts,.mf-stats dt { color:var(--forum-meta); }
  .mf-footer { background:var(--forum-widget-heading); }
  .mf-footer a,.mf-footer button { color:var(--forum-header-ink); }
  .mf-footer .mf-footer-brand { color:#d0d0d0; }
}
