.landing-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #171717;
  color: #f5f5f5;
}

.landing-nav-shell {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 18px clamp(16px, 4vw, 40px) 0;
}

.landing-nav {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.landing-nav-brand {
  color: #f5f5f5;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-nav-cta {
  justify-self: end;
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.landing-nav-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(96px, 16vh, 160px) clamp(20px, 5vw, 48px) 32px;
}

.landing-hero-title {
  margin: 0;
  max-width: min(780px, 92vw);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #f5f5f5;
}

.landing-hero-title em {
  font-style: italic;
}

.landing-hero-muted {
  color: #8b939f;
}

.landing-hero-subtitle {
  margin: 22px 0 0;
  max-width: 420px;
  color: #aeb6c2;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
}

.landing-hero-subtitle-brand {
  color: #f5f5f5;
  font-style: italic;
}

.landing-hero-cta {
  margin-top: 28px;
  border-radius: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.landing-hero-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}

.landing-hero-footnote {
  margin: 14px 0 0;
  color: #7d8591;
  font-size: 13px;
}

.landing-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 32px;
}

.landing-footer-copy {
  margin: 0;
  color: #7d8591;
  font-size: 13px;
}

.landing-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #aeb6c2;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.landing-footer-socials a:hover {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.06);
}

.landing-footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.landing-parse-flow {
  position: relative;
  margin-top: auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 10vw, 120px);
}

.landing-parse-flow-inner {
  width: min(100%, 1180px);
  height: 320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(40px, 6vw, 64px) clamp(18px, 3vw, 28px);
}

