/* BG INFO 4.2.49 — sidebar-only visual refresh.
 * The centre/feed, shell grid, route screens and all interactions are deliberately untouched.
 * This file is enqueued last to isolate the rails from legacy green Blogsy overrides.
 */

#smsocial-app > .sms-app-shell > .sms-app-rail {
  --sms-primary: #7044d4;
  --sms-rail-accent: #7044d4;
  --sms-rail-ink: #20263c;
  --sms-rail-subtle: #626d83;
  --sms-rail-border: #e6e8f1;
  --sms-rail-hover: #f4f0ff;
  --sms-rail-active: #eee8ff;
  --sms-rail-surface: #fff;
  --sms-rail-muted-surface: #f7f8fc;
  --sms-rail-shadow: 0 5px 20px rgba(46, 32, 95, .045);
  color: var(--sms-rail-ink);
  border-color: var(--sms-rail-border);
  background: var(--sms-rail-surface);
}

#smsocial-app > .sms-app-shell > .sms-app-rail--left {
  background: #fcfcff;
}

#smsocial-app > .sms-app-shell > .sms-app-rail :is(.sms-app-rail__scroll, .sms-app-context-footer) {
  min-inline-size: 0;
}

/* Navigation — quieter icons, fewer boxes, consistent rows. */
#smsocial-app .sms-app-rail--left .sms-app-rail__scroll {
  padding-inline: 12px !important;
  padding-block-start: 20px;
  padding-block-end: max(22px, var(--sms-safe-bottom, 0px));
}
#smsocial-app .sms-app-rail--left .sms-app-navigation {
  gap: 3px;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  inline-size: 100%;
  min-block-size: 46px !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #505a72 !important;
  text-decoration: none;
  transform: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link > :is(.sms-icon,.dashicons):first-child {
  display: block;
  inline-size: 21px !important;
  block-size: 21px !important;
  min-inline-size: 21px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #747b91 !important;
  box-shadow: none !important;
  stroke-width: 1.9;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link > .sms-icon:last-child:not(:first-child) {
  display: none !important;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link span {
  min-inline-size: 0;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link span strong {
  display: block;
  font-size: 15px !important;
  line-height: 1.28;
  letter-spacing: -.008em;
  font-weight: 650 !important;
  color: inherit;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link span small {
  display: none;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link:is(:hover,:focus-visible) {
  background: var(--sms-rail-hover) !important;
  border-color: #e9e1ff !important;
  color: #5e3bb7 !important;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link:is(:hover,:focus-visible) > :is(.sms-icon,.dashicons):first-child {
  color: var(--sms-rail-accent) !important;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link.is-active {
  background: var(--sms-rail-active) !important;
  border-color: #e5d9ff !important;
  color: #6038bf !important;
  box-shadow: inset 3px 0 var(--sms-rail-accent) !important;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link.is-active > :is(.sms-icon,.dashicons):first-child {
  color: #6038bf !important;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link .sms-app-context-link__badge {
  min-inline-size: 21px;
  block-size: 21px;
  background: var(--sms-rail-accent);
  color: white;
  box-shadow: none;
}
#smsocial-app .sms-app-rail--left .sms-app-left-link.is-locked {
  opacity: .68;
}
#smsocial-app .sms-app-rail--left .sms-app-rail__footer {
  color: var(--sms-rail-subtle);
  border-color: var(--sms-rail-border);
  background: transparent;
}

/* Right rail — compact account identity, navigation and settings. */
#smsocial-app .sms-app-rail--right .sms-app-rail__scroll {
  padding-inline: 15px !important;
  padding-block-end: 18px;
}
#smsocial-app .sms-app-rail--right .sms-app-user-card {
  min-block-size: 74px;
  padding: 12px;
  gap: 11px;
  border: 1px solid #ebe7fa;
  border-radius: 16px;
  background: linear-gradient(125deg, #fff 0%, #f6f2ff 100%);
  box-shadow: var(--sms-rail-shadow);
}
#smsocial-app .sms-app-rail--right .sms-app-user-card__avatar {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: #754ce0;
}
#smsocial-app .sms-app-rail--right .sms-app-user-card__copy strong {
  color: var(--sms-rail-ink);
  font-size: 14px;
  font-weight: 750;
}
#smsocial-app .sms-app-rail--right .sms-app-user-card__copy small {
  color: var(--sms-rail-subtle);
  font-size: 12px;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links {
  gap: 3px;
  margin-block-start: 11px;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link {
  min-block-size: 48px;
  padding: 9px 10px;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #4f5870;
  transform: none;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link > :is(.sms-icon,.dashicons):first-child {
  display: block;
  inline-size: 21px;
  block-size: 21px;
  min-inline-size: 21px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #757c96 !important;
  box-shadow: none !important;
  stroke-width: 1.9;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link > .sms-icon:last-child:not(:first-child) {
  inline-size: 13px;
  block-size: 13px;
  padding: 0;
  color: #b2abc7;
  opacity: 0;
  transition: opacity .16s ease;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link:is(:hover,:focus-visible) > .sms-icon:last-child:not(:first-child) {
  opacity: 1;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link span strong {
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link span small {
  color: var(--sms-rail-subtle);
  font-size: 12px;
  line-height: 1.35;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link:is(:hover,:focus-visible) {
  border-color: #e9e1ff;
  background: var(--sms-rail-hover);
  color: #5d39bb;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link:is(:hover,:focus-visible) > :is(.sms-icon,.dashicons):first-child,
#smsocial-app .sms-app-rail--right .sms-app-context-link.is-active > :is(.sms-icon,.dashicons):first-child {
  color: var(--sms-rail-accent) !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link.is-active {
  border-color: #e5d9ff;
  background: var(--sms-rail-active);
  color: #6038bf;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link__badge {
  border: 0;
  background: var(--sms-rail-accent);
  color: #fff;
}
#smsocial-app .sms-app-rail--right .sms-app-incognito-card,
#smsocial-app .sms-app-rail--right .sms-app-theme-card,
#smsocial-app .sms-app-rail--right .sms-app-language-card {
  margin-block: 10px 0;
  padding: 12px;
  border: 1px solid var(--sms-rail-border);
  border-radius: 15px;
  background: var(--sms-rail-muted-surface);
  box-shadow: none;
}
#smsocial-app .sms-app-rail--right .sms-app-incognito-card {
  grid-template-columns: minmax(0,1fr) auto;
  min-block-size: 56px;
}
#smsocial-app .sms-app-rail--right :is(.sms-app-incognito-card__copy, .sms-app-theme-card__copy, .sms-app-language-card__copy) strong {
  color: var(--sms-rail-ink);
  font-size: 14px;
  font-weight: 750;
}
#smsocial-app .sms-app-rail--right :is(.sms-app-theme-card__copy,.sms-app-language-card__copy) small {
  color: var(--sms-rail-subtle);
  font-size: 12px;
}
#smsocial-app .sms-app-rail--right .sms-app-incognito-toggle {
  border-color: #dedcea;
  background: var(--sms-rail-surface);
  color: var(--sms-rail-subtle);
}
#smsocial-app .sms-app-rail--right .sms-app-incognito-toggle.is-active {
  border-color: #cbbbf3;
  background: var(--sms-rail-active);
  color: #6038bf;
}
#smsocial-app .sms-app-rail--right .sms-app-incognito-toggle.is-active i {
  background: var(--sms-rail-accent);
}
#smsocial-app .sms-app-rail--right .sms-app-theme-card__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
#smsocial-app .sms-app-rail--right .sms-app-theme-card__options button {
  inline-size: 100%;
  min-inline-size: 0;
  block-size: 38px;
  min-block-size: 38px;
  border: 1px solid #e4e5ef;
  border-radius: 10px;
  background: var(--sms-rail-surface);
  color: #696f84;
  box-shadow: none;
}
#smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active {
  border-color: #cabbf6;
  background: var(--sms-rail-active);
  color: #6339ca;
}
#smsocial-app .sms-app-rail--right .sms-app-language-card__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#smsocial-app .sms-app-rail--right .sms-app-language-card__options button {
  min-block-size: 36px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #747b92;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
#smsocial-app .sms-app-rail--right .sms-app-language-card__options button.is-active {
  background: var(--sms-rail-active);
  border-color: #e4d9ff;
  color: #6139be;
  font-weight: 750;
  text-decoration: none;
}
#smsocial-app .sms-app-rail--right .sms-app-context-section-label {
  margin: 19px 10px 7px;
  color: #77669d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
