/* 1.12.8 — Profile Header Layout Polish. Keep identity and actions out of the cover overlap. */
.sms-public-profile__summary{
  margin-block-start:0!important;
  padding:0 22px 16px!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:14px!important;
}
.sms-public-profile__avatar{
  position:relative;
  z-index:2;
  margin-block-start:-48px!important;
}
.sms-public-profile__identity{
  align-self:start!important;
  padding-block-start:13px!important;
  padding-block-end:0!important;
}
.sms-public-profile__identity h1{
  margin:0!important;
  max-inline-size:100%;
  color:var(--sms-text)!important;
  line-height:1.08!important;
}
.sms-public-profile__identity p{
  margin:4px 0 0!important;
  line-height:1.2;
}
.sms-public-profile__presence-label{
  display:block!important;
  max-inline-size:100%;
  margin-block-start:5px!important;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sms-public-profile__presence-label[hidden]{display:none!important}
.sms-public-profile__actions{
  align-self:start!important;
  padding-block-start:12px!important;
  padding-block-end:0!important;
}
.sms-public-profile__actions .sms-social-actions{
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
}
.sms-public-profile__actions .sms-social-connection-controls{
  display:contents!important;
}
.sms-public-profile__actions .sms-profile-button{
  white-space:nowrap;
}

@media(max-width:767px){
  .sms-public-profile__summary{
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
    padding:0 15px 13px!important;
    margin-block-start:0!important;
  }
  .sms-public-profile__avatar{
    margin-block-start:-42px!important;
  }
  .sms-public-profile__identity{
    padding-block-start:9px!important;
  }
  .sms-public-profile__identity h1{
    font-size:max(22.72px, 1.42rem)!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  .sms-public-profile__identity p{
    font-size:max(13.44px, .84rem)!important;
  }
  .sms-public-profile__presence-label{
    font-size:max(12px, .72rem)!important;
  }
  .sms-public-profile__actions{
    grid-column:1/-1!important;
    inline-size:100%;
    padding-block-start:8px!important;
  }
  .sms-public-profile__actions .sms-social-actions{
    display:flex!important;
    inline-size:100%;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }
  .sms-public-profile__actions .sms-profile-button{
    flex:1 1 112px;
    min-inline-size:0!important;
    min-block-size:40px!important;
    padding-inline:11px!important;
  }
  .sms-public-profile__actions [data-sms-social-block]{
    flex:0 0 44px!important;
    inline-size:44px!important;
  }
  .sms-public-profile__actions .sms-social-actions small{
    flex:1 0 100%;
    text-align:start!important;
  }
}

@media(max-width:390px){
  .sms-public-profile__avatar{margin-block-start:-36px!important}
  .sms-public-profile__identity h1{font-size:max(20.48px, 1.28rem)!important}
  .sms-public-profile__actions .sms-profile-button{flex-basis:calc(50% - 4px)}
}

/* 1.12.9 — Compact profile relationship actions. Keep the two primary actions visible and move secondary actions into one menu. */
.sms-social-actions--compact{
  position:relative;
  display:flex!important;
  flex-wrap:wrap;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
}
.sms-social-actions--compact>.sms-profile-button{
  min-inline-size:118px;
  justify-content:center;
}
.sms-social-actions--compact>.sms-profile-button--message{
  background:var(--sms-primary);
  color:#fff;
  border-color:var(--sms-primary);
}
.sms-profile-actions-menu{position:relative;flex:0 0 auto}
.sms-profile-actions-menu__trigger{
  display:grid;
  place-items:center;
  inline-size:44px;
  block-size:40px;
  padding:0;
  border:1px solid var(--sms-border);
  border-radius:11px;
  background:var(--sms-surface-soft);
  color:var(--sms-text);
  cursor:pointer;
}
.sms-profile-actions-menu__trigger:hover,
.sms-profile-actions-menu__trigger:focus-visible{background:color-mix(in srgb,var(--sms-surface-soft) 82%,var(--sms-primary) 18%)}
.sms-profile-actions-menu__trigger svg{inline-size:18px;block-size:18px}
.sms-profile-actions-menu__panel{
  position:absolute;
  z-index:120;
  inset-block-start:calc(100% + 8px);
  inset-inline-end:0;
  display:grid;
  min-inline-size:240px;
  padding:8px;
  border:1px solid var(--sms-border);
  border-radius:14px;
  background:var(--sms-surface);
  box-shadow:0 16px 38px rgba(20,28,42,.18);
}
.sms-profile-actions-menu__panel[hidden]{display:none!important}
.sms-profile-actions-menu__panel button{
  appearance:none;
  inline-size:100%;
  min-block-size:42px;
  padding:9px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--sms-text);
  font:inherit;
  font-size:max(13.12px, .82rem);
  font-weight:750;
  text-align:start;
  cursor:pointer;
}
.sms-profile-actions-menu__panel button:hover,
.sms-profile-actions-menu__panel button:focus-visible{background:var(--sms-surface-soft);outline:none}
.sms-profile-actions-menu__panel button.is-danger{color:var(--sms-danger,#d92d20)}
.sms-social-actions--compact>[data-sms-social-status]{flex:1 0 100%;text-align:end}
@media(max-width:767px){
  .sms-social-actions--compact{flex-wrap:nowrap!important;justify-content:flex-start!important}
  .sms-social-actions--compact>.sms-profile-button{flex:1 1 0!important;min-inline-size:0!important}
  .sms-profile-actions-menu{flex:0 0 44px}
  .sms-profile-actions-menu__panel{position:fixed;z-index:2147482600;inset:auto 10px calc(12px + env(safe-area-inset-bottom)) 10px;min-inline-size:0;border-radius:16px;padding:9px}
  .sms-profile-actions-menu__panel button{min-block-size:48px;font-size:max(14.08px, .88rem)}
  .sms-social-actions--compact>[data-sms-social-status]{text-align:start}
}
.sms-public-profile__actions .sms-profile-actions-menu__panel [data-sms-social-block]{
  flex:none!important;
  inline-size:100%!important;
}


/* 1.12.10 — Mobile profile action compactness + unclipped floating relationship menu. */
.sms-public-profile__hero,
.sms-public-profile__summary,
.sms-public-profile__actions{overflow:visible}
.sms-profile-actions-menu__panel.is-floating{
  position:fixed!important;
  z-index:2147482600!important;
  min-inline-size:0!important;
  max-inline-size:calc(100vw - 20px)!important;
  margin:0!important;
}
@media(max-width:767px){
  .sms-public-profile__summary{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:10px!important;
    padding:0 12px 10px!important;
    margin-block-start:-34px!important;
  }
  .sms-public-profile__avatar{
    inline-size:78px!important;
    block-size:78px!important;
    border-width:4px!important;
    font-size:max(24.8px, 1.55rem)!important;
  }
  .sms-public-profile__identity{
    align-self:end!important;
    min-inline-size:0!important;
    padding-block-end:2px!important;
  }
  .sms-public-profile__identity h1{
    font-size:max(19.52px, 1.22rem)!important;
    line-height:1.08!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .sms-public-profile__identity p{
    margin-block-start:2px!important;
    font-size:max(12.16px, .76rem)!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .sms-public-profile__presence-label{
    margin-block-start:2px!important;
    font-size:max(12px, .66rem)!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-inline-size:100%;
  }
  .sms-public-profile__actions{
    grid-column:1/-1!important;
    display:flex!important;
    justify-content:flex-end!important;
    inline-size:100%!important;
    padding:4px 0 0!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px!important;
    align-items:center!important;
    justify-content:stretch!important;
    inline-size:min(100%,340px)!important;
    max-inline-size:340px!important;
    gap:6px!important;
    margin-inline-start:auto!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button{
    inline-size:100%!important;
    min-inline-size:0!important;
    min-block-size:38px!important;
    padding:7px 9px!important;
    border-radius:10px!important;
    gap:5px!important;
    font-size:max(12.16px, .76rem)!important;
    font-weight:760!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button .sms-icon{
    inline-size:15px!important;
    block-size:15px!important;
    flex:0 0 15px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu{
    flex:none!important;
    inline-size:40px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu__trigger{
    inline-size:40px!important;
    block-size:38px!important;
    border-radius:10px!important;
  }
  .sms-profile-actions-menu__panel,
  .sms-profile-actions-menu__panel.is-floating{
    inline-size:250px!important;
    max-inline-size:calc(100vw - 20px)!important;
    padding:7px!important;
    border-radius:13px!important;
    box-shadow:0 14px 34px rgba(20,28,42,.22)!important;
  }
  .sms-profile-actions-menu__panel button{
    min-block-size:40px!important;
    padding:8px 10px!important;
    border-radius:8px!important;
    font-size:max(12.8px, .8rem)!important;
  }
  .sms-social-actions--compact>[data-sms-social-status]{
    grid-column:1/-1!important;
    margin:0!important;
    text-align:end!important;
    font-size:max(12px, .68rem)!important;
  }
}
@media(max-width:390px){
  .sms-public-profile__summary{grid-template-columns:72px minmax(0,1fr)!important;padding-inline:10px!important}
  .sms-public-profile__avatar{inline-size:72px!important;block-size:72px!important}
  .sms-public-profile__actions .sms-social-actions--compact{inline-size:100%!important;max-inline-size:none!important}
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button{font-size:max(12px, .72rem)!important;padding-inline:7px!important}
}

/* 1.12.11 — Mobile profile viewport lock + compact identity/actions. */
body.sms-route-profile .sms-app-centre{
  overflow-x:hidden!important;
  overscroll-behavior-inline:none!important;
}
body.sms-route-profile .sms-app-centre__stream[data-sms-route="profile"]{
  max-inline-size:100%!important;
  min-inline-size:0!important;
  overflow-x:clip!important;
}
.sms-public-profile{
  inline-size:100%;
  max-inline-size:100%;
  min-inline-size:0;
  overflow-x:clip;
}
.sms-public-profile__hero{
  max-inline-size:100%;
  min-inline-size:0;
  overflow:hidden;
}
.sms-public-profile__summary,
.sms-public-profile__identity,
.sms-public-profile__actions,
.sms-public-profile__actions .sms-social-actions--compact{
  min-inline-size:0!important;
  max-inline-size:100%!important;
  box-sizing:border-box;
}

@media(max-width:767px){
  .sms-public-profile__cover{
    block-size:156px!important;
  }
  .sms-public-profile__summary{
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:start!important;
    gap:5px 9px!important;
    inline-size:100%!important;
    max-inline-size:100%!important;
    padding:0 12px 10px!important;
    margin-block-start:-30px!important;
    overflow:hidden!important;
  }
  .sms-public-profile__avatar{
    grid-column:1!important;
    grid-row:1!important;
    inline-size:68px!important;
    block-size:68px!important;
    margin:0!important;
    border-width:4px!important;
    font-size:max(21.6px, 1.35rem)!important;
  }
  .sms-public-profile__identity{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    padding-block-start:33px!important;
    padding-block-end:0!important;
    overflow:hidden!important;
  }
  .sms-public-profile__identity h1{
    margin:0!important;
    font-size:max(17.28px, 1.08rem)!important;
    line-height:1.12!important;
    font-weight:800!important;
    letter-spacing:-.018em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .sms-public-profile__identity p{
    margin:2px 0 0!important;
    font-size:max(12px, .72rem)!important;
    line-height:1.18!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .sms-public-profile__presence-label{
    margin-block-start:3px!important;
    font-size:max(12px, .63rem)!important;
    line-height:1.18!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .sms-public-profile__actions{
    grid-column:2!important;
    grid-row:2!important;
    display:block!important;
    inline-size:100%!important;
    max-inline-size:100%!important;
    padding:2px 0 0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .sms-public-profile__actions>.sms-profile-button{
    inline-size:auto!important;
    min-block-size:34px!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    font-size:max(12px, .72rem)!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px!important;
    align-items:center!important;
    justify-content:stretch!important;
    inline-size:100%!important;
    gap:5px!important;
    margin:0!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button{
    inline-size:100%!important;
    min-inline-size:0!important;
    min-block-size:34px!important;
    padding:5px 7px!important;
    border-radius:9px!important;
    gap:4px!important;
    font-size:max(12px, .69rem)!important;
    line-height:1.1!important;
    font-weight:760!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button .sms-icon{
    inline-size:14px!important;
    block-size:14px!important;
    flex:0 0 14px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu{
    inline-size:34px!important;
    flex:none!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu__trigger{
    inline-size:34px!important;
    block-size:34px!important;
    border-radius:9px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu__trigger svg{
    inline-size:16px!important;
    block-size:16px!important;
  }
  .sms-social-actions--compact>[data-sms-social-status]{
    grid-column:1/-1!important;
    margin:0!important;
    text-align:start!important;
    font-size:max(12px, .63rem)!important;
  }
  .sms-profile-actions-menu__panel,
  .sms-profile-actions-menu__panel.is-floating{
    inline-size:220px!important;
    max-inline-size:calc(100vw - 20px)!important;
    padding:6px!important;
    border-radius:12px!important;
  }
  .sms-profile-actions-menu__panel button{
    min-block-size:38px!important;
    padding:7px 9px!important;
    font-size:max(12.16px, .76rem)!important;
  }
  .sms-public-profile__bio{
    padding-block-start:5px!important;
  }
}

@media(max-width:360px){
  .sms-public-profile__summary{
    grid-template-columns:62px minmax(0,1fr)!important;
    column-gap:8px!important;
    padding-inline:10px!important;
    margin-block-start:-27px!important;
  }
  .sms-public-profile__avatar{
    inline-size:62px!important;
    block-size:62px!important;
  }
  .sms-public-profile__identity{
    padding-block-start:29px!important;
  }
  .sms-public-profile__identity h1{
    font-size:max(16px, 1rem)!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px!important;
    gap:4px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu,
  .sms-public-profile__actions .sms-profile-actions-menu__trigger{
    inline-size:32px!important;
  }
  .sms-public-profile__actions .sms-profile-actions-menu__trigger{
    block-size:33px!important;
  }
  .sms-public-profile__actions .sms-social-actions--compact>.sms-profile-button{
    min-block-size:33px!important;
    padding-inline:5px!important;
    font-size:max(12px, .65rem)!important;
  }
}



/* 2.6.10 — Profile cover full view + slightly taller presentation. */
.sms-public-profile__cover[data-sms-public-profile-cover-open][role="button"]{cursor:zoom-in}
.sms-public-profile__cover[data-sms-public-profile-cover-open][role="button"]:focus-visible{outline:2px solid color-mix(in srgb,var(--sms-primary) 72%,#fff);outline-offset:-2px}
.sms-public-profile__cover[data-sms-public-profile-cover-open].is-repositioning{cursor:grab}
.sms-profile-cover-viewer{position:fixed;z-index:2147483000;inset:0;display:grid;place-items:center;box-sizing:border-box;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:rgba(4,7,15,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.sms-profile-cover-viewer[hidden]{display:none!important}
.sms-profile-cover-viewer>section{position:relative;display:grid;place-items:center;inline-size:100%;block-size:100%;min-inline-size:0;min-block-size:0;outline:none}
.sms-profile-cover-viewer__image{display:block;inline-size:auto;block-size:auto;max-inline-size:min(96vw,1600px);max-block-size:92dvh;object-fit:contain;border-radius:12px;background:#000;box-shadow:0 28px 90px rgba(0,0,0,.42);user-select:none;-webkit-user-drag:none}
.sms-profile-cover-viewer__close{position:fixed;z-index:3;inset-block-start:max(14px,env(safe-area-inset-top));inset-inline-end:max(14px,env(safe-area-inset-right));display:grid;place-items:center;inline-size:48px;block-size:48px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(15,23,42,.76);color:#fff;font:700 30px/1 system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sms-profile-cover-viewer__close:hover,.sms-profile-cover-viewer__close:focus-visible{background:rgba(15,23,42,.94);outline:2px solid rgba(255,255,255,.8);outline-offset:2px}
@media(min-width:768px){.sms-public-profile__cover{block-size:240px!important}}
@media(max-width:767px){.sms-public-profile__cover{block-size:176px!important}.sms-profile-cover-viewer{padding:max(8px,env(safe-area-inset-top)) 0 max(8px,env(safe-area-inset-bottom))}.sms-profile-cover-viewer__image{max-inline-size:100vw;max-block-size:94dvh;border-radius:0}}
@media(max-width:390px){.sms-public-profile__cover{block-size:160px!important}}


/* 4.3.3 — Profile-only workspace. Public cover and stats remain full-width;
   internal profile navigation sits beside the existing feed without touching
   the main SMSocial feed or the two global navigation rails. */
.sms-public-profile .sms-profile-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  align-items:start;
  min-inline-size:0;
  inline-size:100%;
}
.sms-public-profile .sms-profile-workspace__sidebar,
.sms-public-profile .sms-profile-workspace__content {
  min-inline-size:0;
  max-inline-size:100%;
}
.sms-public-profile .sms-profile-workspace__content > .sms-public-profile__panel {
  min-inline-size:0;
  inline-size:100%;
}
.sms-public-profile .sms-profile-workspace__content > .sms-public-profile__panel[hidden] {
  display:none!important;
}
.sms-profile-workspace__nav-title {
  display:none;
  color:var(--sms-muted,#667085);
  font-size:12px;
  font-weight:800;
  letter-spacing:.075em;
}
.sms-profile-workspace .sms-public-profile__tabs button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  transition:background-color .15s ease,color .15s ease;
}
.sms-profile-workspace .sms-public-profile__tabs button .sms-icon,
.sms-profile-workspace__settings .sms-icon {
  inline-size:18px;
  block-size:18px;
  flex:none;
}
.sms-profile-workspace__settings {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--sms-muted-strong,var(--sms-text));
  text-decoration:none;
  font-size:max(13.12px, .82rem);
  font-weight:700;
  min-block-size:42px;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:12px;
  box-sizing:border-box;
}
.sms-profile-workspace__settings:is(:hover,:focus-visible) {
  background:var(--sms-surface-soft);
  color:var(--sms-text);
  outline-offset:2px;
}
@media(min-width:1200px) {
  body.sms-route-profile .sms-app-centre__stream[data-sms-route="profile"] {
    inline-size:100%!important;
    max-inline-size:none!important;
    padding-inline:clamp(14px,1.7vw,28px);
    box-sizing:border-box;
  }
  body.sms-route-profile .sms-app-centre__stream[data-sms-route="profile"] > .sms-public-profile {
    inline-size:100%;
    max-inline-size:none;
    min-inline-size:0;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace {
    grid-template-columns:clamp(178px,20%,218px) minmax(0,1fr);
    gap:clamp(12px,1.25vw,20px);
  }
  body.sms-route-profile .sms-profile-workspace__sidebar {
    position:sticky;
    inset-block-start:18px;
    align-self:start;
    display:grid;
    gap:10px;
    min-inline-size:0;
    padding:12px;
    border:1px solid var(--sms-border);
    border-radius:17px;
    background:var(--sms-surface);
    box-shadow:var(--sms-shadow-sm);
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs {
    position:static;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    backdrop-filter:none;
    background:transparent;
  }
  body.sms-route-profile .sms-profile-workspace__nav-title {
    display:block;
    padding:8px 9px 10px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {
    justify-content:flex-start;
    inline-size:100%;
    min-block-size:45px;
    padding:11px 12px;
    border:1px solid transparent;
    border-radius:12px;
    text-align:start;
    color:var(--sms-muted-strong,var(--sms-muted));
    font-size:max(13.6px, .85rem);
    font-weight:730;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button:is(:hover,:focus-visible) {
    color:var(--sms-text);
    background:var(--sms-surface-soft);
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button.is-active {
    color:#6730c1;
    border-color:#e9dfff;
    background:#f2ebff;
    font-weight:800;
  }
  body.sms-route-profile .sms-profile-workspace__settings {
    border-block-start:1px solid var(--sms-border);
    border-radius:0 0 10px 10px;
    padding-block-start:13px;
  }
}
@media(max-width:1199px) {
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs {
    position:relative;
    inset-block-start:auto;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:4px;
    max-inline-size:100%;
    margin:0;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs::-webkit-scrollbar {display:none}
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {
    flex:1 0 auto;
    padding:9px 13px;
    min-block-size:42px;
    font-size:max(13.12px, .82rem);
  }
  body.sms-route-profile .sms-profile-workspace__sidebar {min-inline-size:0;}
  body.sms-route-profile .sms-profile-workspace__settings {
    margin-block-start:5px;
    padding-inline:13px;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace__content>.sms-public-profile__panel {padding-inline:0;}
}
@media(max-width:767px) {
  body.sms-route-profile .sms-public-profile .sms-profile-workspace {gap:10px;}
  body.sms-route-profile .sms-profile-workspace__sidebar {padding-inline:10px;}
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs {margin-inline:0;padding:5px;}
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {min-block-size:42px;gap:5px;padding:8px 10px;}
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button .sms-icon {inline-size:16px;block-size:16px;}
  body.sms-route-profile .sms-profile-workspace__content {padding-inline:10px;}
}
@media(max-width:360px) {
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {font-size:max(12px, .75rem);padding-inline:7px;}
}
@media(prefers-reduced-motion:reduce) {
  .sms-profile-workspace .sms-public-profile__tabs button {transition:none;}
}

/* Match the existing dark shell without forcing a light navigation tile. */
@media(min-width:1200px) {
  body.sms-color-mode-dark.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button.is-active,
  html[scheme="dark"] body.sms-blogsy-theme-bridge.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button.is-active {
    background:rgba(155,120,245,.2);
    border-color:rgba(182,156,255,.3);
    color:#d8c4ff;
  }
}

/* 4.3.5 — Profile-only layout polish. The global Feed and both app rails are
   deliberately outside this selector. Keep the public cover usable as a
   click-to-view image and preserve all existing profile actions. */
@media (min-width:1200px) {
  body.sms-route-profile .sms-app-centre__stream[data-sms-route="profile"] {
    padding-inline:clamp(15px,1.65vw,28px);
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace {
    grid-template-columns:clamp(232px,24%,282px) minmax(0,1fr);
    gap:clamp(16px,1.5vw,24px);
    max-inline-size:1180px;
    margin-inline:auto;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace__content {
    inline-size:100%;
    max-inline-size:850px;
    justify-self:start;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace__sidebar {
    padding:16px 13px;
    gap:12px;
    border-radius:19px;
  }
  body.sms-route-profile .sms-profile-workspace__nav-title {
    font-size:12px;
    letter-spacing:.065em;
    padding:8px 12px 12px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs {
    gap:6px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {
    min-block-size:52px;
    padding:12px 14px;
    gap:12px;
    border-radius:13px;
    font-size:15px;
    font-weight:730;
    line-height:1.35;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button .sms-icon,
  body.sms-route-profile .sms-profile-workspace__settings .sms-icon {
    inline-size:21px;
    block-size:21px;
  }
  body.sms-route-profile .sms-profile-workspace__settings {
    min-block-size:50px;
    padding:13px 14px;
    gap:12px;
    font-size:14px;
    border-radius:12px;
  }
  body.sms-route-profile .sms-public-profile__cover {
    block-size:clamp(292px,22vw,335px)!important;
  }
  body.sms-route-profile .sms-public-profile__cover-shade {
    inset:auto 0 0;
    block-size:132px;
    background:linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb,var(--sms-surface) 12%,transparent) 38%,
      color-mix(in srgb,var(--sms-surface) 58%,transparent) 76%,
      color-mix(in srgb,var(--sms-surface) 90%,transparent) 100%);
  }
  body.sms-route-profile .sms-public-profile__summary {
    position:relative;
    z-index:2;
    align-items:start!important;
    margin-block-start:-48px!important;
    padding:0 20px 7px!important;
    gap:14px!important;
    background:linear-gradient(180deg,
      color-mix(in srgb,var(--sms-surface) 8%,transparent) 0%,
      color-mix(in srgb,var(--sms-surface) 82%,transparent) 46%,
      var(--sms-surface) 100%);
  }
  body.sms-route-profile .sms-public-profile__avatar {
    margin-block-start:0!important;
    inline-size:96px;
    block-size:96px;
  }
  body.sms-route-profile .sms-public-profile__identity {
    padding-block-start:11px!important;
  }
  body.sms-route-profile .sms-public-profile__actions {
    padding-block-start:13px!important;
  }
  body.sms-route-profile .sms-public-profile__bio {
    padding:0 20px 9px;
    gap:12px;
    background:var(--sms-surface);
  }
  body.sms-route-profile .sms-public-profile__bio p {
    max-inline-size:920px;
    font-size:13px;
    line-height:1.42;
  }
  body.sms-route-profile .sms-public-profile__bio>span {
    font-size:12px;
  }
  body.sms-route-profile .sms-public-profile__stats div {
    padding:7px 10px;
  }
}

/* Narrow screens retain the horizontal profile tab rail, with legible touch
   targets and a softer cover transition instead of an opaque white stripe. */
@media (max-width:1199px) {
  body.sms-route-profile .sms-public-profile .sms-profile-workspace .sms-public-profile__tabs button {
    font-size:14px;
    min-block-size:46px;
    gap:8px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button .sms-icon {
    inline-size:19px;
    block-size:19px;
  }
}
@media (max-width:767px) {
  body.sms-route-profile .sms-public-profile__cover-shade {
    block-size:68px;
    background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--sms-surface) 24%,transparent) 50%,color-mix(in srgb,var(--sms-surface) 68%,transparent));
  }
  body.sms-route-profile .sms-public-profile__bio {
    padding-block:7px 11px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {
    font-size:13px;
    min-block-size:44px;
  }
}
/* The gradients use --sms-surface, so light/dark/system modes inherit the
   existing theme palette without a second hard-coded overlay. */

/* 4.3.7 — Profile-only readability and workspace geometry.
   The global social rails and canonical Feed are intentionally untouched. */
@media (min-width:1200px) {
  /* Start the profile workspace near the global navigation rather than
     centring a second narrow container inside the already bounded centre. */
  body.sms-route-profile .sms-app-centre__stream[data-sms-route="profile"] {
    padding-inline:clamp(8px,.6vw,12px) !important;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace {
    inline-size:100%;
    max-inline-size:none;
    margin-inline:0;
    grid-template-columns:260px minmax(0,1fr);
    column-gap:14px;
    align-items:start;
  }
  body.sms-route-profile .sms-public-profile .sms-profile-workspace__content {
    inline-size:100%;
    max-inline-size:none;
    justify-self:stretch;
  }
  body.sms-route-profile .sms-profile-workspace__sidebar {
    padding:17px 15px;
    border-radius:18px;
    gap:10px;
  }
  body.sms-route-profile .sms-profile-workspace__nav-title {
    font-size:14px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:.045em;
    padding:6px 10px 9px;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {
    min-block-size:52px;
    padding:12px 14px;
    gap:12px;
    border-radius:12px;
    font-size:17px;
    line-height:1.35;
    font-weight:750;
  }
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button .sms-icon,
  body.sms-route-profile .sms-profile-workspace__settings .sms-icon {
    inline-size:22px;
    block-size:22px;
    flex:none;
  }
  body.sms-route-profile .sms-profile-workspace__settings {
    min-block-size:52px;
    padding:13px 14px;
    border-radius:11px;
    gap:12px;
    font-size:16px;
    font-weight:750;
  }
  /* The former 13px biography and 11px counts were too small to read. */
  body.sms-route-profile .sms-public-profile__bio {
    padding:11px 20px 15px;
    gap:16px;
    align-items:flex-start;
  }
  body.sms-route-profile .sms-public-profile__bio p {
    max-inline-size:930px;
    font-size:17px;
    line-height:1.55;
    font-weight:500;
  }
  body.sms-route-profile .sms-public-profile__bio > span {
    padding-top:2px;
    font-size:14px;
    line-height:1.4;
  }
  body.sms-route-profile .sms-public-profile__stats div {
    min-block-size:55px;
    padding:12px 10px;
    align-items:center;
    gap:8px;
  }
  body.sms-route-profile .sms-public-profile__stats strong {
    font-size:21px;
    line-height:1.25;
    font-weight:800;
  }
  body.sms-route-profile .sms-public-profile__stats span {
    font-size:14px;
    line-height:1.3;
  }
  body.sms-route-profile .sms-public-profile__identity p {
    font-size:16px;
  }
  body.sms-route-profile .sms-public-profile__presence-label {
    font-size:14px;
  }
  body.sms-route-profile .sms-public-profile__actions .sms-profile-button {
    min-block-size:44px;
    padding:11px 16px;
    font-size:16px;
    line-height:1.3;
    font-weight:750;
    border-radius:11px;
  }
}
@media (min-width:1360px) {
  body.sms-route-profile .sms-public-profile .sms-profile-workspace {
    grid-template-columns:clamp(280px,25%,336px) minmax(0,1fr);
    column-gap:clamp(12px,1vw,16px);
  }
}
@media (min-width:1200px) and (max-width:1359px) {
  body.sms-route-profile .sms-public-profile__bio {
    flex-wrap:wrap;
  }
  body.sms-route-profile .sms-public-profile__bio > span {
    flex:0 0 auto;
  }
}
/* Keep the tablet and phone layout single-column, but improve information
   legibility without changing the existing mobile profile-tab behaviour. */
@media (max-width:1199px) {
  body.sms-route-profile .sms-public-profile__bio p {
    font-size:16px;
    line-height:1.55;
  }
  body.sms-route-profile .sms-public-profile__bio > span {
    font-size:14px;
  }
  body.sms-route-profile .sms-public-profile__stats strong {
    font-size:17px;
  }
  body.sms-route-profile .sms-public-profile__stats span {
    font-size:13px;
  }
}
@media (max-width:767px) {
  body.sms-route-profile .sms-public-profile__bio p {
    font-size:16px;
  }
  body.sms-route-profile .sms-public-profile__actions > .sms-profile-button {
    min-block-size:42px !important;
    font-size:14px !important;
  }
}

/* The profile owner's edit action must remain legible at phone/tablet widths;
   do not let the Blogsy green primary override the profile-only accent. */
body.sms-route-profile .sms-public-profile__actions > .sms-profile-button {
  color:#fff!important;
  background:#6834c4!important;
  border:1px solid #6834c4!important;
  box-shadow:0 4px 14px rgba(90,42,180,.2);
}
body.sms-route-profile .sms-public-profile__actions > .sms-profile-button:is(:hover,:focus-visible) {
  color:#fff!important;
  background:#51249e!important;
  border-color:#51249e!important;
  outline:2px solid rgba(115,64,208,.45);
  outline-offset:2px;
}

/* Profile information and actions must be readable for visitors as well as
   owners. Earlier compact-mobile rules still reduced visitor buttons to 7px
   under themes using a 10px root rem. */
body.sms-route-profile .sms-app-centre .sms-public-profile__identity h1 {
  font-size:clamp(24px,1.8vw,32px)!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-profile-button {
  min-block-size:46px!important;
  padding:10px 14px!important;
  font-size:16px!important;
  line-height:1.4!important;
  white-space:normal!important;
  box-shadow:none;
}
body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-profile-button .sms-icon {
  inline-size:20px!important;
  block-size:20px!important;
  flex:0 0 20px!important;
}
body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-profile-actions-menu__trigger {
  inline-size:46px!important;
  block-size:46px!important;
}
body.sms-route-profile .sms-public-profile__stats span {color:var(--sms-muted-strong);white-space:normal;}
body.sms-route-profile .sms-public-profile__stats div {overflow-wrap:anywhere;}
body.sms-route-profile .sms-public-profile__about-card h2 {font-size:22px;line-height:1.3;}
body.sms-route-profile .sms-public-profile__about-card dt {font-size:13px;color:var(--sms-muted-strong);line-height:1.4;}
body.sms-route-profile .sms-public-profile__about-card dd {font-size:16px;line-height:1.6;}
body.sms-route-profile .sms-profile-actions-menu__panel button {font-size:15px!important;min-block-size:44px!important;line-height:1.4;}
body.sms-route-profile .sms-app-centre .sms-public-profile__actions [data-sms-social-status] {font-size:13px!important;}
@media (max-width:1199px) {
  body.sms-route-profile .sms-profile-workspace .sms-public-profile__tabs button {font-size:15px;min-block-size:46px;}
  body.sms-route-profile .sms-profile-workspace__settings {font-size:15px;min-block-size:46px;}
  body.sms-route-profile .sms-public-profile__stats strong {font-size:19px;}
}
@media (max-width:767px) {
  body.sms-route-profile .sms-app-centre .sms-public-profile__summary {row-gap:10px!important;}
  body.sms-route-profile .sms-app-centre .sms-public-profile__actions {grid-column:1/-1!important;grid-row:2!important;}
  body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-social-actions--compact {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px!important;
    gap:7px!important;
  }
  body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-profile-actions-menu {inline-size:46px!important;}
  body.sms-route-profile .sms-app-centre .sms-public-profile__actions .sms-profile-button {font-size:14px!important;padding:9px 10px!important;}
  body.sms-route-profile .sms-public-profile__stats div {padding:12px 6px;gap:5px;}
  body.sms-route-profile .sms-public-profile__stats span {font-size:13px;line-height:1.4;}
}
@media (max-width:359px) {
  body.sms-route-profile .sms-public-profile__stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}
