/* Supplied logo bitmap remains unchanged; crop only its outer empty canvas.
   One presentation contract for both themes and every site wordmark. */
html body .taplure-logo {
  position:relative;display:block;flex:0 1 auto;
  width:330px;max-width:100%;aspect-ratio:5.56;
  overflow:hidden;border-radius:0;background:transparent;
  border:0;box-shadow:none;box-sizing:border-box;
}
html body .taplure-logo img {
  position:absolute;display:block;width:125%!important;max-width:none!important;
  height:auto!important;left:-14.58%;top:59.5%;transform:translateY(-50%);
  object-fit:contain;filter:none!important;opacity:1!important;
  /* Hide only the bitmap's tiny tagline; render its same words clearly below. */
  /* The ring extends below the tagline. Keep that entire left-hand artwork. */
  clip-path:polygon(0 0,100% 0,100% 54%,28% 54%,28% 100%,0 100%);
}
html body .taplure-logo::after {
  content:"Your Personalized AI Coach";
  position:absolute;left:22%;right:0;bottom:0;text-align:center;
  color:#f4f8ff;font:600 11px/1.25 system-ui,sans-serif;letter-spacing:.6px;z-index:2;
}
/* Only recolor the TapLure word, never the ring or gradient subtitle.
   Matching the image geometry keeps the supplied letter shapes unchanged. */
html body .taplure-logo::before {content:none}
html:not(.dark):not([data-acemblex-theme="dark"]) body .taplure-logo::before,
html .app-shell[data-theme="light"] .taplure-logo::before {
  content:"";position:absolute;display:block;pointer-events:none;z-index:1;
  width:125%;aspect-ratio:8/3;left:-14.58%;top:59.5%;transform:translateY(-50%);
  background:url("/assets/taplure-transparent-light-v1.svg") center/100% 100% no-repeat;
  clip-path:inset(29% 39% 45% 27%);
  filter:grayscale(1) brightness(0);
}
html:not(.dark):not([data-acemblex-theme="dark"]) body .taplure-logo::after,
html .app-shell[data-theme="light"] .taplure-logo::after {
  color:#000000;
}
html body .taplure-brand-link,
html .app-shell[data-theme] .topbar .brand {
  min-width:0!important;padding:0!important;line-height:1;flex-shrink:1;
}
html body .taplure-brand-link {display:inline-flex;align-items:center;gap:8px}
html body .taplure-brand-link:focus-visible,
html .app-shell[data-theme] .topbar .brand:focus-visible {
  outline:3px solid #725EFF;outline-offset:3px;border-radius:8px;
}
@media(max-width:820px) {
  html .app-shell[data-theme] .topbar .brand {flex:1;display:flex}
  html .app-shell[data-theme] .topbar .taplure-logo {width:clamp(180px,38vw,225px)}
  html body .taplure-logo::after {font-size:10px;letter-spacing:0}
}
@media(max-width:480px) {
  html body .taplure-brand-link .taplure-logo {width:180px}
}

/* Phone header: reserve one row for the supplied wordmark and one for controls.
   Scope to the dashboard shell; tablet, desktop and standalone logos stay intact. */
@media screen and (max-width:600px) {
  html .app-shell[data-theme] .dashboard-frame .topbar {
    height:112px!important;display:grid!important;
    grid-template-columns:44px 44px minmax(0,1fr) auto;
    grid-template-rows:50px 44px;gap:4px 8px!important;
    padding:5px 10px!important;box-sizing:border-box;
  }
  html .app-shell[data-theme] .topbar .mobile-menu {grid-row:1;grid-column:1}
  html .app-shell[data-theme] .topbar .brand {grid-row:1;grid-column:2 / -1;width:100%;justify-content:center}
  html .app-shell[data-theme] .topbar .taplure-logo {width:225px;flex:none}
  html .app-shell[data-theme] .topbar .taplure-logo::after {white-space:nowrap}
  html .app-shell[data-theme] .topbar .header-theme-toggle {grid-row:2;grid-column:1;min-height:44px}
  html .app-shell[data-theme] .topbar .bell {grid-row:2;grid-column:2}
  html .app-shell[data-theme] .topbar .plan-badge {grid-row:2;grid-column:3;justify-self:end;white-space:nowrap;max-width:100%}
  html .app-shell[data-theme] .topbar .auth-actions {grid-row:2;grid-column:4}
  html .app-shell[data-theme] .topbar .account-control {display:none}
  html .app-shell[data-theme] .dashboard-frame .sidebar {top:112px}
  html .app-shell[data-theme] .dashboard-frame .scrim {top:112px}
  html .app-shell[data-theme] .dashboard-frame .content {padding-top:128px}
}

/* Approved purple artwork, unchanged. SVG viewports select each supplied theme panel. */
html body .taplure-logo {position:relative!important;display:block!important;flex:0 1 auto;width:192px!important;height:66px!important;max-width:100%;aspect-ratio:936/320!important;background:url('/assets/taplure-transparent-dark-v1.svg') center/contain no-repeat!important;overflow:hidden!important;}
html:not(.dark):not([data-acemblex-theme="dark"]) body .taplure-logo,
html body .app-shell[data-theme="light"] .taplure-logo {background-image:url('/assets/taplure-transparent-light-v1.svg')!important;}
html body .app-shell[data-theme="dark"] .taplure-logo,
html:root body .taplure-logo.taplure-logo-fixed-dark {background-image:url('/assets/taplure-transparent-dark-v1.svg')!important;}
html body .taplure-logo img {visibility:visible!important;opacity:0!important;position:absolute!important;width:100%!important;height:auto!important;transform:none!important;clip-path:none!important;}
html body .taplure-logo::before,html body .taplure-logo::after {content:none!important;display:none!important;}
@media(max-width:600px){html .app-shell[data-theme] .topbar .taplure-logo {width:146px!important;height:50px!important;}}

/* Supplied glass wordmark; retain existing header geometry and both theme rules. */
html body .taplure-logo{background-size:contain!important;background-position:center!important;}
@media(max-width:600px){html .app-shell[data-theme] .topbar .taplure-logo{width:clamp(150px,50vw,192px)!important;height:50px!important;}}