/* Visible only to a WordPress administrator (server-side capability gate). */
#smsocial-app .sms-app-rail--right .sms-app-context-links--admin {
  margin-block-start: 0;
  padding: 6px;
  border: 1px solid #e5dcfa;
  border-radius: 14px;
  background: #f8f5ff;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links--admin .sms-app-context-link {
  min-block-size: 44px;
  border-radius: 10px;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link--logout {
  margin-block-start: 14px;
  color: #bd445e;
}
#smsocial-app .sms-app-rail--right .sms-app-context-link--logout > :is(.sms-icon,.dashicons):first-child {
  color: #bd445e !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-footer {
  padding: 13px 15px max(15px, var(--sms-safe-bottom, 0px));
  border-color: var(--sms-rail-border);
  background: var(--sms-rail-surface);
  font-size: 12px;
}
#smsocial-app .sms-app-rail--right .sms-app-context-footer nav {
  gap: 6px 12px;
}
#smsocial-app .sms-app-rail--right .sms-app-context-footer a {
  color: #83899b;
}

/* Keyboard navigation and system accessibility settings. */
#smsocial-app .sms-app-rail :is(a,button):focus-visible {
  outline: 2px solid #7549de;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #smsocial-app .sms-app-rail :is(a,button) { transition: none !important; }
}

