/* PUY Tab Header v11 — single canonical header for every PUY Member/public subpage.
   Loaded after page-specific styles so Booking/Pages/new modules cannot override it. */
.puy-member-topbar.puy-tab-header{
  --puy-tab-max:1180px;
  --puy-tab-side:16px;
  box-sizing:border-box!important;
  width:100vw!important;
  max-width:none!important;
  margin:0 calc(50% - 50vw)!important;
  padding:14px var(--puy-tab-side) 12px!important;
  position:relative!important;
  z-index:30!important;
  font-family:Roboto,sans-serif;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  isolation:isolate;
}
.puy-member-topbar.puy-tab-header::before,
.puy-member-topbar.puy-tab-header::after,
.puy-member-topbar.puy-tab-header .puy-page-title-row::before,
.puy-member-topbar.puy-tab-header .puy-page-title-row::after{content:none!important;display:none!important;}

.puy-member-topbar.puy-tab-header .puy-page-title-row{
  box-sizing:border-box!important;
  width:min(100%,var(--puy-tab-max))!important;
  max-width:var(--puy-tab-max)!important;
  min-height:66px!important;
  height:auto!important;
  margin:0 auto!important;
  padding:8px 12px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 48px!important;
  gap:12px!important;
  align-items:center!important;
  border:1px solid rgba(255,255,255,.94)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 8px 24px rgba(91,60,74,.08)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
  overflow:visible!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-brand{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-self:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  text-align:left!important;
  overflow:hidden!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-logo{
  flex:0 0 auto!important;
  width:40px!important;
  height:40px!important;
  padding:3px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:#fff!important;
  border:1px solid rgba(242,185,207,.92)!important;
  box-shadow:0 4px 12px rgba(133,75,99,.10)!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-logo img{width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;border-radius:50%!important;background:#fff!important;}
.puy-member-topbar.puy-tab-header .puy-page-title-copy{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  gap:1px!important;
  align-content:center!important;
  justify-items:start!important;
  text-align:left!important;
  overflow:hidden!important;
  font-family:inherit;
}
.puy-member-topbar.puy-tab-header .puy-page-title-copy>small{
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  color:var(--puy-pink,#f06f9d)!important;
  font-family:inherit;
  font-size:8.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
  white-space:nowrap!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-copy>h1,
.puy-member-topbar.puy-tab-header .puy-page-title-copy>.puy-page-title-heading{
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  color:#46383E!important;
  font-family:inherit;
  font-size:17px!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
  white-space:nowrap!important;
  text-align:left!important;
}
.puy-member-topbar.puy-tab-header .puy-back{
  box-sizing:border-box!important;
  width:44px!important;
  height:44px!important;
  margin:0!important;
  padding:0!important;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  color:#e85f91!important;
  background:linear-gradient(145deg,#fff,#fff1f6)!important;
  border:1px solid rgba(239,160,190,.72)!important;
  box-shadow:0 8px 20px rgba(187,83,124,.16)!important;
  font-size:31px!important;
  line-height:1!important;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.puy-member-topbar.puy-tab-header .puy-back>span{display:block!important;line-height:1!important;transform:translateY(-1px)!important;}
.puy-member-topbar.puy-tab-header .puy-back:hover{transform:translateX(-2px)!important;background:#ffeaf2!important;box-shadow:0 10px 24px rgba(187,83,124,.22)!important;}
.puy-member-topbar.puy-tab-header .puy-title-language{min-width:44px!important;justify-self:end!important;display:grid!important;place-items:center!important;}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary{width:44px!important;height:44px!important;border-radius:15px!important;}

/* Mobile/tablet: one continuous PUY-pink surface from iPhone safe area to rounded bottom corners. */
@media(max-width:899px){
  .puy-member-topbar.puy-tab-header{
    --puy-tab-side:max(12px,env(safe-area-inset-left,0px));
    padding-top:8px!important;
    padding-right:max(12px,env(safe-area-inset-right,0px))!important;
    padding-bottom:12px!important;
    padding-left:max(12px,env(safe-area-inset-left,0px))!important;
    background:var(--puy-pink,#f06f9d)!important;
    background-color:var(--puy-pink,#f06f9d)!important;
    border-radius:0 0 24px 24px!important;
    box-shadow:0 9px 24px rgba(191,70,116,.18)!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-row{
    width:100%!important;
    max-width:none!important;
    min-height:58px!important;
    height:58px!important;
    margin:0!important;
    padding:0!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-brand{
    justify-content:center!important;
    gap:0!important;
    text-align:center!important;
    overflow:hidden!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-logo{display:none!important;}
  .puy-member-topbar.puy-tab-header .puy-page-title-copy{
    gap:3px!important;
    justify-items:center!important;
    text-align:center!important;
    overflow:hidden!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>small{
    color:#fff!important;
    font-size:7.8px!important;
    line-height:1!important;
    letter-spacing:.11em!important;
    text-align:center!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>.puy-page-title-heading{
    width:100%!important;
    max-width:100%!important;
    color:#fff!important;
    line-height:1.04!important;
    font-weight:800!important;
    letter-spacing:-.025em!important;
    white-space:nowrap!important;
    text-align:center!important;
    overflow:visible!important;
  }
  .puy-member-topbar.puy-tab-header.is-title-short .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-short .puy-page-title-copy>.puy-page-title-heading{font-size:18.5px!important;}
  .puy-member-topbar.puy-tab-header.is-title-medium .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-medium .puy-page-title-copy>.puy-page-title-heading{font-size:17px!important;}
  .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>.puy-page-title-heading{font-size:15px!important;letter-spacing:-.03em!important;}
  .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>.puy-page-title-heading{font-size:12.5px!important;letter-spacing:-.04em!important;}
  .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>.puy-page-title-heading{font-size:10px!important;letter-spacing:-.045em!important;}
  .puy-member-topbar.puy-tab-header .puy-back{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    color:var(--puy-pink,#f06f9d)!important;
    background:#fff!important;
    border:1px solid rgba(255,255,255,.98)!important;
    box-shadow:0 5px 14px rgba(133,42,77,.14)!important;
    font-size:29px!important;
  }
  .puy-member-topbar.puy-tab-header .puy-title-language{min-width:42px!important;}
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    background:#fff!important;
    color:var(--puy-pink,#f06f9d)!important;
    border:1px solid rgba(255,255,255,.98)!important;
    box-shadow:0 5px 14px rgba(133,42,77,.14)!important;
  }
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-flag-sphere{
    width:25px!important;
    height:25px!important;
    background:#fff!important;
    border:1px solid rgba(235,224,229,.9)!important;
    box-shadow:none!important;
  }
}

/* iOS browser tabs already start below the browser chrome. Only installed PUY
   Home Screen / fullscreen apps need an additional notch safe-area inset.
   Keep this rule on the shared tab header so every customer subpage
   receives the same compact, correctly aligned pink top bar. */
@media (max-width:899px) and (display-mode:standalone),
       (max-width:899px) and (display-mode:fullscreen){
  .puy-member-topbar.puy-tab-header{
    padding-top:calc(8px + env(safe-area-inset-top,0px))!important;
  }
}

@media(max-width:390px){
  .puy-member-topbar.puy-tab-header{
    padding-left:max(10px,env(safe-area-inset-left,0px))!important;
    padding-right:max(10px,env(safe-area-inset-right,0px))!important;
    border-radius:0 0 22px 22px!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-row{grid-template-columns:40px minmax(0,1fr) 40px!important;gap:6px!important;min-height:56px!important;height:56px!important;}
  .puy-member-topbar.puy-tab-header .puy-back,
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary{width:40px!important;height:40px!important;border-radius:12px!important;}
  .puy-member-topbar.puy-tab-header .puy-title-language{min-width:40px!important;}
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>small{font-size:7.2px!important;letter-spacing:.10em!important;}
  .puy-member-topbar.puy-tab-header.is-title-short .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-short .puy-page-title-copy>.puy-page-title-heading{font-size:18px!important;}
  .puy-member-topbar.puy-tab-header.is-title-medium .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-medium .puy-page-title-copy>.puy-page-title-heading{font-size:16.25px!important;}
  .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>.puy-page-title-heading{font-size:14px!important;}
  .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>.puy-page-title-heading{font-size:11.5px!important;}
  .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>.puy-page-title-heading{font-size:9px!important;}
}

@media(prefers-reduced-motion:reduce){.puy-member-topbar.puy-tab-header *{transition:none!important;}}

/* =========================================================
   PUY Unified Public Page Frame v1 — 2026-09-30
   Canonical content container for every PUY Member/public subpage.
   New pages should use puy_member_page_frame_start()/end().
   ========================================================= */
:root{--puy-page-frame-max:1180px;}

/* The page body and the canonical tab header now share exactly one desktop width. */
@media(min-width:900px){
  body.puy-member-body main.puy-app-shell:has(> .puy-page-frame){
    width:min(calc(100% - 32px),var(--puy-page-frame-max))!important;
    max-width:var(--puy-page-frame-max)!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}

/* Page-specific styles used to add a second gap below the shared header. */
body.puy-member-body .puy-pages-shell .puy-member-topbar.puy-tab-header{margin-bottom:0!important;}

.puy-page-frame{
  position:relative;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:10px 0 0;
  padding:24px;
  display:grid;
  gap:18px;
  border:1px solid rgba(255,255,255,.98);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.975) 0%,rgba(255,249,252,.97) 64%,rgba(247,253,254,.965) 100%);
  box-shadow:0 18px 52px rgba(89,58,73,.09),inset 0 1px 0 rgba(255,255,255,.98);
  overflow:visible;
}
.puy-page-frame::before{content:none!important;display:none!important;}
.puy-page-frame>*{min-width:0;}

/* One spacing rhythm: the outer frame owns vertical separation between top-level modules. */
.puy-page-frame>.puy-profile-card,
.puy-page-frame>.puy-form-card,
.puy-page-frame>.puy-link-list,
.puy-page-frame>.puy-coming,
.puy-page-frame>.puy-section-head,
.puy-page-frame>.puy-notification-list,
.puy-page-frame>.puy-history-feature,
.puy-page-frame>.puy-history-list,
.puy-page-frame>.puy-reward-balance,
.puy-page-frame>.puy-point-list,
.puy-page-frame>.puy-closet-grid,
.puy-page-frame>.puy-warranty-summary,
.puy-page-frame>.puy-card-stack,
.puy-page-frame>.puy-support-hero,
.puy-page-frame>.puy-custom-page,
.puy-page-frame>.puy-built-article,
.puy-page-frame>.puy-branches-hero,
.puy-page-frame>.puy-branches-grid,
.puy-page-frame>.puy-pages-hero,
.puy-page-frame>.puy-pages-card,
.puy-page-frame>.puy-pages-cta,
.puy-page-frame>.puy-pages-split,
.puy-page-frame>.puy-training-course,
.puy-page-frame>.puy-pages-success{margin-top:0!important;margin-bottom:0!important;}

/* Shared typography and controls for a consistent, modern system. */
.puy-page-frame .puy-section-head{padding:2px 3px;align-items:center;}
.puy-page-frame .puy-section-head small{font-size:9px!important;line-height:1.25;letter-spacing:.11em;font-weight:850!important;}
.puy-page-frame .puy-section-head h2{margin:3px 0 0!important;font-size:18px!important;line-height:1.25;letter-spacing:-.02em;}
.puy-page-frame .puy-btn{
  min-height:42px;
  padding:0 16px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:10.5px;
  line-height:1.2;
  font-weight:800;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,background .16s ease;
}
@media(hover:hover){
  .puy-page-frame .puy-btn:not(:disabled):hover{transform:translateY(-1px);filter:saturate(1.03);box-shadow:0 10px 22px rgba(104,65,84,.12);}
}
.puy-page-frame :where(input,select,textarea){font-family:Roboto,sans-serif;}

/* Cards inside the single page frame are lighter, so the hierarchy is clear without box-on-box clutter. */
.puy-page-frame :where(.puy-profile-card,.puy-form-card,.puy-link-list>a,.puy-link-list>button,.puy-notification-item,.puy-history-feature,.puy-booking-card,.puy-warranty-summary,.puy-simple-card,.puy-support-hero,.puy-support-card,.puy-review-order,.puy-member-card,.puy-custom-page,.puy-built-article){
  border-color:rgba(236,218,226,.82)!important;
  box-shadow:0 8px 24px rgba(79,58,68,.055)!important;
}

/* Empty states fill the available content width and feel intentionally designed. */
.puy-page-frame>.puy-empty,
.puy-page-frame .puy-point-list>.puy-empty,
.puy-page-frame .puy-card-stack>.puy-empty,
.puy-page-frame .puy-closet-grid>.puy-empty{
  width:100%;
  min-height:150px;
  padding:30px 24px;
  border-radius:22px;
  border:1px solid rgba(239,220,228,.82);
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,249,252,.88));
  box-shadow:none;
  display:grid;
  place-content:center;
  justify-items:center;
}
.puy-page-frame .puy-empty>span{margin-bottom:10px;}
.puy-page-frame .puy-empty p{max-width:620px;margin:7px auto 0;line-height:1.65;}

/* Information / branches: one premium frame containing intro + branch cards. */
.puy-branches-frame{gap:16px;}
.puy-branches-frame>.puy-branches-hero{
  padding:20px 22px!important;
  border:1px solid rgba(242,223,231,.74)!important;
  border-radius:21px!important;
  background:linear-gradient(135deg,rgba(255,248,251,.92),rgba(244,252,254,.86))!important;
  box-shadow:none!important;
}
.puy-branches-frame .puy-branches-hero small{font-size:9.5px;letter-spacing:.12em;}
.puy-branches-frame .puy-branches-hero h1{margin:6px 0 4px;font-size:25px;letter-spacing:-.025em;}
.puy-branches-frame .puy-branches-hero p{font-size:11px;}
.puy-branches-frame>.puy-branches-grid{gap:16px;}
.puy-branches-frame .puy-branch-detail-card{
  border-radius:22px;
  border-color:rgba(237,211,222,.90);
  box-shadow:0 10px 28px rgba(91,60,74,.065);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
@media(hover:hover){.puy-branches-frame .puy-branch-detail-card:hover{transform:translateY(-2px);border-color:rgba(238,168,196,.92);box-shadow:0 15px 34px rgba(91,60,74,.095);}}
.puy-branches-frame .puy-branch-detail-card>img,
.puy-branches-frame .puy-branch-detail-empty{height:184px;}
.puy-branches-frame .puy-branch-detail-copy{gap:8px;padding:17px 18px 18px;}
.puy-branches-frame .puy-branch-detail-copy>small{font-size:8.5px;letter-spacing:.11em;}
.puy-branches-frame .puy-branch-detail-copy h2{font-size:17px;letter-spacing:-.015em;}
.puy-branches-frame .puy-branch-detail-copy>p{font-size:9.5px;line-height:1.55;}
.puy-branches-frame .puy-branch-detail-copy .puy-btn{min-height:40px!important;font-size:9.5px!important;}

/* Rewards/history: remove the "floating strips" shown in the old layout. */
.puy-rewards-frame,.puy-history-frame{gap:14px;}
.puy-rewards-frame>.puy-reward-balance-compact{
  min-height:62px!important;
  padding:11px 13px 11px 17px!important;
  border:1px solid rgba(232,220,225,.82)!important;
  border-radius:18px!important;
  box-shadow:none!important;
  background:linear-gradient(135deg,#fff,#fffafd)!important;
}
.puy-rewards-frame .puy-reward-balance-compact>span{font-size:10.5px!important;font-weight:650;color:#9a7584!important;}
.puy-rewards-frame .puy-reward-balance-compact>strong{
  min-width:104px!important;
  height:38px!important;
  padding:0 14px;
  border-radius:13px!important;
  font-size:13px!important;
  box-shadow:0 6px 14px rgba(83,190,207,.16)!important;
}
.puy-rewards-frame>.puy-point-list-reference{gap:10px!important;}
.puy-rewards-frame .puy-point-list-reference article{
  min-height:78px!important;
  padding:12px 14px!important;
  border:1px solid rgba(234,221,227,.80)!important;
  border-radius:17px!important;
  box-shadow:none!important;
}
.puy-rewards-frame .puy-point-list-reference article>div strong{font-size:11px;}
.puy-rewards-frame .puy-point-list-reference article>div small{font-size:7.5px;line-height:1.4;}
.puy-rewards-frame .puy-point-list-reference aside b{font-size:10px;}
.puy-rewards-frame .puy-point-list-reference aside em{font-size:8px;}
.puy-history-frame>.puy-empty{min-height:180px;}

/* Content-builder/public pages: the shared frame owns the outside surface; inner modules remain distinct. */
.puy-pages-frame>.puy-pages-hero{border-radius:23px;box-shadow:0 10px 30px rgba(49,75,91,.065);}
.puy-pages-frame>.puy-pages-card,
.puy-pages-frame>.puy-pages-cta,
.puy-pages-frame>.puy-training-course{box-shadow:0 7px 22px rgba(49,75,91,.045);}

/* Booking already shares the same 1180px header width; this joins its hero/form into one content surface. */
.puy-booking-frame{gap:18px;}
.puy-booking-frame>.puy-book2-hero,
.puy-booking-frame>.puy-book2-flow,
.puy-booking-frame>.puy-booking-flow{margin-top:0!important;margin-bottom:0!important;}

@media(max-width:899px){
  body.puy-member-body main.puy-app-shell:has(> .puy-page-frame){
    width:100%!important;
    max-width:100%!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.puy-member-body .puy-pages-shell{width:100%!important;}
  .puy-page-frame{
    margin-top:10px;
    padding:14px;
    gap:12px;
    border-radius:24px;
    box-shadow:0 12px 32px rgba(89,58,73,.075),inset 0 1px 0 rgba(255,255,255,.98);
  }
  .puy-page-frame::before{left:20px;width:64px;height:2px;}
  .puy-page-frame .puy-section-head{padding:1px 2px;}
  .puy-page-frame .puy-section-head small{font-size:8px!important;}
  .puy-page-frame .puy-section-head h2{font-size:15px!important;}
  .puy-page-frame .puy-btn{min-height:40px;padding-inline:13px;font-size:9.5px;}
  .puy-page-frame>.puy-empty,
  .puy-page-frame .puy-point-list>.puy-empty,
  .puy-page-frame .puy-card-stack>.puy-empty,
  .puy-page-frame .puy-closet-grid>.puy-empty{min-height:140px;padding:24px 16px;border-radius:18px;}
  .puy-branches-frame>.puy-branches-hero{padding:16px!important;border-radius:18px!important;}
  .puy-branches-frame .puy-branches-hero h1{font-size:20px;}
  .puy-branches-frame .puy-branches-hero p{font-size:9.5px;}
  .puy-branches-frame>.puy-branches-grid{gap:10px;}
  .puy-branches-frame .puy-branch-detail-card{border-radius:18px;}
  .puy-branches-frame .puy-branch-detail-copy .puy-btn{min-height:34px!important;font-size:8.5px!important;}
  .puy-rewards-frame>.puy-reward-balance-compact{min-height:56px!important;padding:9px 10px 9px 13px!important;border-radius:16px!important;}
  .puy-rewards-frame .puy-reward-balance-compact>span{font-size:9px!important;}
  .puy-rewards-frame .puy-reward-balance-compact>strong{min-width:88px!important;height:34px!important;font-size:11px!important;}
  .puy-pages-frame>.puy-pages-hero{border-radius:19px;}
}

@media(max-width:640px){
  .puy-branches-frame .puy-branch-detail-card{grid-template-columns:104px minmax(0,1fr);}
  .puy-branches-frame .puy-branch-detail-card>img,
  .puy-branches-frame .puy-branch-detail-empty{width:104px;height:100%;min-height:154px;}
  .puy-branches-frame .puy-branch-detail-copy{padding:12px 11px;gap:6px;}
  .puy-branches-frame .puy-branch-detail-copy h2{font-size:13.5px;}
  .puy-branches-frame .puy-branch-detail-copy>p{font-size:8px;line-height:1.45;}
}

@media(max-width:390px){
  body.puy-member-body main.puy-app-shell:has(> .puy-page-frame){padding-left:10px!important;padding-right:10px!important;}
  .puy-page-frame{padding:12px;border-radius:22px;gap:11px;}
  .puy-page-frame::before{left:18px;width:56px;}
}


/* TAB HEADER UI12 — clean circular logo without the hazy backing tile. */
@media(min-width:900px){
  .puy-member-topbar.puy-tab-header .puy-page-title-logo{
    padding:0!important;
    overflow:hidden!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-logo img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
    background:transparent!important;
    clip-path:circle(49% at 50% 50%);
    filter:none!important;
  }
}

/* =========================================================
   PUY Tab Header UI13 — balanced circular brand + glossy 3D language action.
   Scope: canonical PUY Member/public subpage tab header only.
   ========================================================= */
.puy-member-topbar.puy-tab-header .puy-page-title-logo{
  box-sizing:border-box!important;
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-logo img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  border-radius:999px!important;
  background:transparent!important;
  clip-path:none!important;
  transform:scale(1.015)!important;
  transform-origin:center!important;
  filter:none!important;
}

.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary{
  position:relative!important;
  isolation:isolate!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  border:1px solid rgba(255,255,255,.94)!important;
  background:
    radial-gradient(circle at 28% 18%,rgba(255,255,255,.52) 0 13%,rgba(255,255,255,0) 34%),
    linear-gradient(145deg,#baf3fb 0%,#91e8f5 30%,#69daec 68%,#55cce2 100%)!important;
  color:#fff!important;
  box-shadow:
    0 9px 20px rgba(56,178,201,.22),
    0 3px 7px rgba(57,142,159,.14),
    inset 0 1.5px 0 rgba(255,255,255,.96),
    inset 0 -3px 6px rgba(42,157,180,.13)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
  -webkit-tap-highlight-color:transparent!important;
}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary::before{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  left:12%!important;
  right:12%!important;
  top:5%!important;
  height:36%!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.60),rgba(255,255,255,.08))!important;
  opacity:.78!important;
  pointer-events:none!important;
}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-flag-sphere{
  position:relative!important;
  z-index:1!important;
  width:26px!important;
  height:26px!important;
  border:2px solid rgba(255,255,255,.98)!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 4px 10px rgba(42,143,162,.22),inset 0 0 0 1px rgba(255,255,255,.95)!important;
  transform:translateZ(0)!important;
}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-flag-sphere img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:999px!important;
  transform:scale(1.02)!important;
}
@media(hover:hover){
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary:hover{
    transform:translateY(-2px)!important;
    filter:saturate(1.04) brightness(1.02)!important;
    box-shadow:
      0 13px 25px rgba(56,178,201,.27),
      0 4px 8px rgba(57,142,159,.15),
      inset 0 1.5px 0 rgba(255,255,255,.98),
      inset 0 -3px 6px rgba(42,157,180,.12)!important;
  }
}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary:active{
  transform:translateY(1px) scale(.975)!important;
  box-shadow:0 5px 12px rgba(56,178,201,.18),inset 0 2px 5px rgba(48,145,164,.10),inset 0 1px 0 rgba(255,255,255,.86)!important;
}
.puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary:focus-visible{
  outline:3px solid rgba(156,226,250,.38)!important;
  outline-offset:3px!important;
}
@media(max-width:899px){
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-language-summary{
    background:
      radial-gradient(circle at 28% 18%,rgba(255,255,255,.52) 0 13%,rgba(255,255,255,0) 34%),
      linear-gradient(145deg,#baf3fb 0%,#91e8f5 30%,#69daec 68%,#55cce2 100%)!important;
    border-color:rgba(255,255,255,.96)!important;
    box-shadow:0 7px 16px rgba(91,45,67,.18),0 3px 7px rgba(57,142,159,.12),inset 0 1.5px 0 rgba(255,255,255,.96),inset 0 -3px 6px rgba(42,157,180,.12)!important;
  }
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-flag-sphere{
    width:25px!important;
    height:25px!important;
    border:2px solid rgba(255,255,255,.98)!important;
    box-shadow:0 3px 8px rgba(42,143,162,.20)!important;
  }
}
@media(max-width:390px){
  .puy-member-topbar.puy-tab-header .puy-title-language .puy-member-flag-sphere{
    width:24px!important;
    height:24px!important;
  }
}

/* =========================================================
   PUY Tab Header UI15 — mobile title centered, brand logo hidden.
   Scope: phone layout only. Desktop/tablet structure remains unchanged.
   ========================================================= */
@media(max-width:640px){
  .puy-member-topbar.puy-tab-header .puy-page-title-row{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    position:relative!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-brand{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    overflow:visible!important;
    text-align:center!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-logo{
    display:none!important;
    width:0!important;
    height:0!important;
    flex:0 0 0!important;
    margin:0!important;
    padding:0!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-copy{
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 auto!important;
    display:grid!important;
    justify-items:center!important;
    align-content:center!important;
    text-align:center!important;
    overflow:visible!important;
  }
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>small,
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>h1,
  .puy-member-topbar.puy-tab-header .puy-page-title-copy>.puy-page-title-heading{
    width:auto!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
}
@media(max-width:390px){
  .puy-member-topbar.puy-tab-header .puy-page-title-row{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
  }
}

/* PUY Member subpage header v23: uppercase, one line, auto-fit in available space.
   Restrict scope to the canonical tab header; do not change card headings, admin or login. */
.puy-member-topbar.puy-tab-header .puy-page-title-copy>h1,
.puy-member-topbar.puy-tab-header .puy-page-title-copy>.puy-page-title-heading{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  text-transform:uppercase!important;
  overflow:visible!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
}
.puy-member-topbar.puy-tab-header .puy-page-title-copy{
  min-width:0!important;
  max-width:100%!important;
}


/* PUY unified heading readability v26 — all customer tab headers.
   Longer/customized/translatable titles may wrap up to multiple lines rather than
   being reduced to 7–10px or compressed horizontally. The header grows with text. */
@media (max-width: 899px) {
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-row {
    min-height:58px!important;
    height:auto!important;
    padding-block:7px!important;
    align-items:center!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-brand,
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy {
    min-width:0!important;
    height:auto!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    padding:2px 0!important;
    overflow:visible!important;
    text-align:center!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy>small {
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:8px!important;
    line-height:1.25!important;
    letter-spacing:.075em!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy>.puy-page-title-heading {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(14px,4.2vw,19px)!important;
    line-height:1.22!important;
    letter-spacing:-.018em!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    text-wrap:balance!important;
    text-align:center!important;
    transform:none!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-long .puy-page-title-copy>.puy-page-title-heading,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>.puy-page-title-heading,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>.puy-page-title-heading {
    font-size:clamp(13px,3.7vw,17px)!important;
  }
}
@media (max-width:360px) {
  body.puy-member-body .puy-member-topbar.puy-tab-header .puy-page-title-copy>small {
    font-size:7.5px!important;
  }
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xlong .puy-page-title-copy>.puy-page-title-heading,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>h1,
  body.puy-member-body .puy-member-topbar.puy-tab-header.is-title-xxlong .puy-page-title-copy>.puy-page-title-heading {
    font-size:13px!important;
  }
}
