:root {
  --ss-site-header-top: 0px;
  --ss-site-header-height: 4rem;
  --ss-global-header-offset: calc(var(--ss-site-header-top) + var(--ss-site-header-height));
  /* Keep native keyboard scrolling clear of the sticky global chrome. */
  scroll-padding-top: calc(var(--ss-global-header-offset) + 0.75rem);
}
:root:has(body.admin-bar) { --ss-site-header-top: 32px; }

.ss-site-header {
  position: sticky;
  top: var(--ss-site-header-top);
  z-index: 50;
  color: var(--ss-body);
  font-family: var(--ss-font-body);
  line-height: 1.25;
}
.ss-site-header__bar { position: relative; z-index: 20; border-bottom: 1px solid var(--ss-border); background: white; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); }
.ss-site-header__inner, .ss-site-nav__inner { width: min(calc(100% - 2rem), 80rem); margin-inline: auto; }
.ss-site-header__inner { position: relative; display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.ss-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 0.625rem; color: var(--ss-heading); text-decoration: none; }
.ss-brand:hover { color: var(--ss-heading); }
/* The mark stands on its own beside the wordmark (owner 2026-09-30: no tile,
   so it reads as the brand, not as one more app icon). */
.ss-brand__mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--ss-ink); }
.ss-brand__mark svg { width: 2rem; height: 2rem; overflow: visible; fill: currentColor; }
.ss-brand__mark .ss-brand__collar { fill: var(--ss-primary); }
.ss-brand__copy { display: block; }
.ss-brand__wordmark { display: block; color: #1e293b; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.ss-brand__wordmark span { color: var(--ss-primary); }
.ss-brand__tagline { display: block; margin-top: 0.25rem; color: var(--ss-muted); font-size: 0.6875rem; font-weight: 500; line-height: 1; }
.ss-site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.ss-header-stats { display: none; align-items: center; gap: 0.5rem; }
.ss-header-stat { display: inline-flex; min-height: 44px; align-items: baseline; gap: 0.625rem; padding: 0.625rem 1rem; border: 1px solid var(--ss-border); border-radius: 999px; background: white; color: var(--ss-heading); text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.ss-header-stat:hover { border-color: #fecdd3; color: var(--ss-heading); box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.ss-header-stat:active { transform: scale(0.98); }
.ss-header-stat small { color: var(--ss-muted); font-size: 0.6875rem; font-weight: 600; line-height: 1; }
.ss-header-stat strong { color: var(--ss-ink); font-family: var(--ss-font-display); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.ss-header-stat span { color: var(--ss-muted); font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
.ss-nav-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ss-header-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: var(--ss-radius-control); padding: 0.625rem 1rem; color: var(--ss-body); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.ss-header-action .ss-nav-icon { width: 1.125rem; height: 1.125rem; margin-right: 0.5rem; }
.ss-header-action:hover { color: var(--ss-heading); background: var(--ss-surface-muted); }
.ss-header-action--login, .ss-header-action--account { box-shadow: inset 0 0 0 1px var(--ss-border-strong); }
.ss-header-action--primary { background: var(--ss-primary); color: white; }
.ss-header-action--primary:hover { background: var(--ss-primary-hover); color: white; }
.ss-header-action__compact { display: none; }
.ss-header-icon-action { position: relative; display: inline-flex; width: 44px; height: 44px; min-width: 44px; align-items: center; justify-content: center; border-radius: var(--ss-radius-control); color: var(--ss-muted); text-decoration: none; transition: background-color 150ms ease, color 150ms ease, transform 150ms ease; }
.ss-header-icon-action:hover { background: var(--ss-surface-muted); color: var(--ss-heading); }
.ss-header-icon-action:active { transform: scale(0.98); }
.ss-header-icon-action .ss-nav-icon { width: 1.25rem; height: 1.25rem; }
.ss-header-icon-action__count { position: absolute; top: 0.2rem; right: 0.15rem; display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; padding-inline: 0.2rem; border: 2px solid white; border-radius: 999px; background: #ef4444; color: white; font-size: 0.6875rem; font-weight: 800; line-height: 1; }
.ss-notifications-nav { position: relative; }
.ss-notifications-nav > summary { cursor: pointer; list-style: none; }
.ss-notifications-nav > summary::-webkit-details-marker { display: none; }
.ss-notifications-nav__panel { position: absolute; z-index: 75; top: calc(100% + 0.5rem); right: 0; width: min(24rem, calc(100vw - 1rem)); overflow: hidden; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-card); background: white; box-shadow: 0 10px 30px rgb(15 23 42 / 14%); }
/* DESIGN.md: no tinted bands or fills; an unread item is a dot plus a word. */
.ss-notifications-nav__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0.5rem 0.25rem 1rem; border-bottom: 1px solid var(--ss-border); }
.ss-notifications-nav__head strong { color: var(--ss-heading); }
.ss-notifications-nav__mark-all { min-height: 44px; padding: 0 0.75rem; border: 0; border-radius: var(--ss-radius-control); background: none; color: var(--ss-primary); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.ss-notifications-nav__mark-all:hover { text-decoration: underline; }
.ss-notifications-nav__panel > p { margin: 0; padding: 2rem 1rem; color: var(--ss-muted); text-align: center; }
.ss-notifications-nav__panel ul { max-height: 24rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.ss-notifications-nav__panel li { position: relative; border-bottom: 1px solid var(--ss-surface-muted); }
.ss-notifications-nav__item { display: grid; width: 100%; gap: 0.2rem; padding: 0.875rem 1rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ss-notifications-nav__item:hover { background: var(--ss-surface-muted); }
.ss-notifications-nav__item:focus-visible { outline: 2px solid var(--ss-primary); outline-offset: -2px; }
.ss-notifications-nav__panel li:not(.is-unread) span { font-weight: 500; }
.ss-notifications-nav__new { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--ss-heading); font-size: 0.75rem; font-style: normal; font-weight: 600; }
.ss-notifications-nav__new::before { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--ss-primary); content: ''; }
.ss-notifications-nav__panel li span { padding-right: 1rem; color: var(--ss-heading); font-size: 0.875rem; font-weight: 600; }
.ss-notifications-nav__panel li small { padding-right: 1rem; color: var(--ss-muted); font-size: 0.75rem; line-height: 1.45; }
.ss-notifications-nav__panel li time { color: var(--ss-muted); font-size: 0.6875rem; }
.ss-account-nav { position: relative; }
.ss-account-nav > summary { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.35rem; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-control); background: white; color: var(--ss-body); cursor: pointer; list-style: none; transition: background-color 150ms ease, transform 150ms ease; }
.ss-account-nav > summary::-webkit-details-marker { display: none; }
.ss-account-nav > summary:hover { background: #f8fafc; }
.ss-account-nav > summary:active { transform: scale(0.98); }
.ss-account-nav__avatar { display: inline-flex; width: 2rem; height: 2rem; flex: 0 0 2rem; align-items: center; justify-content: center; border-radius: 999px; background: #1e293b; color: white; font-size: 0.875rem; font-weight: 700; }
.ss-account-nav__name, .ss-account-nav__chevron { display: none; }
.ss-account-nav__chevron { width: 0.4rem; height: 0.4rem; border-right: 2px solid var(--ss-faint); border-bottom: 2px solid var(--ss-faint); transform: rotate(45deg) translateY(-2px); }
.ss-account-nav[open] .ss-account-nav__chevron { transform: rotate(225deg) translate(-1px, -1px); }
.ss-account-nav__panel { position: absolute; z-index: 70; top: calc(100% + 0.5rem); right: 0; width: 13rem; overflow: hidden; padding-block: 0.5rem; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-control); background: white; box-shadow: 0 10px 30px rgb(15 23 42 / 14%); }
.ss-account-nav__panel p { display: grid; gap: 0.1rem; margin: 0 0 0.25rem; padding: 0.5rem 1rem 0.75rem; border-bottom: 1px solid var(--ss-surface-muted); color: var(--ss-heading); }
.ss-account-nav__panel p small { color: var(--ss-muted); font-size: 0.75rem; font-weight: 500; }
.ss-account-nav__panel a { display: flex; min-height: 44px; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; color: var(--ss-muted); font-size: 0.875rem; text-decoration: none; }
.ss-account-nav__panel a:hover { background: #f8fafc; color: var(--ss-heading); }
.ss-account-nav__panel .ss-nav-icon { width: 1rem; height: 1rem; flex: 0 0 1rem; stroke: var(--ss-faint); }
.ss-account-nav__panel .ss-account-nav__logout { margin-top: 0.25rem; border-top: 1px solid var(--ss-surface-muted); color: var(--ss-danger); }
.ss-site-header__nav-row { position: relative; z-index: 10; border-bottom: 1px solid var(--ss-border); background: white; }
.ss-site-nav__inner { display: flex; align-items: center; gap: 0.25rem; padding-block: 0.5rem; }
.ss-site-nav__list, .ss-tools-nav__list, .ss-footer-nav { display: flex; align-items: center; gap: 0.25rem; padding: 0; margin: 0; list-style: none; }
.ss-site-nav a, .ss-tools-nav summary { position: relative; display: inline-flex; min-height: 44px; align-items: center; padding: 0.625rem 1rem; border-radius: 0.5rem; color: var(--ss-muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.ss-site-nav a:hover, .ss-tools-nav summary:hover { color: var(--ss-heading); background: var(--ss-surface-muted); }
.ss-site-nav a[aria-current='page'] { color: var(--ss-primary-hover); font-weight: 700; }
.ss-site-nav a[aria-current='page']::after { position: absolute; right: 0.75rem; bottom: -0.5rem; left: 0.75rem; height: 2px; border-radius: 999px; background: var(--ss-primary); content: ''; }
.ss-tools-nav { position: relative; }
.ss-tools-nav summary, .ss-mobile-nav summary { list-style: none; }
.ss-tools-nav summary::-webkit-details-marker, .ss-mobile-nav summary::-webkit-details-marker { display: none; }
.ss-tools-nav summary::after { width: 0.4rem; height: 0.4rem; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ''; transform: rotate(45deg) translateY(-2px); }
.ss-tools-nav__panel { position: absolute; top: calc(100% + 0.5rem); left: 0; width: 15rem; padding: 0.5rem; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-control); background: white; box-shadow: var(--ss-shadow-card); }
.ss-tools-nav__list { display: grid; }
.ss-tools-nav__list a { width: 100%; }
.ss-mobile-nav { display: none; }
/* The footer pins its own typography for the same reason the header does: app
 * routes load the React bundle's reset (line-height 1.5) and content routes do
 * not, so an inherited line-height made the identical footer markup render at
 * two different heights. */
.ss-site-footer { margin-top: 5rem; border-top: 1px solid var(--ss-border); background: var(--ss-surface); color: var(--ss-body); font-family: var(--ss-font-body); font-size: 1rem; line-height: 1.5; }
.ss-site-footer__inner { display: grid; gap: 1.5rem; padding-block: 2rem; }
.ss-site-footer p { margin: 0; color: var(--ss-muted); }
.ss-footer-nav { flex-wrap: wrap; gap: 1rem; }
.ss-footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.ss-site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ss-footer-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; padding-block: 1.5rem; border-block: 1px solid var(--ss-border); }
.ss-footer-hub__column--standards { grid-column: 1 / -1; }
.ss-footer-hub__title { margin: 0 0 0.25rem; color: var(--ss-heading); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.ss-footer-hub__list { display: grid; margin: 0; padding: 0; list-style: none; }
.ss-footer-hub__column--standards .ss-footer-hub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.ss-footer-hub__list a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ss-muted); font-size: 0.875rem; text-decoration: none; }
.ss-footer-hub__list a:hover { color: var(--ss-heading); text-decoration: underline; }
@media (min-width: 768px) {
  .ss-footer-hub { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .ss-footer-hub__column--standards { grid-column: auto; }
}
.ss-bottom-nav { display: none; }
.symstr-active-workout__alert { position: relative; z-index: 1; }
.symstr-active-workout__header { position: sticky; top: var(--ss-global-header-offset); z-index: 30; }
@media (min-width: 1280px) {
  .ss-header-stats { display: flex; }
}
@media (min-width: 1024px) {
  :root { --ss-site-header-height: 7.8125rem; }
  .ss-account-nav > summary { min-height: 48px; padding: 0.45rem 0.75rem; }
  .ss-account-nav__name, .ss-account-nav__chevron { display: inline-block; }
  .ss-account-nav__name { max-width: 9rem; overflow: hidden; color: var(--ss-body); font-size: 0.875rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .ss-header-action { min-height: 48px; padding-inline: 1.25rem; }
}
@media (max-width: 1023px) {
  .ss-site-header__nav-row { display: none; }
  .ss-mobile-nav { display: block; }
  .ss-mobile-nav > summary { position: relative; z-index: 62; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--ss-radius-control); color: var(--ss-muted); cursor: pointer; }
  .ss-mobile-nav > summary:hover { background: var(--ss-surface-muted); color: var(--ss-heading); }
  .ss-mobile-nav > summary svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
  .ss-mobile-nav__close-icon { display: none; }
  .ss-mobile-nav[open]::before { position: fixed; z-index: 60; inset: 0; background: rgb(0 0 0 / 78%); content: ''; }
  .ss-mobile-nav[open] > summary { position: fixed; z-index: 63; top: 10px; left: calc(min(300px, 85vw) - 56px); color: var(--ss-muted); }
  .ss-mobile-nav[open] .ss-mobile-nav__menu-icon { display: none; }
  .ss-mobile-nav[open] .ss-mobile-nav__close-icon { display: block; }
  .ss-mobile-nav__panel { position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; display: flex; width: min(300px, 85vw); flex-direction: column; border-right: 1px solid var(--ss-border); background: white; box-shadow: 8px 0 24px rgb(15 23 42 / 18%); }
  .ss-mobile-nav__panel-header { display: flex; min-height: 4rem; align-items: center; padding: 1.25rem 3.75rem 1rem 1.25rem; border-bottom: 1px solid var(--ss-surface-muted); text-align: left; }
  .ss-mobile-nav__panel-header strong { color: #1e293b; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.025em; }
  .ss-mobile-nav__panel-header strong span { color: var(--ss-primary); }
  .ss-mobile-nav__panel-scroll { flex: 1; overflow-y: auto; padding: 1rem 0.75rem max(1rem, env(safe-area-inset-bottom)); }
  .ss-mobile-nav__profile { display: flex; min-height: 56px; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem 0.75rem; border-bottom: 1px solid var(--ss-border); border-radius: 0.75rem; color: var(--ss-body); text-decoration: none; }
  .ss-mobile-nav__profile > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
  .ss-mobile-nav__profile strong, .ss-mobile-nav__profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-mobile-nav__profile small { color: var(--ss-muted); font-size: 0.875rem; }
  .ss-mobile-nav__avatar { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 999px; background: #1e293b; color: white; font-size: 1.125rem; font-weight: 700; }
  .ss-mobile-nav__group + .ss-mobile-nav__group { margin-top: 1rem; }
  .ss-mobile-nav__list { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
  .ss-mobile-nav__list a { display: flex; min-height: 48px; align-items: center; gap: 0.75rem; padding: 0 0.75rem; border-radius: 0.75rem; color: #334155; font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
  .ss-mobile-nav__list a:hover { background: #f8fafc; color: #1e293b; }
  .ss-mobile-nav__list a[aria-current='page'] { background: #fff1f2; color: #be123c; }
  .ss-nav-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; fill: none; stroke: #94a3b8; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .ss-mobile-nav__list a[aria-current='page'] .ss-nav-icon { stroke: #e11d48; }
  .ss-mobile-nav__group-label { margin: 0 0 0.25rem; padding-inline: 0.75rem; color: #475569; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  .ss-mobile-nav__account { display: grid; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--ss-border); }
  .ss-mobile-nav__account a { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 700; text-decoration: none; }
  .ss-mobile-nav__signup { background: var(--ss-primary); color: white; }
  .ss-mobile-nav__signup:hover { background: var(--ss-primary-hover); color: white; }
  .ss-mobile-nav__signup .ss-nav-icon { stroke: white; }
  .ss-mobile-nav__login { border: 1px solid var(--ss-border-strong); color: #475569; }
  .ss-mobile-nav__login:hover { background: #f8fafc; color: #1e293b; }
  body:has(.ss-mobile-nav[open]) { overflow: hidden; }
}
@media (max-width: 782px) {
  :root:has(body.admin-bar) { --ss-site-header-top: 46px; }
}
@media (max-width: 639px) {
  .ss-site-header__inner { gap: 0.5rem; }
  .ss-brand { min-width: 44px; margin-right: auto; }
  .ss-brand__copy { display: none; }
  .ss-header-action--login, .ss-header-action--account { display: none; }
  .ss-header-action { padding-inline: 0.875rem; }
  .ss-header-action__wide { display: none; }
  .ss-header-action__compact { display: inline; }
  /* The bell sits mid-bar on phones; anchor the panel to the header so it stays on screen. */
  .ss-notifications-nav { position: static; }
  .ss-notifications-nav__panel { right: 0.5rem; left: 0.5rem; width: auto; }
}
/* Returning members sign in from the bar on phones; the drawer keeps the full pair. */
@media (min-width: 360px) and (max-width: 639px) {
  .ss-header-action--login { display: inline-flex; padding-inline: 0.5rem; box-shadow: none; }
}
@media (max-width: 767px) {
  :root { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .ss-bottom-nav { position: fixed; z-index: 9980; right: 0; bottom: 0; left: 0; display: block; border-top: 1px solid var(--ss-border); background: white; padding: 0.375rem 0.5rem max(0.5rem, env(safe-area-inset-bottom)); }
  .ss-bottom-nav ul { display: flex; align-items: stretch; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
  .ss-bottom-nav li { min-width: 0; flex: 1; margin: 0; padding: 0; }
  .ss-bottom-nav a { display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; padding: 0.25rem; border-radius: 0.5rem; color: var(--ss-muted); font-size: 0.75rem; font-weight: 700; line-height: 1; text-decoration: none; }
  .ss-bottom-nav a:hover, .ss-bottom-nav a[aria-current='page'] { color: var(--ss-heading); }
  .ss-bottom-nav .ss-nav-icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; }
  .ss-bottom-nav__indicator { width: 0.25rem; height: 0.25rem; border-radius: 999px; background: transparent; }
  .ss-bottom-nav a[aria-current='page'] .ss-bottom-nav__indicator { background: var(--ss-primary); }
  .ss-site-footer__inner { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ss-mobile-nav__list a { transition: none; }
}