/* The existing drawer behavior and breakpoint positions are retained. */
@media (max-width: 1279px) {
  #smsocial-app .sms-app-rail--left .sms-app-left-link { min-block-size: 52px !important; }
  #smsocial-app .sms-app-rail--right .sms-app-rail__scroll { padding-inline: 16px !important; }
}
@media (max-width: 600px) {
  #smsocial-app .sms-app-rail--left .sms-app-rail__scroll { padding-inline: 14px !important; }
  #smsocial-app .sms-app-rail--right .sms-app-user-card { min-block-size: 70px; }
}

/* Dark appearance: readable rails without changing the site's article/feed themes. */
body.sms-color-mode-dark #smsocial-app > .sms-app-shell > .sms-app-rail,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app > .sms-app-shell > .sms-app-rail {
  --sms-rail-ink: #ecedf8;
  --sms-rail-subtle: #b0b5ca;
  --sms-rail-border: #34334b;
  --sms-rail-hover: #33264e;
  --sms-rail-active: #463067;
  --sms-rail-surface: #1c2030;
  --sms-rail-muted-surface: #24273a;
  --sms-rail-shadow: none;
  background: var(--sms-rail-surface);
  color: var(--sms-rail-ink);
}
@media (prefers-color-scheme: dark) {
  body.sms-color-mode-system #smsocial-app > .sms-app-shell > .sms-app-rail {
    --sms-rail-ink: #ecedf8;
    --sms-rail-subtle: #b0b5ca;
    --sms-rail-border: #34334b;
    --sms-rail-hover: #33264e;
    --sms-rail-active: #463067;
    --sms-rail-surface: #1c2030;
    --sms-rail-muted-surface: #24273a;
    --sms-rail-shadow: none;
    background: var(--sms-rail-surface);
    color: var(--sms-rail-ink);
  }
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left {
  background: #1b1e2c;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left .sms-app-left-link,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left .sms-app-left-link {
  color: #c9cce0 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left .sms-app-left-link.is-active,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left .sms-app-left-link.is-active {
  color: #e8dbff !important;
  border-color: #614589 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-link,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-link {
  color: #d3d5e6;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-user-card,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-user-card {
  background: #26263c;
  border-color: #3b3558;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-links--admin,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-links--admin {
  background: #29243d;
  border-color: #4c3c69;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button {
  background: #2b2b41;
  border-color: #48445f;
  color: #d0cce7;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active {
  background: #4a346e;
  border-color: #7355aa;
  color: #f4eefe;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-language-card__options button,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-language-card__options button {
  color: #c4c4d8;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-language-card__options button.is-active,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-language-card__options button.is-active {
  color: #eee4ff;
  border-color: #60468b;
}

