/* Site shell and catalogue launch screens. */
:root { -webkit-text-size-adjust:100%; }
img,iframe { max-inline-size:100%; }
.site-shell-design :is(.home-content,.page-content,.auth-card,.bc-shell-footer,.drawer-footer) { min-inline-size:0; }
.site-shell-design :is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon {
  flex:none;
}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-home{color:#ead380}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-hook{color:#e6b98b}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-cloud{color:#aecce8}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-market{color:#f3cf83}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-trophy{color:#f3cf83}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-water{color:#78dbc9}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-gear{color:#afc4e7}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-chest{color:#f0b872}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-user{color:#a9dec8}
:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-heart{color:#f0aa9c}
.guide-section-navigation :is(a[href="#mechanics"],a[href="#balance"],#mechanics,#balance){display:none!important}
html[data-site-scale] body.site-shell-design[data-account-page=page]{height:var(--site-viewport-height,100dvh)}
html[data-site-scale] body.site-shell-design #guide-panel{height:calc(var(--site-viewport-height,100dvh) - var(--guide-top,var(--header-height,72px)))}
html[data-site-scale] body.site-shell-design[data-account-page=page] #page-panel{height:calc(var(--site-viewport-height,100dvh) - var(--page-top,var(--header-height,72px)))}
html[data-site-scale] .site-navigation-dialog{height:var(--site-viewport-height,100dvh);max-height:var(--site-viewport-height,100dvh)}
html.map-host-fullscreen[data-site-scale] :is(#guide-panel,#guide,iframe.map-host-frame){height:var(--site-viewport-height,100dvh)!important;width:100%!important}
#site-scale{position:relative;margin:0;min-width:0;flex:none;border:0;padding:0;background:transparent}
#site-scale>summary{display:grid;place-items:center;box-sizing:border-box;min-width:44px;min-height:42px;padding:6px 7px;border:1px solid #42604c;border-radius:8px;background:#152b1e;color:#e9d983;font:650 12px/1 system-ui,sans-serif;cursor:pointer;list-style:none}
#site-scale>summary::-webkit-details-marker{display:none}
#site-scale .site-scale-options{position:absolute;z-index:120;inset-block-start:calc(100% + 7px);inset-inline-end:0;width:max-content;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px;border:1px solid #52674a;border-radius:9px;background:#11271b;color:#edf2e8;box-shadow:0 8px 24px #07150db0}
#site-scale .site-scale-options strong{grid-column:1/-1;font-size:13px;padding:2px}
#site-scale .site-scale-options button{min-height:36px;padding:4px 6px;border:1px solid #567258;border-radius:6px;background:#203a29;color:#edf2e8}
#site-scale .site-scale-options button[aria-pressed=true]{background:#e4d184;color:#18271c;border-color:#e4d184}
#profile.profile-card{min-width:0;box-sizing:border-box;padding:18px!important}
#profile .profile-hero{width:100%;box-sizing:border-box;align-items:center;padding:14px!important;grid-template-columns:76px minmax(0,1fr);column-gap:16px;row-gap:3px}
#profile .profile-hero>:is(.payment-avatar-wrap,#profile-role-avatar){grid-column:1;grid-row:1/3;justify-self:center}
#profile .profile-hero>h2{grid-row:1;align-self:end}
#profile .profile-hero-summary{grid-row:2;align-self:start;gap:4px}
#profile .profile-hero-summary{min-width:0;overflow-wrap:anywhere}
#profile .page-tabs{display:flex;flex-wrap:wrap;gap:5px;min-width:0;margin-block:9px}
#profile .page-tabs>button{flex:0 1 auto;min-width:0;white-space:normal}
#profile #profile-overview{gap:10px}
#profile #profile-overview>.profile-overview-columns{gap:12px}
#profile .profile-overview-columns>:is(.profile-overview-primary,.profile-overview-secondary){gap:10px}
#profile .profile-overview-columns :is(input,textarea){width:100%;min-width:0}
#homepage .home-tiles{gap:8px}
#homepage .home-tile h3{hyphens:none;word-break:normal;overflow-wrap:normal;text-wrap:balance}
#homepage .home-tile[data-home-target=chests]{grid-column:1/-1}
#homepage .home-tile[data-home-target=chests]>picture>img{object-position:center 53%}
#homepage .home-group[data-group=Допомога] .home-tiles{grid-template-columns:minmax(0,1fr)}
#homepage .home-footer,.bc-shell-footer,.site-navigation-dialog .drawer-footer{min-inline-size:0}
.bc-fan-notice{margin:0;padding:8px 10px;background:#263623;border-inline-start:3px solid #e8d281;border-radius:5px;color:#e4eee1;font-size:13px;line-height:1.4}
.bc-fan-notice strong{color:#f4df92}
:is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social{gap:6px;margin:7px 0 0}
:is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social a{gap:6px;padding:4px 8px!important;min-height:36px;font-size:13px!important;white-space:nowrap}
:is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social a svg{width:16px!important;height:16px!important;flex:0 0 16px}
.bc-social a[data-social=telegram] svg{color:#9edcff}
.bc-social a[data-social=tiktok] svg{color:#f9b9d4}
.bc-social a[data-social=partners] svg{fill:none;stroke:currentColor!important}
#welcome.auth-v2{align-items:stretch}
#welcome.auth-v2 .auth-card{grid-column:1}
#welcome.auth-v2 .seo-public{display:none}
#welcome.auth-v2 .bc-auth-art{position:relative;overflow:hidden;min-height:210px;border:1px solid #42614b;border-radius:14px}
#welcome.auth-v2 .bc-auth-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 48%}
#welcome.auth-v2 .bc-auth-art strong{position:absolute;inset:auto 0 0;padding:31px 16px 13px;color:#f8e8ac;background:linear-gradient(transparent,#07150ded);font:700 22px/1.2 Georgia,serif}
body[data-account-page=auth] .bc-shell-footer{box-sizing:border-box;width:calc(100% - 36px);max-width:980px;margin:0 auto;padding:8px 0 0}

@media(min-width:901px) {
  body:has(>#guide-panel:not([hidden]))>header #site-nav-toggle{display:none!important}
  #homepage .home-content{padding:8px 18px 0}
  #homepage .home-heading{margin-bottom:6px;gap:8px}
  #homepage .home-heading h1{font-size:29px;margin:0 0 2px}
  #homepage .home-heading p{font-size:14px}
  #homepage .home-group{margin:0 0 7px}
  #homepage .home-group h2{font-size:20px;margin:0 0 4px}
  html body.site-shell-design #homepage .home-group[data-group=Риболовля] .home-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.site-shell-design #homepage .home-group[data-group=Каталог] .home-tiles{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.site-shell-design #homepage .home-tile[data-home-target=guide-hub]{grid-column:auto!important}
  html body.site-shell-design #homepage .home-group .home-tile{min-height:0!important}
  html body.site-shell-design #homepage .home-group .home-tile-copy{min-height:85px!important;padding:8px 11px 10px!important;gap:3px}
  #homepage .home-group .home-tile h3{font-size:17px!important;line-height:1.14;margin:0}
  #homepage .home-group .home-tile p{font-size:12px;line-height:1.28;margin:0}
  #homepage .home-group .home-tile-copy>.design-icon{width:19px;height:19px;margin:0 0 1px}
  #homepage .home-arrow{inset:auto 7px 5px auto;min-width:24px;min-height:24px;font-size:17px}
  #homepage .home-footer{padding:6px 0 0;margin-top:8px}
  :is(.home-footer,.bc-shell-footer) .bc-legal-menu{margin:4px 0}
  :is(.home-footer,.bc-shell-footer) .bc-legal-menu summary{min-height:30px;padding:4px 0}
  :is(.home-footer,.bc-shell-footer) .bc-social{margin:4px 0 0}
  :is(.home-footer,.bc-shell-footer) .bc-social a{min-height:29px;font-size:12px!important}
  :is(.home-footer,.bc-shell-footer) .bc-fan-notice{padding-block:5px}
  #welcome.auth-v2{margin:8px auto!important;gap:14px!important}
  #welcome.auth-v2 .auth-card{padding:13px 17px!important}
  #welcome.auth-v2 .auth-tabs{margin-bottom:8px;padding:3px}
  #welcome.auth-v2 .auth-tabs button{height:33px}
  #welcome.auth-v2 h1{margin-bottom:4px}
  #welcome.auth-v2 #auth-intro{margin-bottom:8px}
  #welcome.auth-v2 .auth-field{margin-bottom:7px}
  #welcome.auth-v2 .auth-field label{margin-bottom:3px}
  #welcome.auth-v2 .auth-label-row{margin-bottom:3px}
  #welcome.auth-v2 .auth-field input{min-height:40px;height:40px;padding-block:5px}
  #welcome.auth-v2 .auth-password button{min-height:36px;height:36px}
  #welcome.auth-v2 #submit{min-height:40px;padding-block:7px;margin-top:5px}
  #welcome.auth-v2 #auth-captcha,#welcome.auth-v2 #auth-mail-captcha{margin-bottom:6px}
  #welcome.auth-v2 #auth-extra{margin-top:7px;gap:3px}
  #welcome.auth-v2 .auth-legal{margin-top:5px;padding-top:3px}
}

@media(max-width:900px){
  body.site-shell-design>header #site-nav-toggle{display:flex!important;align-items:center;justify-content:center}
  body.site-shell-design>header #site-scale{order:5}
  body.site-shell-design[data-account-page=profile]>#profile.profile-card{width:calc(100% - 20px)!important;max-width:700px!important;margin:10px auto!important;padding:12px!important}
}
@media(max-width:740px){
  #homepage .home-content{padding:10px 12px 0}
  #homepage .home-heading{margin-bottom:8px;flex-direction:row;align-items:center;gap:6px}
  #homepage .home-heading h1{font-size:21px;line-height:1.15;margin:0}
  #homepage .home-heading p{display:none}
  #homepage .home-auth{width:auto;flex-shrink:0}
  #homepage .home-group{margin-bottom:11px}
  #homepage .home-group h2{margin-bottom:6px}
  #homepage :is(.home-group[data-group=Каталог],.home-group[data-group=Риболовля]) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  #homepage .home-tile[data-home-target=guide-hub]{grid-column:1/-1}
  #homepage .home-group .home-tile-copy{min-height:76px!important;padding:7px 8px 11px!important}
  #homepage .home-group .home-tile[data-home-target=guide-hub] .home-tile-copy{min-height:106px!important}
  #homepage .home-group .home-tile h3{font-size:14px;line-height:1.19}
  #homepage .home-group .home-tile p{font-size:12px;line-height:1.25;margin:0}
  #homepage .home-group .home-tile-copy>.design-icon{width:17px;height:17px;margin:0}
  #homepage .home-tile[data-home-target=chests]>picture{width:100%}
  #homepage .home-tile[data-home-target=chests]::before{display:block}
  #homepage .home-footer{margin-top:8px;padding-top:6px}
  #welcome.auth-v2{display:grid;grid-template-columns:minmax(0,1fr);width:calc(100% - 24px)!important;margin:8px auto!important;gap:8px!important}
  #welcome.auth-v2 .bc-auth-art{grid-row:1;min-height:86px}
  #welcome.auth-v2 .bc-auth-art strong{padding:18px 10px 7px;font-size:17px}
  #welcome.auth-v2 .auth-card{padding:12px 13px!important}
  #welcome.auth-v2 .auth-tabs{margin-bottom:8px}
  #welcome.auth-v2 #auth-intro{margin-bottom:9px}
  #welcome.auth-v2 .auth-field{margin-bottom:7px}
  #welcome.auth-v2 #auth-extra{margin-top:7px;gap:3px}
  #welcome.auth-v2 .auth-legal{margin-top:8px;padding-top:5px}
  body[data-account-page=auth] .bc-shell-footer{width:calc(100% - 24px);max-width:460px}
  :is(.home-footer,.bc-shell-footer) .bc-legal-menu{margin:5px 0}
  :is(.home-footer,.bc-shell-footer) .bc-legal-menu summary{min-height:34px;padding:5px 0}
}
@media(max-width:390px){
  :is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social a{gap:4px;padding-inline:5px!important;font-size:12px!important}
  #homepage .home-group .home-tile h3{font-size:13px}
}
@media(max-width:300px){
  #homepage :is(.home-group[data-group=Каталог],.home-group[data-group=Риболовля]) .home-tiles{grid-template-columns:minmax(0,1fr)}
}

/* Header controls share one measured row on phones and wrap at large zoom. */
#site-scale .site-scale-options{box-sizing:border-box;width:min(176px,calc(var(--site-viewport-width,100vw) - 20px))}
#site-scale .site-scale-options button{min-width:0}
html[data-site-scale] .site-navigation-dialog{width:min(390px,calc(var(--site-viewport-width,100vw) - 20px))}
@media(max-width:900px){
  html body.site-shell-design>header{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;padding:8px 12px!important}
  html body.site-shell-design>header #site-scale{order:6;margin-inline-start:auto}
  html body.site-shell-design>header .brand{font-size:17px!important;line-height:1.2!important}
  html body.site-shell-design>header .brand>span{line-height:1.15}
}
@media (min-width:341px) and (max-width:600px) and (max-height:920px){
  #homepage .home-content{padding-top:8px}
  #homepage .home-heading{margin-bottom:6px}
  #homepage .home-group{margin-bottom:7px}
  #homepage .home-group h2{font-size:20px;margin:0 0 4px}
  #homepage .home-tiles{gap:6px}
  html body.site-shell-design #homepage .home-group .home-tile{min-height:0!important}
  html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{min-height:0!important;padding:5px 8px 7px!important;gap:2px}
  html body.site-shell-design #homepage .home-group .home-tile[data-home-target=guide-hub] .home-tile-copy{min-height:83px!important}
  #homepage .home-group .home-tile-copy>.design-icon{width:15px;height:15px}
  #homepage .home-footer{margin-top:5px;padding:5px 0 8px}
  #homepage .home-footer .bc-fan-notice{padding-block:5px}
  #homepage .home-footer .bc-legal-menu{margin:2px 0}
  #homepage .home-footer .bc-legal-menu summary{min-height:28px;padding:3px 0}
  #homepage .home-footer .bc-social{margin-top:3px}
}
@media(max-width:340px){
  html body.site-shell-design>header{flex-wrap:wrap!important;justify-content:flex-end!important;row-gap:2px!important}
  html body.site-shell-design>header .brand{flex:0 0 100%!important;margin-inline:0!important}
  html body.site-shell-design>header #site-scale{margin-inline-start:0}
  :is(.site-shell-design,.legal-page){overflow-wrap:anywhere}
  :is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social{flex-wrap:wrap}
  :is(.home-footer,.bc-shell-footer,.drawer-footer) .bc-social a{white-space:normal}
  .site-shell-design :is(button,input,select,textarea){max-inline-size:100%}
  .site-shell-design .site-navigation-dialog nav{padding:8px}
  .site-shell-design .drawer-head{padding:10px;gap:6px}
  #profile .profile-hero{grid-template-columns:minmax(0,1fr);gap:5px;padding:10px!important}
  #profile .profile-hero>:is(.payment-avatar-wrap,#profile-role-avatar,h2,.profile-hero-summary){grid-area:auto;justify-self:start}
  #profile .profile-hero-summary>strong{font-size:20px}
  #profile .page-tabs>button{width:100%}
  #profile #profile-overview :is(form,#profile-security,#profile-billing){padding:10px!important;min-width:0}
  #profile #profile-overview .auth-security-summary{align-items:flex-start;flex-direction:column;gap:5px}
  #profile #profile-overview :is(.auth-security-actions,.profile-vip-benefits){grid-template-columns:minmax(0,1fr)}
  #profile #profile-overview :is(button,summary,strong){white-space:normal}
  #profile #profile-billing :is([class*=metrics],[class*=stats],[class*=summary]){grid-template-columns:minmax(0,1fr)}
  #welcome.auth-v2 .auth-tabs{display:grid;grid-template-columns:minmax(0,1fr)}
  #welcome.auth-v2 .auth-tabs button{white-space:normal}
  #welcome.auth-v2 .auth-label-row,.legal-page .legal-header{flex-wrap:wrap}
  .legal-page .legal-header{gap:6px;padding:10px 12px!important}
  .legal-page .legal-header #site-scale{margin-inline-start:auto}
  .legal-page .legal-brand,.legal-page main :is(h1,h2,h3,p,dd,li,a){min-width:0;white-space:normal}
  .legal-page .legal-card{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px}
  .legal-page .legal-card img{grid-row:auto}
  .legal-page .legal-section-body{padding-inline:10px}
  .legal-page .legal-controls button{white-space:normal}
  .legal-page .legal-nav,.legal-page .legal-footer .bc-legal{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:220px){
  html body.site-shell-design>header :is(#chat-toggle,#header-profile-toggle,#site-nav-toggle){min-width:36px!important;width:36px!important;max-width:36px!important;flex-basis:36px!important;padding:6px!important}
  #site-scale>summary{min-width:39px;padding-inline:4px}
  #homepage .home-heading{flex-wrap:wrap}
  #homepage .home-tile h3{overflow-wrap:anywhere}
  #homepage .home-group h2{font-size:19px}
  #profile.profile-card{padding:7px!important}
  #profile .profile-hero{padding:8px!important}
}


/* Keep the approved photo beside the desktop form and keep footer actions visible. */
#welcome.auth-v2:has(>.bc-auth-art)>.login-art{display:none!important}
html body.site-shell-design > #homepage { min-height: 0; }

body.site-shell-design:has(>#homepage:not([hidden]))>.approved-version,
body.site-shell-design[data-account-page=auth]>.approved-version{padding-block:2px!important;margin-block:4px 0!important;min-height:0;font-size:12px;line-height:1.25}
@media(min-width:901px){
  #welcome.auth-v2{min-height:0!important}
  #welcome.auth-v2 .bc-auth-art{grid-area:1/2}
  #welcome.auth-v2 .auth-card{grid-area:1/1}
}
@media(min-width:341px) and (max-width:600px) and (max-height:920px){
  #welcome.auth-v2 .bc-auth-art{min-height:64px}
  #welcome.auth-v2 .auth-card{padding:8px 11px!important}
  #welcome.auth-v2 .auth-tabs{margin-bottom:5px}
  #welcome.auth-v2 .auth-field{margin-bottom:5px}
  #welcome.auth-v2 .auth-field input{min-height:42px;height:42px}
  #welcome.auth-v2 .auth-password button{min-height:38px;height:38px}
  #welcome.auth-v2 #auth-extra{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 6px}
  #welcome.auth-v2 #auth-extra>a{grid-area:1/1;min-width:0;padding-inline:7px;white-space:normal;text-align:center}
  #welcome.auth-v2 #auth-extra>button{grid-area:1/2}
  #welcome.auth-v2 #auth-extra>p{grid-column:1/-1}
  #welcome.auth-v2 .auth-legal{margin-top:4px;padding-top:3px}
  body[data-account-page=auth] .bc-shell-footer{padding-top:4px}
  body[data-account-page=auth] .bc-shell-footer .bc-fan-notice{padding-block:5px}
  body[data-account-page=auth] .bc-shell-footer .bc-legal-menu{margin-block:2px}
  body[data-account-page=auth] .bc-shell-footer .bc-legal-menu summary{min-height:28px;padding-block:3px}
  body[data-account-page=auth] .bc-shell-footer .bc-social{margin-top:3px}
}


@media(max-width:340px){
  html.approved-ui body.approved-shell #help .help-intro{grid-template-columns:minmax(0,1fr)!important;padding:8px!important;min-height:0}
  html.approved-ui body.approved-shell #help .help-intro :is(h2,.eyebrow,p){grid-column:1;grid-row:auto;overflow-wrap:anywhere}
  html.approved-ui body.approved-shell #help .help-intro h2{font-size:22px!important}
  html.approved-ui body.approved-shell #help .help-intro>img{display:none}
  html.approved-ui body.approved-shell #help .quick-start-steps li{grid-template-columns:26px minmax(0,1fr);padding:8px;column-gap:7px}
  html.approved-ui body.approved-shell #help .quick-start-steps li:before{width:24px;height:24px}
  html.approved-ui body.approved-shell #help .quick-start-steps :is(strong,span){overflow-wrap:anywhere}
}


/* Keep navigation arrows beside the icon instead of over the copy. */
@media(max-width:740px){
  #homepage .home-tile-copy .home-arrow{inset:6px 7px auto auto}
}
/* Match the chat shell to the actual viewport under site zoom. */
@media(max-width:740px){
  html[data-site-scale] #chat-panel .chat-window{width:100%!important;max-width:100%!important;min-width:0}
}
@media(max-width:340px){
  #chat-panel .chat-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;padding:8px!important}
  #chat-panel .chat-header>div:first-child{min-width:0;overflow-wrap:anywhere}
  #chat-panel #chat-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%;grid-column:1/-1}
  #chat-panel #chat-form{grid-template-columns:36px 36px minmax(0,1fr) 36px;gap:3px;padding-inline:5px}
  #chat-panel #chat-form :is(#chat-attach,#chat-send,#chat-emoji-toggle){width:36px;min-width:36px}
  #chat-panel #chat-input{padding-inline:4px}
}
@media(min-width:741px) and (max-width:900px){
  #homepage .home-content{padding:10px 18px 0}
  #homepage .home-heading{margin-bottom:8px}
  #homepage .home-group{margin-bottom:9px}
  #homepage .home-group h2{font-size:23px;margin-bottom:5px}
  html body.site-shell-design #homepage .home-group .home-tile{min-height:0!important}
  html body.site-shell-design #homepage .home-group .home-tile-copy{min-height:92px!important;padding:8px 11px!important;gap:3px}
  #homepage .home-group .home-tile h3{font-size:17px!important}
  #homepage .home-group .home-tile p{font-size:12px}
  #homepage .home-tile-copy .home-arrow{inset:6px 7px auto auto}
}


@media (min-width: 901px) {
  body.site-shell-design {
    --shell-rail: 212px;
    --shell-width: 100%;
    --shell-inset: max(0px, calc((100% - var(--shell-width)) / 2));
    --shell-content-gap: 20px;
  }

  html:not(.map-host-fullscreen) body.site-shell-design:not([data-account-page=auth]):not([data-account-page=maintenance]) #account-sidebar {
    position: fixed;
    display: block;
    inset-block: var(--header-height, 72px) 0;
    inset-inline-start: 0 !important;
    width: var(--shell-rail);
    box-sizing: border-box;
    padding: 8px 10px;
    border-inline-end: 1px solid var(--line);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #42614b transparent;
  }

  #account-sidebar nav :is(a, button) {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 5px 10px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #dce6dc;
    font: 14px/1.25 system-ui, sans-serif;
    text-decoration: none;
    text-align: start;
    white-space: normal;
  }

  #account-sidebar [hidden] { display: none !important; }
  #account-sidebar .design-icon { width: 20px; height: 20px; }
  #account-sidebar nav :is(a, button):hover { background: #203c29; }
  #account-sidebar nav [aria-current=page] {
    background: #244831;
    border-color: #496844;
    box-shadow: inset 3px 0 #e5cf71;
    color: #f6e8a5;
  }

  #account-sidebar .account-nav-group {
    margin: 9px 10px 3px;
    color: #b5c8ba;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .07em;
  }

  html:not(.map-host-fullscreen) body.site-shell-design > :is(#homepage, #guide-panel, #page-panel) {
    box-sizing: border-box;
    width: min(100%, var(--shell-width));
    max-width: none;
    margin-inline: auto;
    padding-inline-start: var(--shell-rail);
  }

  body.site-shell-design > :is(.profile-card, #staff) {
    box-sizing: border-box;
    width: calc(min(100%, var(--shell-width)) - var(--shell-rail));
    margin: 0 0 0 calc(var(--shell-inset) + var(--shell-rail));
    max-width: none;
    min-width: 0;
    padding: 16px var(--shell-content-gap) 20px;
    border: 0;
    background: transparent;
  }

  #profile.profile-card { padding: 16px var(--shell-content-gap) 20px !important; }
  #profile .profile-hero { margin-block-end: 10px; }

  #homepage .home-content {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--site-viewport-height, 100dvh) - var(--header-height, 72px) - 29px);
    box-sizing: border-box;
    padding: 12px var(--shell-content-gap) 0;
  }

  #homepage .home-heading { margin-block-end: 9px; }
  #homepage .home-group { display: flex; flex: 1 0 auto; flex-direction: column; }
  #homepage .home-tiles { flex: 1; }
  #homepage .home-group .home-tile .home-tile-copy {
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 9px 38px 10px 12px !important;
  }
  #homepage .home-arrow { inset: auto 8px 7px auto; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  html body.site-shell-design #homepage .home-group[data-group=Каталог] .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 740px) {
  #profile .profile-hero { grid-template-columns: 65px minmax(0, 1fr); }
}
@media (max-width: 390px) {
  #profile .profile-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 10px;
  }
  #profile .profile-hero > :is(.payment-avatar-wrap, #profile-role-avatar) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  #profile .profile-hero > :is(h2, .profile-hero-summary) { grid-column: 2; }
  #profile .profile-hero > h2 { grid-row: 1; }
  #profile .profile-hero > .profile-hero-summary { grid-row: 2; }
}

/* Give each section the area beside the menu, including on wide windows. */
body.site-shell-design #homepage .home-content{max-width:none}
body.site-shell-design .standalone-market{max-width:none}
body.site-shell-design[data-account-page]:not([data-account-page=auth]) #welcome{display:none!important}

body.site-shell-design #planner-factors>h2{margin:0 0 10px;font:700 clamp(25px,3vw,36px)/1.16 Georgia,serif}
#planner-factors>p{margin:0 0 12px;color:#bccbbd}
#planner-factors .planner-factor-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start}
html body.site-shell-design #planner-factors .help-topic{margin:0;min-width:0}
html body.site-shell-design #planner-factors .help-topic>summary{min-height:42px;padding:7px 10px}
#planner-factors .help-topic>p{margin-block:8px}
#planner-factors .help-topic-number{display:none}
body.site-shell-design #planner-factors-link{display:inline-flex;align-items:center;min-height:42px;color:#e6cf7d}
@media(max-width:740px){
  body.site-shell-design #planner-factors{padding:12px;margin:0;width:100%;max-width:none}
  #planner-factors .planner-factor-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  html body.site-shell-design #planner-factors .help-topic>summary{padding:5px 7px;min-height:40px;overflow-wrap:anywhere}
  #planner-factors .help-topic-title{font-size:12px}
}
@media(max-width:300px){#planner-factors .planner-factor-topics{grid-template-columns:minmax(0,1fr)}}

html.approved-ui body.approved-shell #help .help-intro{min-height:0;padding-block:14px!important}
html.approved-ui body.approved-shell #help .quick-start-steps{margin-block:8px;gap:7px}
html.approved-ui body.approved-shell #help .quick-start-steps li{padding:8px}
html.approved-ui body.approved-shell #help .help-search{margin-block:8px;min-height:40px}
html.approved-ui body.approved-shell #help :is(.help-topic,.help-push){margin-block:5px}
html.approved-ui body.approved-shell #help :is(.help-topic,.help-push)>summary{padding-block:5px;min-height:42px}
#help .help-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:9px;align-items:start}
@media(max-width:740px){#help .help-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:5px}}
@media(max-width:300px){#help .help-topic-grid{grid-template-columns:minmax(0,1fr)}}
#help .help-topic-grid,#planner-factors .planner-factor-topics{display:block}
.help-topic-picker{display:flex;align-items:center;gap:8px;margin:8px 0;color:#c1d0c3}
.help-topic-picker select{width:100%;min-width:0;margin:0!important;min-height:42px}
#help [data-topic-inactive],#planner-factors [data-topic-inactive]{display:none!important}
@media(max-width:740px){
  html.approved-ui body.approved-shell #help .quick-start-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  html.approved-ui body.approved-shell #help .quick-start-steps li{display:block;padding:6px;min-width:0}
  html.approved-ui body.approved-shell #help .quick-start-steps li::before{display:none}
  html.approved-ui body.approved-shell #help .quick-start-steps strong{font-size:12px;overflow-wrap:anywhere}
  html.approved-ui body.approved-shell #help .quick-start-steps span{font-size:11px;overflow-wrap:anywhere}
}
@media(min-width:901px){
  #profile .profile-hero{padding-block:10px!important}
  #profile .page-tabs{margin-block:6px}
  #profile #profile-overview{gap:4px}
  #profile #profile-overview>:is(p,details){margin-block:2px}
  #profile #profile-overview .profile-account-details>summary{min-height:36px}
  #profile .profile-overview-columns>:is(.profile-overview-primary,.profile-overview-secondary){gap:8px}
}

/* Preserve the market filters and reduce the space before the offers. */
body.site-shell-design .standalone-market :is(.market-hero,.page-photo-heading,.online-market-head){min-height:86px!important;padding:10px 16px!important;margin-block:0 8px!important}
body.site-shell-design .standalone-market :is(h1,h2){font-size:clamp(24px,3vw,35px)!important;margin-block:0 5px!important}
body.site-shell-design .standalone-market :is(.market-filters,.market-filter-panel,#market-country-tabs){gap:6px!important;padding-block:6px!important;margin-block:5px!important}
body.site-shell-design .standalone-market :is(label,p,#market-status){margin-block:4px!important;line-height:1.35}
body.site-shell-design .standalone-market :is(input,select,.country-tabs button,#market-refresh,#market-reset){min-height:36px!important;padding:6px 9px!important;margin-block:2px!important}
body.site-shell-design .standalone-market .market-filter-panel>summary{min-height:32px!important;padding-block:4px!important}
body.site-shell-design .standalone-market #market-results{gap:7px!important}
body.site-shell-design .standalone-market #market-results>.market-result{padding:8px!important;gap:7px!important}
body.site-shell-design .standalone-market #market-results .market-result-body :is(p,strong,small){margin-block:2px!important}
html.approved-ui body.approved-shell #help .help-intro{padding-block:7px!important}
html.approved-ui body.approved-shell #help .quick-start-steps{margin:3px 0!important;gap:4px!important}
html.approved-ui body.approved-shell #help .quick-start-steps li{min-height:0!important;padding:5px!important;gap:3px!important}
@media(min-width:1250px){
  body.site-shell-design .standalone-market .market-filter-panel .market-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.site-shell-design .standalone-market #market-results{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:740px){
  body.site-shell-design .standalone-market :is(.market-hero,.page-photo-heading,.online-market-head){min-height:64px!important;padding:7px 9px!important}
  body.site-shell-design .standalone-market .market-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.approved-ui body.approved-shell #help .quick-start-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html.approved-ui body.approved-shell #help .quick-start-steps li{display:block!important}
}

body.site-shell-design .standalone-market #market .market-photo-heading{
 min-height:80px!important;padding:9px 14px!important;margin:0 0 6px!important;border-radius:10px;
}
body.site-shell-design .standalone-market #market :is(.market-filters,.market-filter-panel){padding:6px!important;gap:6px!important}
body.site-shell-design .standalone-market #market .market-filters>label{min-height:0!important;padding:0!important;display:grid;gap:2px!important}
body.site-shell-design .standalone-market #market .market-filters :is(select,input){font-size:14px!important}
body.site-shell-design .standalone-market #market #market-status{margin-block:3px!important;font-size:13px}
body.site-shell-design .standalone-market #market .market-filter-panel{position:relative}
@media(min-width:741px){
 body.site-shell-design .standalone-market #market .market-filter-panel .market-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.site-shell-design .standalone-market #market .market-filter-panel>summary{padding-inline-end:135px}
 body.site-shell-design .standalone-market #market .market-filter-panel>#market-reset{position:absolute;inset:4px 8px auto auto;min-height:30px!important}
}
@media(max-width:740px){
 body.site-shell-design .standalone-market #market .market-photo-heading{min-height:62px!important;padding:7px 9px!important}
 body.site-shell-design .standalone-market #market .market-filters input{font-size:16px!important}
}

@media (min-width:341px) and (max-width:600px) and (max-height:920px){
  #homepage .home-content{padding-top:7px}
  #homepage .home-heading{margin-block-end:4px}
  #homepage .home-group{margin-block-end:6px}
  #homepage .home-group h2{font-size:19px;line-height:1.15;margin-block-end:4px}
  #homepage .home-tiles{gap:5px}
  html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{padding:4px 7px 6px!important;gap:2px}
  html body.site-shell-design #homepage .home-group .home-tile[data-home-target=guide-hub] .home-tile-copy{min-height:76px!important}
  html body.site-shell-design #homepage .home-tile h3{font-size:13px!important;line-height:1.17}
  html body.site-shell-design #homepage .home-tile p{font-size:11.5px!important;line-height:1.19}
  #homepage .home-footer{margin-block-start:4px;padding-block:4px 6px}
  #homepage .home-footer .bc-fan-notice{padding-block:4px}
}
@media (min-width:341px) and (max-width:600px) and (max-height:820px){
  html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{padding:3px 7px 5px!important;gap:1px}
  html body.site-shell-design #homepage .home-group .home-tile h3{margin-block-end:1px!important}
  html body.site-shell-design #homepage .home-tile-copy>.design-icon{width:12px;height:12px}
  #homepage .home-group{margin-block-end:4px}
  #homepage .home-footer{padding-block-end:3px}
}
/* Put each section icon beside the first line of its title. */
html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{
  display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;
  align-content:center;column-gap:6px;row-gap:3px;
}
html body.site-shell-design #homepage .home-tile-copy>.design-icon{grid-area:1/1;margin:2px 0 0!important}
html body.site-shell-design #homepage .home-tile-copy>h3{grid-area:1/2;margin:0!important;min-width:0}
html body.site-shell-design #homepage .home-tile-copy>p{grid-area:2/1/3/-1;margin:0!important}

/* Let the mobile home tiles use the available height at the current site scale. */
@media (min-width:341px) and (max-width:740px){
  #homepage .home-content{
    display:flex;flex-direction:column;box-sizing:border-box;
    min-height:calc(var(--site-viewport-height,100dvh) - var(--header-height,64px) - 26px);
  }
  #homepage .home-group{display:flex;flex:1 0 auto;flex-direction:column}
  #homepage .home-tiles{flex:1}
  html body.site-shell-design #homepage .home-tile .home-tile-copy{height:100%;box-sizing:border-box}
}


/* Keep the mobile drawer and administration tabs readable without sideways scrolling. */
@media(max-width:740px){
  .site-shell-design .site-navigation-dialog>.drawer-head{padding:6px 12px}
  .site-shell-design .drawer-head strong{font-size:17px}
  .site-shell-design .drawer-head span{margin-top:1px}
  .site-shell-design .site-navigation-dialog>nav{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 5px;padding:5px 8px;
  }
  .site-shell-design .site-navigation-dialog>nav>:is(.drawer-group-label,.drawer-identity){
    grid-column:1/-1;margin:3px 4px 0;line-height:1.2;
  }
  .site-shell-design .site-navigation-dialog>nav>:is(a,button){
    min-height:40px;margin:0;padding:4px 6px;gap:6px;font-size:12px;line-height:1.16;min-width:0;
  }
  .site-shell-design .site-navigation-dialog>nav .design-icon{width:17px;height:17px;flex:0 0 17px}
  .site-shell-design .site-navigation-dialog>.drawer-status{margin:0}
  .site-shell-design .site-navigation-dialog>.drawer-footer{padding:5px 8px 8px}
  .site-shell-design .site-navigation-dialog .drawer-footer .bc-fan-notice{padding:4px 6px;font-size:11px}
  .site-shell-design .site-navigation-dialog .drawer-footer .bc-social{display:flex;gap:5px;padding:0;margin-top:4px}
  .site-shell-design .site-navigation-dialog .drawer-footer .bc-social a{width:auto;margin:0;min-height:34px}
  #staff .page-tabs[aria-label="Розділи керування"]{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px 0 6px;margin-block:8px;overflow:visible;
  }
  #staff .page-tabs[aria-label="Розділи керування"]>button{
    min-width:0;min-height:40px;padding:5px 2px;font-size:12px;line-height:1.16;white-space:normal;
  }
}

.staff-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0;min-width:0}
.staff-pagination[hidden]{display:none}
.staff-pagination button{min-height:40px;padding:4px 9px;white-space:nowrap}
.staff-pagination span{font-size:12px;text-align:center}
.staff-pagination + .approved-directory-list{max-height:none}
#staff .approved-log-row{padding:7px 0;overflow-wrap:anywhere}
#staff .approved-log-row p{margin:2px 0}
#staff .approved-log-row small{line-height:1.3}

/* A full-width widget can use Turnstile's shorter flexible layout. */
@media(min-width:310px) and (max-width:420px){
  html body.site-shell-design[data-account-page=auth]>#welcome.auth-v2{
    width:calc(100% - 12px)!important;margin:5px auto!important;gap:4px!important;
  }
  #welcome.auth-v2 .bc-auth-art{min-height:49px}
  #welcome.auth-v2 .bc-auth-art strong{padding:11px 8px 5px;font-size:16px}
  #welcome.auth-v2 .auth-card{padding:7px 8px!important}
  #welcome.auth-v2 .auth-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:5px}
  #welcome.auth-v2 #auth-intro{margin-bottom:5px}
  #welcome.auth-v2 .auth-field{margin-bottom:5px}
  #welcome.auth-v2 .auth-field input{min-height:40px;height:40px}
  #welcome.auth-v2 #auth-extra{margin-top:5px}
  body[data-account-page=auth] .bc-shell-footer{width:calc(100% - 12px);padding-top:4px}
}

@media(min-width:310px) and (max-width:340px){
  html body.site-shell-design>header:has(#site-nav-toggle){
    flex-wrap:nowrap!important;gap:3px!important;padding:4px 6px!important;
  }
  html body.site-shell-design>header:has(#site-nav-toggle) .brand{
    flex:1 1 auto!important;min-width:0;font-size:14px!important;letter-spacing:0;white-space:normal;
  }
  html body.site-shell-design>header:has(#site-nav-toggle) .brand>span{font-size:9px!important}
  html body.site-shell-design>header :is(#chat-toggle,#header-profile-toggle,#site-nav-toggle){
    min-width:34px!important;width:34px!important;max-width:34px!important;flex-basis:34px!important;padding:5px!important;
  }
  #site-scale>summary{min-width:38px;min-height:38px;padding-inline:3px;font-size:11px}
  #homepage .home-content{padding:4px 7px 0}
  #homepage .home-heading{margin-bottom:4px}
  #homepage .home-heading h1{font-size:18px}
  #homepage .home-group{margin-bottom:3px}
  #homepage .home-group h2{font-size:16px;line-height:1.12;margin-bottom:3px}
  #homepage .home-tiles{gap:4px}
  html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{
    min-height:0!important;padding:4px 5px!important;gap:2px 3px;
  }
  html body.site-shell-design #homepage .home-tile h3{font-size:12px!important;line-height:1.1}
  html body.site-shell-design #homepage .home-tile p{font-size:10.5px!important;line-height:1.16}
  #homepage .home-tile-copy>.design-icon{width:11px;height:11px}
  #homepage .home-tile-copy .home-arrow{width:19px;height:19px;inset:3px 4px auto auto}
  #homepage .home-footer{margin-top:3px;padding-block:3px}
  #homepage .home-footer .bc-fan-notice{padding:3px 5px;font-size:10.5px}
  #homepage .home-footer .bc-legal-menu{margin-block:1px}
  #homepage .home-footer .bc-legal-menu summary{min-height:27px;padding-block:3px;font-size:12px}
  #homepage .home-footer .bc-social{margin-top:2px;gap:3px}
  #homepage .home-footer .bc-social a{min-height:30px;padding-inline:3px!important;font-size:11px!important}
}


.approved-payments>.staff-pagination{grid-column:1/-1;margin:0}

@media(max-width:420px) and (max-height:780px){
  .site-shell-design .site-navigation-dialog>nav{row-gap:2px}
  .site-shell-design .site-navigation-dialog>nav>:is(a,button){min-height:37px}
  #welcome.auth-v2 .bc-auth-art{min-height:41px}
  #welcome.auth-v2 #auth-tabs button{min-height:36px;height:36px;padding-block:4px}
  #welcome.auth-v2 #auth-heading{font-size:22px;line-height:1.15;margin-bottom:4px}
  #welcome.auth-v2 #auth-intro{font-size:13px;line-height:1.3}
  #welcome.auth-v2 .auth-field label,
  #welcome.auth-v2 .auth-label-row{margin-bottom:2px}
  #welcome.auth-v2 :is(#auth-captcha,#auth-mail-captcha){margin-bottom:5px}
  #welcome.auth-v2 #submit{min-height:42px;padding-block:5px;margin-top:4px}
  #welcome.auth-v2 #auth-extra>a{padding-inline:2px;font-size:12px}
  #welcome.auth-v2 #auth-extra>p{font-size:11px;line-height:1.25}
  #welcome.auth-v2 .auth-legal{min-height:0;margin-top:3px;padding-top:2px}
  body[data-account-page=auth] .bc-shell-footer .bc-fan-notice{font-size:11px;line-height:1.25;padding:4px 6px}
  body[data-account-page=auth] .bc-shell-footer .bc-social a{min-height:30px}
}
@media(min-width:310px) and (max-width:340px){
  html body.site-shell-design>header{min-height:48px!important}
  html body.site-shell-design #homepage .home-group .home-tile{min-height:42px!important}
  html body.site-shell-design #homepage .home-heading .home-auth{min-height:36px!important;padding:4px 7px!important}
}
@media(min-width:310px) and (max-width:340px) and (max-height:620px){
  #homepage .home-heading .home-auth{display:none!important}
  html body.site-shell-design #homepage .home-group .home-tile .home-tile-copy{padding-block:3px!important}
  #homepage .home-footer .bc-legal-menu summary{min-height:25px}
}


@media(max-width:420px) and (max-height:780px){
  .site-shell-design .site-navigation-dialog>.drawer-head{padding-block:4px}
  .site-shell-design .site-navigation-dialog>nav>.drawer-group-label:has(+.drawer-identity){
    grid-column:1;align-self:center;margin:1px 4px;
  }
  .site-shell-design .site-navigation-dialog>nav>.drawer-identity{
    grid-column:2;align-self:center;margin:1px 4px;
    font-size:11px;text-align:end;overflow-wrap:anywhere;
  }
}


/* On very short phones, group captions remain available to assistive technology. */
@media(min-width:310px) and (max-width:340px) and (max-height:620px){
  .site-shell-design .site-navigation-dialog>nav:has(>.drawer-identity)>:is(.drawer-group-label,.drawer-identity){
    position:absolute;inline-size:1px;block-size:1px;margin:0;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
}


/* Shared spacing for the account pages. */
body.site-shell-design :is(#profile,#staff,#support){font-size:14px;line-height:1.4}
body.site-shell-design :is(#profile,#staff,#support)>.panel-close,
body.site-shell-design #staff .staff-heading button{min-height:36px!important;padding:5px 10px!important;font-size:13px}
body.site-shell-design :is(#profile,#staff) .page-tabs{gap:4px;margin:7px 0;padding:0 0 6px}
body.site-shell-design :is(#profile,#staff) .page-tabs button{min-height:35px;padding:5px 9px;font-size:13px;line-height:1.2}
body.site-shell-design #profile .profile-hero{
  grid-template-columns:58px minmax(0,1fr);gap:2px 10px;padding:7px 10px!important;margin-bottom:5px;
}
#profile .profile-hero :is(#profile-role-avatar,.payment-avatar-wrap>img){width:52px!important;height:52px!important}
#profile .profile-hero h2{margin:0;font-size:15px}
#profile .profile-hero-summary{gap:1px;font-size:12px;line-height:1.25}
#profile .profile-hero-summary>strong{font-size:24px;line-height:1.1}
#profile #profile-overview{gap:5px;padding-block:4px}
#profile #profile-overview>:is(button,.private-contact,.profile-account-details,p){margin-block:0}
#profile #profile-overview :is(.private-contact,.profile-account-details)>summary{min-height:32px;padding:4px 0}
#profile #profile-overview>.payments-unavailable{padding:5px 8px;font-size:12px;line-height:1.35}
#profile #profile-overview :is(form,#profile-security,#profile-billing,.push-settings){padding:9px!important;min-width:0}
#profile #profile-overview :is(form,#profile-security,#profile-billing) :is(h3,h4,p){margin-block:3px 6px}
#profile #profile-overview :is(input:not([type=checkbox]),textarea,select){min-height:34px;padding:5px 8px;font-size:14px}
#profile #profile-overview textarea{min-height:52px}
#profile #profile-overview button{min-height:36px;padding:5px 9px;font-size:13px}
#profile #profile-overview .profile-game-vip{margin-block:5px;padding:8px;gap:6px}
#profile #profile-overview .profile-game-vip-heading{gap:5px}
#profile #profile-overview .profile-game-vip-heading>svg{width:20px;height:20px}
#profile #profile-overview .profile-vip-benefits{gap:4px 8px;margin-block:5px;padding-block:5px}
#profile :is(.profile-pane,.gear-inventory-card){min-width:0}
#profile :is(.profile-pane,.gear-inventory-card) .gear-inventory-body{padding:8px}
#profile .gear-inventory-body>h3{min-height:0;font-size:15px}
@media(min-width:1050px){
  #profile #profile-overview>.profile-overview-columns{
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr);gap:9px;
  }
  #profile .profile-overview-primary{display:contents}
  #profile #profile-details-form{grid-column:1}
  #profile .profile-overview-account{grid-column:2}
  #profile .profile-overview-secondary{grid-column:3}
  body.site-shell-design #profile>.profile-hero{position:relative}
}
@media(max-width:740px){
  body.site-shell-design :is(#profile,#staff,#support) :is(.panel-close,.page-tabs button){min-height:40px}
  #profile #profile-overview>:is(button,.private-contact)>summary{min-height:40px}
  #profile #profile-overview button{min-height:40px}
}

/* Compact collection rows, retaining photos, progress and checkboxes. */
#profile-collections .bc-page-heading{margin-bottom:8px}
#profile-collections .bc-page-heading h2{font-size:20px}
#profile-collections .bc-page-heading p{margin-block-start:3px;font-size:13px}
#profile-collections .bc-collection-layout{gap:12px}
#profile-collections .bc-waters{padding-inline-end:8px}
#profile-collections .bc-water-search{margin-bottom:5px}
#profile-collections .bc-water-search input{min-height:36px}
#profile-collections .bc-water-heading{margin-bottom:5px}
#profile-collections .bc-water-heading h3{font-size:19px}
#profile-collections .bc-water-button{gap:6px;min-height:46px;padding:3px 4px;margin:1px 0}
#profile-collections .bc-water-button img{width:32px;height:34px;border-radius:5px}
#profile-collections .bc-water-button small{margin-top:1px}
#profile-collections .bc-requirements{padding:5px 0 8px}
#profile-collections .bc-fish-grid{gap:6px;align-items:stretch}
#profile-collections .bc-fish-tile{
  display:grid;grid-template-columns:56px minmax(0,1fr) 18px;grid-template-rows:1fr auto;
  align-items:center;gap:0 5px;min-height:62px;padding:5px;text-align:start;
}
#profile-collections .bc-fish-tile img{grid-area:1/1/3;max-width:100%;height:36px;margin:0}
#profile-collections .bc-fish-tile b{grid-area:1/2;align-self:end;font-size:12px}
#profile-collections .bc-fish-tile small{grid-area:2/2;font-size:11px}
#profile-collections .bc-fish-tile input{grid-area:1/3/3;position:static;width:17px;height:17px}
#profile-collections .bc-fish-tile .bc-done-label{grid-column:2}
#profile-collections .bc-collection-footer{margin-top:8px;padding-top:7px}
#profile-collections .bc-collection-footer .bc-primary{min-height:40px;padding:5px 9px;white-space:normal}
#profile-collections .bc-manual-note{margin-top:7px}
#profile-collections .bc-pick-settings{padding:10px}
#profile-collections .bc-choice{min-height:52px;padding:5px;gap:6px}
#profile-collections .bc-choice img{width:60px;height:35px}
@media(min-width:1180px){
  #profile-collections .bc-collection-layout{grid-template-columns:178px minmax(0,1fr)}
  #profile-collections .bc-fish-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:740px){
  #profile-collections .bc-fish-tile{grid-template-columns:36px minmax(0,1fr) 16px;gap:0 3px;min-height:58px}
  #profile-collections .bc-fish-tile b{overflow-wrap:break-word;font-size:11.5px}
}

/* A topic reads in full in the picker and responds to the help search. */
:is(#help,#planner-factors) .help-topic-picker{display:block;min-width:0;margin:6px 0;border:1px solid #3f5e47;border-radius:8px;background:#14271c}
:is(#help,#planner-factors) .help-topic-picker>summary{
  display:grid;grid-template-columns:max-content minmax(0,1fr) auto;align-items:center;gap:8px;
  min-height:42px;padding:5px 9px;cursor:pointer;list-style:none;
}
:is(#help,#planner-factors) .help-topic-picker>summary::-webkit-details-marker{display:none}
:is(#help,#planner-factors) .help-topic-picker>summary::after{content:"▾";color:#eed68a}
:is(#help,#planner-factors) .help-topic-picker>summary>span:first-child{white-space:nowrap;color:#ead789}
:is(#help,#planner-factors) .help-topic-picker>summary>strong{overflow-wrap:break-word;font-size:13px}
:is(#help,#planner-factors) .help-topic-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px 7px 7px}
:is(#help,#planner-factors) .help-topic-options button{
  min-width:0;min-height:40px;padding:4px 7px;text-align:start;white-space:normal;font-size:13px;line-height:1.2;
}
:is(#help,#planner-factors) .help-topic-options button[aria-pressed=true]{background:#304838;border-color:#d7bd72;color:#f1dd92}
@media(max-width:740px){:is(#help,#planner-factors) .help-topic-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep tariff choices and the amount field visible in the overview. */
body.site-shell-design #support{min-height:0!important}
#support .support-hero{min-height:0!important;padding:11px 14px!important;margin-block:4px 6px!important}
#support .support-hero h2{font-size:clamp(22px,3vw,34px)!important;margin:0 0 3px}
#support .support-hero p{font-size:13px;margin:0}
#support>.payments-unavailable{margin-block:3px;padding:5px 9px;font-size:12px;line-height:1.35}
#support .payment-product-group{margin:7px 0;min-width:0}
#support .payment-product-group>h3{font-size:17px;margin:0 0 2px}
#support .payment-group-description{max-width:none;margin:0 0 5px;font-size:12px;line-height:1.3}
#support .payment-product-group>.payment-catalogue{gap:6px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#support .payment-product-group>.payment-appearance-catalogue{grid-template-columns:minmax(0,1fr)}
#support .payment-new-card{display:block;position:relative;padding:8px!important;min-width:0}
#support .payment-new-card .payment-art{
  position:absolute;top:6px;right:6px;width:38px;height:38px;min-height:0;padding:0;background:none;
}
#support .payment-new-card .payment-art img{width:36px;height:36px}
#support .payment-new-card .payment-art .payment-card-frame{width:38px;height:38px}
#support .payment-new-card .vip-tier-body{padding:0!important;gap:3px;font-size:12px;line-height:1.25}
#support .vip-tier-heading{margin:0;padding-right:38px;min-width:0}
#support .vip-tier-heading .vip-label{font-size:17px;line-height:1.2;overflow-wrap:break-word}
#support .payment-subtitle{margin:0;padding-right:36px;font-size:11px;line-height:1.25}
#support .vip-price{margin:0;font-size:19px;line-height:1.15}
#support .vip-features{margin:0 0 3px;padding-inline-start:14px;font-size:12px;line-height:1.3}
#support .vip-features li{margin-block:1px}
#support .payment-card-action{min-height:36px;padding:5px 6px;font-size:12px;line-height:1.2;white-space:normal}
#support .payment-price-presets{gap:4px;margin:4px 0}
#support .payment-price-presets button{min-height:32px;padding:3px;font-size:12px}
#support .payment-custom-price{margin-bottom:4px}
#support .payment-custom-price input{margin-top:3px;min-height:34px;padding:4px 6px}
@media(min-width:1050px){
  body.site-shell-design #support:not([hidden]){display:grid;grid-template-columns:minmax(0,2.9fr) minmax(210px,1fr);gap:5px 9px;align-items:start}
  #support>:is(.support-hero,.payments-unavailable){grid-column:1/-1}
  #support>.panel-close{position:absolute;right:22px;top:16px;z-index:1}
  #support .support-hero{padding-inline-end:190px!important}
  #support .payment-product-group>.payment-catalogue{grid-template-columns:repeat(3,minmax(0,1fr))}
  #support .payment-product-group>.payment-appearance-catalogue{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:740px){
  #support .payment-card-action{min-height:40px}
  #support .payment-new-card .payment-art{width:28px;height:28px}
  #support .payment-new-card .payment-art img{width:27px;height:27px}
  #support .payment-new-card .payment-art .payment-card-frame{width:28px;height:28px}
  #support .vip-tier-heading{padding-right:28px}
  #support .payment-subtitle{padding-right:0}
  #support .vip-price{font-size:16px}
}

/* Compact controls, metrics and reports in all administration tabs. */
#staff .staff-heading{gap:6px;margin:0 0 5px;padding:0 0 5px}
#staff .staff-heading h2{font-size:clamp(23px,3vw,32px);margin:0}
#staff .staff-pane{padding-block:4px}
#staff :is(.stats-controls,.payment-report-controls,.payment-report-actions){gap:6px;margin-block:5px;align-items:center}
#staff :is(.stats-controls,.payment-report-controls) label{margin:0}
#staff :is(.stats-controls,.payment-report-controls,.approved-payment-tools,.approved-member-tools) :is(input:not([type=checkbox]),select,button){
  min-height:36px;padding:4px 7px;font-size:13px;
}
#staff #admin-dashboard>.stats-controls{display:flex;flex-wrap:wrap}
#staff #admin-dashboard>.stats-controls>*{width:auto;max-width:100%;margin:0}
#staff #admin-dashboard-status{margin:3px 0;font-size:12px}
#staff :is(.admin-kpis,.payment-report-metrics){gap:6px;margin-block:6px}
#staff .admin-kpis>div,#staff .payment-report-metric{padding:7px 8px;min-height:0}
#staff :is(.admin-kpis,.payment-report-metrics) strong{font-size:23px;line-height:1.15;margin:3px 0}
#staff .admin-kpis small{margin:4px 0 0;line-height:1.25}
#staff .admin-dashboard-grid{gap:7px;margin:7px 0}
#staff .admin-dashboard-grid :is(.admin-chart,.admin-funnel,.admin-origin){padding:8px;margin:0}
#staff .admin-dashboard-grid :is(h3,h4,p){margin-block:3px 6px;line-height:1.35}
#staff .admin-chart-svg{max-height:200px}
#staff :is(.staff-pane,.staff-settings-grid) :is(details,form,.checkout-admin-order,.approved-log-row,.approved-report){
  margin-block:5px;padding:7px 8px;min-width:0;
}
#staff :is(.staff-pane,.staff-settings-grid) summary{min-height:34px;padding:4px 7px}
#staff .staff-settings-grid{gap:7px;margin-bottom:7px}
#staff .staff-settings-grid>form{gap:6px}
#staff .staff-settings-grid :is(input,select,textarea){min-height:35px;padding:5px 7px}
#staff .staff-settings-grid textarea{min-height:66px}
#staff .approved-directory-list{gap:4px}
#staff .approved-directory-list>button{min-height:42px;padding:5px 7px;gap:2px 6px}
#staff .approved-moderation-search{min-height:38px;margin:5px 0}
#staff .approved-log-row p{margin-block:1px 3px}
@media(min-width:1020px){#staff .admin-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:740px){
  #staff .staff-heading{row-gap:4px}
  #staff .page-tabs[aria-label="Розділи керування"]>button{padding:4px 2px;font-size:12px}
  #staff .admin-chart-svg{max-height:168px}
  #staff :is(.staff-pane,.staff-settings-grid) summary{min-height:40px}
}


body.site-shell-design[data-account-page] > :is(#profile,#support){position:relative}
@media(max-width:390px){
  #profile-collections .bc-fish-tile{grid-template-columns:32px minmax(0,1fr) 16px}
}


#profile-collections .bc-waters [data-water-list]{max-height:min(42dvh,360px)}
@media(max-width:740px){
  #profile #profile-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  #profile #profile-overview>:is(.profile-account-details,.profile-overview-columns,p){grid-column:1/-1}
  #profile #profile-overview>:is(button,.private-contact){grid-column:auto;min-width:0}
  #profile #profile-overview>button{align-self:start;text-align:left}

  body.site-shell-design[data-account-page=support]>#support{padding:8px!important;margin-block:0!important}
  #support .support-hero{padding:5px 8px!important;margin-block:2px 3px!important}
  #support .support-hero h2{font-size:21px!important}
  #support .support-hero p{font-size:12px;line-height:1.3}
  #support .payment-product-group{margin-block:4px}
  #support .payment-product-group>h3{font-size:15px}
  #support .payment-group-description{margin-bottom:3px}
  #support .payment-product-group>.payment-catalogue{grid-template-columns:minmax(0,1fr);gap:4px}
  #support .payment-new-card{padding:5px 6px!important}
  #support .payment-new-card .payment-art{left:6px;right:auto;top:5px;width:27px;height:27px}
  #support .payment-new-card .vip-tier-body{
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(80px,27%);
    align-items:start;column-gap:5px;row-gap:3px;
  }
  #support .payment-new-card .vip-tier-heading{grid-area:1/1;padding:0 0 0 30px;min-height:25px;display:flex;align-items:center}
  #support .payment-new-card .vip-label{font-size:15px}
  #support .payment-new-card .vip-price{grid-area:1/2;align-self:center;font-size:14px}
  #support .payment-new-card .payment-card-action{
    grid-column:3;grid-row:1/4;align-self:stretch;margin:0;min-height:36px;padding:3px;font-size:11px;
  }
  #support .payment-new-card .payment-subtitle{grid-column:1/3;font-size:11px}
  #support .payment-new-card .vip-features{grid-column:1/3;padding:0;margin:0;list-style:none;font-size:11.5px;line-height:1.25}
  #support .payment-new-card .vip-features li{display:inline;margin:0}
  #support .payment-new-card .vip-features li+li::before{content:" · ";color:#d5be75}
  #support .payment-new-card[data-payment-product=supporter_month] .vip-tier-body>div:not(.vip-tier-heading){
    grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
    align-items:end;gap:5px;margin:3px 0 0;
  }
  #support .payment-price-presets{margin:0}
  #support .payment-custom-price{margin:0;font-size:11px}
  #support .payment-custom-price input{margin:2px 0 0;min-height:30px}
}

body.site-shell-design[data-account-page=support]>.bc-shell-footer{
  padding:5px 0;margin-block:5px;min-height:0;line-height:1.25;
}
body.site-shell-design[data-account-page=support]>.bc-shell-footer .bc-fan-notice{padding:4px 7px;font-size:12px}
body.site-shell-design[data-account-page=support]>.bc-shell-footer .bc-legal-menu{margin-block:2px}
body.site-shell-design[data-account-page=support]>.bc-shell-footer .bc-legal-menu summary{min-height:29px;padding:3px 0}
body.site-shell-design[data-account-page=support]>.bc-shell-footer .bc-social{margin-block-start:3px}
body.site-shell-design[data-account-page=support]>.approved-version{padding-block:3px;margin:3px 0}
@media(min-width:1000px){
  body.site-shell-design[data-account-page=support]>.bc-shell-footer{
    display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;
  }
}


/* Fit the tariff overview before the payment terms on small screens. */
body.site-shell-design[data-account-page=support]>#support>.panel-close{
  position:absolute;top:10px;right:12px;z-index:1;width:38px;min-height:38px!important;
  padding:0!important;font-size:0;
}
body.site-shell-design[data-account-page=support]>#support>.panel-close::before{content:"←";font-size:18px}
@media(min-width:1050px){
  body.site-shell-design[data-account-page=support]>#support{padding:8px 12px!important;margin-block:0!important}
  #support>.support-hero{grid-column:1;padding:7px 10px!important;margin:0!important}
  #support>.payments-unavailable{grid-column:2;align-self:stretch;margin:0;padding:6px 48px 6px 8px}
  #support>.payment-product-group{margin-block:5px}
  #support .payment-new-card .vip-tier-body{gap:2px}
  #support .vip-features{line-height:1.25}
}
@media(max-width:740px){
  body.site-shell-design[data-account-page=support]>#support:not([hidden]){display:flex;flex-direction:column}
  #support>.support-hero{padding:8px 46px 7px 8px!important}
  #support>.support-hero p{display:none}
  #support>.payments-unavailable{order:1;margin-top:5px}
  #support .payment-group-description{font-size:11px;line-height:1.25}
  #support .payment-new-card .vip-tier-body{row-gap:2px}
}
@media(max-width:380px){
  #support .payment-new-card .payment-art{width:23px;height:23px}
  #support .payment-new-card .payment-art img{width:23px;height:23px}
  #support .payment-new-card .payment-art .payment-card-frame{width:23px;height:23px}
  #support .payment-new-card .vip-tier-heading{padding-inline-start:25px}
  #support .payment-new-card .vip-price{font-size:13px}
}


:is(.home-sidebar,.page-sidebar,#account-sidebar,.site-navigation-dialog) .design-icon-collection{color:#b9c7f0}
#profile #gear-items{grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr))!important;gap:7px}
#profile .gear-inventory-card{border-radius:9px;min-width:0}
#profile .gear-inventory-art{height:62px}
#profile .gear-inventory-art img{height:54px;object-fit:contain}
#profile .gear-inventory-card .gear-inventory-body{gap:4px;padding:6px;min-width:0}
#profile .gear-inventory-body>h3{font-size:13px;line-height:1.2;min-height:2.4em;overflow-wrap:break-word}
#profile .gear-inventory-body .gear-rarity{padding:2px 5px;font-size:10.5px;line-height:1.25}
#profile .gear-card-stats{margin:0;gap:2px;font-size:12px;line-height:1.25}
#profile .gear-card-stats>div{gap:4px}
#profile .gear-inventory-body details{padding-top:3px;margin:0;min-width:0}
#profile .gear-inventory-body summary{font-size:12px;min-height:29px;padding-block:3px}
#profile .gear-inventory-body>.gear-inventory-add{
  min-height:34px;padding:4px 5px;font-size:12px;line-height:1.2;white-space:normal;margin-top:auto;
}
@media(min-width:301px) and (max-width:740px){
  #profile #gear-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px}
  #profile .gear-inventory-art{height:54px}
  #profile .gear-inventory-art img{height:46px}
  #profile .gear-inventory-body>.gear-inventory-add{min-height:44px}
  #profile .gear-inventory-body summary{min-height:36px}
}
#profile .profile-overview-account{display:grid;align-content:start;gap:8px;min-width:0}
#profile .profile-overview-secondary>.push-settings{margin:0}
#profile #profile-billing .billing-metrics{gap:5px}
#profile #profile-billing .billing-metrics>*{padding:6px}
#profile #profile-overview>.payments-unavailable{width:100%;max-width:none;box-sizing:border-box}

body.site-shell-design[data-account-page=vip-benefits]>#vip-benefits{padding-block:8px 4px;font-size:14px;line-height:1.35}
#vip-benefits>.vip-back{float:right;position:relative;z-index:1;min-height:32px;margin:3px 8px 0 4px;padding:3px 6px;font-size:12px}
#vip-benefits>.vip-photo-heading{min-height:68px;padding:7px 12px;margin:0 0 5px}
#vip-benefits>.vip-photo-heading h2{margin:0 0 3px;font-size:clamp(19px,2.5vw,30px)}
#vip-benefits>.vip-photo-heading p{max-width:75ch;font-size:13px;line-height:1.3}
#vip-benefits>.payments-unavailable{max-width:none;margin:4px 0;padding:4px 7px;font-size:12px;line-height:1.3}
#vip-benefits>.vip-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:6px 0}
#vip-benefits [data-benefit-tier]{display:flex;flex-direction:column;border-radius:9px}
#vip-benefits .vip-art{height:clamp(46px,9vh,86px);aspect-ratio:auto;object-position:center 45%}
#vip-benefits [data-benefit-tier] .vip-tier-body{padding:5px 8px;gap:2px}
#vip-benefits [data-benefit-tier] :is(.vip-label,.vip-price){font-size:19px}
#vip-benefits [data-benefit-tier] .vip-price small{font-size:10px}
#vip-benefits [data-benefit-tier] .vip-term{margin:0;font-size:10px}
#vip-benefits [data-benefit-tier] h3{font-size:16px;margin:1px 0 3px}
#vip-benefits [data-benefit-tier] .vip-features{gap:3px;margin:0 0 3px}
#vip-benefits .vip-features li{gap:5px;font-size:12px;line-height:1.25}
#vip-benefits [data-benefit-tier] .vip-icon{width:15px;height:15px;flex-basis:15px}
#vip-benefits .tier-trial{min-height:0;margin:auto 0 2px;font-size:11px}
#vip-benefits [data-benefit-tier] button:is([data-benefit-primary],[data-benefit-buy]){
  min-height:32px;margin:0;padding:3px 4px;font-size:12px;line-height:1.2;white-space:normal;
}
#vip-benefits :is(.vip-trial-note,.vip-free){margin:5px 0;font-size:11px;line-height:1.3}
#vip-benefits .vip-access-summary :is(h3,p){margin:3px 0}
#vip-benefits .vip-disclosure{margin:3px 0}
#vip-benefits .vip-disclosure summary{min-height:32px;padding:4px 7px;gap:5px;font-size:14px}
#vip-benefits .vip-disclosure summary>.vip-icon{width:16px;height:16px;flex-basis:16px}
#vip-benefits .payment-new-card{padding:6px!important;border-radius:8px}
#vip-benefits .payment-new-card .payment-art{display:none}
#vip-benefits .payment-new-card .vip-tier-body{padding:0;gap:2px}
#vip-benefits .payment-new-card :is(.vip-label,.vip-price){font-size:15px}
#vip-benefits .payment-new-card :is(.payment-subtitle,.vip-features){margin:1px 0;font-size:11px}
#vip-benefits .payment-new-card .payment-card-action{min-height:32px;margin:2px 0 0;padding:4px;font-size:11px;white-space:normal}
#vip-benefits .payment-price-presets{margin:3px 0}
#vip-benefits .payment-price-presets button{min-height:30px;padding:2px 5px}
#vip-benefits .payment-custom-price{font-size:11px}
#vip-benefits .payment-custom-price input{min-height:30px;padding:2px 5px}
@media(min-width:1000px){
  #vip-benefits [data-benefit-tier] .vip-features{grid-template-columns:repeat(2,minmax(0,1fr))}
  #vip-benefits>.vip-tier-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  #vip-benefits [data-benefit-tier]{grid-column:span 2}
}
@media(max-width:740px){
  body.site-shell-design[data-account-page=vip-benefits]>#vip-benefits{padding-inline:7px}
  #vip-benefits>.vip-back{
    display:grid;place-content:center;margin:4px 4px 0 0;width:30px;font-size:0;gap:0;
  }
  #vip-benefits>.vip-back svg{width:17px;height:17px}
  #vip-benefits>.vip-photo-heading{min-height:0;padding:6px 32px 6px 7px}
  #vip-benefits>.vip-photo-heading p{font-size:11px}
  #vip-benefits [data-benefit-tier] .vip-tier-body{padding:4px 5px}
  #vip-benefits [data-benefit-tier] :is(.vip-label,.vip-price){font-size:16px}
  #vip-benefits [data-benefit-tier] h3{font-size:14px}
  #vip-benefits .vip-features li{font-size:11px}
  #vip-benefits [data-benefit-tier] button:is([data-benefit-primary],[data-benefit-buy]){min-height:40px}
  #vip-benefits .vip-disclosure summary{min-height:38px}
  }
/* Keep the footer in the same column as account and tariff content. */
@media(min-width:901px){
  body.site-shell-design:not([data-account-page=auth],[data-account-page=maintenance],[data-account-page=home],[data-account-page=guide])>.bc-shell-footer{
    display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:7px;align-items:center;
    padding:5px 0;margin-block:5px;
  }
  .site-shell-design>.bc-shell-footer .bc-fan-notice{margin:0;padding:4px 7px;font-size:12px}
  .site-shell-design>.bc-shell-footer .bc-legal-menu{margin:0}
  .site-shell-design>.bc-shell-footer .bc-legal-menu summary{min-height:29px;padding:3px 0;font-size:12px}
  .site-shell-design>.bc-shell-footer .bc-social{margin:0}
  .site-shell-design>.bc-shell-footer+.approved-version{padding-block:0;margin-block:3px}
}
@media(max-width:900px){
  body.site-shell-design:not([data-account-page=auth],[data-account-page=maintenance],[data-account-page=home],[data-account-page=guide])>.bc-shell-footer{
    margin:5px 10px;padding:5px 0;max-width:none;
  }
  .site-shell-design>.bc-shell-footer .bc-fan-notice{margin:0;padding:4px 7px;font-size:12px;line-height:1.3}
  .site-shell-design>.bc-shell-footer .bc-legal-menu{margin:2px 0}
  .site-shell-design>.bc-shell-footer .bc-legal-menu summary{min-height:30px;padding:3px 0;font-size:12px}
  .site-shell-design>.bc-shell-footer .bc-social{margin-block-start:3px}
  .site-shell-design>.bc-shell-footer+.approved-version{padding-block:0;margin-block:4px}
}

body.site-shell-design[data-account-page=vip-benefits]>#vip-benefits{
  position:relative;min-height:0;scroll-margin-top:var(--header-height,72px);
}
#vip-benefits>.vip-back{
  position:absolute!important;inset:13px 26px auto auto;width:auto!important;
  min-height:32px;margin:0!important;white-space:nowrap;
}
#vip-benefits>.vip-photo-heading{max-width:none;padding-inline-end:195px}
#vip-benefits .vip-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:4px}
#vip-benefits .vip-more>details{min-width:0;margin:0}
#vip-benefits .vip-more>details[open]{grid-column:1/-1}
#vip-benefits .vip-more summary{line-height:1.15}
#vip-benefits .vip-access-summary{margin-block:5px 0}
#vip-benefits .vip-access-summary h3{font-size:12px}
#vip-benefits .payment-new-card .vip-features{gap:2px}
#vip-benefits .payment-new-card .vip-features li{margin:0;line-height:1.25}
#vip-benefits [data-supporter-price]{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:4px;
}
#vip-benefits [data-supporter-price] :is(.payment-price-presets,.payment-custom-price){margin:0}
#vip-benefits [data-supporter-price] .payment-price-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
#vip-benefits .payment-price-presets button{min-height:28px;padding:2px;font-size:11px}
#vip-benefits .payment-custom-price input{margin:2px 0 0;min-height:28px}
@media(min-width:1000px){
  #vip-benefits [data-benefit-tier]{
    display:grid;grid-template-columns:minmax(90px,23%) minmax(0,1fr);
  }
  #vip-benefits .vip-art{height:100%;min-height:0;border:0;object-position:38% center}
  #vip-benefits [data-benefit-tier] .vip-features{gap:2px 5px}
  #vip-benefits .payment-new-card .vip-tier-body{height:100%}
  #vip-benefits .payment-new-card .payment-card-action{margin-top:auto}
}
@media(max-width:740px){
  #vip-benefits>.vip-back{inset:12px 12px auto auto;width:30px!important;padding:0}
  #vip-benefits>.vip-photo-heading{padding-inline-end:37px}
  #vip-benefits .vip-art{height:46px}
  #vip-benefits [data-benefit-tier] .vip-features{gap:2px}
  #vip-benefits .vip-more summary{padding:3px 4px;font-size:12px}
  #vip-benefits .vip-more summary>.vip-icon{width:13px;height:13px;flex-basis:13px}
  #vip-benefits .payment-new-card{grid-column:1/-1;padding:4px 6px!important}
  #vip-benefits .payment-new-card .vip-tier-body{
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(83px,27%);gap:2px 4px;
    align-items:start;
  }
  #vip-benefits .payment-new-card .vip-tier-heading{grid-area:1/1}
  #vip-benefits .payment-new-card .vip-price{grid-area:1/2;font-size:13px}
  #vip-benefits .payment-new-card .payment-card-action{
    grid-column:3;grid-row:1/4;align-self:stretch;margin:0;min-height:35px;
  }
  #vip-benefits .payment-new-card :is(.payment-subtitle,.vip-features){display:block;grid-column:1/3;line-height:1.25;margin:0}
  #vip-benefits .payment-new-card .vip-features li{display:inline;margin:0}
  #vip-benefits .payment-new-card .vip-features li+li::before{content:" · ";color:#d5be75}
  #vip-benefits [data-supporter-price]{grid-column:1/-1}
}
#planner-factors .planner-factor-topics>:is(.help-topic-picker,.help-topic){grid-column:1/-1}
@media(min-width:1300px){
  #planner-factors .help-topic-options{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:740px){
  body.site-shell-design[data-account-page=vip-benefits]>.bc-shell-footer{margin-inline:7px}
  #vip-benefits [data-benefit-tier] .vip-art{height:36px}
  #vip-benefits [data-benefit-tier] .vip-term{line-height:1.1}
  #vip-benefits .payment-new-card .vip-tier-body{grid-template-columns:minmax(0,1fr) auto minmax(83px,26%)}
  #vip-benefits .payment-new-card .vip-tier-body .vip-features{font-size:11px}
  #vip-benefits .payment-new-card .vip-features li{font-size:inherit}
  #vip-benefits .payment-new-card[data-payment-product=supporter_month] .payment-subtitle{line-height:1.2}
}
