/* Shared mobile chrome for member viewing and account/creator pages. */
.farybo-mobile-shell{display:none}
@media(max-width:980px){
 .farybo-mobile-shell{display:block;width:100%;background:#090a12;color:#f8f5ff;font:14px/1.4 Inter,system-ui,sans-serif}
 .account-header,.account-mobile-nav,.cw-top,.studio>header,.membership-sidebar{display:none!important}
 .membership-page,.cw-layout{display:block!important}
 .cw-side{display:none!important}
 .membership-header-actions{display:none!important}
 .farybo-mobile-header,.member-home-active .header-in{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;grid-template-areas:"brand account" "search search"!important;align-items:center;column-gap:4px!important;row-gap:8px!important;padding:10px 20px!important;min-height:112px!important;background:#090a12;border-bottom:1px solid #ffffff12}
 .farybo-mobile-header>.farybo-brand{grid-area:brand;justify-self:start}
 .farybo-mobile-avatar,.member-home-active .account-link.has-account{grid-area:account;justify-self:end;display:flex!important;align-items:center;justify-content:center;flex:none;width:44px!important;height:44px!important;padding:2px!important;margin:0!important;border:1px solid #8e78b7;border-radius:50%;background:linear-gradient(140deg,#a87ce5,#435ec1);color:#fff!important;text-decoration:none;overflow:hidden;font-weight:800;font-size:20px!important;line-height:1}
 .farybo-mobile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
 .farybo-mobile-search{grid-area:search;position:relative;width:100%;margin:0}
 .farybo-mobile-search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none}
 .farybo-mobile-search input,.member-home-active .search{display:block;box-sizing:border-box;width:100%;height:40px!important;min-height:40px!important;margin:0!important;padding:9px 18px 9px 48px!important;border:1px solid #ffffff49!important;border-radius:30px!important;background:#151728a8!important;color:white!important;font:14px/20px Inter,system-ui,sans-serif!important}
 .farybo-mobile-search input::placeholder{color:#b5b3c5}
 .farybo-mobile-search input:focus{border-color:#a078ff!important;outline:none;box-shadow:0 0 0 3px #a078ff33}
 .member-home-active .header-in>.search-wrap{margin:0!important;width:100%!important}
 .member-signed-in:not(.member-language-home) .language-wrap{display:none!important}
 .member-home-active .header-in>.language-wrap{display:none!important}
 .member-language-home .header-in{grid-template-columns:minmax(0,1fr) 44px 44px!important;grid-template-areas:"brand language account" "search search search"!important}
 .member-language-home .header-in>.language-wrap{display:block!important}
 .member-shell{display:block!important}
 .member-sidebar,.farybo-mobile-nav{box-sizing:border-box;width:100%;max-width:100%;overflow-x:auto;padding:8px 12px!important;border-right:0!important;border-bottom:1px solid #ffffff24!important;background:#090711!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .member-sidebar::-webkit-scrollbar,.farybo-mobile-nav::-webkit-scrollbar{display:none}
 .member-sidebar nav,.farybo-mobile-nav{display:flex!important;gap:4px!important}
 .member-sidebar nav{min-width:max-content}
 .member-sidebar a,.farybo-mobile-nav a{display:flex;flex:none;align-items:center;gap:16px!important;padding:9px 12px!important;border-radius:10px;color:#d6d1e5!important;font:600 14px/24px Inter,system-ui,sans-serif!important;white-space:nowrap;min-height:42px!important;text-decoration:none}
 .member-sidebar a:hover,.member-sidebar a[aria-current=page],.farybo-mobile-nav a:hover,.farybo-mobile-nav a[aria-current=page]{background:linear-gradient(90deg,#6921bf99,#2a173f)!important;color:#fff!important}
 .member-sidebar a[aria-current=page],.farybo-mobile-nav a[aria-current=page]{box-shadow:inset 4px 0 #a73cff}
 .member-sidebar .member-icon,.farybo-mobile-nav .member-icon{width:25px;display:inline-flex;justify-content:center;font-size:22px;line-height:1;flex:none;color:#e0d5f9}
 .farybo-mobile-shell :focus-visible{outline:2px solid #d0b9f4;outline-offset:3px}
 .cw-mobile-tools{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;margin-bottom:24px;padding:0;border-bottom:1px solid #ffffff18;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .cw-mobile-tools a{display:flex;flex:1 0 auto;align-items:center;justify-content:center;min-height:50px;padding:12px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#bab5ca;font-size:14px;font-weight:500;white-space:nowrap;text-decoration:none}
 .cw-mobile-tools a[aria-current=page]{background:transparent;border-bottom-color:#a73cff;color:#d1a0ff;font-weight:700}
 .cw-mobile-tools a:hover{color:#e5d6fa}
 .cw-mobile-tools a:focus-visible{outline:2px solid #d0b9f4;outline-offset:-4px}
 .cw-mobile-tools::-webkit-scrollbar{display:none}
}
@media(min-width:981px){.cw-mobile-tools{display:none}}

/* A single consistent desktop member bar replaces expanded global sidebars. */
.farybo-desktop-nav,.farybo-desktop-search,.farybo-desktop-language-space,.member-desktop-nav,.member-desktop-search-toggle{display:none}
@media(min-width:981px){
 .farybo-mobile-shell{display:block;position:sticky;top:0;z-index:40;background:#090a12;border-bottom:1px solid #ffffff12;color:#f8f5ff}
 .account-header,.cw-top,.cw-side,.studio>header,.membership-sidebar,.membership-header-actions{display:none!important}
 .cw-layout,.membership-page{display:block!important}
 .member-signed-in .header{position:sticky;top:0;z-index:40}
 .farybo-mobile-header,.member-signed-in .header-in{display:grid!important;grid-template-columns:auto minmax(0,1fr) 36px 36px 44px;grid-template-areas:"brand navigation language search account";gap:16px!important;align-items:center;width:100%;max-width:1680px;min-height:72px!important;height:72px;padding:0 clamp(24px,3.7vw,64px)!important;margin:auto;background:#090a12}
 .farybo-mobile-header>.farybo-brand,.member-signed-in .header-in>.brand{grid-area:brand;justify-self:start}
 .farybo-desktop-nav,.member-signed-in .member-desktop-nav{grid-area:navigation;display:flex;align-items:center;justify-content:center;gap:clamp(14px,1.7vw,28px);min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
 .farybo-desktop-nav a,.member-desktop-nav a{flex:none;position:relative;display:inline-flex;align-items:center;min-height:44px;font:500 14px/1.4 FaryboBrandArchivo,Arial,sans-serif;color:#d6d1e5!important;text-decoration:none}
 .farybo-desktop-nav a:hover,.member-desktop-nav a:hover,.farybo-desktop-nav a[aria-current=page],.member-desktop-nav a[aria-current=page]{color:#fff!important}
 .farybo-desktop-nav a[aria-current=page]::after,.member-desktop-nav a[aria-current=page]::after{content:"";position:absolute;bottom:2px;left:0;right:0;height:2px;background:#b36af0;border-radius:3px}
 .farybo-desktop-language-space{display:block;grid-area:language;width:36px;height:36px}
 .member-signed-in .header-in>.language-wrap{display:block!important;grid-area:language;position:relative;width:36px;height:36px;margin:0!important;visibility:hidden}
 .member-signed-in.member-language-home .header-in>.language-wrap{visibility:visible}
 .member-signed-in .language-wrap::before{content:"";position:absolute;inset:0;background:url('/language-icon.svg') center/17px no-repeat;opacity:.75;pointer-events:none}
 .member-signed-in .language-select{opacity:0;width:36px!important;height:36px!important;min-height:36px;padding:0;position:absolute;inset:0;cursor:pointer}
 .member-signed-in .header-in>.nav,.member-signed-in .mobile-menu,.member-signed-in .public-mobile-membership{display:none!important}
 .farybo-mobile-avatar,.member-signed-in .account-link.has-account{grid-area:account;display:flex;align-items:center;justify-content:center;width:44px!important;height:44px!important;margin:0!important;padding:2px!important;border:1px solid #8e78b7;border-radius:50%;background:linear-gradient(140deg,#a87ce5,#435ec1);color:#fff!important;font-size:20px;font-weight:800;overflow:hidden;line-height:1;text-decoration:none}
 .farybo-mobile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
 .farybo-mobile-avatar[aria-current=page]{outline:1px solid #c2a2e8;outline-offset:3px}
 .farybo-mobile-search{display:none!important}
 .farybo-desktop-search{grid-area:search;display:block;position:relative}
 .farybo-desktop-search>summary,.member-signed-in .member-desktop-search-toggle{display:grid!important;place-items:center;width:36px;height:36px;padding:0;border:0;background:transparent;color:#d6d1e5;cursor:pointer;border-radius:7px;list-style:none}
 .farybo-desktop-search>summary::-webkit-details-marker{display:none}
 .farybo-desktop-search form{position:absolute;right:0;top:calc(100% + 13px);width:320px;padding:12px;background:#141425;border:1px solid #514969;border-radius:11px;box-shadow:0 15px 45px #0007}
 .farybo-desktop-search input{box-sizing:border-box;width:100%;background:#1b1c2c;border:1px solid #686078;border-radius:8px;color:#fff;padding:10px;font-size:14px}
 .member-signed-in .header-in>.search-wrap{grid-area:search;position:relative;width:36px!important;height:36px;margin:0!important}
 .member-signed-in .search-wrap>svg{display:none}
 .member-signed-in .search-wrap>.search{display:none;position:absolute;right:0;top:calc(100% + 13px);width:320px;padding:12px 16px!important;height:44px;background:#151728;border:1px solid #67607e;border-radius:9px}
 .member-signed-in .search-wrap.desktop-search-open>.search{display:block}
 .member-signed-in .search-results{top:calc(100% + 64px);width:320px}
 .member-shell{display:block!important}
 .member-sidebar{display:none!important}
 .cw-mobile-tools{display:flex!important;flex-wrap:nowrap;gap:4px;margin:0 0 28px;border-bottom:1px solid #ffffff18;overflow-x:auto;scrollbar-width:none}
 .cw-mobile-tools a{display:flex;flex:1 0 auto;align-items:center;justify-content:center;min-height:50px;padding:12px 16px;border-bottom:2px solid transparent;font-size:14px;white-space:nowrap;color:#bab5ca}
 .cw-mobile-tools a[aria-current=page]{border-bottom-color:#a73cff;color:#d1a0ff;font-weight:700}
 .membership-main{max-width:1240px;margin:auto}
 .farybo-mobile-shell :focus-visible{outline:2px solid #d0b9f4;outline-offset:3px}
}

@media(min-width:981px){.member-desktop-search-toggle svg{position:static!important;transform:none!important}.farybo-mobile-nav{display:none!important}}

/* Membership entry in the top bar. */
.member-signed-in .header-in>.member-plan-link:not([hidden]) {
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:34px;padding:6px 13px;border:1.5px solid #c24cff;border-radius:8px;
 background:transparent;color:#f3e5ff;text-decoration:none;font:600 13px/1.25 system-ui,sans-serif;
 white-space:nowrap;box-shadow:0 0 9px #bc43ff42;
}
.member-signed-in .header-in>.member-plan-link[hidden]{display:none!important}
.member-signed-in .header-in>.member-plan-link:hover,.member-signed-in .header-in>.member-plan-link:focus-visible{background:#6a21a947;outline-color:#d579ff}
@media(min-width:981px){
 .member-signed-in.has-member-plan-link .header-in{
  grid-template-columns:auto minmax(0,1fr) auto 36px 36px 44px!important;
  grid-template-areas:"brand navigation plan language search account"!important;
 }
 .member-signed-in .header-in>.member-plan-link{grid-area:plan;justify-self:end;margin:0}
}
@media(max-width:980px){
 .member-home-active.has-member-plan-link .header-in{
  grid-template-columns:minmax(0,1fr) auto 44px!important;
  grid-template-areas:"brand plan account" "search search search"!important;
 }
 .member-language-home.has-member-plan-link .header-in{
  grid-template-columns:minmax(0,1fr) auto 36px 44px!important;
  grid-template-areas:"brand plan language account" "search search search search"!important;
 }
 .member-home-active .header-in>.member-plan-link:not([hidden]){grid-area:plan;justify-self:end;margin:0;font-size:12px;padding:6px 9px}
 body.public-site-active:has(.landing-home) .header-in{
  grid-template-columns:minmax(0,1fr) auto auto 30px!important;
  grid-template-areas:"brand pricing account language"!important;
 }
 body.public-site-active:has(.landing-home) .header-in>.public-mobile-membership{
  display:inline-flex!important;grid-area:pricing;align-items:center;justify-content:center;
  min-height:30px;max-width:none;padding:5px 9px;border:1.5px solid #c24cff;
  border-radius:7px;background:transparent;color:#f3e5ff;font-size:12px;line-height:1.3;
  white-space:nowrap;box-shadow:0 0 9px #bc43ff42;
 }
}
@media(max-width:360px){
 .member-home-active.has-member-plan-link .header-in{padding-inline:12px!important;column-gap:2px!important}
 .member-home-active .header-in>.member-plan-link:not([hidden]){font-size:11px;padding:6px}
 body.public-site-active:has(.landing-home) .header-in>.public-mobile-membership{font-size:11px;padding:5px 6px}
}