/* Dark icon contrast: the original purple stroke was too dark over a violet row. */
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left .sms-app-left-link.is-active > :is(.sms-icon,.dashicons):first-child,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left .sms-app-left-link.is-active > :is(.sms-icon,.dashicons):first-child {
  color: #e0ceff !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left .sms-app-left-link:not(.is-active) > :is(.sms-icon,.dashicons):first-child,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left .sms-app-left-link:not(.is-active) > :is(.sms-icon,.dashicons):first-child {
  color: #b9bdd2 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--left .sms-app-left-link:hover,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--left .sms-app-left-link:hover {
  color: #eee2ff !important;
  border-color: #5d4382 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-link.is-active,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-link.is-active {
  color: #e9deff;
  border-color: #5d4382;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-link > :is(.sms-icon,.dashicons):first-child,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-link > :is(.sms-icon,.dashicons):first-child {
  color: #bdc2d9 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-link--logout > :is(.sms-icon,.dashicons):first-child,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-link--logout > :is(.sms-icon,.dashicons):first-child {
  color: #f39baf !important;
}

/* 4.3.2 — Canonical right-rail visual contract on Feed, Profile, Groups,
   Page and external module routes.  The Blogsy scroll-lock class is allowed
   to change *scroll ownership*, never the controls' typography or spacing.
   Only the context rail is styled; the centre/feed and left rail are untouched. */
#smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link {
  border-color: transparent !important;
  background: transparent !important;
  color: #4f5870 !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link span strong {
  color: inherit !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(:hover, :focus-visible, .is-active, [aria-current="page"]) {
  border-color: #e9e1ff !important;
  background: var(--sms-rail-hover) !important;
  color: #5d39bb !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links--admin > .sms-app-context-link {
  border-color: transparent !important;
  background: transparent !important;
}
#smsocial-app .sms-app-rail--right .sms-app-context-links--admin > .sms-app-context-link:is(:hover, :focus-visible) {
  border-color: #e9e1ff !important;
  background: var(--sms-rail-hover) !important;
}
/* Prevent high-specificity legacy theme selectors from forcing their own
   colour palette onto the right-rail appearance controls. */
#smsocial-app .sms-app-rail--right .sms-app-theme-card__options button {
  background: var(--sms-rail-surface) !important;
  border-color: #e4e5ef !important;
  color: #696f84 !important;
}
#smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active {
  background: var(--sms-rail-active) !important;
  border-color: #cabbf6 !important;
  color: #6339ca !important;
}