.landing-parse-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.landing-parse-label {
  margin: 0 0 10px;
  color: #7d8591;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-animated-text,
.landing-parsed-text {
  margin: 0;
  flex: 1;
  min-height: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.55;
}

.landing-animated-text {
  color: #9ba3af;
}

.landing-animated-caret {
  display: inline-block;
  margin-left: 1px;
  color: #22d3ee;
  animation: landingCaretBlink 1s step-end infinite;
}

@keyframes landingCaretBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.landing-parse-arrow {
  display: grid;
  place-content: center;
  align-self: center;
  width: 28px;
  height: 28px;
  color: #d1d5db;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.landing-parse-arrow.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.landing-parse-output {
  opacity: 0.35;
  transform: translateX(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.landing-parse-output.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.landing-parsed-text {
  color: #f5f5f5;
}

.landing-parsed-line {
  display: block;
  opacity: 0;
  transform: translateY(6px);
  animation: landingParsedLineIn 0.45s ease forwards;
}

@keyframes landingParsedLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at top, #1d1d1d 0%, #171717 55%);
  color: #f5f5f5;
  padding: 24px 20px 32px;
}

.auth-page-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
}

.auth-page-glow-top {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-page-glow-bottom {
  bottom: -160px;
  left: -100px;
  width: 480px;
  height: 480px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-page-main {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-page-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-page-subtitle {
  margin: 12px 0 0;
  color: #888;
  font-size: 15px;
  line-height: 1.5;
}

.auth-page-inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-page-inline-link:hover {
  text-decoration: underline;
}

.auth-page-status {
  margin: 20px 0 0;
  color: #888;
  font-size: 14px;
}

.auth-page-form {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-page-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.auth-page-input::placeholder {
  color: #666;
}

.auth-page-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.auth-page-error {
  margin: 0;
  color: #f87171;
  font-size: 13px;
  text-align: left;
}

.auth-page-primary-btn {
  width: 100%;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.auth-page-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.auth-page-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-page-info-link {
  padding: 2px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.auth-page-info-link:hover {
  text-decoration: underline;
}

.auth-page-divider {
  position: relative;
  width: 100%;
  margin: 24px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-page-divider span {
  position: relative;
  padding: 0 12px;
  background: #171717;
  color: #666;
  font-size: 13px;
}

.auth-page-google-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.auth-page-google-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-page-google-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.legal-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1d1d1d 0%, #171717 55%);
  color: #f5f5f5;
  padding: 32px 20px 48px;
}

.legal-page-main {
  width: min(100%, 680px);
  margin: 0 auto;
}

.legal-page-brand {
  display: inline-block;
  margin-bottom: 24px;
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.legal-page-main h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.02em;
}

.legal-page-updated {
  margin: 0 0 28px;
  color: #888;
  font-size: 14px;
}

.legal-page-main section {
  margin-bottom: 24px;
}

.legal-page-main h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-page-main p {
  margin: 0;
  color: #c5c5cc;
  font-size: 15px;
  line-height: 1.6;
}

.legal-page-main a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page-footer {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 14px;
}

.legal-page-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.legal-page-footer a:hover {
  text-decoration: underline;
}

.auth-page-legal {
  margin: 28px 0 0;
  max-width: 320px;
  color: #666;
  font-size: 12px;
  line-height: 1.55;
}

.auth-page-legal-link {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-page-legal-link:hover {
  color: #bbb;
}

@media (max-width: 820px) {
  .landing-parse-flow-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-parse-arrow {
    justify-self: center;
    transform: rotate(90deg) translateX(-8px);
  }

  .landing-parse-arrow.is-visible {
    transform: rotate(90deg) translateX(0);
  }

  .landing-parse-output {
    transform: translateY(8px);
  }

  .landing-parse-output.is-visible {
    transform: translateY(0);
  }
}
:root {
  --app-bg: #171717;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #9ba1a6;
  --accent: #22d3ee;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--app-bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #1d1d1d 0%, var(--app-bg) 55%);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

#redwood-app {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-sidebar {
  display: none;
}

.app-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-page-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-page-header-spacer {
  width: 40px;
}

.app-page-header-title-wrap {
  min-width: 0;
  text-align: center;
}

.app-page-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.app-page-header-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.app-page-header-right {
  display: flex;
  justify-content: flex-end;
}

.app-page-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.app-page-content:has(.editor-layout-wide) {
  padding: 28px 10px 40px;
  gap: 0;
}

.app-brand-header {
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 18px 10px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: #171717;
}

.app-brand-header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
}

.app-brand-header-logo-wrap {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  z-index: 1;
  transition:
    max-width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-brand-header-logo-wrap.is-collapsed {
  display: none;
}

.app-brand-header-logo {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: left;
  white-space: nowrap;
}

.app-brand-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.app-header-profile-action {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #292929;
  background: #1c1c1c;
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.app-header-profile-action img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-header-profile-action-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  background: #1eb8a6;
  color: #e8fffc;
  font-size: 13px;
  font-weight: 700;
}

.app-header-search {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(140, 140, 140, 0.12);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: var(--muted);
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-header-search.is-expanded {
  flex: 1;
  width: auto;
  min-width: 44px;
}

.app-header-search-main {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
}

.app-header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  pointer-events: none;
}

.app-header-search.is-expanded .app-header-search-input {
  pointer-events: auto;
}

.app-header-search-close {
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-header-search.is-expanded .app-header-search-close {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .app-brand-header {
    display: none;
  }
}

.workout-home-header {
  padding: 12px 18px 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.workout-home-header-top {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.workout-home-menu-btn {
  border: 0;
  background: transparent;
  padding: 10px 12px 10px 0;
  cursor: pointer;
  color: var(--text);
}

.workout-home-menu-glyph {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.workout-home-menu-bar {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.workout-home-menu-bar:nth-child(1) {
  top: 7px;
}

.workout-home-menu-bar:nth-child(2) {
  top: 11px;
}

.workout-home-menu-bar:nth-child(3) {
  top: 15px;
  opacity: 0;
}

.workout-home-menu-glyph.is-morphed .workout-home-menu-bar:nth-child(1) {
  transform: translate(-3px, 4px) rotate(90deg) scaleX(0.62);
}

.workout-home-menu-glyph.is-morphed .workout-home-menu-bar:nth-child(2) {
  transform: rotate(90deg);
}

.workout-home-menu-glyph.is-morphed .workout-home-menu-bar:nth-child(3) {
  opacity: 1;
  transform: translate(3px, -4px) rotate(90deg) scaleX(0.46);
}

.workout-home-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workout-home-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 140, 140, 0.12);
  color: var(--muted);
}

.workout-home-avatar {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid #292929;
  background: #1c1c1c;
  display: inline-flex;
}

.workout-home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workout-home-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  background: #1eb8a6;
  color: #e8fffc;
  font-size: 11px;
  font-weight: 700;
}

.workout-home-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.workout-home-single-title {
  padding: 16px 0;
}

.workout-home-tab-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.workout-home-tab-btn.is-trailing {
  text-align: right;
}

.workout-home-tab-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.workout-home-tab-btn:not(.is-active) .workout-home-tab-title {
  color: var(--muted);
  opacity: 0.5;
}

.note-list {
  display: flex;
  flex-direction: column;
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-list > .state-block,
.feed-list > .state-copy {
  width: 100%;
}

.app-shell-root.is-bare {
  justify-content: center;
  align-items: flex-start;
}

.app-shell-root.is-bare .app-main-column {
  width: 100%;
}

.app-shell-root.is-bare .app-page-content {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 48px;
}

.stats-summary-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

@media (min-width: 900px) {
  .app-shell-root {
    flex-direction: row;
  }

  .app-sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    min-height: 100vh;
    padding: 24px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
  }

  .app-sidebar-brand {
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .app-sidebar-logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
  }

  .app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .app-sidebar-link {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
  }

  .app-sidebar-link.is-active,
  .app-sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  .app-page-content {
    max-width: 960px;
    padding: 20px 32px 40px;
  }

  .app-page-content:has(.editor-layout-wide) {
    padding: 36px 12px 52px;
  }

  .workout-home-header {
    max-width: 960px;
    padding: 20px 32px 0;
  }

  .note-list {
    display: flex;
    flex-direction: column;
  }

  .feed-list {
    display: flex;
    flex-direction: column;
  }

  .stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .workout-editor-textarea {
    min-height: 520px;
    padding: 24px 0;
  }

  .editor-layout-wide {
    max-width: 1100px;
  }
}

@media (min-width: 1200px) {
  .app-page-content {
    max-width: 1100px;
  }

  .workout-home-header {
    max-width: 1100px;
  }
}

.mobile-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
}

.state-copy {
  color: var(--muted);
  text-align: center;
}

.state-block {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.state-block h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.state-block p {
  margin: 0;
  color: var(--muted);
}

.stack-xs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.between-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.field-input::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.pill-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pill-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.pill-btn.danger {
  background: var(--danger);
  color: #fff;
}

.text-action-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.align-start {
  align-self: flex-start;
}

.mobile-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-xl,
.avatar-md,
.avatar-sm {
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.avatar-xl {
  width: 96px;
  height: 96px;
}

.avatar-md {
  width: 44px;
  height: 44px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.recap-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1eb8a6;
  color: #e8fffc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 700;
}

.hero-number {
  margin: 0;
  font-size: 66px;
  line-height: 1;
  font-weight: 300;
}

.muted-copy {
  margin: 0;
  color: var(--muted);
}

.strong-copy {
  margin: 0;
  font-weight: 700;
}

.centered {
  text-align: center;
}

.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.chips-scroll {
  display: flex;
  gap: 10px;
}

.circle-stat {
  min-width: 86px;
  text-align: center;
}

.circle-stat-value {
  margin: 0;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
  font-weight: 700;
}

.circle-stat.is-streak .circle-stat-value {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: #101010;
}

.circle-stat-label {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--muted);
}

.list-row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.list-row-link:last-child {
  border-bottom: 0;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.truncate-copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unstyled-btn {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.recap-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.recap-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recap-user-copy {
  min-width: 0;
}

.recap-user-name {
  margin: 0;
  font-weight: 700;
}

.recap-user-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.recap-meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.recap-exercises {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recap-exercise-line,
.recap-raw-preview {
  margin: 0;
  font-size: 14px;
}

.recap-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-hero-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-main-copy h2 {
  margin: 0;
  font-size: 23px;
}

.profile-main-copy p {
  margin: 2px 0 0;
}

.heatmap-grid {
  display: flex;
  gap: 2px;
  width: 100%;
}

.heatmap-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
}

.heatmap-cell.is-logged {
  background: rgba(255, 255, 255, 0.88);
}

.heatmap-cell.is-empty {
  background: rgba(255, 255, 255, 0.08);
}

.heatmap-cell.is-future {
  background: rgba(255, 255, 255, 0.03);
}

.note-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.note-row-date-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.note-row-preview {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.note-row-preview.is-empty {
  color: var(--muted);
  opacity: 0.65;
}

.workouts-month-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

.month-calendar {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 0 24px;
  justify-content: flex-end;
}

.month-calendar-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.month-calendar-scroll::-webkit-scrollbar {
  display: none;
}

.month-calendar-panel {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.month-calendar-header {
  margin-bottom: 16px;
}

.month-calendar-day {
  margin: 0;
  font-size: clamp(4rem, 18vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.month-calendar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.month-calendar-month {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.month-calendar-year {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.month-calendar-weekday {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.month-calendar-bottom {
  width: 100%;
}

.month-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.55;
}

.month-calendar-weekdays .is-today-weekday {
  color: #22d3ee;
  opacity: 1;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px 8px;
}

.month-calendar-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.month-calendar-cell:disabled {
  cursor: default;
}

.month-calendar-cell.is-outside {
  opacity: 0.9;
}

.month-calendar-cell.is-past {
  background: rgba(255, 255, 255, 0.28);
  border-color: transparent;
}

.month-calendar-cell.is-logged {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

.month-calendar-cell.is-today {
  background: #22d3ee;
  border-color: transparent;
}

.month-calendar-cell.is-future {
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
}

.month-calendar-cell.is-locked {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.month-calendar-cell-date {
  font-size: 13px;
  font-weight: 600;
}

.month-calendar-pr-indicator-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
}

.month-calendar-pr-indicator {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fb923c;
  opacity: 0.95;
}

.month-calendar-cell-date.is-on-light {
  color: #101010;
}

.month-calendar-cell-date.is-on-dark {
  color: #d4d4d4;
}

.month-calendar-cell-date.is-muted {
  color: #b0b0b0;
}

.month-calendar-cell-date.is-outside {
  color: #9c9c9c;
  opacity: 0.55;
}

.month-calendar-cell-date.is-locked {
  color: #7b7b7b;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day-chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-content: center;
  font-weight: 700;
  cursor: pointer;
}

.day-chip.is-logged {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.day-chip.is-today {
  border-color: rgba(255, 255, 255, 0.65);
}

.recent-days-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workout-editor-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.workout-editor-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.workout-editor-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: #171717;
  animation: workout-editor-sheet-rise 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes workout-editor-sheet-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.workout-editor-sheet-handle {
  width: 40px;
  height: 4px;
  margin: 10px auto 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.workout-editor-sheet-empty {
  padding: 24px 20px 32px;
}

.workout-editor-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  max-height: 92vh;
  padding: 0 0 88px;
  overflow-y: auto;
}

.editor-top-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 0 12px;
}

.editor-top-row-end {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.editor-chrome-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 140, 140, 0.12);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.editor-chrome-btn:hover {
  background: rgba(140, 140, 140, 0.18);
}

.editor-date-heading {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.editor-visibility-section {
  margin-top: 14px;
}

.editor-visibility-heading {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.editor-settings-card-section {
  margin-top: 14px;
}

.editor-settings-card-heading {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.editor-settings-card-subtext {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.editor-delete-workout-section {
  margin-top: 22px;
}

.editor-delete-workout-btn {
  width: 100%;
}

.muscle-group-color-picker {
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.muscle-group-color-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.muscle-group-color-group:last-child {
  border-bottom: 0;
}

.muscle-group-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.muscle-group-color-row:active {
  opacity: 0.75;
}

.muscle-group-color-row-label {
  font-size: 14px;
  font-weight: 500;
}

.muscle-group-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 14px 12px;
}

.muscle-group-color-swatch {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.muscle-group-color-swatch:active {
  opacity: 0.8;
}

.muscle-group-color-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.muscle-group-color-dot.is-selected {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}

.workout-visibility-picker {
  display: grid;
  gap: 8px;
}

.workout-visibility-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.workout-visibility-option.is-active {
  border-color: rgba(120, 185, 255, 0.55);
  background: rgba(120, 185, 255, 0.12);
}

.workout-visibility-option-label {
  font-size: 14px;
  font-weight: 600;
}

.workout-visibility-option-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.editor-overflow-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: default;
}

.editor-overflow-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 41;
  min-width: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
}

.editor-overflow-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.editor-overflow-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.editor-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 12px;
}

.editor-footer-date {
  position: absolute;
  left: 84px;
  right: 84px;
  bottom: 24px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.editor-stale-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(140, 140, 140, 0.12);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.editor-stale-banner-text {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
}

.editor-stale-banner-action {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.editor-floating-summarize {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-width: 84px;
  padding: 0 16px;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.editor-floating-summarize.is-secondary {
  background: rgba(140, 140, 140, 0.18);
  color: var(--text);
  box-shadow: none;
}

.editor-floating-summarize.is-round {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.editor-floating-summarize.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.editor-floating-summarize:not(.is-disabled):hover {
  filter: brightness(1.03);
}

@media (min-width: 900px) {
  .editor-floating-summarize {
    right: 32px;
    bottom: 28px;
  }
}

.workout-editor-textarea {
  width: 100%;
  min-height: 480px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 20px 0;
  resize: none;
  font-size: 17px;
  line-height: 1.45;
  font-family: inherit;
  outline: none;
}

.workout-editor-textarea:focus {
  outline: none;
}

.summary-empty-copy {
  margin: 12px 0 0;
  padding: 20px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.parsed-workout-tree {
  padding: 4px 0 8px;
}

.parsed-workout-tree-exercise-block {
  padding-bottom: 8px;
}

.parsed-workout-tree-exercise-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.parsed-workout-tree-exercise-header:active {
  opacity: 0.7;
}

.parsed-workout-tree-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.parsed-workout-tree-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.parsed-workout-tree-set-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 4px;
}

.parsed-workout-tree-set-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.parsed-workout-tree-set-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.parsed-workout-tree-set-label-link {
  color: inherit;
  text-decoration: none;
}

.parsed-workout-tree-set-row-draggable {
  cursor: grab;
}

.parsed-workout-tree-set-row-draggable:active {
  cursor: grabbing;
  opacity: 0.75;
}

.parsed-workout-tree-set-values {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.parsed-workout-tree-pr-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fb923c;
  margin-right: 2px;
}

.parsed-workout-tree-set-value {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex-shrink: 0;
}

.parsed-workout-tree-set-value-reps {
  width: 52px;
}

.parsed-workout-tree-set-value-weight {
  width: 52px;
}

.parsed-workout-tree-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 4px;
}

.parsed-workout-tree-meta-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.parsed-workout-tree-meta-value {
  font-size: 13px;
  font-weight: 600;
}

.parsed-workout-tree-notes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.parsed-workout-tree-notes-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(96, 196, 220, 0.85);
}

.parsed-workout-tree-notes-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.43;
  color: rgba(255, 255, 255, 0.75);
}

.trend-chart {
  width: 100%;
  height: 180px;
}

.comment-row {
  display: flex;
  gap: 10px;
}

.comment-row p {
  margin: 0;
}

.user-row-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exercise-block {
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  padding-left: 10px;
}

.light-panel {
  background: rgba(242, 242, 245, 0.86);
  color: #232323;
}

.light-panel .muted-copy {
  color: #646464;
}