body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link {
  border-color: transparent !important;
  background: transparent !important;
  color: #d3d5e6 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(:hover, :focus-visible, .is-active, [aria-current="page"]),
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(:hover, :focus-visible, .is-active, [aria-current="page"]) {
  border-color: #60478b !important;
  background: #33264e !important;
  color: #eee2ff !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button {
  background: #2b2b41 !important;
  border-color: #48445f !important;
  color: #d0cce7 !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-theme-card__options button.is-active {
  background: #4a346e !important;
  border-color: #7355aa !important;
  color: #f4eefe !important;
}
body.sms-color-mode-dark #smsocial-app .sms-app-rail--right .sms-app-incognito-toggle,
html[scheme="dark"] body.sms-blogsy-theme-bridge #smsocial-app .sms-app-rail--right .sms-app-incognito-toggle {
  background: #2b2b41 !important;
  border-color: #48445f !important;
  color: #d0cce7 !important;
}

/* Readable account controls without truncating the incognito label. */
#smsocial-app .sms-app-rail--right .sms-app-incognito-card__copy strong {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;}
#smsocial-app .sms-app-rail--right .sms-app-incognito-toggle {min-height:44px;}

/* 4.6.20 — soft surfaces and a subtle metallic finish for active menus.
   Scoped to the SMSocial application, not the WordPress theme header/footer. */
body.sms-app-page #smsocial-app {
  --sms-metal-surface: #fcfbf9;
  --sms-metal-ink: #25222b;
  --sms-metal-purple: #693d91;
  --sms-metal-gradient: linear-gradient(165deg, #8356a8 0%, #704396 38%, #593478 76%, #75509b 100%);
  --sms-metal-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 #4d2b6b, 0 5px 12px rgba(65,37,92,.17);
  --sms-surface: var(--sms-metal-surface);
  --sms-surface-soft: #f5f3f5;
  --sms-surface-strong: #ece9ef;
  --sms-text: var(--sms-metal-ink);
  --sms-muted: #686370;
  --sms-muted-strong: #504b58;
  --sms-border: #e5e0e8;
  --sms-border-strong: #d7d0dc;
}
body.sms-app-page #smsocial-app > .sms-app-shell > .sms-app-rail {
  --sms-rail-surface: var(--sms-surface);
  --sms-rail-muted-surface: var(--sms-surface-soft);
  --sms-rail-ink: var(--sms-text);
  --sms-rail-subtle: var(--sms-muted);
  --sms-rail-border: var(--sms-border);
  --sms-rail-hover: #f0eaf5;
  --sms-rail-active: #ece3f4;
  --sms-rail-accent: var(--sms-metal-purple);
  background: var(--sms-rail-surface);
}
body.sms-app-page #smsocial-app .sms-app-centre {
  background: #f1eff2;
}
body.sms-app-page #smsocial-app :is(.sms-activity-card,.sms-profile-workspace__sidebar,.sms-composer-launcher) {
  background-color: var(--sms-surface);
  border-color: var(--sms-border);
}
body.sms-app-page #smsocial-app :is(.sms-app-left-link,.sms-app-context-link,.sms-profile-workspace__settings) {
  color: var(--sms-text);
}
body.sms-app-page #smsocial-app .sms-app-rail--left .sms-app-left-link:not(.is-active):not([aria-current="page"]),
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:not(.is-active):not([aria-current="page"]) {
  color: var(--sms-muted-strong) !important;
}
body.sms-app-page #smsocial-app .sms-profile-workspace .sms-public-profile__tabs button {
  color: var(--sms-muted-strong);
}
/* Strong contrast on the raised purple surface, including its icons and label. */
body.sms-app-page #smsocial-app .sms-app-rail--left .sms-app-left-link:is(.is-active,[aria-current="page"]),
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(.is-active,[aria-current="page"]),
body.sms-app-page #smsocial-app .sms-profile-workspace .sms-public-profile__tabs button:is(.is-active,[aria-selected="true"]),
body.sms-app-page #smsocial-app .sms-app-rail--right :is(.sms-app-theme-card__options,.sms-app-language-card__options) button.is-active,
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-incognito-toggle.is-active {
  background: var(--sms-metal-gradient) !important;
  border: 1px solid #573276 !important;
  color: #ffffff !important;
  box-shadow: var(--sms-metal-shadow) !important;
}
body.sms-app-page #smsocial-app .sms-app-rail--left .sms-app-left-link:is(.is-active,[aria-current="page"]) > :is(.sms-icon,.dashicons):first-child,
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(.is-active,[aria-current="page"]) > :is(.sms-icon,.dashicons):first-child,
body.sms-app-page #smsocial-app .sms-profile-workspace .sms-public-profile__tabs button:is(.is-active,[aria-selected="true"]) .sms-icon {
  color: #ffffff !important;
}
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-context-links--navigation > .sms-app-context-link:is(.is-active,[aria-current="page"]) :is(strong,small) {
  color: #ffffff !important;
}
body.sms-app-page #smsocial-app .sms-app-rail--right .sms-app-incognito-toggle.is-active i {
  background: rgba(255,255,255,.35);
}
body.sms-app-page #smsocial-app :is(.sms-app-left-link,.sms-app-context-link,.sms-profile-workspace__settings,.sms-public-profile__tabs button):focus-visible {
  outline: 3px solid #a581cb !important;
  outline-offset: 2px;
}
/* Dark mode has its own surfaces and type; the selected finish remains legible. */
body.sms-app-page.sms-color-mode-dark #smsocial-app,
html[scheme="dark"] body.sms-app-page.sms-blogsy-theme-bridge:not(.sms-color-mode-light):not(.sms-color-mode-system) #smsocial-app {
  --sms-metal-surface: #24222c;
  --sms-metal-ink: #f1edf2;
  --sms-surface: var(--sms-metal-surface);
  --sms-surface-soft: #2d2a35;
  --sms-surface-strong: #38343f;
  --sms-text: var(--sms-metal-ink);
  --sms-muted: #c0b9c8;
  --sms-muted-strong: #ded7e3;
  --sms-border: #49434f;
  --sms-border-strong: #605669;
}
body.sms-app-page.sms-color-mode-dark #smsocial-app .sms-app-centre,
html[scheme="dark"] body.sms-app-page.sms-blogsy-theme-bridge:not(.sms-color-mode-light):not(.sms-color-mode-system) #smsocial-app .sms-app-centre { background: #1b1921; }
body.sms-app-page.sms-color-mode-dark #smsocial-app > .sms-app-shell > .sms-app-rail,
html[scheme="dark"] body.sms-app-page.sms-blogsy-theme-bridge:not(.sms-color-mode-light):not(.sms-color-mode-system) #smsocial-app > .sms-app-shell > .sms-app-rail {
  --sms-rail-hover: #3b3045;
  --sms-rail-active: #493753;
}
@media (prefers-color-scheme: dark) {
  body.sms-app-page.sms-color-mode-system #smsocial-app {
    --sms-metal-surface: #24222c;
    --sms-metal-ink: #f1edf2;
    --sms-surface: var(--sms-metal-surface);
    --sms-surface-soft: #2d2a35;
    --sms-surface-strong: #38343f;
    --sms-text: var(--sms-metal-ink);
    --sms-muted: #c0b9c8;
    --sms-muted-strong: #ded7e3;
    --sms-border: #49434f;
    --sms-border-strong: #605669;
  }
  body.sms-app-page.sms-color-mode-system #smsocial-app .sms-app-centre { background: #1b1921; }
  body.sms-app-page.sms-color-mode-system #smsocial-app > .sms-app-shell > .sms-app-rail {
    --sms-rail-hover: #3b3045;
    --sms-rail-active: #493753;
  }
}
@media (forced-colors: active) {
  body.sms-app-page #smsocial-app :is(.sms-app-left-link,.sms-app-context-link,.sms-public-profile__tabs button,.sms-app-theme-card__options button,.sms-app-language-card__options button,.sms-app-incognito-toggle) {
    forced-color-adjust: auto;
    box-shadow: none !important;
  }
}
